@charset "UTF-8";

:root {

  /* フォントファミリー */
--font-en: bebas-neue-pro, sans-serif;
--font-en-expanded: bebas-neue-pro-semiexpanded, sans-serif;
--font-jp: source-han-sans-japanese, sans-serif;
--font-label: roboto-mono, monospace;

  /* メイン背景エリア */
--color-bg-main: #1A1C1E;
--color-heading-lg-main: #F0F3F6;
--color-heading-sm-main: #E2E6E9;
--color-body-main: #C4C7C9;
--color-label-main: #A6A8AA;
--color-border-main: rgba(196, 199, 201, 0.50);

  /* サブ背景エリア */
--color-bg-sub: #BABCBD;
--color-heading-lg-sub: #080A0C;
--color-heading-sm-sub: #1A1C1E;
--color-body-sub: #25282B;
--color-label-sub: #434648;
--color-border-sub: rgba(37, 40, 43, 0.45);

/* 機能別変数：メイン背景用 */
--theme-bg: var(--color-bg-main);
--theme-body: var(--color-body-main);
--theme-heading-lg: var(--color-heading-lg-main);
--theme-heading-sm: var(--color-heading-sm-main);
--theme-label: var(--color-label-main);
--theme-border: var(--color-border-main);
/* 各パーツ用 */
--color-nav-link: var(--color-heading-sm-main);
--color-copyright: var(--color-label-main);
--color-btn-text: var(--color-heading-sm-main);
--color-section-label: var(--color-body-main);
--color-page-label: var(--color-body-main);
--color-flavor-symbol-filled: var(--color-heading-lg-main);
--color-flavor-symbol-empty: var(--color-body-main);

/* 画像比率 */
--ratio-vertical: 1 / 1.414;  /* 縦長 */
--ratio-square: 1 / 1;  /* TOPページのMENUセクションのみ */
--ratio-horizontal: 1.414 / 1;  /* 横長 */

/* transition */
--ease-out-button: 0.3s ease-out;

/* ヘッダーの高さ */
--header-height: 72px;
}

/* 機能別変数：サブ背景用 */
.section--sub,
.header.is-sub {
  --theme-bg: var(--color-bg-sub);
  --theme-body: var(--color-body-sub);
  --theme-heading-lg: var(--color-heading-lg-sub);
  --theme-heading-sm: var(--color-heading-sm-sub);
  --theme-label: var(--color-label-sub);
  --theme-border: var(--color-border-sub);
  /* 各パーツ用 */
  --color-nav-link: var(--color-heading-sm-sub);
  --color-copyright: var(--color-label-sub);
  --color-btn-text: var(--color-heading-sm-sub);
  --color-section-label: var(--color-body-sub);
  --color-page-label: var(--color-body-sub);
  --color-flavor-symbol-filled: var(--color-heading-lg-sub);
  --color-flavor-symbol-empty: var(--color-body-sub);
}


body {
  font-family: var(--font-jp);
  background-color: var(--theme-bg);
  color: var(--theme-body);
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* モーダル表示時*/
body.is-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  body {
    line-height: 1.7;
  }
}

.section--sub {
  background-color: var(--theme-bg);
  color: var(--theme-body);
}

.wrapper {
  padding-inline: clamp(24px, 5vw, 72px);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
}

/* フォント読み込み時のチラつき防止 */
.wf-loading body {
  opacity: 0;
}

/* 文字の上下余白を消す */
.font-trim {
  text-box-trim: trim-both !important; 
  text-box-edge: cap alphabetic !important;
}

@supports not (text-box-trim: trim-both) {
  .font-trim {
    line-height: 1;
  }
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}


/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--theme-bg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* 下スクロール時に非表示 */
.header.is-hidden {
  transform: translateY(-100%);
}

/* サブ背景時のヘッダースタイル */
.header.is-sub {
  background-color: var(--theme-bg);
}

.header.is-sub .text-nav-link {
  color: var(--color-nav-link);
}

.header__hamburger {
  display: none;
}

.header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 24px;
}

.header__logo-link {
  display: block;
  flex-shrink: 0;
  position: relative;
}

.header__logo-img {
  height: 22px;
  width: auto;
}

.header__nav-list {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.nav-link {
  display: block;
  position: relative;
}

.nav-link::before,
.header__logo-link::before {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: -6px;
  right: -6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}


@media (min-width: 1025px) {
  .nav-link:hover::after {
    transform: translateX(-50%) scale(1);
  }
}


.text-nav-link {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--color-nav-link);
}


@media (max-width: 768px) {
  .header__inner {
    align-items: center;
    padding-block: 14px;
  }

  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    z-index: 1010;
    position: relative;
  }

  .header__hamburger-line {
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--color-nav-link);
    transition: transform 0.25s ease-out, background-color 0.25s ease-out;
  }

  .header.is-sub .header__hamburger-line {
    background-color: var(--color-nav-link);
  }

  .header__hamburger.is-open .header__hamburger-line:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }

  .header__hamburger.is-open .header__hamburger-line:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background-color: var(--theme-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
  }

  .nav-link::before {
    top: -10px;
    bottom: -10px;
    right: -16px;
    left: -16px;
  }

  .text-nav-link {
    display: inline-block;
    font-size: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .header__logo-img {
    height: 20px;
  }
}


/* mainにヘッダーの高さ分の余白を追加 */
main {
  padding-top: var(--header-height);
}

/* フッター */
.footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 48px;
  border-top: 1px solid var(--theme-border);
}

.footer__logo {
  display: block;
  flex-shrink: 0;
}

.footer__logo-link {
  display: inline-flex;
  position: relative;
}

.footer__logo-link::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  right: -10px;
  left: -10px;
}

.footer__logo-img {
  height: 22px;
  width: auto;
}

