@charset "UTF-8";

/* ============================================================
   COFO DESK STUDIO – LP
   PC 基準: 1440 / 左右マージン 120 / コンテンツ 1200
   SP 基準:  390 / 左右マージン  20 / コンテンツ  350
   ブレークポイント: 900px
   ※画像・動画は XD 配置素材からの「ダミー」です
   ============================================================ */

:root {
  /* ---- color（XDのカラー値そのまま） ---- */
  --c-black:   #0a0a0a;
  --c-ink:     #1a1a1a;
  --c-ink-2:   #212121;
  --c-gray-1:  #525252;
  --c-gray-2:  #8d8d8d;
  --c-gray-3:  #9e9e9e;
  --c-line:    #cccccc;
  --c-light:   #f7f7f7;
  --c-white:   #ffffff;
  --c-cofo:    #7ec6b0;          /* ABOUTロゴのグリーン */

  /* ---- font ---- */
  --ff-en: "termina", "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-jp: "termina", "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* ---- layout ---- */
  --maxw:  1440px;
  --pad-x: clamp(20px, 8.334vw, 120px);   /* 1440時 120px */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- 明部グラデーション（pool）の高さ ---- */
  --pool-h: clamp(280px, 44.45vw, 640px); /* PC 640 / SP 420 */

  /* ---- type scale（上限 = XD@1440 の px） ---- */
  --fs-display: clamp(40px, 6.667vw, 96px);  /* ブランドロックアップ 96 */
  --fs-big:     clamp(41px, 11.11vw, 160px); /* FEATURE 大見出し 160 */
  --fs-40:      clamp(32px, 2.778vw, 40px);  /* DETAIL / SPEC / Q&A 見出し 40 */
  --fs-32:      clamp(24px, 2.223vw, 32px);  /* キャッチ 32 */
  --fs-30:      clamp(20px, 2.084vw, 30px);  /* 小見出し 30 */
  --fs-20:      clamp(16px, 1.389vw, 20px);  /* リード 20 */
  --fs-15:      clamp(13px, 1.042vw, 15px);
}

