/* =============================================
   Layout — ヘッダー・フッター・共通レイアウト
   ============================================= */

/* ============ ヘッダー ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s var(--ease-main), box-shadow 0.3s var(--ease-main);
}

.site-header.is-scrolled {
  background: var(--color-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 66px;
}

.site-header__logo {
  display: block;
  line-height: 0;

  & img {
    height: 38px;
    width: auto;
  }
}

.site-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 35px;
  padding: 4px 0;

  & span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    transition: transform 0.3s var(--ease-main);
  }
}

/* ============ メニュー ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-main);
  overflow-y: auto;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 24px 66px;
}

.site-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 35px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;

  & span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
  }
}

.site-nav__list {
  text-align: center;

  & li {
    margin-bottom: 24px;
  }

  & a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.11em;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.6;
    }
  }
}

.site-nav__sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;

  & a {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;

    &:hover { opacity: 0.6; }
  }

  & img {
    height: 28px;
    width: auto;
  }
}

/* ============ メインコンテンツ ============ */
.site-main {
  padding-top: 90px;
}

/* ============ フッター ============ */
.site-footer {
  border-top: 1px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  padding-top: 48px;
  overflow: hidden;
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 66px;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.site-footer__nav {
  display: flex;
  gap: 0;

  & a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 54.4px;
    line-height: 136px;
    letter-spacing: 0.11em;
    color: var(--color-footer-nav);
    transition: color 0.2s;

    &:hover {
      color: var(--color-white);
    }
  }

  /* ABOUTをアクセントに */
  & a:nth-child(2) {
    color: var(--color-blue);
    margin: 0 32px;
  }
}

.site-footer__sns {
  display: flex;
  gap: 24px;
  align-items: center;

  & a {
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.6;
    }
  }

  & img {
    height: 28px;
    width: auto;
  }

  & .site-footer__sns-invert {
    filter: brightness(0) invert(1);
  }
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 12.5vw;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  margin-top: 20px;
  padding-bottom: 20px;
  background-image: url('../img/footer-text-mask-bg.png');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ セクション共通 ============ */
[class$="-section__header"] {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

[class$="-section__title-en"] {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.1;
  color: var(--color-gray);
}

[class$="-section__title-ja"] {
  display: block;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.19em;
  color: var(--color-gray);
  margin-top: 8px;
}

[class$="-section__view-all"] {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.19em;
  color: var(--color-text-muted);
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.6;
  }
}

/* ============ レスポンシブ ============ */
@media (max-width: 768px) {
  .site-header__inner {
    padding: 16px var(--spacing-side);
  }

  .site-header__logo {
    font-size: 18px;
  }

  .site-nav__header {
    padding: 16px var(--spacing-side);
  }

  .site-nav__sns {
    gap: 16px;
    margin-top: 32px;

    & img { height: 24px; }
  }

  .site-footer {
    padding-top: 32px;
  }

  .site-footer__inner {
    padding: 0 var(--spacing-side);
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 0;

    & a {
      font-size: 28px;
      line-height: 60px;
    }

    /* 縦並びになるのでABOUTの左右マージンをリセット */
    & a:nth-child(2) {
      margin: 0;
    }
  }

  /* セクションヘッダーはスマホで縦並びに、タイトルも縮小 */
  [class$="-section__header"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  [class$="-section__title-en"] {
    font-size: clamp(28px, 9vw, 44px);
  }
}
