/* ============================================================
   Sushi Guide — site stylesheet
   アプリの「美術館のキャプション」デザインシステム（src/theme.ts）を
   そのまま Web に持ち込む: 暖かい紙色、墨色テキスト、明朝＋ラテンセリフ、
   トラッキングを効かせたサンセリフ小文字大文字、UI アクセントカラー無し。
   色は料理の写真とアプリアイコンだけが持つ。
   ============================================================ */

/* ===== Tokens ===== */
:root {
  --paper: #f4f1ea;
  --paper-deep: #ede8dd;
  --white: #fbfaf7;
  --ink: #1a1714;
  --ink-soft: #8c857a;
  --ink-faint: #b7af9f;
  --line: #e2dbcc;
  --frame: #d8d0bf;

  --serif: 'Hoefler Text', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --mincho: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'Shippori Mincho',
    'Yu Mincho', 'Noto Serif JP', serif;
  /* ⚠️ --sans は言語ごとに差し替える。iOS Safari はこの並びだとタイ語・
     クメール語・デーヴァナーガリー・アラビア文字のグリフにフォールバック
     できず豆腐（?の四角）になる（実機シミュレータで確認）。法務ページは
     本文を24言語で出すので、日付・ナビ等のサンセリフも各言語の
     システムフォントを先頭に置いた --sans で上書きする。 */
  --sans-latin: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI',
    Arial, sans-serif;
  --sans: var(--sans-latin);

  /* 見出し書体は言語ごとに差し替える（アプリの minchoFor / isLatinScript と同じ発想） */
  --display: var(--serif);
  --body-font: var(--serif);
}

/* 日本語 — 明朝主体（アプリの ja 専用レイアウトに対応） */
html[lang='ja'] {
  --display: var(--mincho);
  --body-font: var(--mincho);
}
/* 明朝見出しの言語（ko / zh / th / hi）— 各 OS のセリフ体へフォールバック */
html[lang='ko'] {
  --display: 'AppleMyungjo', 'Nanum Myeongjo', 'Batang', serif;
  --body-font: 'AppleMyungjo', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Apple SD Gothic Neo', 'Malgun Gothic', var(--sans-latin);
}
html[lang='zh-Hant'],
html[lang='zh-Hant-HK'] {
  --display: 'Songti TC', 'LiSong Pro', 'PMingLiU', var(--mincho);
  --body-font: 'Songti TC', 'LiSong Pro', 'PMingLiU', var(--mincho);
  --sans: 'PingFang TC', 'Microsoft JhengHei', var(--sans-latin);
}
html[lang='zh-Hans'] {
  --display: 'Songti SC', 'SimSun', var(--mincho);
  --body-font: 'Songti SC', 'SimSun', var(--mincho);
  --sans: 'PingFang SC', 'Microsoft YaHei', var(--sans-latin);
}
html[lang='th'] {
  --display: 'Sathu', 'Thonburi', serif;
  --body-font: 'Sathu', 'Thonburi', serif;
  --sans: 'Thonburi', var(--sans-latin);
}
html[lang='hi'] {
  --display: 'Devanagari MT', 'Kohinoor Devanagari', serif;
  --body-font: 'Devanagari MT', 'Kohinoor Devanagari', serif;
  --sans: 'Kohinoor Devanagari', 'Nirmala UI', var(--sans-latin);
}

/* クメール語 — 明朝・セリフ体にグリフが無いので、本文もサンセリフの
   Khmer Sangam MN（iOS 同梱）に寄せる。アプリ側がシステムのクメール用
   フォントへフォールバックするのと同じ扱い（CLAUDE.md §6）。 */
html[lang='km'] {
  --display: 'Khmer Sangam MN', 'Khmer MN', 'Leelawadee UI', sans-serif;
  --body-font: 'Khmer Sangam MN', 'Khmer MN', 'Leelawadee UI', sans-serif;
  --sans: 'Khmer Sangam MN', 'Khmer MN', var(--sans-latin);
}
/* ロシア語 — ヒラギノ明朝の全角キリル問題と同じ理由で Georgia（theme.ts の cyrillicSerif） */
html[lang='ru'] {
  --display: Georgia, 'Times New Roman', serif;
  --body-font: Georgia, 'Times New Roman', serif;
}
/* アラビア語 — アプリの fonts.arabicSerif と同じ Damascus（iOS 同梱のナスヒー体）を先頭に */
html[lang='ar'] {
  --display: 'Damascus', 'Geeza Pro', 'Al Bayan', 'Times New Roman', serif;
  --body-font: 'Damascus', 'Geeza Pro', 'Al Bayan', 'Times New Roman', serif;
  --sans: 'Geeza Pro', 'Damascus', var(--sans-latin);
}