/* ============================================================
   base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-light);
  font-family: var(--ff-jp);
  font-weight: 400;
  line-height: 1.8;
  /* iOS Safari 15 以前は overflow:clip 非対応のため hidden にフォールバックさせる
     （後勝ちで、対応ブラウザは clip＝スクロールコンテナを作らない方を使う） */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.en { font-family: var(--ff-en); font-feature-settings: "palt" 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

/* 全面メディア */
.media-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- reveal ---- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   共通パーツ
   ============================================================ */

/* ---- COFO ロゴ ---- */
.logo-mark { width: 64px; height: 15px; fill: currentColor; }
.logo-mark--lg { width: 99px; height: 23.2px; }   /* XD: フッター 98.8px */

/* ---- ブランドロックアップ（COFO DESK / STUDIO） ---- */
.brand-lockup {
  font-family: var(--ff-en);
  font-size: var(--fs-display);
  line-height: .86;               /* XD 88/96=.917 → 微調整で詰め */
  letter-spacing: -.04em;         /* XD: letterSpacing -40 */
  text-align: center;
  color: var(--c-light);
}
.brand-lockup__b { display: block; font-weight: 700; }
.brand-lockup__t { display: block; font-weight: 200; }
.brand-lockup--dark { color: var(--c-ink); }

/* ---- CVボタン（予約する） ---- */
.btn-cv {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 136px; height: 44px; border-radius: 5px;
  background: var(--c-white); color: var(--c-black);
  font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.btn-cv__ic { width: 14px; height: 14px; fill: currentColor; flex: none; }
.btn-cv:hover { background: var(--c-black); color: var(--c-white); }
/* ヘッダーが明るいセクションに乗ったとき */
.site-header.is-light .btn-cv { background: var(--c-black); color: var(--c-white); }
.site-header.is-light .btn-cv:hover { background: var(--c-white); color: var(--c-black); }

/* ---- タグ ---- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 10px; border: 1px solid currentColor; border-radius: 3px;
  font-size: 11px; line-height: 1; white-space: nowrap;
}
.tag--new { font-family: var(--ff-en); font-size: 10px; letter-spacing: .06em; min-width: 54px; }
.tag--opt { font-size: 10px; letter-spacing: -.08em; min-width: 64px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-list li {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid var(--c-light); border-radius: 3px;
  font-size: 11px; line-height: 1; white-space: nowrap;
}

/* ---- セクション見出し（DETAIL / WORK など） ---- */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(48px, 8.2vw, 118px) var(--pad-x) clamp(16px, 2.1vw, 30px);
  background: var(--c-black);
}
.sec-head--solo { padding-top: clamp(40px, 5.6vw, 80px); }
.sec-head__ttl {
  font-size: var(--fs-40); font-weight: 300; line-height: 1; letter-spacing: -.01em;
  color: var(--c-light);
}
.sec-head__ttl--sm { font-size: var(--fs-30); }
.sec-head__count {
  font-size: clamp(12px, 1.389vw, 20px); font-weight: 400; line-height: 1;
  color: var(--c-light); white-space: nowrap;
}

/* ============================================================
   明部グラデーション（pool）
   XD: 暗→明 640px / 明ゾーン / 明→暗 640px
   ============================================================ */
.pool {
  position: relative; background: var(--c-light); color: var(--c-ink);
  /* 光の楕円（XD: PC 2120x1068 / 帯 1440x640）。SPは値が異なるためSP側で上書き */
  --glow-w: 73.6%;   /* 楕円の横半径（帯幅に対する割合） */
  --glow-h: 84%;     /* 楕円の縦半径（帯高に対する割合） */
  --glow-y: 88%;     /* 楕円の中心Y（帯高に対する割合） */
}
.pool__in, .pool__out { height: var(--pool-h); }
.pool__in {
  background:
    radial-gradient(ellipse var(--glow-w) var(--glow-h) at 50% var(--glow-y), rgba(247,247,247,.95) 0%, rgba(247,247,247,0) 72%),
    linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 19.7%, #525252 41%, #8d8d8d 61%, #cccccc 81%, #f7f7f7 100%);
}
.pool__out {
  background:
    radial-gradient(ellipse var(--glow-w) var(--glow-h) at 50% calc(100% - var(--glow-y)), rgba(247,247,247,.95) 0%, rgba(247,247,247,0) 72%),
    linear-gradient(0deg, #0a0a0a 0%, #1a1a1a 19.7%, #525252 41%, #8d8d8d 61%, #cccccc 81%, #f7f7f7 100%);
}

/* ============================================================
   OPENING（初回アクセス時のローディング演出／ティザーと同仕様）
   ライン(1.7s) → スポットライト(1.1s後) → コピー(2.0s後) → 4.3sで退場
   ============================================================ */
.opening {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--c-black); overflow: hidden;
}
/* 黒地に細い線が左→右へ引かれ、光が広がるのに合わせて消える */
.opening__line {
  position: absolute; top: 50%; left: 0; width: 100%; height: .5px;
  background: #fff; transform: scaleX(0); transform-origin: left center;
  animation: openingLine 1.7s var(--ease) forwards;
}
@keyframes openingLine {
  0%   { transform: scaleX(0); opacity: 1; }
  42%  { transform: scaleX(1); opacity: 1; }
  68%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
/* 実寸で描いてから縮小（小さく描いて拡大するとSafariで階調が荒れるため） */
.opening__light {
  position: absolute; left: 50%; top: 50%;
  width: 1500px; height: 1500px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.02);
  background: radial-gradient(ellipse 60% 44% at center,
    #fff 0%, #fff 30%, rgba(255,255,255,.72) 48%, rgba(255,255,255,.32) 63%, rgba(255,255,255,0) 78%);
  animation: openingLight 2.4s var(--ease) 1.1s both;
}
@keyframes openingLight {
  0%   { transform: translate(-50%, -50%) scale(.02); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.opening__copy {
  position: relative; z-index: 2; color: var(--c-ink);
  font-family: var(--ff-jp); font-weight: 500;
  font-size: clamp(19px, 3vw, 26px); letter-spacing: .1em;
  opacity: 0; animation: openingCopy 1.5s var(--ease) 2s both;
}
@keyframes openingCopy { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.opening.is-hide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease; }
body.opening-lock { overflow: hidden; height: 100vh; }

/* ============================================================
   HEADER / SP MENU
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; padding-inline: 56px;
  color: var(--c-white);
  transition: color .3s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.is-light { color: var(--c-black); }
.site-header__logo { display: block; }
.site-header__right { display: flex; align-items: center; gap: 20px; }
/* ヘッダー内のCVボタンは非表示（CVはスティッキーバーに集約） */
.site-header .btn-cv { display: none; }
/* スティッキーバー（上部固定）が出ている間はヘッダーを退避 */
body.sticky-shown .site-header { opacity: 0; pointer-events: none; }

.nav-toggle { display: none; width: 40px; height: 30px; position: relative; }
.nav-toggle span {
  position: absolute; left: 6px; right: 6px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(20deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }

.sp-menu {
  position: fixed; inset: 0; z-index: 55; display: none;
  background: rgba(10,10,10,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sp-menu.is-open { display: block; }
.sp-menu__list {
  display: flex; flex-direction: column; gap: 22px;
  padding: 96px 24px 0; text-align: right;
}
.sp-menu__list a {
  font-family: var(--ff-en); font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-white);
}

/* ============================================================
   01. HERO MOVIE
   ============================================================ */
.hero-movie {
  position: relative; width: 100%; aspect-ratio: 1440 / 810;
  min-height: 460px; overflow: hidden; background: var(--c-black);
}
.hero-movie__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 右下固定の縦組みナビ（ティザーと同仕様） */
.hero-nav {
  position: fixed; right: max(30px, 2vw); bottom: max(30px, 2vw); z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
  text-align: right;
  transition: bottom .45s var(--ease);
}
.hero-nav a {
  display: block; font-family: var(--ff-en); font-weight: 400;
  font-size: 10px; line-height: 1; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-light); opacity: .85;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.hero-nav a:hover { opacity: 1; }
/* 明るいセクション上では黒へ（JSが .is-light を付与） */
.hero-nav.is-light a { color: var(--c-ink); }


/* ============================================================
   02. FV
   ============================================================ */
.fv { position: relative; width: 100%; aspect-ratio: 1440 / 810; overflow: hidden; background: var(--c-gray-2); }
.fv__bg, .fv__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv__inner {
  position: absolute; inset: 0; z-index: 2;
  /* 画像内のモニター上端（画像高さの36.7%）との間隔を、画面幅によらず
     一定（約3%）に保つための可変値。1920px以上は従来どおり 8.65vw */
  padding-top: clamp(64px, calc(11.4vw - 61px), calc(8.65vw - 8px));
  text-align: center;
}
.fv__eyebrow {
  font-size: clamp(10px, .834vw, 12px); line-height: 1.17; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-light);
}
.fv .brand-lockup {
  margin-top: clamp(12px, 1.25vw, 18px);   /* DESIGNED IN JAPAN との間隔 */
  /* 1920pxで96px（＝従来と同一）。狭い幅ではモニターに寄りすぎないよう控えめに縮小 */
  font-size: clamp(40px, calc(4.16vw + 16px), 96px);
}

.fv__scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2;
  text-align: center; color: var(--c-light);
}
.fv__scroll span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.fv__scroll::after {
  content: ""; display: block; width: 1px; height: 24px; margin: 6px auto 0;
  background: var(--c-light); transform-origin: top;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   03/14. CTA スロット（※今回対応不要）
   ============================================================ */
.cta-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1440 / 810; background: var(--c-black); color: var(--c-line);
  text-align: center;
}
.cta-slot--light { background: var(--c-light); aspect-ratio: 1440 / 810; }
.cta-slot__label { font-size: clamp(32px, 3.264vw, 47px); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.cta-slot__note { margin-top: 30px; font-size: clamp(14px, 1.32vw, 19px); line-height: 1; letter-spacing: .04em; }

/* ============================================================
   04. INTRO
   ============================================================ */
.intro { padding: 0 var(--pad-x); text-align: center; }
.intro .brand-lockup { padding-top: 0; }
.intro__catch {
  margin-top: clamp(28px, 5.2vw, 75px);
  font-size: var(--fs-32); font-weight: 300; line-height: 1.5; letter-spacing: .02em;
}
.intro__lead {
  margin-top: clamp(24px, 3.194vw, 46px);      /* ① キャッチとの間隔（XD:46px） */
  padding-bottom: clamp(40px, 6.32vw, 91px);   /* ② 動画との間隔（XD:91px） */
  font-size: var(--fs-15); font-weight: 400; line-height: 1.734; letter-spacing: .04em;
}
.intro-movie { padding: 0 var(--pad-x) clamp(40px, 5.6vw, 81px); }
.movie-frame {
  position: relative; width: min(960px, 100%); margin-inline: auto;
  aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer;
}
.movie-frame__poster, .movie-frame__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movie-frame__video { opacity: 0; transition: opacity .4s var(--ease); }
.movie-frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); transition: opacity .4s var(--ease); }
.movie-frame__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 66px; height: 66px; border: 1px solid var(--c-white); border-radius: 50%;
  transition: opacity .4s var(--ease), background .3s var(--ease);
}
.movie-frame__play::before {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--c-white);
}
.movie-frame__play:hover { background: rgba(255,255,255,.14); }
.movie-frame.is-playing { cursor: default; }
.movie-frame.is-playing .movie-frame__video { opacity: 1; }
.movie-frame.is-playing::after,
.movie-frame.is-playing .movie-frame__play,
.movie-frame.is-playing .movie-frame__poster { opacity: 0; pointer-events: none; }

/* ============================================================
   05. カルーセル（DETAIL / LINEUP / GALLERY 共通）
   ============================================================ */
.detail { background: var(--c-black); }

.carousel {
  /* --cpb: プログレスバーぶんの下余白 / --cin: 画像内側からのボタンオフセット（XD:40px） */
  --cpb: clamp(28px, 3.4vw, 49px);
  --cin: 40px;
  position: relative; background: var(--c-black);
  padding-bottom: var(--cpb);
}
.carousel__viewport {
  width: min(1200px, 100% - var(--pad-x) * 2); margin-inline: auto;
  overflow: hidden;
  /* iOS Safari 対策：中の .carousel__track は will-change:transform ＋ translate3d() で
     合成レイヤー化されるため、position:static のままだと overflow:hidden にクリップされず
     ページ全体が横スクロールしてしまう。位置＋重ね合わせコンテキストを張って確実に切る。
     （ボタン・プログレスバーは .carousel 直下の兄弟なので配置に影響なし） */
  position: relative;
  isolation: isolate;
}
.carousel__track {
  display: flex;
  transition: transform .7s var(--ease);
  will-change: transform;
}
.carousel__item { flex: 0 0 100%; }
.carousel__item img,
.carousel__item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 前後ボタン（XD準拠：画像エリアの内側・縦中央に配置） */
.carousel__nav {
  position: absolute; z-index: 3;
  top: calc((100% - var(--cpb)) / 2);          /* = 画像の縦中央 */
  width: 46px; height: 46px; border: 1px solid var(--c-light);
  transform: translateY(-50%);
  transition: background .3s var(--ease), opacity .3s var(--ease);
}
.carousel__nav::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; border-top: 1px solid var(--c-light); border-right: 1px solid var(--c-light);
}
/* 画像左端 = 50% - 画像の半幅。そこから内側へ --cin */
.carousel__nav--prev { left:  calc(50% - min(600px, 50% - var(--pad-x)) + var(--cin)); }
.carousel__nav--next { right: calc(50% - min(600px, 50% - var(--pad-x)) + var(--cin)); }
.carousel__nav--prev::before { transform: translate(-40%,-50%) rotate(-135deg); }
.carousel__nav--next::before { transform: translate(-60%,-50%) rotate(45deg); }
.carousel__nav:hover { background: rgba(255,255,255,.14); }

