/* ============ Home page specific ============ */

/* ---- Header: 01_index_NEW ではヒーローがオレンジ全面のため、
       下層ページと同じ「透過ヘッダー → スクロールで白」方式（body.hero-header）を使う。
       トップ固有の上書きは不要になったので、body の余白調整のみここで持つ。 ---- */

/* ============================================================
   Hero (Figma: [Working] / 01_index_NEW  173:739 + Group 221)
   ------------------------------------------------------------
   1920px 基準の実寸
     hero        : H 975
     背景画像     : top -29 / H 923（= 下端 894。以下 81px は白）
     h1          : top 232 / 90px / line-height 120
     lead        : top 512 / 20px / line-height 34
     ボタン       : top 653 / H 64
     ウェーブ3枚  : いずれも下端 894 に揃う
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #fff;
  margin-top: calc(-1 * var(--header-h));
  /* 232 / 1920 = 12.083vw, 258 / 1920 = 13.4375vw */
  padding: clamp(140px, 12.083vw, 232px) 0 clamp(96px, 13.4375vw, 258px);
}

/* --- 背景キービジュアル（オレンジ全面）--- */
/* 下端 81px（= 4.219vw）を白で残し、そこへウェーブを揃える */
.hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: clamp(28px, 4.219vw, 81px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--c-primary);
  /* 表示時のフェードイン */
  opacity: 0;
  animation: heroImgIn 1.4s cubic-bezier(.22, .61, .36, 1) .1s forwards;
}
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.06);
  animation: heroImgZoom 1.8s cubic-bezier(.22, .61, .36, 1) .1s forwards;
}
@keyframes heroImgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroImgZoom {
  to { transform: scale(1); }
}

/* --- 下端の白ウェーブ（Figma: Rectangle 289 / 288 / Vector）--- */
/* .hero__bg と同じ下端に揃えるので、常に画像の切れ目を隠せる */
.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  /* サブピクセル誤差でオレンジの筋が残らないよう、画像下端より 1px 下まで伸ばす */
  bottom: calc(clamp(28px, 4.219vw, 81px) - 1px);
  z-index: 1;
  pointer-events: none;
}
.hero__wave {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
}
/* 高さは 1920px 基準の比率をそのまま vw で維持（形状を歪ませない） */
.hero__wave--1 { height: 12.24vw; }   /* 235 / 1920 */
.hero__wave--2 { height: 9.974vw; }   /* 191.5 / 1920 */
.hero__wave--3 { height: 8.542vw; }   /* 164 / 1920 */

