/* Canonical site header. This file is loaded after TOP/lower page styles. */
.site-header[data-shared-component="site-header"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 84px;
  padding: 10px 28px;
  border: 0;
  border-bottom: 1px solid rgba(24, 52, 77, 0.08);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
  transition: min-height 280ms ease, background-color 280ms ease, box-shadow 280ms ease;
  font-family: var(--site-font-critical, "Noto Sans JP", sans-serif);
}

.site-header[data-shared-component="site-header"].is-scrolled {
  min-height: 72px;
  border-bottom-color: rgba(24, 52, 77, 0.1);
  background: rgba(255, 253, 248, 0.985);
  box-shadow: 0 12px 30px rgba(24, 52, 77, 0.08);
}

.site-header[data-shared-component="site-header"] .brand {
  display: grid;
  grid-template-rows: 42px auto;
  align-content: center;
  justify-self: start;
  width: min(100%, 310px);
  min-width: 0;
  min-height: 60px;
  margin: 0;
}

.site-header[data-shared-component="site-header"] .brand-logo-img {
  width: 100%;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.site-header[data-shared-component="site-header"] .brand-operator {
  overflow: hidden;
  color: var(--site-navy-strong, #18384f);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header[data-shared-component="site-header"] .global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  margin: 0 24px;
}

.site-header[data-shared-component="site-header"] .global-nav a {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 0;
  color: var(--site-navy-strong, #18384f);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.site-header[data-shared-component="site-header"] .global-nav a::after {
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--site-yellow-strong, #d8a83c);
}

.site-header[data-shared-component="site-header"] .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 246px;
  margin: 0;
}

.site-header[data-shared-component="site-header"] .header-social-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 2px;
}

.site-header[data-shared-component="site-header"] .header-social-link {
  box-sizing: border-box;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--site-line, #dfe7e5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--site-navy-strong, #18384f);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-header[data-shared-component="site-header"] .header-social-link:hover,
.site-header[data-shared-component="site-header"] .header-social-link:focus-visible {
  border-color: rgba(216, 168, 60, 0.65);
  background: var(--site-yellow-soft, #fff3bf);
  transform: translateY(-1px);
}

.site-header[data-shared-component="site-header"] .header-social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-header[data-shared-component="site-header"] .header-social-link .is-filled {
  fill: currentColor;
  stroke: none;
}

.site-header[data-shared-component="site-header"] :where(.favorite-link, .header-cta) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header[data-shared-component="site-header"] .favorite-link {
  border: 1px solid var(--site-line, #dfe7e5);
  background: rgba(255, 255, 255, 0.72);
}

.site-header[data-shared-component="site-header"] .header-cta {
  border: 1px solid #e1b426;
  border-radius: 6px;
  background: var(--site-yellow, #f6cc67);
  color: var(--site-navy-strong, #18384f);
}

@media (min-width: 1321px) and (max-width: 1599px) {
  .site-header[data-shared-component="site-header"] .header-social-links {
    display: none;
  }
}

@media (max-width: 1220px) {
  .site-header[data-shared-component="site-header"] {
    grid-template-columns: 260px minmax(0, 1fr) auto;
    padding-inline: 22px;
  }

  .site-header[data-shared-component="site-header"] .global-nav {
    gap: 18px;
    margin-inline: 16px;
  }

  .site-header[data-shared-component="site-header"] .global-nav a {
    font-size: 13px;
  }

  .site-header[data-shared-component="site-header"] .header-actions {
    min-width: 224px;
  }

  .site-header[data-shared-component="site-header"] :where(.favorite-link, .header-cta) {
    padding-inline: 16px;
  }
}

@media (max-width: 1320px) {
  .site-header[data-shared-component="site-header"] {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html body .site-header[data-shared-component="site-header"] :where(.global-nav, .header-social-links, .favorite-link, .header-cta) {
    display: none !important;
  }

  .site-header[data-shared-component="site-header"] .header-actions {
    min-width: 44px;
    margin-left: auto;
  }

  .site-header[data-shared-component="site-header"] .portal-menu-button {
    display: inline-flex;
  }

  body.portal-menu-open {
    overflow: hidden;
  }

  .portal-mobile-menu[hidden] {
    display: none !important;
  }

  .portal-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(24, 56, 79, 0.44);
    backdrop-filter: blur(8px);
    transition: opacity 320ms ease, visibility 0s linear 420ms;
  }

  .portal-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .portal-mobile-menu-panel {
    position: absolute;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    width: min(430px, 100%);
    padding: 24px clamp(20px, 7vw, 34px) 32px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(155deg, #fff7da 0, #fffdf8 40%, #fff 100%);
    box-shadow: -18px 0 46px rgba(22, 45, 65, 0.14);
    opacity: 0;
    transform: translateX(34px);
    transition: opacity 380ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .portal-mobile-menu.is-open .portal-mobile-menu-panel {
    opacity: 1;
    transform: translateX(0);
  }

  .portal-mobile-menu-title {
    display: grid;
    gap: 3px;
    color: var(--site-navy-strong, #18384f);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
  }

  .portal-mobile-menu-title small {
    font-size: 11px;
    font-weight: 500;
  }

  .portal-mobile-menu-social {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
  }

  .portal-mobile-menu-social-link {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(24, 56, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--site-navy-strong, #18384f);
    font-size: 12px;
    font-weight: 700;
  }

  .portal-mobile-menu-social-link::after {
    content: attr(data-social-label);
  }

  .portal-mobile-menu-social-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .portal-mobile-menu-social-link .is-filled {
    fill: currentColor;
    stroke: none;
  }
}

@media (max-width: 900px) {
  .site-header[data-shared-component="site-header"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 68px;
    padding: 7px 18px;
  }

  .site-header[data-shared-component="site-header"].is-scrolled {
    min-height: 68px;
  }

  .site-header[data-shared-component="site-header"] .brand {
    grid-template-rows: 35px auto;
    flex: 0 1 auto;
    width: min(250px, calc(100vw - 92px));
    max-width: 250px;
    min-height: 52px;
  }

  .site-header[data-shared-component="site-header"] .brand-logo-img {
    width: min(100%, 230px);
    height: 35px;
    max-height: 35px;
  }

  .site-header[data-shared-component="site-header"] .brand-operator {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .site-header[data-shared-component="site-header"] {
    padding-inline: 14px;
  }

  .site-header[data-shared-component="site-header"] .brand {
    width: min(238px, calc(100vw - 82px));
    max-width: 238px;
  }

  .site-header[data-shared-component="site-header"] .brand-logo-img {
    width: min(100%, 208px);
  }
}