/* SP用カウンター（PCでは非表示） */
.carousel__count-sp { display: none; }

/* プログレスバー */
.carousel__progress {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1200px, calc(100% - var(--pad-x) * 2)); height: 2px;
  background: rgba(255,255,255,.2);
}
.carousel__progress span {
  display: block; height: 100%; background: var(--c-white);
  transition: width .5s var(--ease), transform .5s var(--ease);
}

/* ============================================================
   06/08. CATCH
   ============================================================ */
.catch { padding: 0 var(--pad-x); text-align: center; }
.catch p {
  font-size: var(--fs-32); font-weight: 300; line-height: 1.5; letter-spacing: .04em;
  color: var(--c-ink);
}

/* ============================================================
   07. FEATURE
   ============================================================ */
.feature { background: var(--c-black); }

/* メインビジュアル（動画 or 画像） */
.feature__main {
  position: relative; width: 100%; aspect-ratio: 1440 / 810; overflow: hidden; background: var(--c-black);
}
.feature__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__scrim { position: absolute; inset: 0; background: rgba(10,10,10,.3); }
.feature__scrim--strong { background: rgba(10,10,10,.5); }
.feature__main-inner {
  /* 全幅ビジュアル上のテキストなので、1440コンテナに閉じ込めず
     画面左端から常に --pad-x（1440px以上で120px）の位置に置く */
  position: absolute; left: 0; right: 15%; top: 47%; z-index: 2;   /* 縦位置（XD 40% → 微調整で少し下げ）*/
  padding-inline: var(--pad-x);
  padding-left: calc(var(--pad-x) + 20px);   /* 微調整：左端 120px → 140px */
}
.feature__ttl {
  font-size: var(--fs-32); font-weight: 300; line-height: 1.375; letter-spacing: .02em;
  color: var(--c-light);
}
.feature__main-inner .tag-list { margin-top: clamp(28px, 3.472vw, 50px); }  /* XD: PC 50px / SP 28px */
.feature__bigttl {
  position: absolute; left: 16px; bottom: 2.4%; z-index: 2;
  font-size: var(--fs-big); font-weight: 100; line-height: 1; letter-spacing: -.04em;
  text-transform: uppercase; color: var(--c-light); white-space: nowrap; pointer-events: none;
}

