/* グローバルヘッダー（style.css の直後に読み込む） */
.site-header {
  --ui-accordion-duration: 0.28s;
  --ui-accordion-easing: ease;
  position: relative;
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
}
.header-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 49px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-bg);
  transition: height 0.2s ease;
}
.header-partner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-section-sm);
  width: 100%;
  max-width: 1440px;
  padding: 0 var(--gap-section-lg);
}
.header-partner__logos {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.header-partner__logos img {
  width: auto;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
  transition: 0.2s;
  flex-shrink: 1;
}
.header-partner__logos a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  max-width: calc(10% - 4px);
}
.header-partner__btn {
  display: block;
  flex-shrink: 0;
  width: 124px;
  height: 26px;
  border: 1px solid var(--navy);
  border-radius: 40px;
  color: var(--navy);
  font-family: var(--font-body-jp-family);
  font-size: var(--font-sub-jp-xxs);
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}
@media (max-width: 1023px) {
  .site-header .header-partner .header-partner__btn {
    display: none;
  }
  .header-partner__inner {
    padding: 0 10px;
  }
  .header-partner.has-wrap {
    height: auto;
    padding: 4px 0;
  }
  .header-partner__logos.is-wrapped {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }
  .logo-group {
    display: contents;
  }
  .header-partner__logos.is-wrapped a {
    width: 100%;
    max-width: 100%;
  }
  .header-partner__logos.is-wrapped img {
    width: 100%;
    height: auto;
    max-height: 28px;
  }
}
.header-main {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 80px;
  background: var(--navy);
  color: var(--white);
}
.header-main__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 0 var(--gap-section-lg);
}
@media (max-width: 1023px) {
  .site-header .header-main .header-main__inner {
    padding: 0 15px;
  }
}
.header-main__brand {
  z-index: 1100;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}
.header-main__brand:hover,
.header-main__brand:focus-visible,
.header-main__brand:visited {
  color: var(--white);
  text-decoration: none;
}
.header-main__crest {
  display: block;
  width: auto;
  max-height: 60px;
  height: 60px;
  object-fit: contain;
}
.brand-en {
  font-family: var(--font-heading-en-family);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-heading-jp-family);
  font-size: var(--font-heading-jp-size);
  font-weight: 500;
  opacity: 0.9;
}
@media (max-width: 767px) {
  .brand-en {
    font-size: var(--font-heading-jp-size);
  }
  .brand-sub {
    font-size: var(--font-body-jp-size);
  }
}