.footer__sns {
  display: flex;
  align-items: center;
}

.copyright {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-copyright);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .footer__inner {
    padding-block: 32px;
  }
}

@media (max-width: 768px) {
  .footer__inner {
    padding-block: 32px 28px;
  }

  .footer__logo-img {
    height: 18px;
  }
}

@media (max-width: 560px) {
  .footer__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 0;
    padding-block: 28px 20px;
  }

  .footer__logo {
    width: 100%;
  }

  .footer__logo-img {
    height: 24px;
  }

  .footer__sns a::before {
    top: -8px;
    bottom: -8px;
    right: -10px;
    left: -10px;
  }
}


/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.button::before {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  right: -8px;
  left: -8px;
}

.button__arrow {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button__arrow::before {
  content: "";
  position: absolute;
  right: 100%; /* ►の左端に配置 */
  top: 50%;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right; /* 右から左へ伸びるよう起点指定 */
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.button--left .button__arrow::before {
  right: auto;
  left: 100%;
  /* ◄の右端に配置 */
  transform-origin: left;
  /* 左から右に伸びるよう起点変更 */
}

.text-button {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--color-btn-text);
  text-transform: uppercase;
}

@media (min-width: 1025px) {
  .button:hover .button__arrow {
    transform: translateX(16px);
  }

  .button:hover .button__arrow::before {
    transform: scaleX(1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .button--left:hover .button__arrow {
    transform: translateX(-16px);
  }
}



/* カテゴリ選択ボタン */
.category-nav {
  display: inline-flex;
  flex-direction: column;
  gap: 36px;
  flex-shrink: 0;
}

.category-nav__link,
.category-nav__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.category-nav__link::before,
.category-nav__btn::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  right: -8px;
  left: -8px;
}

.category-nav__icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  background-color: transparent;
  transition: background-color 0.3s ease-out;
}

.category-nav__btn.is-active .category-nav__icon {
  background-color: currentColor;
}

.category-nav__name {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
  .category-nav__link:hover .category-nav__icon {
    background-color: currentColor;
  }

  .category-nav__link:hover .category-nav__name,
  .category-nav__btn:not(.is-active):hover .category-nav__name {
    transform: translateX(4px);
  }
}

@media (max-width: 1024px) {
  .menu__category-nav .category-nav__icon,
  .menu-toc__category-nav .category-nav__icon {
    background-color: currentColor;
  }
}


/* フォント設定 */

.text-heading-lg {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(5.75rem, 2.058rem + 5.769vw, 7.25rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-heading-lg);
  white-space: nowrap;
}

.text-heading-sm {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(1.375rem, 0.452rem + 1.442vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--theme-heading-sm);
}

@media (max-width: 1024px) {
  .text-heading-lg {
    font-size: clamp(4rem, 2.989rem + 4.314vw, 5.75rem);
  }
  .text-heading-sm {
    font-size: clamp(1.125rem, 0.981rem + 0.616vw, 1.375rem);
  }
}

/* セクションラベル */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 112px;
}

.section-label__num {
  font-family: var(--font-en-expanded);
  font-weight: 600;
  font-size: clamp(3.25rem, 1.404rem + 2.885vw, 4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-section-label);
}

.section-label__word,
.section-label__slash {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.625rem, 0.702rem + 1.442vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-section-label);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .section-label {
    gap: 8px;
    margin-bottom: 80px;
  }

  .section-label__num {
    font-size: clamp(2rem, 1.278rem + 3.082vw, 3.25rem);
  }

  .section-label__word,
  .section-label__slash {
    font-size: clamp(1.125rem, 0.619rem + 2.157vw, 2rem);
  }
}

@media (max-width: 768px) {
  .section-label {
    gap: 6px;
    margin-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .section-label {
    margin-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .section-label {
    gap: 4px;
    margin-bottom: 48px;
  }
}

/* ページラベル */
.page-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 80px;
}

.page-label__index {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.269rem + 1.923vw, 3rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-page-label);
  text-transform: uppercase;
}

.page-label__word,
.page-label__slash {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.375rem, 1.067rem + 0.481vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-page-label);
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .page-label {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .page-label {
    margin-bottom: 64px;
  }

  .page-label__index {
    font-size: clamp(2rem, 1.711rem + 1.233vw, 2.5rem);
  }

  .page-label__word,
  .page-label__slash {
    font-size: clamp(1.125rem, 0.981rem + 0.616vw, 1.375rem);
  }
}

@media (max-width: 768px) {
  .page-label {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .page-label {
    margin-bottom: 48px;
  }
}


/* セクションの概要文 */
.section-summary {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.831rem + 0.188vw, 1rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
}


/* 画像の設定　比率など */
.photo-ratio {
  width: 100%;
  aspect-ratio: var(--ratio-vertical);
  overflow: hidden;
}

.photo-ratio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-ratio--square {
  aspect-ratio: var(--ratio-square);
}

.photo-ratio--horizontal {
  aspect-ratio: var(--ratio-horizontal);
}

/* モノクロ演出 */
.js-scroll-color {
  filter: grayscale(100%);
  transition: filter 0.8s cubic-bezier(0.33, 1, 0.68, 1);
  /* Safariでのチラつき防止（GPU描画レイヤーを強制生成） */
  will-change: filter;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.js-scroll-color.is-color {
  filter: grayscale(0%);
  transition: filter 1.3s cubic-bezier(0.33, 1, 0.68, 1) 0.1s;
}

/* セクションタイトル・フェードイン */
.js-scroll-title {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.js-scroll-title.is-show {
  opacity: 1;
}

/* モーダル本体のフォーカス枠線を非表示 */
.menu-modal:focus,
.menu-modal:focus-visible {
  outline: none;
}