/* ===== RTL（アラビア語） =====
   <html dir="rtl"> はブラウザが方向を反転してくれるが、次の2つは自前で面倒を見る。
   1. letter-spacing: アラビア文字は続け字なので、字間を空けると文字の連結が切れて
      読めなくなる。字送りを効かせている見出し/ラベル類を RTL では素に戻す。
   2. text-transform: uppercase はアラビア文字に大文字が無く無意味なので外す。 */
[dir='rtl'] {
  letter-spacing: normal;
}
[dir='rtl'] .eyebrow,
[dir='rtl'] .section-title,
[dir='rtl'] .hero-title,
[dir='rtl'] .finale-title,
[dir='rtl'] .btn-store-eyebrow,
[dir='rtl'] .btn-store-word,
[dir='rtl'] .nav a,
[dir='rtl'] .crumbs,
[dir='rtl'] .neta-tile-caption .roman {
  letter-spacing: normal;
  text-transform: none;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto; /* width/height 属性はアスペクト比のヒントに留める */
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.container {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Typography helpers ===== */

/* トラッキングを効かせた小文字大文字 — 展示サインの言語 */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
}

/* 細い罫線 — 額装のヘアライン */
.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--mincho);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
}

.brand-word {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 言語セレクタ — 鉛筆書きのような控えめさ */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--frame);
  border-radius: 2px;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238C857A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.lang-select:hover {
  border-color: var(--ink-soft);
}

.header-cta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header-cta:hover {
  opacity: 0.82;
}

/* ===== Header nav（言語別静的ページ／法務ページ共通のヘッダーメニュー） =====
   縁取りも背景も持たない、テキストだけのリンク。館内キャプションのように静かに。
   .site-header-inner / .legal-header-inner の justify-content:space-between で
   ブランド・ナビ・言語セレクタが左・中央・右に自然に分かれる。 */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

/* 狭い画面ではナビを2段目に落として全幅センター */
@media (max-width: 720px) {
  .site-header-inner,
  .legal-header-inner {
    flex-wrap: wrap;
  }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding-bottom: 10px;
  }
  .site-nav a {
    font-size: 0.78rem;
  }
}

/* ===== Buttons ===== */
/* ストアバッジ — 公式バナーのテイスト（小さな上段 + 太い App Store / Google Play）。
   両ストア同じ形・同じ墨色で、App Store の隣に Google Play を並べる。 */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-cta .store-badges {
  justify-content: flex-start;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  padding: 10px 22px;
  border-radius: 10px; /* ほんの少しだけ角丸 */
  transition: opacity 0.2s, transform 0.2s;
}

.btn-store:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-store-logo {
  width: 26px;
  height: 31px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-store-logo-play {
  width: 27px;
  height: 27px;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  text-align: start;
}

.btn-store-eyebrow {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.btn-store-word {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== Meta chips（小文字大文字の信頼サイン） ===== */
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===== 額装（print）— 写真・スクリーンショット共通 ===== */
.print {
  background: var(--white);
  border: 1px solid var(--frame);
  padding: 10px;
  box-shadow: 0 1px 2px rgba(26, 23, 20, 0.05), 0 18px 50px -18px rgba(26, 23, 20, 0.22);
}

.print img {
  width: 100%;
}

.print-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  text-align: center;
}

.print-caption .roman {
  font-family: var(--serif);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.print-caption .kanji {
  font-family: var(--mincho);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}

.hero-copy {
  max-width: 560px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 10px 26px -12px rgba(26, 23, 20, 0.4);
  margin-bottom: 28px;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.hero-shot {
  justify-self: center;
  width: min(78%, 320px);
}

.hero-shot .print {
  padding: 8px;
}

/* ヒーローのスクショも iPhone のステータスバーを隠す。機能枠（No.01/03/04）と
   違い、下のタブバーまで全部見せたいので「上だけ」削る。元画像は 721×1560。
   アスペクト比をフル高からステータスバー(≈79px)を引いた 721/1481 にし、
   object-position: bottom で下端基準に合わせると、上の 79px だけが枠外に出る。 */
.hero-shot .print img {
  aspect-ratio: 721 / 1481;
  object-fit: cover;
  object-position: bottom center;
}

/* ===== Sections（展示室） ===== */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 14px;
}

.section-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--ink-soft);
}

/* ===== The Collection（ギャラリー） ===== */
.collection-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

/* 額の高さを揃える — 横一列に水平に並べる */
.collection-row .print img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== The Exhibition（機能紹介） ===== */
.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}

.exhibit + .exhibit {
  border-top: 1px solid var(--line);
}

.exhibit:nth-child(even) .exhibit-copy {
  order: 2;
}