/* リード（明ゾーン） */
.feature__lead {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1440 / 810; padding-inline: var(--pad-x);
  background: var(--c-light); text-align: center;
}
.feature__lead p {
  font-size: var(--fs-20); font-weight: 300; line-height: 1.6; letter-spacing: .04em;
  color: var(--c-gray-1);
}

/* 2カラム（画像＋テキスト重ね） */
.feature__cols { display: grid; grid-template-columns: 1fr 1fr; }
.feat-card { position: relative; overflow: hidden; }
.feat-card__img { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--c-ink); }
.feat-card__img img, .feat-card__img video { width: 100%; height: 100%; object-fit: cover; }
.feat-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(24px, 4.17vw, 60px) clamp(24px, 3.61vw, 52px);   /* 左右60px / 下52px（XD48/40から微調整）*/
  color: var(--c-white);
  background: linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,0) 100%);
}
/* NEWタグを持たないカードでは見出しが先頭になるため上マージンを消す */
.feat-card__body > :first-child { margin-top: 0; }
.feat-card__ttl {
  margin-top: 10px;
  font-size: var(--fs-20); font-weight: 400; line-height: 1.6; letter-spacing: .02em;
}
.feat-card__txt {
  margin-top: clamp(8px, 1.2vw, 17px);
  font-size: clamp(12px, .973vw, 14px); font-weight: 400; line-height: 1.715; letter-spacing: .02em;
}
.feat-card__note {
  margin-top: clamp(6px, .9vw, 13px);
  font-size: 10px; font-weight: 300; line-height: 1.8; letter-spacing: .02em;
}

/* COFO DESK Shelf */
.shelf { position: relative; width: 100%; aspect-ratio: 1440 / 810; overflow: hidden; background: var(--c-ink); }
.shelf__bg, .shelf__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shelf__inner {
  position: absolute; left: 0; right: 0; z-index: 2;
  /* 画像内のシェルフ上端（画像高さの55.3%）に本文がかからないよう、
     画面幅に応じた可変値。1920px以上は 18%（＝10.125vw）で頭打ち */
  top: clamp(56px, calc(20.6vw - 202px), 10.125vw);
  padding-inline: var(--pad-x); text-align: center; color: var(--c-white);
}
/* インライン配置だと行ボックスぶんの余白が乗るのでブロック化して中央寄せ */
.shelf__inner .tag { display: flex; width: fit-content; margin-inline: auto; }
.shelf__ttl {
  margin-top: 24px;              /* NEWタグとの間隔（XD: PC/SPとも24px） */
  font-size: var(--fs-40); font-weight: 300; line-height: 1; letter-spacing: -.04em;
}
.shelf__catch {
  margin-top: clamp(14px, 1.95vw, 28px);
  font-size: var(--fs-20); font-weight: 400; line-height: 1.6; letter-spacing: .02em;
}
.shelf__txt {
  margin-top: clamp(12px, 1.6vw, 23px);
  font-size: var(--fs-15); font-weight: 400; line-height: 1.734; letter-spacing: .02em;
}

/* ============================================================
   09. LINE UP
   ============================================================ */
.lineup { background: var(--c-black); }

/* XD: LINE UP のカルーセルはプログレスバー（SPは前後ボタン）の下に
   80px の余白があり、そのぶん次の見出しとの間隔が広い */
.carousel--lineup {
  --cpb-extra: 80px;
  --cpb: calc(clamp(28px, 3.4vw, 49px) + var(--cpb-extra));
}
.carousel--lineup .carousel__progress { bottom: var(--cpb-extra); }

/* カラータブ（丸ドット） */
.color-tab {
  position: absolute; left: 50%; bottom: calc(clamp(44px, 5.4vw, 78px) + var(--cpb-extra, 0px)); transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 20px;
  /* XD には背景の帯がないため、ドットの配置枠として寸法のみ保持（背景なし） */
  width: 244px; height: 68px; padding-inline: 34px;
}
.color-tab__btn {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.color-tab__btn::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--c-ink); opacity: 0; transition: opacity .3s var(--ease);
}
.color-tab__btn.is-active::after { opacity: 1; }

/* カラーカード（COFO DESK Shelf） */
.color-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--pad-x) clamp(30px, 3.2vw, 45px);
  background: var(--c-black);
}
.color-card__img { position: relative; aspect-ratio: 1 / 1; background: var(--c-ink); overflow: hidden; }
.color-card__img img { width: 100%; height: 100%; object-fit: cover; }
.color-card__img .tag { position: absolute; left: 10px; top: 10px; color: var(--c-white); border-color: var(--c-white); }
/* XD ではカラー名（カタカナ）のみ表示。英字名と素材注記は非表示レイヤーのため実装しない */
.color-card__name { margin-top: 8px; font-size: 12px; text-align: center; line-height: 1.667; }

/* アクセサリー モザイク */
.acc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--pad-x) clamp(40px, 8.4vw, 120px);
  background: var(--c-black);
}
.acc-col { display: flex; flex-direction: column; gap: 8px; }
.acc { position: relative; overflow: hidden; background: var(--c-ink); }
.acc img { width: 100%; height: 100%; object-fit: cover; }
.acc--l { aspect-ratio: 1 / 1; }
.acc--s { aspect-ratio: 294 / 166; }
.acc figcaption {
  position: absolute; left: 10px; bottom: 8px; z-index: 2;
  font-size: clamp(11px, .973vw, 14px); line-height: 1.43; color: var(--c-light);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ============================================================
   10. SPEC
   ============================================================ */
.spec { background: var(--c-ink); }
.spec__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(56px, 8.34vw, 120px) var(--pad-x);
}
.spec__ttl { font-size: var(--fs-40); font-weight: 300; line-height: 1; text-transform: uppercase; color: var(--c-light); }

