/* 神崎リニューアル共通ヘッダー（全ページ読込） */

:root {
  /* sticky ヘッダー高さ（アンカー scroll-padding 用） */
  --kozaki-header-height: 60px;
}

html {
  scroll-padding-top: var(--kozaki-header-height);
}

.kozaki-header-shell {
  display: block;
}

header.kozaki-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.kozaki-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  overflow: visible;
}

.kozaki-header__logo {
  flex: 0 1 auto;
  display: block;
  min-width: 0;
  line-height: 0;
}

.kozaki-header__logo img {
  display: block;
  width: auto;
  height: 50px;
  /*max-width: min(30vw, 120px);*/
  object-fit: contain;
}

.kozaki-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
}

.kozaki-header__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kozaki-header__list--main {
  max-width: none;
}

.kozaki-header__list--account {
  flex: 0 0 auto;
}

.kozaki-header__list li {
  flex: 0 0 auto;
  text-align: center;
}

.kozaki-header__list--account li {
  flex: 0 0 auto;
}

.kozaki-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  line-height: 0;
}

.kozaki-header__link img {
  display: block;
  width: auto;
  height: 50px;
  /*max-width: 36px;*/
  object-fit: contain;
}

.kozaki-header__link--cart {
  position: relative;
}

.kozaki-header__cart-badge {
  position: absolute;
  top: 5px;
  right: 18px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ed161b;
  color: #fff;
  border-radius: 50%;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: calc(10px + 2 * ((100vw - 320px) / 670));
  /*font-weight: bold;*/
  line-height: 1;
  pointer-events: none;
}

.kozaki-header__divider {
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  margin: 2px 4px;
  background: #d0d0d0;
}

@media screen and (max-width: 767px) {
  .kozaki-header__item--pc-only {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --kozaki-header-height: 110px;
  }

  .kozaki-header__inner {
    gap: 12px;
    padding: 10px 20px;
    overflow: visible;
  }

  .kozaki-header__logo {
    flex: 0 0 auto;
  }

  .kozaki-header__logo img {
    height: 100px;
    max-width: 375px;
  }

  .kozaki-header__nav {
    flex: 0 0 auto;
  }

  .kozaki-header__list {
    flex: 0 0 auto;
    gap: 8px;
  }

  .kozaki-header__list--main {
    gap: 8px;
  }

  .kozaki-header__list--account {
    gap: 8px;
  }

  .kozaki-header__link {
    padding: 4px;
  }

  .kozaki-header__link img {
    height: 80px;
    max-width: 80px;
  }

  .kozaki-header__divider {
    margin: 6px 14px;
  }

  .kozaki-header__cart-badge {
    top: 10px;
    right: 30px;
    min-width: 1.5rem;
    height: 1.5rem;
  }
}

/* 旧 common_header 等（.kozaki-header 以外） */
.ec-layoutRole header:not(.kozaki-header) {
  display: none;
}

/* style.css の max-width: 1150px をリニューアル幅に統一 */
.ec-layoutRole .ec-layoutRole__contents {
  max-width: 1920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* コンテンツ量が少ないページでもフッターを画面下端に寄せる（sticky footer） */
.ec-layoutRole {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.ec-layoutRole .ec-layoutRole__contents {
  flex: 1 0 auto;
}

.ec-layoutRole .ec-layoutRole__contentBottom,
.ec-layoutRole .ec-layoutRole__footer {
  flex-shrink: 0;
}