.exhibit:nth-child(even) .exhibit-art {
  order: 1;
}

.exhibit-no {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 18px;
}

.exhibit-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.5;
  margin-bottom: 16px;
}

.exhibit-body {
  font-size: 0.95rem;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 22px;
}

/* 注意書き（No.02 の判定精度に関する但し書きなど）— さらに小さく淡く */
.fine-print {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82em;
  color: var(--ink-faint);
}

.exhibit-art {
  justify-self: center;
  width: min(100%, 300px);
}

.exhibit-art .print {
  padding: 8px;
}

/* スクショ枠（No.01/02/03/04）は縦長すぎて短いテキストと上下に間延びするため、
   額の中で 3:4 の窓にクロップし、下端を紙色へフェードさせて高さを揃える。
   （世のプロダクト LP がやる「UI を窓で見せる」手法） */
.exhibit-art--shot .print {
  position: relative;
}

.exhibit-art--shot .print img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* 真上からではなく少し下げてクロップし、iPhone のステータスバー
     （時刻・電波・電池）を窓の外へ追い出す。縦 11% ≒ 表示上 約26px 下。 */
  object-position: center 11%;
}

.exhibit-art--identify .print img {
  /* No.02 は上のステータスバーだけ避けつつ、検索結果3件目まで見せる。 */
  aspect-ratio: 721 / 1400;
  object-position: center 41%;
}

/* No.01/No.04 はアプリのナビヘッダー（戻るボタン＋ページタイトル）も
   余白なので、さらに約39px 下げて窓の外へ。11% + 約39px ≒ 28%。 */
.exhibit-art--deep .print img {
  object-position: center 28%;
}

.exhibit-art--shot .print::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 32%;
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0), var(--white));
  pointer-events: none;
}

/* No.04 推しの５貫とランキング — 2枚組（投票する画面と結果のランキング）。
   1枚用の額（300px）より広げ、同じクロップ・フェードを2枚に適用する。 */
.exhibit-art--duo {
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.exhibit-art--duo .print {
  padding: 6px;
}

.exhibit-art--duo .print::after {
  left: 6px;
  right: 6px;
  bottom: 6px;
}

/* 写真で探す — ファインダー風の額 */
.viewfinder {
  position: relative;
  width: min(100%, 420px);
}

.viewfinder .print {
  padding: 8px;
}

.viewfinder-frame {
  position: relative;
}

.viewfinder-frame::before,
.viewfinder-frame::after,
.viewfinder-frame .vf-corner::before,
.viewfinder-frame .vf-corner::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--paper);
  pointer-events: none;
  z-index: 2;
}

.viewfinder-frame::before {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.viewfinder-frame::after {
  top: 14px;
  right: 14px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.viewfinder-frame .vf-corner::before {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.viewfinder-frame .vf-corner::after {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.viewfinder-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(26, 23, 20, 0.5);
  z-index: 2;
}

/* 17言語 — 額の中に対応言語の国旗を散りばめる */
.exhibit-art--flags {
  width: min(100%, 380px);
}

.exhibit-art--flags .print {
  padding: 14px;
}

.flag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 20px);
  padding: clamp(22px, 5vw, 40px) clamp(14px, 3vw, 26px);
  background: var(--paper);
}

.flag-cloud .flag {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1;
  /* 絵文字に色が無い環境（Win 等）でもフォールバックの2文字が読めるよう */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', var(--sans);
  filter: drop-shadow(0 2px 5px rgba(26, 23, 20, 0.16));
}

/* ほんの少し傾けて散りばめた表情に */
.flag-cloud .flag:nth-child(3n) {
  transform: rotate(-6deg);
}
.flag-cloud .flag:nth-child(3n + 1) {
  transform: rotate(5deg);
}
.flag-cloud .flag:nth-child(4n) {
  transform: rotate(-3deg) translateY(-3px);
}
.flag-cloud .flag:nth-child(5n) {
  transform: rotate(7deg) translateY(2px);
}

/* ===== Privacy（プライバシーの placard） ===== */
.placard-wrap {
  display: grid;
  place-items: center;
}

.placard {
  max-width: 720px;
  text-align: center;
  border: 1px solid var(--frame);
  background: var(--white);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 72px);
  box-shadow: 0 18px 50px -24px rgba(26, 23, 20, 0.18);
}

.placard .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.placard-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.6;
  margin-bottom: 16px;
}

.placard-body {
  font-size: 0.92rem;
  line-height: 2.05;
  color: var(--ink-soft);
  text-align: start;
}

/* ===== Recommended Environment（額装の小さなキャプション） ===== */
.environment-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5.5vw, 64px);
}

