/* ==========================================================================
   ODAKE 100TH — common styles
   Site-wide header / global nav / footer. Loaded on every page.
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: auto;
  background: url(../images/bg_header.png) center / cover no-repeat;
  background-size: 2400px;
  background-position-y: -1px;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.site-header__inner {
  height: 100%;
  margin: 0 auto;
  padding: 3.2rem;
  display: flex;
  justify-content: space-between;
}

.site-header--top .site-header__inner {
  padding: 3rem 3.2rem 4.4rem;
}

.site-header__logo img {
  height: 4rem;
  width: auto;
}

.site-header__menu-btn {
  width: 3.5rem;
  height: 2.8rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.site-header__menu-btn span {
  display: block;
  width: 3.5rem;
  height: 2px;
  background: #ffffff;
  transition: transform .2s ease, opacity .2s ease;
}

.site-header__page {
  /* デフォルトのスクロール時背景色（各ページで上書き可） */
  --header-scrolled-bg: rgba(8, 48, 94, 0.92);
  background: none;
}

/* TOP ページ専用ヘッダー（PC 時のみ高さ等を px 固定） */
@media (min-width: 769px) {
  .site-header--top {
    height: 124px;
  }

  /* inner の padding も px 固定 */
  .site-header--top .site-header__inner {
    padding: 32px;
  }

  /* ロゴも PC TOP 時は px 固定 */
  .site-header--top .site-header__logo img {
    height: 40px;
  }

  /* ハンバーガーボタンも px 固定 */
  .site-header--top .site-header__menu-btn {
    width: 35px;
    height: 28px;
  }

  .site-header--top .site-header__menu-btn span {
    width: 35px;
  }

  /* MV の padding-top も同じ px 値に揃える */
  :root:has(.site-header--top) {
    --header-h: 124px;
  }
}

/* Sub-page header: background appears on scroll */
.site-header__page.is-scrolled {
  background: var(--header-scrolled-bg);
}

/* ---- ページごとのスクロール時背景色（手動調整） ---- */
.site-header--history {
  --header-scrolled-bg: rgb(10 64 143 / 72%);
}

.site-header--talk {
  --header-scrolled-bg: rgb(90 171 220 / 72%);
}

/* ---------- Global nav (full-screen modal) ---------- */
.global-nav {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 48, 94, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 200;
  pointer-events: none;
}

.global-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.global-nav__panel {
  position: relative;
  width: 128rem;
  height: 81rem;
  background: rgb(219 233 245 / 95%);
  padding: 10rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transform: scale(var(--gnav-scale, 1));
  transform-origin: center center;
}

.global-nav__close {
  position: absolute;
  top: 3.2rem;
  right: 3.2rem;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
}

.global-nav__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 2px;
  background: var(--color-primary-dark);
}

.global-nav__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.global-nav__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.global-nav__brand {
  text-align: center;
  margin-bottom: 7.2rem;
}

.global-nav__logo {
  width: 29.2rem;
  height: auto;
  margin: 0 auto;
}

.global-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.global-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease;
}

.global-nav__list a img {
  height: 2.64rem;
  width: auto;
}

.global-nav__list .global-nav__item-jp {
  margin-top: -0.2rem;
}

.global-nav__list .global-nav__item-jp a img {
  height: 3.3rem;
}

.global-nav__list a:hover {
  opacity: 0.7;
}

body.is-nav-open .site-header__menu-btn {
}

body.is-nav-open {
  overflow: hidden;
}

/* ---------- Global nav: 1680px 以降は固定サイズ ---------- */
@media (min-width: 1680px) {
  .global-nav__panel {
    width: 1280px;
    height: 810px;
    padding: 100px 40px;
    overflow: hidden;
  }

  .global-nav__close {
    top: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
  }

  .global-nav__close span {
    width: 36px;
  }

  .global-nav__brand {
    margin-bottom: 72px;
  }

  .global-nav__logo {
    width: 292px;
  }

  .global-nav__list {
    gap: 40px;
  }

  .global-nav__list a img {
    height: 26.4px;
  }

  .global-nav__list .global-nav__item-jp {
    margin-top: -2px;
  }

  .global-nav__list .global-nav__item-jp a img {
    height: 33px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-text-invert);
  padding: 6.1rem 2.4rem 10rem;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.site-footer__logo img {
  height: 2.4rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  font-size: 1.4rem;
}

.site-footer__nav a:hover {
  opacity: 0.7;
}

/* ---------- Footer (light variant) ---------- */
.site-footer--light {
  background: #e1e1e1;
  color: var(--color-primary-dark);
  padding-block: 8rem;
}
.site-footer--light .site-footer__inner {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6rem;
}
.site-footer--light .site-footer__logo img {
  height: 6rem;
}
.site-footer--light .site-footer__nav ul {
  gap: 2rem 4rem;
  justify-content: center;
}
.site-footer--light .site-footer__nav a {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  display: inline-block;
}

.site-footer--light .site-footer__nav a img {
  width: auto;
  display: block;
}
.site-footer--light .site-footer__nav .site-footer__item a img {
  height: 1.6rem;
}
.site-footer--light .site-footer__nav .site-footer__item-jp a img {
  height: 2rem;
}
.site-footer--light .site-footer__nav a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  /* ---------- Header (SP) ---------- */
  /* TOP ページのみ SP 用ヘッダー画像を適用（下層ページは透明スタートでスクロールで色付与） */
  .site-header:not(.site-header__page) {
    background-image: url(../images/bg_header_sp.webp);
    background-size: 100% 100%;
  }

  /* ---------- Global nav (SP: full-screen modal) ---------- */
  .global-nav {
    background: transparent;
  }

  .global-nav__panel {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 10rem 4rem;
    background: #bdd4e8;
    transform: none;
  }

  .global-nav__close {
    top: 6rem;
    right: 6rem;
    width: 6rem;
    height: 6rem;
  }

  .global-nav__close span {
    width: 4.8rem;
    height: 3px;
  }

  .global-nav__brand {
    margin-bottom: 12.5rem;
  }

  .global-nav__logo {
    width: 43.8rem;
  }

  .global-nav__list {
    gap: 8rem;
  }

  .global-nav__list a img {
    height: 3.5rem;
  }

  .global-nav__list .global-nav__item-jp a img {
    height: 4.4rem;
  }

  .global-nav__list .global-nav__item-jp.-discover a img {
    height: 11.4rem;
  }

  /* ---------- Footer ---------- */
  .site-footer:not(.site-footer--light) .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer:not(.site-footer--light) .site-footer__nav ul {
    justify-content: center;
  }

  /* ---------- Footer (light variant, SP) ---------- */
  .site-footer--light {
    padding-block: 7.2rem 4.8rem;
  }

  .site-footer--light .site-footer__inner {
    gap: 8rem;
    align-items: center;
  }

  .site-footer--light .site-footer__logo img {
    height: auto;
    width: 35rem;
  }

  .site-footer--light .site-footer__nav {
    width: 100%;
  }

  .site-footer--light .site-footer__nav ul {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3.2rem;
  }

  .site-footer--light .site-footer__nav a {
    font-size: 2.8rem;
    letter-spacing: 0.08em;
  }

  .site-footer--light .site-footer__nav .site-footer__item a img {
    height: 2.1rem;
  }

  .site-footer--light .site-footer__nav .site-footer__item-jp a img {
    height: 2.6rem;
  }
}