/* XD: タブ x=240（コンテンツ左から10%）/ 表 x=560・幅640 */
.spec__body {
  display: grid; grid-template-columns: 18.519% 59.259%;   /* 200 / 640（padding-left後の1080基準）*/
  column-gap: 11.111%; padding-left: 10%;                  /* 120 / 120 */
  margin-top: clamp(40px, 5.56vw, 80px);
}
.spec__tabs { display: flex; flex-direction: column; gap: 4px; }
.spec__tab {
  height: 48px; padding-inline: 12px; background: var(--c-gray-2); color: var(--c-ink);
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  transition: background .3s var(--ease);
}
.spec__tab:hover { background: var(--c-line); }
.spec__tab.is-active { background: var(--c-white); }

.spec__panel { display: none; }
.spec__panel.is-active { display: block; }

/* 通常行：見出し240 / 余白48 / 内容352（＝表幅640） */
.spec-table__row {
  display: grid; grid-template-columns: 37.5% 55%; column-gap: 7.5%;
  padding: 24px 0 21px;
  border-bottom: 1px solid var(--c-gray-2);
  font-size: 12px; line-height: 1.667; color: var(--c-light);
}
.spec-table__row:first-child { border-top: 1px solid var(--c-gray-2); }

/* 小分類つきの行：見出し120 / 余白48 / 内容472（内訳 120＋352） */
.spec-table__row--split { grid-template-columns: 18.75% 73.75%; }
.spec-sub__row { display: grid; grid-template-columns: 25.424% 74.576%; }
.spec-sub__row + .spec-sub__row {
  margin-top: 21px; padding-top: 24px; border-top: 1px solid var(--c-gray-2);
}
.spec-sub__row b { font-weight: 400; }

/* Accessories：商品名の行内で3項目を罫線で区切る */
.spec-table__row--acc { padding: 0; }
.spec-table__row--acc > dt { padding-top: 12px; }
.spec-table__row--acc .spec-sub__row { padding: 12px 0 9px; }
.spec-table__row--acc .spec-sub__row + .spec-sub__row { margin-top: 0; padding-top: 12px; }

/* ============================================================
   11. GALLERY
   ============================================================ */
.gallery-main .feature__media:first-of-type { z-index: 0; }
.gallery-block { background: var(--c-black); }

/* ============================================================
   12. ABOUT
   ============================================================ */