/* eyebrow（英字トラッキング）＋ 明朝/セリフの本文、という他セクション共通の二段構え */
.environment-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.environment-title {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.environment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 28px;
}

.environment-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.environment-item dt {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.environment-item dd {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

/* ===== Final CTA ===== */
.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* 背後に大きく薄い「鮨」 */
.finale-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--mincho);
  font-size: clamp(16rem, 38vw, 26rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

.finale-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-block: clamp(72px, 10vw, 130px);
}

.finale-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 14px 32px -14px rgba(26, 23, 20, 0.45);
}

.finale-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.5;
}

.finale-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: 44px;
  text-align: center;
}

.footer-brand {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links span {
  color: var(--ink-faint);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ===== Reveal（静かな点灯）— JS が動く環境（html.js）でのみ隠す ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Legal pages（利用規約・プライバシーポリシー） ===== */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.legal-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.legal-brand .brand-mark {
  font-size: 1.25rem;
}

.legal-brand:hover {
  opacity: 0.75;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--frame);
  border-radius: 2px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.legal-main {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
  min-height: calc(100vh - 220px);
}

.legal-content {
  max-width: 680px;
  margin-inline: auto;
}

.legal-eyebrow {
  display: block;
  margin-bottom: 18px;
}

.legal-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

/* バージョン履歴: 版名の右に日付を静かに添える */
.version-date {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-inline-start: 10px;
}

.legal-content h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
  margin-top: 52px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 2.1;
  margin-bottom: 14px;
}

.legal-content .legal-language-note {
  display: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-inline-start: 2px solid var(--frame);
  padding: 10px 12px;
  margin-top: -18px;
  margin-bottom: 30px;
}

/* Shown only when this page's clauses really are falling back to English.
   legal-extra-langs.js blanks the notice for languages whose body is
   translated, so `:not(:empty)` is what distinguishes the two — the two legal
   pages can be translated independently without this rule lying. */
html:not([lang='ja']):not([lang='en']) .legal-language-note:not(:empty) {
  display: block;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 14px;
}

.legal-content li {
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 2.1;
  padding-inline-start: 1.4em;
  margin-bottom: 8px;
}

/* 箇条書きの行頭は罫線 — 数字や黒丸より静かに */
.legal-content li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 1em;
  width: 0.7em;
  border-top: 1px solid var(--ink-faint);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-faint);
}

.legal-content a:hover {
  text-decoration-color: var(--ink);
}

.legal-meta {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-meta p {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: clamp(44px, 8vw, 72px);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-shot {
    width: min(64%, 280px);
  }

  .exhibit {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* モバイルでは常にテキスト → 図版の順 */
  .exhibit:nth-child(even) .exhibit-copy {
    order: 0;
  }
  .exhibit:nth-child(even) .exhibit-art {
    order: 0;
  }

  .exhibit-art {
    width: min(72%, 280px);
  }

  .exhibit-art--duo {
    width: min(94%, 380px);
  }

  .viewfinder {
    width: min(100%, 360px);
  }

  /* ギャラリーは横スクロールの回廊に */
  .collection-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 56vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
    margin-inline: -24px;
    padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .collection-row .piece {
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  .brand-word {
    display: none;
  }

  .header-cta {
    font-size: 0.72rem;
    padding: 6px 11px;
  }

  .hero-icon {
    width: 56px;
    height: 56px;
  }

  .hero-cta {
    align-items: stretch;
  }

  .store-badges {
    width: 100%;
  }

  .btn-store {
    justify-content: center;
    width: 100%;
  }

  .hero-cta .free-note {
    width: 100%;
    text-align: center;
  }

  .meta-chips {
    gap: 6px 16px;
  }
}

/* ============================================================
   TOP v3 — conversion-first product storytelling
   TOPだけをC案へ更新。ネタ・読み物・FAQ等は既存の美術館トーンを維持する。
   スクリーンショットは全て端末フレーム内へ全画面表示し、crop/fadeしない。
   ============================================================ */

.top3-page {
  --top3-bg: #fbfaf4;
  --top3-surface: #f0f3e9;
  --top3-ink: #13221e;
  --top3-muted: #617169;
  --top3-border: #dce3da;
  --top3-accent: #e8472f;
  --top3-gold: #f1bd42;
  --top3-dark-soft: #263832;

  overflow: hidden;
  color: var(--top3-ink);
  background: var(--top3-bg);
  font-family: var(--sans);
}

.top3-page .container {
  width: min(100%, 1200px);
  padding-inline: clamp(22px, 4vw, 56px);
}

.top3-page h1,
.top3-page h2,
.top3-page h3,
.top3-page p,
.top3-page figure,
.top3-page dl {
  margin: 0;
}

.top3-page h1,
.top3-page h2,
.top3-page h3 {
  font-family: var(--display);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.top3-page a:hover {
  text-decoration: none;
}

.top3-kicker,
.top3-feature-tag {
  display: block;
  color: var(--top3-accent);
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.top3-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.top3-page .btn-store {
  min-height: 54px;
  border-radius: 13px;
  padding: 10px 20px;
  background: var(--top3-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(19, 34, 30, 0.12);
}

.top3-page .btn-store:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(19, 34, 30, 0.18);
}

.top3-page .btn-store-word {
  font-size: 1.16rem;
}

.top3-page .btn-store-eyebrow {
  font-size: 0.58rem;
}

/* Full, uncropped app screen inside a device frame. */
.top3-device {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 7px solid #101714;
  border-radius: 36px;
  /* 回転時のサブピクセル描画で画像と枠の間に生じる微細な隙間も、
     ベゼルと同じ色で埋めて明るい点線状の継ぎ目を出さない。 */
  background: #101714;
  box-shadow: 0 30px 74px rgba(19, 34, 30, 0.24);
  direction: ltr;
}

.top3-device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 721 / 1560;
  object-fit: contain;
  object-position: center;
}

/* ===== Hero ===== */
.top3-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 18%, rgba(241, 189, 66, 0.24), transparent 28%),
    linear-gradient(180deg, var(--top3-bg), var(--top3-surface));
}

.top3-orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(19, 34, 30, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.top3-orb--one {
  top: 56px;
  right: -105px;
  width: 430px;
  height: 430px;
}

.top3-orb--two {
  right: 240px;
  bottom: -180px;
  width: 360px;
  height: 360px;
}

.top3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: clamp(38px, 5vw, 76px);
  min-height: 760px;
  padding-block: clamp(70px, 8vw, 112px) 54px;
}

.top3-hero-copy {
  z-index: 3;
  align-self: center;
  min-width: 0;
  padding-bottom: 38px;
}

.top3-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid #cad5ce;
  border-radius: 999px;
  color: #466058;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.top3-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--top3-accent);
}

.top3-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.6vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: -0.068em;
}