.header-main__nav-pc {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  height: 100%;
}
.nav-list-pc {
  display: flex;
  height: 100%;
  list-style: none;
}
.nav-item-pc {
  height: 100%;
}
.nav-item-pc > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1.2vw;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s;
}
.nav-item-pc:hover > a {
  background: rgba(255, 255, 255, 0.15);
}
.nav-item-pc.has-mega > a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1100;
  display: none;
  border-right: 12px solid transparent;
  border-bottom: 12px solid var(--white);
  border-left: 12px solid transparent;
  transform: translateX(-50%);
  content: "";
}
.nav-item-pc.has-mega:hover > a::after {
  display: block;
}
.nav-en {
  margin-bottom: 2px;
  font-family: var(--font-heading-en-family);
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1;
}
.nav-jp {
  font-size: clamp(11px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.mega-menu {
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  width: 100%;
  padding: 80px clamp(20px, 5%, 80px);
  color: var(--black);
  background: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.nav-item-pc:hover .mega-menu {
  display: flex;
}
.mega-menu__inner {
  display: flex;
  gap: var(--gap-section-md);
  width: 100%;
  max-width: 1280px;
}
.mega-title-column {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: var(--gap-section-sm);
  width: 240px;
}
.mega-title-main {
  color: var(--navy);
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-en-size);
  font-weight: 400;
}
.mega-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--gap-section-lg);
  min-width: 0;
}
.mega-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-md);
}
.mega-section__header {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  color: var(--navy);
}
.header-en-lg {
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-jp-size);
  font-weight: 600;
}
.header-jp-md {
  margin-bottom: 4px;
  font-size: var(--font-body-jp-size);
  font-weight: 700;
}
.mega-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-section-md);
  width: 100%;
}
@media (min-width: 1024px) {
  .mega-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mega-link-item,
.mega-top-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  transition: 0.2s;
}
.mega-link-item:hover,
.mega-top-link-btn:hover {
  padding-left: 5px;
  opacity: 0.6;
}
.mega-link-text,
.mega-top-text {
  font-size: var(--font-body-jp-size);
  font-weight: 400;
}
.mega-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
} /* skeleton の input[type="checkbox"] より詳細度を上げる */
.header-main input.header-main__nav-checkbox {
  display: none;
}
.nav-open-btn {
  position: relative;
  z-index: 1200;
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-open-btn span,
.nav-open-btn span::before,
.nav-open-btn span::after {
  position: absolute;
  display: block;
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: 0.3s;
  content: "";
}
.nav-open-btn span {
  top: 50%;
  transform: translateY(-50%);
}
.nav-open-btn span::before {
  top: -10px;
}
.nav-open-btn span::after {
  top: 10px;
}
.header-main__nav-checkbox:checked ~ .header-main__inner .nav-open-btn span {
  background: transparent;
}
.header-main__nav-checkbox:checked
  ~ .header-main__inner
  .nav-open-btn
  span::before {
  top: 0;
  transform: rotate(45deg);
}
.header-main__nav-checkbox:checked
  ~ .header-main__inner
  .nav-open-btn
  span::after {
  top: 0;
  transform: rotate(-45deg);
}
.drawer {
  position: fixed;
  right: -100%;
  z-index: var(--z-drawer);
  width: 100%;
  padding: var(--gap-section-sm);
  overflow-y: auto;
  background: var(--white);
  transition:
    max-height var(--ui-accordion-duration) var(--ui-accordion-easing),
    padding var(--ui-accordion-duration) var(--ui-accordion-easing),
    opacity var(--ui-accordion-duration) var(--ui-accordion-easing),
    transform var(--ui-accordion-duration) var(--ui-accordion-easing),
    visibility var(--ui-accordion-duration) var(--ui-accordion-easing);
}
.header-main__nav-checkbox:checked ~ .drawer {
  right: 0;
} /* SP: メニュー展開時に背面をフェード（ヘッダーより下・本文より上） */
@media (min-width: 1024px) {
  .header-drawer-scrim {
    display: none;
  }
}
@media (max-width: 1023px) {
  .header-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition:
      opacity var(--ui-accordion-duration) var(--ui-accordion-easing),
      visibility var(--ui-accordion-duration) var(--ui-accordion-easing);
  }
  body:has(#nav-drawer-toggle:checked) .header-drawer-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.c-drawer-category-title {
  display: flex;
  gap: var(--section-title-inline-gap);
  align-items: baseline;
}
.c-drawer-title-en {
  font-family: var(--font-heading-en-family);
  font-size: var(--font-body-jp-size);
  color: var(--navy);
  line-height: 1;
  text-transform: uppercase;
}
.u-text-jp {
  font-size: var(--font-sub-jp-xxs);
  color: var(--gray-mid);
}
.sitemap__column {
  border-bottom: 1px solid var(--gray-bg);
}
.sitemap__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px;
  font-size: var(--font-body-jp-size);
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.4s ease;
}
.sitemap__summary::-webkit-details-marker {
  display: none;
}
.sitemap__direct-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px;
  font-size: var(--font-body-jp-size);
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-bg);
  transition: 0.3s;
}
.sitemap__icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.sitemap__icon::before,
.sitemap__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--navy);
  transition: 0.3s;
  content: "";
  transform: translate(-50%, -50%);
}
.sitemap__icon::before {
  width: 12px;
  height: 2px;
}
.sitemap__icon::after {
  width: 2px;
  height: 12px;
}
details[open] .sitemap__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}
.sitemap__list {
  max-height: 0;
  padding: 0 10px 0 10px;
  overflow: hidden;
  list-style: none;
  opacity: 0;
  transition:
    max-height var(--ui-accordion-duration) var(--ui-accordion-easing),
    padding var(--ui-accordion-duration) var(--ui-accordion-easing),
    opacity var(--ui-accordion-duration) var(--ui-accordion-easing);
}
.sitemap__category-label {
  display: block;
  max-height: 0;
  padding: 0 15px 0 15px;
  overflow: hidden;
  font-size: var(--font-sub-jp-xxs);
  font-weight: 400;
  color: var(--navy);
  opacity: 0;
  transition:
    max-height var(--ui-accordion-duration) var(--ui-accordion-easing),
    padding var(--ui-accordion-duration) var(--ui-accordion-easing),
    opacity var(--ui-accordion-duration) var(--ui-accordion-easing);
  list-style: none;
}
.sitemap__column[open] .sitemap__summary {
  background-color: rgba(0, 44, 120, 0.04);
}
.sitemap__column[open]:not(.is-closing) .sitemap__list {
  max-height: 800px;
  padding: 0 10px 15px 10px;
  opacity: 1;
}
.sitemap__column[open]:not(.is-closing) .sitemap__category-label {
  max-height: 40px;
  padding: 15px 15px 5px;
  opacity: 0.6;
}
.sitemap__link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 12px 15px;
  text-decoration: none;
  background-color: var(--gray-bg);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.sitemap__link-box:hover {
  background-color: var(--blue-light);
  transform: translateX(5px);
}
.sitemap__link {
  font-size: var(--font-sub-jp-size);
  font-weight: 400;
  color: var(--black);
}
.sp-arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--navy);
}
@media (max-width: 1023px) {
  .nav-open-btn {
    display: block;
    margin-left: auto;
  }
  .header-main__nav-pc {
    display: none;
  } /* ビューポート固定をやめ、ヘッダーと一緒にスクロールする */
  .drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--header-drawer-min-height, calc(100vh - 129px));
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
  } /* チェックONで表示 */
  .header-main__nav-checkbox:checked ~ .drawer {
    max-height: var(--header-drawer-min-height, calc(100vh - 129px));
    padding-top: var(--gap-section-sm);
    padding-bottom: var(--gap-section-sm);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
.sitemap__shop-area {
  padding: 25px 10px;
}
.c-official-shop-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 12px 20px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--blue-main) 0%, #60a2c4 100%);
  border-radius: 4px;
  transition: opacity 0.3s;
}
.c-official-shop-btn:hover {
  opacity: 0.9;
}
.c-official-shop-btn .btn-icon-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.c-official-shop-btn .btn-icon-cart svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}
.c-official-shop-btn .btn-text-group {
  display: flex;
  flex: 1;
  gap: var(--heading-en-ja-stack-gap);
  align-items: center;
  justify-content: center;
}
.c-official-shop-btn .text-en {
  font-family: var(--font-heading-en-family);
  font-size: var(--font-body-jp-size);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
.c-official-shop-btn .text-jp {
  font-family: var(--font-body-jp-family);
  font-size: var(--font-sub-jp-size);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.c-official-shop-btn .btn-icon-arrow {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
}
.c-official-shop-btn .btn-icon-arrow svg {
  width: 100%;
  height: auto;
  fill: var(--white);
}