/* XD: PC/SPとも同じ寸法。テキスト幅310pxのセンター寄せ、注記は非表示レイヤーのため実装しない */
.about {
  width: min(310px, 100% - var(--pad-x) * 2); margin-inline: auto;
  text-align: center; color: var(--c-ink);
}
.about__en { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.about__logo { display: block; width: 164px; height: 38.4px; margin: 13px auto 0; fill: var(--c-cofo); }  /* XD: 164.6px / 上13px */
.about__catch { margin-top: 47px; font-size: var(--fs-20); line-height: 1.6; letter-spacing: .04em; color: var(--c-black); }
.about__body  { margin-top: 45px; font-size: 14px; line-height: 1.715; letter-spacing: .02em; text-align: left; }

/* ============================================================
   13. CLOSING
   ============================================================ */
.closing { position: relative; width: 100%; aspect-ratio: 1440 / 810; overflow: hidden; background: var(--c-black); }
.closing__bg, .closing__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing__inner {
  position: absolute; left: 0; right: 0; top: 33.7%; z-index: 2;   /* XD: キャッチのベースラインが画像上端から305px */
  padding-inline: var(--pad-x); text-align: center;
}
.closing__catch {
  font-size: var(--fs-32); font-weight: 300; line-height: 1.25; letter-spacing: .04em; color: var(--c-light);
}
.closing .brand-lockup { margin-top: 46px; color: var(--c-white); }   /* XD: キャッチとの間隔（実測合わせ）*/

/* ============================================================
   Q&A
   ============================================================ */
.qa { background: var(--c-light); color: var(--c-ink); }
.qa__inner {
  display: grid; grid-template-columns: 41% 53.34%; gap: 0;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(40px, 5.56vw, 80px) var(--pad-x) clamp(56px, 8.13vw, 117px);   /* XD: 上80 / 下117 */
}
.qa__ttl { font-size: var(--fs-40); font-weight: 300; line-height: 1; }
.qa__list { display: flex; flex-direction: column; gap: 0; }
.qa__item + .qa__item { margin-top: 21px; }   /* XD: 回答から次の質問まで21px */
.qa__q {
  position: relative; display: block; width: 100%;
  padding: 25px 24px 20px 40px;                 /* XD: 高さ65px（25+本文20+20）*/
  background: var(--c-white); text-align: left;
  font-size: 12px; line-height: 1.667;
}
.qa__q::before, .qa__q::after {
  content: ""; position: absolute; right: 24px; top: 50%;   /* XD: 枠右端から24px */
  width: 20px; height: 1px; background: var(--c-ink); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.qa__q::after { transform: rotate(90deg); }
.qa__item.is-open .qa__q::after { transform: rotate(0deg); opacity: 0; }
.qa__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.qa__item.is-open .qa__a { max-height: 400px; }
.qa__a p { padding: 24px 40px 0; font-size: 12px; line-height: 1.667; }   /* XD: 質問枠から24px */
.qa__a a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
/* XD: PC/SPとも全く同じ寸法（セクション高282px）*/
.footer {
  display: flex; flex-direction: column; align-items: center;
  padding: 56px var(--pad-x) 39px;
  background: var(--c-black); color: var(--c-white);
}
.footer__shop { display: block; text-align: center; }
.footer__shop .logo-mark { display: block; margin-inline: auto; }   /* インライン配置の行ボックス分を排除 */
.footer__shop-txt { display: block; margin-top: 23px; font-size: 13px; font-weight: 500; line-height: 1.231; letter-spacing: .14em; }
.footer__sns { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.footer__sns a { display: block; width: 32px; height: 32px; color: var(--c-light); transition: opacity .3s var(--ease); }   /* XD: 32x32 */
.footer__sns li:last-child a { width: 27px; height: 28px; }   /* XD: Xのみ 27x28 */
.footer__sns a:hover { opacity: .6; }
.footer__sns svg { width: 100%; height: 100%; }
.footer__copy { margin-top: 41px; font-size: 10px; line-height: 1.4; letter-spacing: .1em; color: var(--c-gray-3); }

/* ============================================================
   STICKY CTA
   ============================================================ */
/* XD準拠：PCは画面「上部」固定（SPは下部固定 → メディアクエリで切替） */
.sticky-cta {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: 56px; background: var(--c-white); color: var(--c-ink-2);
  transform: translateY(-110%); transition: transform .45s var(--ease);
}
.sticky-cta.is-show { transform: none; }
.sticky-cta__inner {
  display: flex; align-items: center; gap: 24px; height: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 16.7vw, 240px);
}
.sticky-cta__name { font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.sticky-cta__date { font-size: 11px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.sticky-cta .btn-cv { margin-left: auto; background: var(--c-black); color: var(--c-white); }
.sticky-cta .btn-cv:hover { background: var(--c-ink-2); }


/* ============================================================
   901〜1200px（PCレイアウトの下限帯）
   シェルフ本体までの空きが足りなくなるため、文字サイズは変えずに
   行間とブロック間の余白だけを詰めて逃がす
   ============================================================ */
@media (max-width: 1200px) and (min-width: 901px) {
  .shelf__ttl   { margin-top: 16px; }
  .shelf__catch { margin-top: 14px; line-height: 1.45; }
  .shelf__txt   { margin-top: 12px; line-height: 1.6; }
}

/* ============================================================
   タブレット以下（〜1080px）— 右下固定ナビ → ハンバーガー
   ============================================================ */
@media (max-width: 1080px) {
  .hero-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   ▼▼▼ SP（〜900px）— XD SP版 390px 基準
   小型タブレットもこちらのレイアウトに寄せる ▼▼▼
   ============================================================ */
@media (max-width: 900px) {

  :root {
    --pad-x: clamp(20px, 5.13vw, 40px);   /* 390→20 / 780以上→40 */
    --pool-h: 420px;
    --fs-display: 48px;
    --fs-big:     41px;
    --fs-40:      32px;
    --fs-32:      28px;
    --fs-30:      20px;
    --fs-20:      20px;
    --fs-15:      15px;
  }

  /* ---- header ---- */
  .site-header { height: 56px; padding-inline: 24px; }
  .site-header .logo-mark { width: 50px; height: 11.7px; }   /* XD SP: 49.4x11.8 */

  /* 光の楕円は SP では横に大きく広がる（XD: 1080x861 / 帯 390x420） */
  .pool { --glow-w: 115%; --glow-h: 102.5%; --glow-y: 155%; }
  .site-header__right { gap: 12px; }
  .btn-cv { width: 136px; height: 36px; font-size: 12px; }
  .nav-toggle { display: block; }

  /* ---- hero / fv ---- */
  .hero-movie { aspect-ratio: 390 / 750; min-height: 0; }
  .fv { aspect-ratio: 390 / 600; }
  .fv__inner { padding-top: 24.6%; }                 /* XD SP: 画像上端から96px */
  .brand-lockup { line-height: .95; }                /* XD 51/48=1.063 → 微調整で詰め */
  .fv .brand-lockup { font-size: var(--fs-display); }

  /* ---- CTA slot ---- */
  .cta-slot, .cta-slot--light { aspect-ratio: 390 / 750; }
  .cta-slot__label { font-size: 47px; }
  .cta-slot__note { margin-top: 24px; font-size: 19px; }

  /* ---- intro ---- */
  .intro__catch { font-size: 24px; line-height: 1.667; margin-top: 55px; }  /* XD SP: 見出しとの間隔55px */
  .catch p { font-size: 24px; line-height: 1.667; }   /* XD SP: 24px / 行送り40 */
  .intro-movie { padding-inline: 0; }            /* SPは動画を全幅（XD準拠） */
  .movie-frame { width: 100%; }
  .movie-frame__play { width: 47px; height: 47px; }
  .movie-frame__play::before { border-width: 7px 0 7px 11px; }
  .intro__lead { font-size: 15px; line-height: 1.734; margin-top: 43px; padding-bottom: 91px; }  /* XD SP: 43 / 91 */

  /* ---- sec-head ---- */
  .sec-head { padding-top: 64px; padding-bottom: 22px; align-items: flex-end; }
  .sec-head__count { display: none; }
  .sec-head--solo { padding-top: 48px; }

  /* ---- carousel ----
     XD SP: DETAIL / LINE UP は「画像→16px→前後ボタン」でプログレスバーなし。
            GALLERY は「画像→15px→プログレスバー」で前後ボタンなし（送りはスワイプ）。 */
  .carousel__viewport { width: calc(100% - var(--pad-x) * 2); }
  .carousel__item img, .carousel__item video { aspect-ratio: 1 / 1; }
  .carousel { --cpb: 62px; }        /* 画像下16px ＋ ボタン46px */
  .carousel__nav { top: auto; bottom: 0; transform: none; }
  .carousel__nav--prev { left: calc(50% - 94px); right: auto; }
  .carousel__nav--next { left: calc(50% + 48px); right: auto; }
  .carousel__count-sp {
    display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 98px; height: 46px; line-height: 46px; text-align: center;
    border: 1px solid var(--c-light); font-size: 12px; color: var(--c-light);
  }
  .carousel__progress { display: none; }

  /* GALLERY：16:9／前後ボタンとカウンターを隠し、プログレスバーのみ表示 */
  .gallery-block .carousel__item img { aspect-ratio: 16 / 9; }
  .gallery-block .carousel { --cpb: 17px; }        /* 画像下15px ＋ バー2px */
  .gallery-block .carousel__nav,
  .gallery-block .carousel__count-sp { display: none; }
  .gallery-block .carousel__progress { display: block; bottom: 0; width: calc(100% - var(--pad-x) * 2); }

  /* ---- feature ---- */
  .feature__main { aspect-ratio: 390 / 650; }
  /* XD SP: 見出し＋タグはビジュアル下端から40px上（右15%指定と左の微調整はPCのみ） */
  .feature__main-inner { top: auto; right: 0; bottom: 40px; padding-left: var(--pad-x); }
  .feature__ttl { line-height: 1.286; }
  /* XD SP: 大見出しは縦組みで右上に配置。
     字面は反時計回り90°＝上から E･G･A･R･O･T･S の並び
     （vertical-rl で縦組みにし、180°回転で流れと字面を反転） */
  .feature__bigttl {
    left: auto; right: 6px; bottom: auto; top: 16px;
    writing-mode: vertical-rl; line-height: 1;
    transform: rotate(180deg);
  }
  .feature__lead { aspect-ratio: 390 / 750; }
  .feature__lead p { font-size: 16px; }

  /* SPは画像の下にテキスト（黒背景） */
  .feature__cols { grid-template-columns: 1fr; }
  .feat-card__body {
    position: static; background: none; padding: 48px max(40px, var(--pad-x)) 68px;   /* 上48px / 左右40px / 下68px（XD SP準拠）*/
  }
  .feat-card__ttl { margin-top: 12px; }

  .shelf { aspect-ratio: 390 / 750; }
  /* XD SP: 画像上端からNEWタグまで116px（=15.47%）*/
  .shelf__inner { top: 15.47%; }
  .shelf__ttl   { font-size: 40px; }                                  /* XD SP: 40 / 行送り40 */
  .shelf__catch { margin-top: 32px; }                                 /* XD SP: 見出しとの間隔32px */
  .shelf__txt   { margin-top: 21px; font-size: 14px; line-height: 1.857; }  /* XD SP: 14px / 行送り26 */

  /* ---- lineup ---- */
  /* XD SP: LINE UP のスライドだけ左右余白なしの全幅（390x390） */
  .carousel--lineup .carousel__viewport { width: 100%; }
  .carousel--lineup { --cpb: calc(62px + var(--cpb-extra)); }
  .carousel--lineup .carousel__nav,
  .carousel--lineup .carousel__count-sp { bottom: var(--cpb-extra); }
  .color-tab { width: 244px; height: 68px; bottom: calc(82px + var(--cpb-extra)); }
  /* XD SP: 画像184x184・左右余白8px・列間6px・行間13px */
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 6px; padding-inline: 8px; padding-bottom: 40px;
  }
  /* XD SP: 画像184px幅（L=184x184 / S=184x104）・左右余白8px・間隔6px・下余白120px */
  .acc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; padding-inline: 8px; padding-bottom: 120px;
  }
  .acc-col { gap: 6px; }
  .acc figcaption { left: 8px; font-size: 12px; }

  /* ---- spec ----
     XD SP: 見出しとタブが同じ高さから始まり、表は x=24・幅342
            （見出し64 / 余白24 / 内容254、小分類つきは 64 / 96 / 146） */
  .spec__inner { padding: 120px 24px; }        /* XD SP: 表は x=24・幅342 */
  .spec__body {
    grid-template-columns: 1fr; column-gap: 0; padding-left: 0;
    margin-top: calc(var(--fs-40) * -1);      /* 見出しの高さぶん引き上げてタブを横に並べる */
  }
  .spec__tabs { align-items: flex-end; margin-right: -4px; }   /* XD SP: タブ右端は画面右から20px */
  .spec__tab { width: 200px; }
  .spec__panel { margin-top: 48px; }
  .spec-table__row { grid-template-columns: 18.713% 74.269%; column-gap: 7.018%; }
  .spec-table__row--split { grid-template-columns: 18.713% 74.269%; }
  .spec-sub__row { grid-template-columns: 37.795% 57.48%; column-gap: 4.725%; }

  /* ---- about / closing ---- */
  /* ABOUTロゴは XD 上 PC と同寸のため SP 用の縮小は行わない */
  .closing { aspect-ratio: 390 / 750; }
  .closing__inner { top: 38.8%; }                                   /* XD SP: 画像上端から291px */
  .closing__catch { font-size: 24px; line-height: 1.667; }          /* XD SP: 24px / 行送り40 */
  .closing .brand-lockup { margin-top: 27px; }                      /* XD SP（実測合わせ）*/

  /* ---- Q&A ---- XD SP: 表は x=24・幅342、見出しから47px */
  .qa__inner { grid-template-columns: 1fr; gap: 47px; padding: 80px 24px 117px; }   /* XD SP: 上80 / 下117 */
  .qa__q { padding: 27px 24px 18px 16px; }      /* XD SP: 高さ65px（27+20+18）*/
  .qa__q::before, .qa__q::after { right: 16px; }
  .qa__a p { padding: 24px 16px 0; }

  /* ---- sticky ---- */
  /* XD SP版は下部固定（PCのみ上部固定） */
  .sticky-cta { inset: auto 0 0 0; transform: translateY(110%); }
  .sticky-cta.is-show { transform: none; }
  body.sticky-shown .site-header { opacity: 1; pointer-events: auto; }
  .sticky-cta__inner { padding-inline: var(--pad-x); gap: 8px; }
  .sticky-cta__name { font-size: 12px; }
  .sticky-cta__date { display: none; }
  .sticky-cta .btn-cv { width: 136px; height: 44px; }

  /* フッターは XD 上 PC と同寸法のため SP 専用指定なし */
}

/* ============================================================
   481〜900px（タブレット帯）
   SPレイアウトのままだと全面ビジュアルが縦に伸びすぎるため、
   アスペクト比だけ緩める（画像は object-fit: cover で追従）
   ============================================================ */
@media (min-width: 481px) and (max-width: 900px) {
  .hero-movie,
  .cta-slot, .cta-slot--light,
  .feature__lead,
  .shelf,
  .closing            { aspect-ratio: 4 / 5; }
  .fv                 { aspect-ratio: 5 / 6; }
  .feature__main      { aspect-ratio: 4 / 5; }
}

/* 極小幅 */
@media (max-width: 374px) {
  :root { --fs-display: 40px; }
  .sticky-cta__name { font-size: 11px; }
}


/* ============================================================
   GATE（受付前の予告画面）
   受付前は LP 全体をこの画面で覆う。予告ページ（旧 /studio/）と
   同じ組版：見出し ＞ カウントダウン ＞ 日時 の3段だけで階層を作る。
   ============================================================ */
html.gate-on, html.gate-on body { overflow: hidden; height: 100%; }

.gate {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(56px, 12vh, 110px) clamp(20px, 6vw, 80px) clamp(72px, 15vh, 140px);
  background: var(--c-black); color: var(--c-light);
  font-family: var(--ff-jp); font-weight: 300; line-height: 1.8;
  text-align: center;
}
.gate[hidden] { display: none; }

/* ---- 背景：製品をうっすら見せる ---- */
.gate__bg { position: absolute; inset: 0; overflow: hidden; background: var(--c-black); }
/* 黒地に opacity で沈めると黒が「四角い塊」として浮くため brightness で落とす */
.gate__media {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .95; transform: scale(1.04);
  filter: grayscale(.4) contrast(.98) brightness(.55) blur(3px);
}
.gate__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 78% at 50% 44%, rgba(10,10,10,.62) 0%, rgba(10,10,10,.84) 58%, rgba(10,10,10,.95) 100%),
    linear-gradient(to bottom, rgba(10,10,10,.96) 0%, rgba(10,10,10,.42) 32%, rgba(10,10,10,.46) 68%, rgba(10,10,10,.96) 100%);
}

.gate__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.gate__inner > * { opacity: 0; transform: translateY(12px); animation: gateRise 1.15s var(--ease) forwards; }
.gate__inner > *:nth-child(1) { animation-delay: .10s; }
.gate__inner > *:nth-child(2) { animation-delay: .26s; }
.gate__inner > *:nth-child(3) { animation-delay: .42s; }
.gate__inner > *:nth-child(4) { animation-delay: .58s; }
.gate__inner > *:nth-child(5) { animation-delay: .74s; }
.gate__inner > *:nth-child(6) { animation-delay: .90s; }
@keyframes gateRise { to { opacity: 1; transform: none; } }

.gate__eyebrow {
  margin: 0; font-size: clamp(10px, .9vw, 12px); font-weight: 400;
  letter-spacing: .46em; text-indent: .46em;      /* 字送り分の右余りを打ち消す */
  color: rgba(247,247,247,.4); text-transform: uppercase; line-height: 1;
}
.gate__lead {
  margin: clamp(14px, 1.8vh, 20px) 0 0;
  font-size: clamp(21px, 2.9vw, 36px); font-weight: 300;
  letter-spacing: .09em; line-height: 1.6; color: rgba(247,247,247,1);
  text-wrap: balance;
}
.gate__lead--live { display: none; }
.gate__rule { width: 40px; height: 1px; margin: clamp(30px, 4.4vh, 46px) 0 0; background: rgba(247,247,247,.16); border: 0; }

.gate__cd {
  margin: clamp(30px, 4.4vh, 46px) 0 0;
  display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, 1.6vw, 20px);
}
.gate__cd-unit { width: clamp(58px, 6.2vw, 84px); }   /* セル幅固定＝秒が動いてもブレない */
.gate__cd-num {
  display: block; font-weight: 200; font-size: clamp(24px, 2.5vw, 34px); line-height: 1;
  letter-spacing: .04em; font-variant-numeric: tabular-nums; color: rgba(247,247,247,1);
}
.gate__cd-lbl {
  display: block; margin-top: clamp(9px, 1.2vh, 13px);
  font-size: clamp(8px, .7vw, 10px); font-weight: 400;
  letter-spacing: .24em; text-indent: .24em;
  color: rgba(247,247,247,.4); text-transform: uppercase; line-height: 1;
}
.gate__note {
  margin: clamp(44px, 6.4vh, 68px) 0 0;
  font-size: clamp(10px, .92vw, 12px); font-weight: 400;
  letter-spacing: .24em; text-indent: .24em; color: rgba(247,247,247,.62); line-height: 1;
}