.top3-hero-lead {
  max-width: 580px;
  margin-bottom: 30px !important;
  color: var(--top3-muted);
  font-family: var(--body-font);
  font-size: clamp(0.96rem, 1.4vw, 1.07rem);
  line-height: 1.95;
}

.top3-hero-cta {
  margin-bottom: 22px;
}

.top3-hero-cta .store-badges {
  justify-content: flex-start;
}

.top3-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #52655d;
  font-size: 0.72rem;
  font-weight: 700;
}

.top3-trust span::before {
  content: '✓';
  margin-inline-end: 7px;
  color: var(--top3-accent);
}

.top3-hero-devices {
  position: relative;
  align-self: end;
  min-height: 640px;
  direction: ltr;
}

.top3-device--hero-main {
  position: absolute;
  z-index: 3;
  left: 1%;
  bottom: 0;
  width: min(53%, 260px);
  transform: rotate(-4deg);
}

.top3-device--hero-side {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 0;
  width: min(48%, 235px);
  transform: rotate(5deg);
}

.top3-float-note {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 100px;
  width: min(210px, 44%);
  padding: 16px 18px;
  border: 1px solid #d2dcd5;
  border-radius: 18px;
  color: var(--top3-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 54px rgba(19, 34, 30, 0.16);
  backdrop-filter: blur(14px);
}

.top3-float-note strong,
.top3-float-note span {
  display: block;
}

.top3-float-note strong {
  margin-bottom: 4px;
  color: var(--top3-accent);
  font-family: var(--display);
  font-size: 1rem;
}

.top3-float-note span {
  color: var(--top3-muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

/* ===== Tokyo sushi finder ===== */
.top3-shop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8f7f1;
  background:
    radial-gradient(circle at 76% 46%, rgba(232, 71, 47, 0.2), transparent 25%),
    linear-gradient(135deg, #172720 0%, #21372f 56%, #172a24 100%);
}

.top3-shop-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(248, 247, 241, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.top3-shop-orbit--large {
  top: -260px;
  right: -120px;
  width: 770px;
  height: 770px;
}

.top3-shop-orbit--small {
  right: 128px;
  bottom: -260px;
  width: 520px;
  height: 520px;
}

.top3-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
  min-height: 900px;
  padding-block: clamp(88px, 10vw, 132px);
}

.top3-shop-copy {
  position: relative;
  z-index: 2;
}

.top3-shop-heading-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.top3-shop-new {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #172720;
  background: var(--top3-gold);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.top3-shop h2 {
  max-width: 560px;
  margin: 18px 0 25px;
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.058em;
}

.top3-shop h2 span {
  white-space: nowrap;
}

.top3-shop-lead {
  max-width: 560px;
  color: #bdcac4;
  font-family: var(--body-font);
  font-size: 0.98rem;
  line-height: 2;
}

.top3-shop-points {
  display: grid;
  gap: 0;
  margin-top: 42px !important;
  border-top: 1px solid rgba(248, 247, 241, 0.16);
}

.top3-shop-points > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid rgba(248, 247, 241, 0.16);
}

.top3-shop-points dt {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.top3-shop-points dt span {
  color: var(--top3-accent);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.top3-shop-points dd {
  color: #aebdb6;
  font-size: 0.76rem;
  line-height: 1.7;
}

.top3-shop-coverage {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px !important;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(241, 189, 66, 0.28);
  border-radius: 999px;
  color: #b8c5bf;
  background: rgba(241, 189, 66, 0.07);
  font-size: 0.72rem;
  line-height: 1.6;
}

.top3-shop-coverage strong {
  padding: 3px 10px;
  border-radius: 999px;
  color: #172720;
  background: var(--top3-gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.top3-shop-visual {
  position: relative;
  min-height: 650px;
  direction: ltr;
}

.top3-shop-device-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.top3-device--shop {
  width: min(63%, 310px);
  border-color: #0a100e;
  transform: rotate(2.4deg);
  box-shadow: 0 44px 92px rgba(0, 0, 0, 0.38);
}

.top3-shop-search-chip {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 112px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 226px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  color: var(--top3-ink);
  background: rgba(251, 250, 244, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.top3-shop-search-chip > span {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--top3-accent);
  border-radius: 50%;
}

.top3-shop-search-chip > span::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--top3-accent);
  transform: rotate(45deg);
}

.top3-shop-search-chip small,
.top3-shop-search-chip strong {
  display: block;
}

.top3-shop-search-chip small {
  margin-bottom: 3px;
  color: #738078;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.top3-shop-search-chip strong {
  font-family: var(--display);
  font-size: 0.88rem;
}

/* ===== Proof bar ===== */
.top3-proof {
  color: #fff;
  background: var(--top3-ink);
}

.top3-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.top3-proof-grid > div {
  padding: 29px clamp(14px, 3vw, 38px);
  text-align: center;
}

.top3-proof-grid > div + div {
  border-inline-start: 1px solid #35453f;
}

.top3-proof strong,
.top3-proof span {
  display: block;
}

.top3-proof strong {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: clamp(1.65rem, 3vw, 2.42rem);
  line-height: 1.15;
}

.top3-proof span {
  color: #a9b7b0;
  font-size: 0.69rem;
}

/* ===== Shared sections ===== */
.top3-section {
  padding-block: clamp(90px, 10vw, 142px);
}

.top3-section-head {
  max-width: 780px;
  margin: 0 auto clamp(50px, 6vw, 76px);
  text-align: center;
}

.top3-section-head h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.45rem, 5.4vw, 4.7rem);
  line-height: 1.22;
  letter-spacing: -0.052em;
}

.top3-section-head p {
  color: var(--top3-muted);
  font-family: var(--body-font);
  line-height: 1.9;
}

/* ===== Core feature cards ===== */
.top3-core {
  background: var(--top3-bg);
}

.top3-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.top3-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 30px 28px;
  border: 1px solid var(--top3-border);
  border-radius: 28px;
  background: var(--top3-surface);
}

.top3-feature-copy {
  flex: 1 1 auto;
  margin-bottom: 34px;
}

.top3-feature-copy h3,
.top3-more-copy h3 {
  margin: 11px 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.35;
}

.top3-feature-copy p,
.top3-more-copy p,
.top3-language-card p {
  color: var(--top3-muted);
  font-family: var(--body-font);
  font-size: 0.89rem;
  line-height: 1.82;
}

.top3-feature-copy .fine-print {
  display: block;
  margin-top: 10px;
  color: #829089;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.65;
}

.top3-device--card {
  flex: 0 0 auto;
  width: min(66%, 215px);
  margin-inline: auto;
  border-width: 6px;
  border-radius: 31px;
  box-shadow: 0 22px 48px rgba(19, 34, 30, 0.2);
}

/* ===== Ranking spotlight ===== */
.top3-ranking {
  color: #fff;
  background: var(--top3-ink);
}

.top3-ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
  min-height: 820px;
  padding-block: clamp(86px, 9vw, 126px);
}

.top3-ranking-copy h2 {
  margin: 16px 0 22px;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.top3-ranking-copy > p {
  max-width: 540px;
  color: #b9c4bf;
  font-family: var(--body-font);
  line-height: 1.92;
}

.top3-ranking .top3-text-link {
  color: #fff;
}

.top3-ranking-cta {
  margin-top: 34px;
}

.top3-ranking .btn-store {
  background: var(--top3-accent);
  box-shadow: none;
}

.top3-ranking .store-badges {
  justify-content: flex-start;
}

.top3-ranking-devices {
  position: relative;
  min-height: 640px;
  direction: ltr;
}

.top3-device--ranking-vote,
.top3-device--ranking-result {
  position: absolute;
  width: min(48%, 245px);
  border-color: #09110e;
}

.top3-device--ranking-vote {
  z-index: 2;
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.top3-device--ranking-result {
  z-index: 3;
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
}

/* ===== Collection ===== */
.top3-collection {
  background: var(--top3-bg);
}

.top3-collection-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.top3-collection-head h2 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.2;
  letter-spacing: -0.052em;
}

.top3-collection-head p {
  max-width: 570px;
  color: var(--top3-muted);
  font-family: var(--body-font);
  line-height: 1.9;
}

.top3-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 10px;
}

.top3-gallery-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 21px;
  background: #d8d3ca;
}

.top3-gallery-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.top3-gallery-card figure,
.top3-gallery-card img {
  width: 100%;
  height: 100%;
}

.top3-gallery-card img {
  object-fit: cover;
  transition: transform 0.55s ease;
}

.top3-gallery-card:hover img {
  transform: scale(1.035);
}

.top3-gallery-card figcaption {
  position: absolute;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  bottom: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  color: var(--top3-ink);
  background: rgba(251, 250, 244, 0.9);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.top3-gallery-index {
  color: var(--top3-accent);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
}

.top3-gallery-name {
  font-family: var(--serif);
  font-size: 0.89rem;
}

/* ===== Secondary feature cards ===== */
.top3-more {
  background: var(--top3-surface);
}

.top3-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.top3-more-card,
.top3-language-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--top3-border);
  border-radius: 28px;
  background: var(--top3-bg);
}