/* --- テキスト --- */
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(38px, 4.69vw, 90px);
  font-weight: 900;
  line-height: 1.3334;     /* 120 / 90 */
  letter-spacing: .02em;
  color: #fff;
}
.hero__lead {
  /* 見出し下端 472 → lead 512 = 40px */
  margin-top: clamp(20px, 2.083vw, 40px);
  font-size: clamp(15px, 1.042vw, 20px);
  font-weight: 700;
  line-height: 1.7;        /* 34 / 20 */
  letter-spacing: .1em;
  color: #fff;
}
/* lead 下端 580 → ボタン 653 = 73px */
.hero__btns {
  margin-top: clamp(28px, 3.802vw, 73px);
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.hero__btns .btn {
  height: 64px;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 0 24px;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
.hero__btns .btn--white { min-width: 326px; }
.hero__btns .btn--ghost { padding: 0 31px; min-width: 200px; }
.hero__btns .icon-ext { width: 15px; height: 15px; flex-shrink: 0; }

/* --- scroll indicator（Figma: Group 203。白ウェーブの上に載る） --- */
.hero__scroll {
  position: absolute;
  /* SCROLL テキスト中心 x=1889（右から 31px）/ バー x=1873（右から 45px） */
  right: 31px;
  /* バー下端 930、hero 下端 975 → 45px */
  bottom: clamp(16px, 2.344vw, 45px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll .txt {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-text-2);
}
.hero__scroll .bar {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  width: 2px;
  height: 68px;
  background: rgba(235, 65, 8, .25);
}
/* 上から下へ流れるスクロールアニメーション */
.hero__scroll .bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(235, 65, 8, 0), var(--c-primary) 45%, var(--c-primary));
  transform: translateY(-100%);
  animation: heroScrollLine 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes heroScrollLine {
  0%        { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__bg img { animation: none !important; opacity: 1; transform: none; }
  .hero__scroll .bar::after { animation: none; }
}

/* ============================================================
   Mission: DIGITAL ASSET, REAL VALUE.
   (Figma: 01_index_NEW  173:752 テキスト / 173:1164 六角形クラスター)
   ------------------------------------------------------------
   1920px 基準の実寸（フレーム原点 = hero 上端）
     六角形クラスター : x 0-942 / y 965-1662.6（942 x 698）
     DIGITAL         : x 1048 / y 1022  92px / 行送り 107.5
     sub             : y 1385  28px / 46
     本文             : y 1518  16px / 34
   hero 下端は 975 なので、セクション上端からの相対値に読み替える。
   ============================================================ */
.mission {
  position: relative;
  background: #fff;
  color: var(--c-text);
  /* 上 47px（1022-975） / 下 128px（1714-1586） */
  padding: clamp(24px, 2.448vw, 47px) 0 clamp(64px, 6.667vw, 128px);
}

/* --- 六角形フォトクラスター ---
   書き出しは 942x698 の 1 枚。同じ画像を 6 枚重ね、それぞれを六角形の輪郭で
   clip-path 切り抜きしている（形状どうしは重ならないので単独で取り出せる）。
   これで「左の六角形から順に」フェードインさせられる。 */
.mission__visual {
  position: absolute;
  left: 0;
  top: -10px;              /* 965 - 975 */
  width: 49.06%;           /* 942 / 1920 */
  aspect-ratio: 942 / 698;
  z-index: 0;
  pointer-events: none;
}
.mission__visual .hex {
  position: absolute;
  inset: 0;
  display: block;
}
.mission__visual .hex img { display: block; width: 100%; height: 100%; }

/* 各六角形の輪郭（Figma の座標から算出。左→右の順に hex--1 … hex--6） */
.mission__visual .hex--1 { clip-path: polygon(-3.818% 12.535%, 14.569% 27.015%, 14.569% 55.975%, -3.818% 70.454%, -22.205% 55.975%, -22.205% 27.015%); }
.mission__visual .hex--2 { clip-path: polygon(19.283% 57.391%, 30.997% 66.763%, 30.997% 85.508%, 19.283% 94.880%, 7.569% 85.508%, 7.569% 66.763%); }
.mission__visual .hex--3 { clip-path: polygon(39.417% -0.088%, 61.194% 17.022%, 61.194% 51.243%, 39.417% 68.354%, 17.640% 51.243%, 17.640% 17.022%); }
.mission__visual .hex--4 { clip-path: polygon(67.451% 51.258%, 83.145% 63.475%, 83.145% 87.911%, 67.451% 100.129%, 51.757% 87.911%, 51.757% 63.475%); }
.mission__visual .hex--5 { clip-path: polygon(76.964% 14.199%, 89.630% 24.151%, 89.630% 44.055%, 76.964% 54.006%, 64.299% 44.055%, 64.299% 24.151%); }
.mission__visual .hex--6 { clip-path: polygon(92.245% 47.142%, 99.234% 52.647%, 99.234% 63.657%, 92.245% 69.162%, 85.256% 63.657%, 85.256% 52.647%); }

/* 表示時に左から順にフェードイン（親の .reveal 自体は動かさない） */
.mission__visual.reveal { transform: none; opacity: 1; }
.mission__visual .hex { opacity: 0; transform: translateY(18px) scale(.97); }
.mission__visual.reveal.is-in .hex { animation: hexaIn .8s cubic-bezier(.22, .61, .36, 1) forwards; }
.mission__visual.reveal.is-in .hex--1 { animation-delay: .05s; }
.mission__visual.reveal.is-in .hex--2 { animation-delay: .17s; }
.mission__visual.reveal.is-in .hex--3 { animation-delay: .29s; }
.mission__visual.reveal.is-in .hex--4 { animation-delay: .41s; }
.mission__visual.reveal.is-in .hex--5 { animation-delay: .53s; }
.mission__visual.reveal.is-in .hex--6 { animation-delay: .65s; }
@keyframes hexaIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mission__visual .hex { opacity: 1; transform: none; animation: none !important; }
}

/* --- テキスト（右寄せ） --- */
.mission__inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
/* コンテナ右端 1800 から 752px = 左端 1048（Figma と一致） */
.mission__body { width: min(752px, 47%); }
.mission__title {
  font-family: var(--ff-en);
  font-size: clamp(40px, 4.79vw, 92px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.17;      /* 107.5 / 92 */
  color: var(--c-text);
}
.mission__title .accent { color: var(--c-primary); }
.mission__sub {
  /* 見出し下端 1337 → 1385 = 48px */
  margin-top: clamp(20px, 2.5vw, 48px);
  font-size: clamp(18px, 1.458vw, 28px);
  font-weight: 800;
  line-height: 1.643;     /* 46 / 28 */
  letter-spacing: .1em;
}
.mission__txt {
  /* sub 下端 1477 → 1518 = 41px */
  margin-top: clamp(18px, 2.135vw, 41px);
  font-size: clamp(14px, .833vw, 16px);
  font-weight: 500;
  line-height: 2.125;     /* 34 / 16 */
  letter-spacing: .0625em;
}
/* クラスター（高さ 36.35vw）が下のセクションへはみ出さないよう最低高を確保 */
@media (min-width: 901px) {
  .mission { min-height: calc(36.4vw + 10px); }
}
/* 中間幅ではテキスト欄が狭くなりすぎるので、クラスターを縮めて本文を広げる */
@media (min-width: 901px) and (max-width: 1240px) {
  .mission { min-height: calc(32.6vw + 10px); }
  .mission__visual { width: 44%; }
  .mission__body { width: 54%; }
}

/* ---- DART's Wallet ---- */
.wallet { position: relative; overflow: hidden; margin-top: 120px; padding: clamp(80px, 6.6vw, 126px) 0 clamp(80px, 5.5vw, 105px); background: #fff; }
.wallet__visual {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(52.4vw, 1006px);
  z-index: 0;
  pointer-events: none;
}
.wallet__visual img { display: block; width: 100%; height: auto; }

/* --- デバイス画像のクロスフェード（wallet__visual-01〜03） ---
   1枚目のみ通常フローに置いて高さの基準にし、2枚目以降を重ねる。
   周期12s = 1枚あたり4s、切り替えは0.6s。
   画像を差し替える場合は assets/img/wallet__visual-01〜03.png を
   同名で置き換えるだけでOK。 */
.wallet__slides { position: relative; }
.wallet__slides img + img { position: absolute; top: 0; left: 0; }
.wallet__slides img {
  opacity: 0;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused; /* 登場アニメーション（.is-in付与）まで停止 */
}
.wallet__slides.is-in img { animation-play-state: running; }
.wallet__slides img:nth-child(1) { animation-name: walletVisual1; }
.wallet__slides img:nth-child(2) { animation-name: walletVisual2; }
.wallet__slides img:nth-child(3) { animation-name: walletVisual3; }
/* 下の画像を不透明なまま残し、その上に次の画像をフェードインさせる
   （両方を半透明にすると背景の白が透けて色が飛ぶため）。
   最背面に戻れない3枚目だけは、逆に自分がフェードアウトして1枚目を出す。
   ※ 上の画像に完全に覆われている間の不透明度変化は見えないので、
     その区間で次の出番に向けた戻し／消しを行っている。 */
@keyframes walletVisual1 {
  0%, 38.33% { opacity: 1; }   /* 2枚目のフェードイン完了まで下敷きとして残す */
  50%, 75% { opacity: 0; }     /* 2枚目に隠れている間に消す */
  83.33%, 100% { opacity: 1; } /* 3枚目に隠れている間に戻し、そのフェードアウトで再登場 */
}
@keyframes walletVisual2 {
  0%, 33.33% { opacity: 0; }
  38.33%, 71.66% { opacity: 1; } /* 4.0s→4.6s でフェードイン */
  83.33%, 100% { opacity: 0; }   /* 3枚目に隠れている間に消す */
}
@keyframes walletVisual3 {
  0%, 66.66% { opacity: 0; }
  71.66%, 95% { opacity: 1; }    /* 8.0s→8.6s でフェードイン */
  100% { opacity: 0; }           /* 11.4s→12.0s でフェードアウトし1枚目へ戻る */
}
@media (prefers-reduced-motion: reduce) {
  .wallet__slides img { animation: none !important; }
  .wallet__slides img:first-child { opacity: 1; }
}
.wallet__inner { position: relative; z-index: 1; }
.wallet__body { max-width: 680px; }
.wallet__title img { display: block; width: 100%; max-width: 528px; height: auto; }
.wallet__catch {
  margin-top: clamp(28px, 3.4vw, 64px);
  font-size: clamp(19px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.57;
  letter-spacing: .1em;
  color: #1a1c1d;
}
.wallet__txt { margin-top: clamp(20px, 1.8vw, 34px); font-size: 14px; font-weight: 500; line-height: 30px; color: #1a1c1d; }
.wallet__btn { margin-top: clamp(28px, 2.7vw, 50px); display: flex; gap: 20px; flex-wrap: wrap; }

/* 丸ピルボタン（新規登録 / ログイン。Wallet セクションと CTA で共用） */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 72px;
  min-width: 250px;
  padding: 0 28px;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .15s, opacity .2s;
}
/* hover の減光は発光エフェクト(style.css)を鈍らせるため行わない */
.btn-pill:hover { transform: translateY(-1px); }
.btn-pill--primary { background: var(--c-primary); color: #fff; }
.btn-pill--outline { background: #fff; color: #1a1c1d; border: 2px solid var(--c-border); }
.btn-pill .ic-wallet { width: 22px; height: 22px; }
.btn-pill .arw { font-family: var(--ff-en); font-weight: 600; }

/* ---- Pay banner（Figma: 72:118 グレー面 + 118:1260 赤パネル） ---- */
.paybnr-wrap { padding: clamp(56px, 5vw, 96px) 0 0; }
.paybnr {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 42.4%) minmax(0, 1fr);
  border-radius: 30px;
  background: #f1f1f1;
  color: #1a1c1d;
}
.paybnr__visual {
  background: #c30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 3.1vw, 60px) clamp(24px, 3.1vw, 53px);
}
.paybnr__visual img { display: block; width: 100%; max-width: 607px; height: auto; }
.paybnr__body { position: relative; padding: clamp(36px, 4.2vw, 80px) clamp(28px, 3.1vw, 60px) clamp(96px, 6.9vw, 132px) clamp(28px, 3.7vw, 70px); }
.paybnr__title { font-size: clamp(23px, 1.88vw, 36px); font-weight: 700; line-height: 1.39; letter-spacing: .1em; }
.paybnr__txt { margin-top: clamp(18px, 1.7vw, 32px); font-size: 14px; font-weight: 500; line-height: 30px; max-width: 817px; }
.paybnr__note { margin-top: 26px; font-size: 14px; font-weight: 700; line-height: 30px; max-width: 491px; }
.paybnr__btn { position: absolute; right: clamp(28px, 3.1vw, 60px); bottom: clamp(32px, 3.3vw, 64px); margin: 0; }
.paybnr__btn .btn {
  background: #c30;
  color: #fff;
  height: 60px;
  min-width: 221px;
  border-radius: 222px;
  font-size: 16px;
  letter-spacing: .04em;
}

/* ---- Wallet 登録CTA（Figma: 114:1173 ほか） ---- */
.wcta { position: relative; overflow: hidden; background: #fff; padding: clamp(72px, 5vw, 97px) 0 0; }
.wcta__shots {
  position: absolute;
  top: clamp(72px, 5vw, 97px);
  right: 0;
  display: flex;
  gap: 27px;
  z-index: 0;
}
.wcta__shots .shot { width: clamp(220px, 29vw, 558px); aspect-ratio: 558 / 489; background: #d9d9d9; border-radius: 22px; overflow: hidden; }
.wcta__shots .shot--edge { width: clamp(140px, 20.6vw, 395px); border-radius: 22px 0 0 22px; }
.wcta__shots .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wcta__shots .shot--edge img { object-position: left center; }
.wcta__inner { position: relative; z-index: 1; }
.wcta__body { max-width: 720px; padding-top: clamp(16px, 3.6vw, 70px); }
.wcta__title {
  font-family: var(--ff-en);
  font-size: clamp(28px, 2.6vw, 50px);
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: .1em;
  color: #cb3200;
}
.wcta__txt { margin-top: clamp(22px, 2.3vw, 45px); font-size: 16px; font-weight: 700; line-height: 30px; color: #1a1c1d; }
.wcta__btns { margin-top: clamp(24px, 1.7vw, 33px); display: flex; gap: 20px; flex-wrap: wrap; }
/* 下端の "DART's" アウトライン帯（assets/img/darts_line.svg のパスを使用） */
.wcta__band {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: clamp(56px, 7.6vw, 147px);
  overflow: hidden;
  container-type: inline-size; /* 子で 100cqw = 帯の実幅 を使うため */
}
/* --band-unit = 1ループ分(ロゴ+隙間)の幅。帯幅 ÷ --band-unit = 見えるループ数。
   390px→約1.5 / 768px→約2.0 / 1109px以上→約2.24ループ(従来のPC比率を維持) */
.wcta__band svg {
  flex: none;
  --band-unit: max(132px + 32.8cqw, 44.7cqw);
  width: calc(var(--band-unit) * .94);
  height: auto;
  margin-right: calc(var(--band-unit) * .06);
  aspect-ratio: 248.28 / 32.97; /* darts_line.svg の viewBox 比 */
  fill: #f9cdb8;
  /* 無限横スクロール: 1ループ分（--band-unit）移動したところで先頭に戻る */
  animation: wctaBandScroll 18s linear infinite;
}
@keyframes wctaBandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--band-unit) * -1)); }
}
@media (prefers-reduced-motion: reduce) {
  .wcta__band svg { animation: none; }
}

/* ---- TTM (Time Travel Marketplace) ---- */
.ttm {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 5.8vw, 111px) 0 clamp(72px, 5vw, 96px);
  background: #fff;
  color: var(--c-text);
}
/* 導入部: 画像は左端まで断ち落とし、テキストは右カラム */
.ttm__intro {
  display: grid;
  grid-template-columns: minmax(0, 45.5%) minmax(0, 1fr);
  gap: clamp(28px, 5.5vw, 105px);
  align-items: center;
  padding-right: var(--pad-x);
}
.ttm__visual img { display: block; width: 100%; height: auto; border-radius: 0 30px 30px 0; }
.ttm__head { max-width: 740px; }
.ttm__label {
  display: block;
  font-family: var(--ff-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  color: var(--c-primary);
}
.ttm__title {
  margin-top: clamp(10px, 1.35vw, 26px);
  font-size: clamp(30px, 3.13vw, 60px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  color: #000;
}
.ttm__title .abbr { color: var(--c-primary); font-size: .67em; }
.ttm__title .br-sp { display: none; }
.ttm__lead { margin-top: clamp(20px, 1.56vw, 30px); font-size: 16px; font-weight: 700; line-height: 30px; color: #1a1c1d; }
.ttm__lead .accent { color: var(--c-primary); }
.ttm__lead--sub { margin-top: clamp(14px, 1.05vw, 20px); font-size: 14px; font-weight: 500; color: #000; }

/* 3機能の見出し行 */
.ttm__inner { margin-top: clamp(48px, 4.5vw, 88px); }
.ttm__feat-head { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 36px); }
.ttm__feat-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(26, 28, 29, .18), rgba(26, 28, 29, 0));
}
.ttm__feat-head .en { font-family: var(--ff-en); font-size: clamp(17px, 1.25vw, 24px); font-weight: 800; letter-spacing: .18em; color: var(--c-primary); }
.ttm__feat-head .ja { font-size: clamp(17px, 1.25vw, 24px); font-weight: 700; letter-spacing: .06em; color: #1a1c1d; }

/* 機能カード: フラットなグレー面（枠線・影なし） */
.ttm-grid { margin-top: clamp(24px, 1.7vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ttm-card {
  position: relative;
  overflow: hidden;
  padding: 40px 44px 44px;
  border-radius: 16px;
  background: #f1f1f1;
}
.ttm-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); column-gap: 56px; }
.ttm-card__ghost {
  position: absolute;
  right: 22px;
  bottom: -18px;
  z-index: 0;
  font-family: var(--ff-en);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: rgba(132, 132, 132, .07);
  pointer-events: none;
  user-select: none;
}
.ttm-card__head, .ttm-card__body { position: relative; z-index: 1; }
.ttm-card__no { display: flex; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--c-primary); }
.ttm-card__no::after { content: ""; width: 28px; height: 1px; background: rgba(235, 65, 8, .5); }
.ttm-card__title { margin-top: 14px; font-size: 23px; font-weight: 700; line-height: 1.57; letter-spacing: .02em; color: #16181a; }
.ttm-card--lead .ttm-card__title { font-family: var(--ff-en); font-size: 34px; letter-spacing: .01em; }
.ttm-card__txt { margin-top: 18px; font-size: 14px; font-weight: 500; line-height: 2.1; color: #4b5055; }
.ttm-card--lead .ttm-card__body > .ttm-card__txt:first-child { margin-top: 4px; }
/* 02/03 は横並び。タイトルの行数差で本文の開始位置がずれないよう2行分を確保 */
.ttm-card:not(.ttm-card--lead) .ttm-card__title { min-height: calc(1.57em * 2); }

/* ---- Exchange ---- */
.exchange { background: var(--c-bg-soft); padding: clamp(80px, 6.3vw, 121px) 0 clamp(80px, 5.7vw, 110px); }
.exchange__inner { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 62%); column-gap: clamp(32px, 3vw, 56px); row-gap: 0; align-items: flex-start; }
.exchange__head { grid-column: 1; grid-row: 1; }
.exchange__body { grid-column: 1; grid-row: 2; }
.exchange__visual { grid-column: 2; grid-row: 1 / span 2; }
.exchange__title { font-family: var(--ff-en); font-size: clamp(40px, 3.33vw, 64px); font-weight: 700; color: var(--c-navy); letter-spacing: .01em; }
.exchange__sub { margin-top: clamp(16px, 1.9vw, 36px); font-size: clamp(20px, 1.25vw, 24px); font-weight: 900; color: var(--c-primary); letter-spacing: .06em; }
.exchange__txt { margin-top: 20px; font-size: 14px; font-weight: 500; line-height: 30px; color: #3b4046; }
.exchange__btn { margin-top: clamp(28px, 2.5vw, 48px); }
.exchange__btn .btn { height: 64px; min-width: 200px; border-radius: 222px; font-size: 16px; letter-spacing: .04em; }
.exchange__visual { position: relative; }
.exchange__visual .board { width: 100%; border-radius: 12px; filter: drop-shadow(0 20px 44px rgba(10, 16, 36, .28)); }

/* ---- sec-head: link-more を sec-title の高さの中央に揃える(sec-label 分は含めない) ---- */
.sec-head--title-center { display: grid; grid-template-columns: 1fr auto; row-gap: 0; column-gap: 24px; }
.sec-head--title-center > div { display: contents; }
.sec-head--title-center .sec-label { grid-area: 1 / 1; }
.sec-head--title-center .sec-title { grid-area: 2 / 1; }
.sec-head--title-center .link-more { grid-area: 2 / 2; align-self: center; }

/* ---- Proof（実績と歩み）: タイムライン + メディア掲載実績 + イベント情報 ---- */
.proof { padding: clamp(72px, 5.2vw, 100px) 0 0; background: #fff; overflow: hidden; }
.proof > .container > .sec-head { margin-bottom: clamp(32px, 3.1vw, 59px); }

/* --- タイムライン --- */
.tl { position: relative; }
.tl__line {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 100vw;
  height: 2px;
  background: var(--c-primary);
  transform: translateX(-50%);
}
.tl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 76px); }
.tl-item { position: relative; }
.tl-item__year { font-family: var(--ff-en); font-size: 25px; font-weight: 700; line-height: 1; letter-spacing: .05em; color: var(--c-primary); }
.tl-item__dot {
  position: absolute;
  left: 36px;
  top: 41px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary);
  z-index: 1;
}
/* サムネイル未定のためグレーのプレースホルダー（Figma: #cfcfcf） */
.tl-item__card { display: block; margin-top: 74px; aspect-ratio: 370 / 240; border-radius: 20px; background: #cfcfcf; overflow: hidden; }
.tl-item__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.tl-item:hover .tl-item__card img { transform: scale(1.05); }
.tl-item__meta { margin-top: 28px; }
.tl-item__meta, .event-card__meta { display: flex; align-items: center; gap: 16px; }
.cat-pill {
  display: inline-flex;
  background: rgba(235, 65, 8, .08);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
}
.tl-item__meta .date, .event-card__meta .date { font-family: var(--ff-en); font-size: 13px; letter-spacing: .02em; color: var(--c-muted); }
.tl-item__title { margin-top: 10px; font-size: 16px; font-weight: 700; line-height: 2.16; color: #16181a; }
.tl-item__txt { font-size: 13.5px; font-weight: 500; line-height: 1.95; color: #5c6166; }

/* --- タイムライン表示アニメーション ---
   親の .reveal はトリガー（.is-in 付与）のみ利用し、子要素を個別に動かす */
.tl.reveal { opacity: 1; transform: none; transition: none; }
/* オレンジのラインは新しい方（左）から伸びる */
.tl.reveal .tl__line {
  transform: translateX(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
}
.tl.reveal.is-in .tl__line { transform: translateX(-50%) scaleX(1); }
/* tl-item は新しいもの（左）から順番にフェードイン（ドットも一緒に表示） */
.tl.reveal .tl-item { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.tl.reveal.is-in .tl-item { opacity: 1; transform: none; }
.tl.reveal.is-in .tl-item:nth-child(1) { transition-delay: .1s; }
.tl.reveal.is-in .tl-item:nth-child(2) { transition-delay: .4s; }
.tl.reveal.is-in .tl-item:nth-child(3) { transition-delay: .7s; }
.tl.reveal.is-in .tl-item:nth-child(4) { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .tl.reveal .tl__line { transform: translateX(-50%); transition: none; }
  .tl.reveal .tl-item { opacity: 1; transform: none; transition: none; }
}

/* --- メディア掲載実績（全幅の帯） --- */
.proof__media { margin-top: clamp(40px, 3.2vw, 61px); background: var(--c-bg-soft); padding: 58px 0 70px; }
.proof__media-head { display: flex; align-items: center; gap: 40px; }
.proof__media-head::before, .proof__media-head::after { content: ""; flex: 1; height: 2px; background: #e7e7e7; }
.proof__media-head span { font-size: 14px; font-weight: 500; letter-spacing: .1em; color: rgba(125, 128, 132, .76); white-space: nowrap; }
.proof__media-logos {
  margin-top: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: 56px; row-gap: 28px;
}
/* PC/タブレット: トラックのラッパーは透過させ、imgを直接並べる(従来の折返し中央揃え) */
.proof__media-track { display: contents; }
.proof__media-track--clone { display: none; }
/* 隙間ぶん多めに送ることで、リセット時に継ぎ目が出ないようにする */
@keyframes mediaMarquee {
  to { transform: translateX(calc(-100% - var(--media-gap, 32px))); }
}
@media (prefers-reduced-motion: reduce) {
  .proof__media-track { animation: none !important; }
}
.proof__media-logos img {
  display: block; width: auto; height: 30px; max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .25s, opacity .25s;
}
.proof__media-logos img:hover { filter: grayscale(0); opacity: 1; }

/* --- イベント情報 --- */
.events-head { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 36px); margin-top: clamp(44px, 3.3vw, 64px); }
.events-head .en { font-family: var(--ff-en); font-size: clamp(17px, 1.25vw, 24px); font-weight: 800; letter-spacing: .18em; color: var(--c-primary); }
.events-head .ja { font-size: clamp(17px, 1.25vw, 24px); font-weight: 700; letter-spacing: .06em; color: #1a1c1d; }
.events-grid {
  margin-top: clamp(32px, 2.7vw, 52px);
  padding-bottom: clamp(72px, 6.8vw, 130px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 57px);
}
/* 4件目は 2x2 レイアウト時(641〜1100px)のみ表示 */
.events-grid .event-card:nth-child(4) { display: none; }
.event-card__thumb { margin: 0; }
.event-card__thumb .ph { aspect-ratio: 511 / 333; border-radius: 12px; }
.event-card__meta { margin-top: 32px; }
.event-card__title { margin-top: 16px; font-size: clamp(18px, 1.1vw, 21px); font-weight: 700; line-height: 1.65; color: #16181a; }
.event-card__txt { margin-top: 14px; font-size: 13.5px; font-weight: 500; line-height: 1.95; color: #5c6166; }
/* 「続きを読む」ボタン（アウトライン／ホバーで塗り） */
.event-card__more {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 22px;
  border: 1px solid var(--c-primary); border-radius: var(--r-btn);
  background: #fff; color: var(--c-primary);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.event-card__more:hover { background: var(--c-primary); color: #fff; opacity: 1; }
.event-card__more .arw { font-family: var(--ff-en); }

/* ---- Case icon (Works で使用) ---- */
.case-icon {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid #f3b39a; color: var(--c-primary); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- News ---- */
.news { background: #fbfaf9; padding: 110px 0; }
.news-grid { display: grid; grid-template-columns: minmax(0, 49.5%) minmax(0, 50.5%); gap: 28px; align-items: stretch; }
.news-feature {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  min-height: 476px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; padding: 56px 48px;
  transition: box-shadow .25s, transform .25s;
}
.news-feature:hover { box-shadow: var(--shadow-card-hov); transform: translateY(-3px); }
.news-feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 文字の可読性確保のための黒オーバーレイ */
.news-feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.34) 100%);
  transition: background .25s;
}
.news-feature:hover::after {
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.58) 55%, rgba(0,0,0,.42) 100%);
}
.news-feature__inner { position: relative; z-index: 2; max-width: 62%; }
.news-feature__meta { display: flex; align-items: center; gap: 14px; }
.news-feature__meta .date { color: rgba(255,255,255,.85); }
.news-feature__title { margin-top: 22px; font-size: 22px; font-weight: 700; line-height: 1.8; }
.news-feature__txt { margin-top: 20px; font-size: 13.5px; line-height: 2; color: rgba(255,255,255,.88); }
.news-feature__link { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fff; }
.news-side { display: flex; flex-direction: column; gap: 28px; }
.news-h-card { display: grid; grid-template-columns: 41% 1fr; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); flex: 1; transition: box-shadow .25s, transform .25s; }
.news-h-card:hover { box-shadow: var(--shadow-card-hov); transform: translateY(-3px); }
.news-h-card .ph { height: 100%; min-height: 210px; }
.news-h-card__body { padding: 26px 28px; display: flex; flex-direction: column; }
.news-h-card__meta { display: flex; align-items: center; gap: 12px; }
.news-h-card__title { margin-top: 14px; font-size: 17px; font-weight: 700; line-height: 1.7; color: #16181a; }
.news-h-card__txt { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: #5c6166; }
.news-h-card__link { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

/* ---- Works (導入実績) ---- */
.works { padding: 55px 0 110px; }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.work-item { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: flex-start; }
.work-item .ph { aspect-ratio: 30 / 26; border-radius: var(--r-md); }
.work-item__cat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #33383c; }
.work-item__cat .case-icon { width: 34px; height: 34px; }
.work-item__title { margin-top: 14px; font-size: 18px; font-weight: 700; color: #16181a; }
.work-item__txt { margin-top: 12px; font-size: 13px; line-height: 2; color: #4b5055; }

/* ---- Whitepaper banner ---- */
.wpbnr { position: relative; overflow: hidden; background: #f4f3f1; }
.wpbnr__watermark {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: 178px;
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  /* 大文字の下端をセクション下端（背景色の境目）にピッタリ合わせる
     （Interのディセント＋ハーフレディング分だけ下へずらし、baseline＝下端にする） */
  transform: translateY(.211em);
}
.wpbnr__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 48px 0; }
.wpbnr__title { font-family: var(--ff-en); font-size: 30px; font-weight: 800; color: var(--c-red); letter-spacing: .02em; }
.wpbnr__txt { margin-top: 14px; font-size: 13.5px; font-weight: 500; line-height: 2; color: #33383c; }
/* ボタンはテキストの左端に揃える(左寄せ) */
.wpbnr__btn { margin-top: 26px; display: flex; justify-content: flex-start; }
.wpbnr__btn .btn { height: 46px; min-width: 264px; font-size: 13px; border-radius: 99px; }
.wpbnr__book { display: block; width: 190px; height: auto; filter: drop-shadow(-14px 18px 28px rgba(90, 20, 6, .35)); }

/* ============ Responsive (home) ============ */
@media (max-width: 1100px) {
  /* hero の余白・ウェーブは vw 基準でそのまま縮小するので上書きしない */
  .hero__scroll { display: none; }
  .wallet__visual { position: static; transform: none; width: 100%; max-width: 720px; margin: 40px auto 0; }
  .wallet__body { max-width: 100%; }
  .paybnr { grid-template-columns: 1fr; }
  .paybnr__body { padding-bottom: 128px; }
  /* 画像のみの行になるため、コンテナ左端まで伸ばして幅いっぱいに（比率 558:395 を維持） */
  .wcta__shots { position: static; margin-top: 40px; justify-content: flex-end; padding-left: var(--pad-x); }
  .wcta__shots .shot { flex: 558 1 0; width: auto; }
  .wcta__shots .shot--edge { flex: 395 1 0; }
  .wcta__body { padding-top: 0; }
  .wcta__title { margin-top: 14px; }
  .ttm__intro { grid-template-columns: 1fr; gap: 36px; padding-right: 0; }
  .ttm__visual img { border-radius: 0; }
  .ttm__head { max-width: 100%; padding: 0 var(--pad-x); }
  .ttm-grid { grid-template-columns: 1fr; gap: 20px; }
  .ttm-card { padding: 34px 32px 36px; }
  .ttm-card--lead { grid-template-columns: 1fr; row-gap: 16px; }
  /* 1カラムになるため行数を揃える必要がなくなる */
  .ttm-card:not(.ttm-card--lead) .ttm-card__title { min-height: 0; }
  /* 1カラム化: 明示配置を解除し order で並び順を制御 */
  .exchange__inner { grid-template-columns: 1fr; }
  .exchange__head, .exchange__body, .exchange__visual { grid-column: 1; grid-row: auto; }
  .exchange__head { order: 1; }
  .exchange__body { order: 2; }
  .exchange__visual { order: 3; margin-top: clamp(32px, 3vw, 56px); }
  .tl__line, .tl-item__dot { display: none; }
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .tl-item__card { margin-top: 20px; }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .events-grid .event-card:nth-child(4) { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .news-feature__inner { max-width: 100%; }
  .works-grid { grid-template-columns: 1fr; }
  .wpbnr__inner { gap: 32px; }
  .wpbnr__watermark { font-size: 110px; }
}
@media (max-width: 900px) {
  /* Mission: 1カラム化し、六角形クラスターをテキストの下へ */
  .mission {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 56px 0 64px;
  }
  .mission__inner { order: 1; flex-direction: column; }
  .mission__body { width: 100%; }
  .mission__visual {
    /* .hex は absolute なので relative のまま（static にすると基準が .mission になる） */
    position: relative;
    top: auto;
    order: 2;
    width: 100%;
    max-width: 620px;
    margin: 40px auto 0;
  }
}
@media (max-width: 640px) {
  /* ヒーローはオレンジ全面のまま。文字サイズと余白のみ SP 用に詰める */
  .hero { padding: calc(var(--header-h) + 56px) 0 104px; }
  .hero__title { font-size: 30px; }
  .hero__lead br { display: none; }
  .hero__btns .btn { min-width: 100%; }
  /* SPは画像が大きく横トリミングされるため、右端のDモチーフが切れないよう
     右基準で配置し、余る左側（無地のオレンジ）をカットする */
  .hero__bg img { object-position: right center; transform-origin: right center; }
  /* 右寄せでモチーフが文字の背面に重なるので、オレンジのオーバーレイで白文字の可読性を確保 */
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(235, 65, 8, .5);
    pointer-events: none;
  }
  .mission__title { font-size: 36px; }
  .mission__sub br, .mission__txt br { display: none; }
  /* SPではPC用の上マージンを解除し、上パディングを20px詰め、下パディングは1/3に */
  .wallet {
    margin-top: 0;
    padding-top: calc(clamp(80px, 6.6vw, 126px) - 20px);
    padding-bottom: calc(clamp(80px, 5.5vw, 105px) / 3);
  }
  .wallet__title { margin-top: 30px; }
  .wallet__title img { max-width: 380px; }
  .wallet__txt br { display: none; }
  .wallet__btn .btn-pill, .wcta__btns .btn-pill { min-width: 100%; }
  .paybnr__title { font-size: 22px; }
  .paybnr__txt br, .paybnr__note br { display: none; }
  .paybnr__body { padding-bottom: 136px; }
  /* 上パディングを半分に */
  .wcta { padding-top: calc(clamp(72px, 5vw, 97px) / 2); }
  .wcta__title { margin-top: 1em; }
  .wcta__title br, .wcta__txt br { display: none; }
  .wcta__shots { gap: 16px; }
  /* 上パディングを半分に */
  .ttm { padding-top: calc(clamp(80px, 5.8vw, 111px) / 2); }
  .ttm__label { font-size: 16px; }
  .ttm__title { margin-top: calc(clamp(10px, 1.35vw, 26px) + 5px); font-size: 35px; }
  .ttm__title .br-sp { display: inline; }
  .ttm__lead br, .ttm__lead--sub br { display: none; }
  /* 見出しを2行に分け、各行は折り返さない */
  .ttm__feat-head { flex-wrap: wrap; row-gap: 8px; }
  .ttm__feat-head .en { flex: 0 0 100%; }
  .ttm__feat-head .en, .ttm__feat-head .ja { white-space: nowrap; }
  .ttm-card { padding: 28px 24px 30px; }
  .ttm-card__title { font-size: 19px; }
  .ttm-card--lead .ttm-card__title { font-size: 27px; }
  .ttm-card__ghost { font-size: 68px; right: 14px; }
  .exchange { padding: 72px 0; }
  .exchange__title { font-size: 40px; }
  /* 取引画面モックアップを本文(exchange__txt)の上へ */
  .exchange__visual { order: 2; margin-top: 28px; }
  .exchange__body { order: 3; }
  .exchange__body .exchange__txt { margin-top: 28px; }
  /* メディアロゴを1行の自動左スクロールバーに */
  .proof__media-logos {
    margin-top: 28px;
    flex-wrap: nowrap; justify-content: flex-start;
    column-gap: var(--media-gap); row-gap: 0;
    overflow: hidden;
    --media-gap: 32px;
  }
  .proof__media-track {
    display: flex; flex: none; align-items: center; gap: var(--media-gap);
    animation: mediaMarquee 20s linear infinite;
  }
  .proof__media-track--clone { display: flex; }
  /* 上パディングを30%減 */
  .news { padding-top: 77px; }
  /* タイムライン: PCの横バーを縦バーに置き換えて左側に表示し、
     その分（--tl-bar）だけ内容を右へ寄せてカードを縮小する */
  .tl { --tl-bar: 36px; padding-left: var(--tl-bar); }
  .tl__line {
    display: block;
    left: 5px;
    top: 10px;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .tl-item__dot { display: block; left: calc(-1 * var(--tl-bar)); top: 7px; }
  /* オレンジのラインは縦方向（上から下へ）伸ばす */
  .tl.reveal .tl__line { transform: scaleY(0); transform-origin: center top; }
  .tl.reveal.is-in .tl__line { transform: scaleY(1); }
  .tl-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid .event-card:nth-child(4) { display: none; }
  .wpbnr__inner { grid-template-columns: 1fr; gap: 28px; }
  .news-h-card { grid-template-columns: 1fr; }
  .news-h-card .ph { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .news-h-card__body { padding: 22px 24px 24px; }
  .work-item { grid-template-columns: 1fr; }
  .work-item .ph { aspect-ratio: 30 / 18; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sec-head--title-center { grid-template-columns: 1fr; }
  .sec-head--title-center .link-more { grid-area: 3 / 1; justify-self: start; margin-top: 12px; }
}

/* SPの縦バーは、モーション低減時はアニメーションなしで表示 */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .tl.reveal .tl__line { transform: none; transition: none; }
}