/* ---- 受付開始後（表示中に開始時刻を跨いだ場合だけ出る） ---- */
.gate[data-state="live"] .gate__lead--before,
.gate[data-state="live"] .gate__rule,
.gate[data-state="live"] .gate__cd { display: none; }
.gate[data-state="live"] .gate__lead--live { display: inline; }
.gate__cta {
  display: none; margin: clamp(30px, 4.4vh, 46px) 0 0;
  padding: 15px clamp(26px, 3.4vw, 40px);
  background: transparent; border: 1px solid rgba(247,247,247,.16);
  font-size: 11px; font-weight: 400; letter-spacing: .22em; text-indent: .22em;
  color: rgba(247,247,247,1); line-height: 1; cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.gate[data-state="live"] .gate__cta { display: inline-block; }
.gate__cta:hover { background: rgba(247,247,247,.07); border-color: rgba(247,247,247,.45); }

@media (max-width: 600px) {
  .gate__cd { gap: 0; width: 100%; max-width: 300px; }
  .gate__cd-unit { flex: 1 1 0; width: auto; min-width: 0; }
  .gate__cd-num { font-size: 26px; }
  .gate__cd-lbl { font-size: 8px; }
  .gate__lead { font-size: clamp(19px, 5.2vw, 24px); letter-spacing: .06em; }
  .gate__eyebrow { font-size: 10px; letter-spacing: .36em; text-indent: .36em; }
  .gate__media { filter: grayscale(.4) contrast(.98) brightness(.52) blur(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .gate__inner > * { animation: none; opacity: 1; transform: none; }
}