.top3-more-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
}

.top3-more-copy {
  flex: 1 1 auto;
  margin-bottom: 32px;
}

.top3-device--more {
  flex: 0 0 auto;
  width: min(64%, 210px);
  margin-inline: auto;
  border-width: 6px;
  border-radius: 31px;
  box-shadow: 0 22px 48px rgba(19, 34, 30, 0.18);
}

.top3-language-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px;
  color: #fff;
  background: var(--top3-accent);
}

.top3-language-card .top3-feature-tag,
.top3-language-card p {
  color: #fbd6d0;
}

.top3-language-card strong {
  display: block;
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.top3-language-card h3 {
  margin: 22px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.35;
}

/* ===== Final CTA ===== */
.top3-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  place-items: center;
  background: var(--top3-gold);
}

.top3-finale-orb {
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(19, 34, 30, 0.16);
  border-radius: 50%;
}

.top3-finale-orb--left {
  top: -120px;
  left: -130px;
}

.top3-finale-orb--right {
  right: -110px;
  bottom: -170px;
}

.top3-finale-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 88px;
  text-align: center;
}

.top3-finale-inner > img {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 17px;
  box-shadow: 0 18px 36px rgba(84, 66, 14, 0.2);
}

.top3-finale h2 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 1.17;
  letter-spacing: -0.06em;
}

.top3-finale h2:lang(ja),
.top3-finale h2:lang(en) {
  max-width: none;
  font-size: clamp(1.75rem, 7.8vw, 5.6rem);
  white-space: nowrap;
}

.top3-finale p {
  margin-bottom: 28px;
  color: #585035;
  font-family: var(--body-font);
}

.top3-finale .store-badges {
  justify-content: center;
}

[dir='rtl'] .top3-kicker,
[dir='rtl'] .top3-feature-tag,
[dir='rtl'] .top3-pill {
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 980px) {
  .top3-hero-grid,
  .top3-ranking-grid,
  .top3-collection-head,
  .top3-shop-grid {
    grid-template-columns: 1fr;
  }

  .top3-shop-grid {
    gap: 36px;
    min-height: 0;
  }

  .top3-shop-copy {
    max-width: 720px;
  }

  .top3-shop-visual {
    width: min(100%, 650px);
    min-height: 680px;
    margin-inline: auto;
  }

  .top3-device--shop {
    width: min(53%, 300px);
  }

  .top3-shop-search-chip {
    left: 8%;
  }

  .top3-hero-grid {
    gap: 12px;
    padding-top: 74px;
  }

  .top3-hero-copy {
    padding-bottom: 16px;
  }

  .top3-hero h1 {
    max-width: 820px;
  }

  .top3-hero-devices {
    width: min(100%, 650px);
    min-height: 660px;
    margin-inline: auto;
  }

  .top3-device--hero-main {
    left: 9%;
  }

  .top3-device--hero-side {
    right: 8%;
  }

  .top3-float-note {
    right: 4%;
  }

  .top3-feature-grid,
  .top3-more-grid {
    grid-template-columns: 1fr;
  }

  .top3-feature-card,
  .top3-more-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.52fr);
    gap: 42px;
    align-items: center;
  }

  .top3-feature-copy,
  .top3-more-copy {
    margin-bottom: 0;
  }

  .top3-device--card,
  .top3-device--more {
    width: min(100%, 220px);
  }

  .top3-ranking-grid {
    min-height: 0;
  }

  .top3-ranking-copy {
    max-width: 720px;
  }

  .top3-ranking-devices {
    width: min(100%, 650px);
    min-height: 660px;
    margin-inline: auto;
  }

  .top3-device--ranking-vote,
  .top3-device--ranking-result {
    width: min(46%, 250px);
  }

  .top3-device--ranking-vote {
    left: 8%;
  }

  .top3-device--ranking-result {
    right: 8%;
  }

  .top3-collection-head {
    gap: 24px;
  }

  .top3-language-card {
    min-height: 440px;
  }
}

@media (max-width: 680px) {
  .top3-page .container {
    padding-inline: 22px;
  }

  .top3-hero-grid {
    min-height: 0;
    padding-top: 58px;
  }

  .top3-pill {
    font-size: 0.6rem;
  }

  .top3-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.1rem);
  }

  .top3-hero-lead {
    font-size: 0.94rem;
  }

  .top3-shop-grid {
    padding-block: 78px 68px;
  }

  .top3-shop h2 {
    font-size: clamp(2.35rem, 11.2vw, 2.85rem);
  }

  .top3-shop-lead {
    font-size: 0.92rem;
  }

  .top3-shop-points {
    margin-top: 34px !important;
  }

  .top3-shop-points > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .top3-shop-visual {
    min-height: 540px;
  }

  .top3-device--shop {
    width: min(62%, 250px);
  }

  .top3-shop-search-chip {
    left: 0;
    bottom: 68px;
    min-width: 204px;
  }

  .top3-hero-cta .store-badges,
  .top3-ranking .store-badges {
    width: 100%;
  }

  .top3-hero-devices {
    min-height: 480px;
  }

  .top3-device--hero-main {
    left: 1%;
    width: 47%;
  }

  .top3-device--hero-side {
    top: 10px;
    right: 0;
    width: 43%;
  }

  .top3-float-note {
    right: 0;
    bottom: 48px;
    width: 47%;
    padding: 13px 14px;
  }

  .top3-proof-grid {
    grid-template-columns: 1fr;
  }

  .top3-proof-grid > div + div {
    border-top: 1px solid #35453f;
    border-inline-start: 0;
  }

  .top3-proof-grid > div {
    padding-block: 22px;
  }

  .top3-section {
    padding-block: 82px;
  }

  .top3-section-head {
    margin-bottom: 44px;
    text-align: start;
  }

  .top3-section-head h2,
  .top3-collection-head h2 {
    font-size: 2.55rem;
  }

  .top3-feature-card,
  .top3-more-card {
    display: flex;
    padding: 28px 24px 26px;
  }

  .top3-feature-copy,
  .top3-more-copy {
    margin-bottom: 30px;
  }

  .top3-device--card,
  .top3-device--more {
    width: min(65%, 205px);
  }

  .top3-ranking-grid {
    gap: 46px;
    padding-block: 82px;
  }

  .top3-ranking-copy h2 {
    font-size: 2.8rem;
  }

  .top3-ranking-devices {
    min-height: 430px;
  }

  .top3-device--ranking-vote,
  .top3-device--ranking-result {
    width: 45%;
  }

  .top3-device--ranking-vote {
    left: 1%;
  }

  .top3-device--ranking-result {
    right: 1%;
  }

  .top3-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .top3-gallery-card:first-child {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .top3-gallery-card:last-child {
    grid-column: 1 / -1;
  }

  .top3-language-card {
    min-height: 420px;
    padding: 36px 30px;
  }

  .top3-finale {
    min-height: 520px;
  }

  .top3-finale h2:not(:lang(ja)):not(:lang(en)) {
    font-size: 2.9rem;
  }
}

@media (max-width: 430px) {
  .top3-hero-devices {
    min-height: 440px;
  }

  .top3-float-note span {
    display: none;
  }

  .top3-ranking-devices {
    min-height: 390px;
  }

  .top3-shop-visual {
    min-height: 500px;
  }

  .top3-shop-search-chip {
    bottom: 48px;
  }

}
