/* ==========================================================================
   ルミナ Design System — 基盤レイヤー
   Claude Design「ルミナ Design System」(templates/homepage/Homepage.dc.html)
   のトークンをそのまま移植したもの。色・書体・余白・影・動きの定義と、
   全ページ共通のリセット／基本部品だけを持つ。
   ページ固有のレイアウトは home.css 側に置く。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 色（暖かい紙 × 冷たい墨 × 光としてのゴールド）
   -------------------------------------------------------------------------- */
:root {
  /* 地：暖かいオフホワイト */
  --cream-50: #FDFBF7;
  --cream-100: #F8F3EA;
  --cream-200: #F0E9DB;
  --cream-300: #E4DACA;
  --paper-white: #FFFFFF;

  /* 墨：黒ではなく冷たい濃紺 */
  --ink-900: #141D29;
  --ink-800: #1C2836;
  --ink-700: #2B3A4C;
  --ink-500: #55637A;
  --ink-400: #7A869A;
  --ink-300: #A3ADBC;
  --ink-200: #C9D0DA;

  /* 金：ルミナ＝光。1画面に「金の塗り」は1つまで */
  --gold-700: #8C6522;
  --gold-600: #A87A2E;
  --gold-500: #C4972F;
  --gold-400: #DCB55C;
  --gold-300: #E9CE8F;
  --gold-200: #F3E3BF;
  --gold-100: #FAF1DC;

  /* 意味色（彩度を落とした編集寄りの色。原色は使わない） */
  --sage-600: #3F7D5E;
  --sage-100: #E6EFE9;
  --clay-600: #B05F33;
  --clay-100: #F6E9E0;
  --rust-600: #A8443A;
  --rust-100: #F6E5E3;
  --slate-600: #3D6480;
  --slate-100: #E6EDF3;

  /* 役割別の別名 */
  --bg-page: var(--cream-50);
  --bg-page-alt: var(--cream-100);
  --bg-inverse: var(--ink-900);
  --surface-card: var(--paper-white);
  --surface-card-alt: var(--cream-100);
  --surface-sunken: var(--cream-200);
  --surface-gold: var(--gold-100);

  --text-heading: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);
  --text-inverse: var(--cream-50);
  --text-accent: var(--gold-600);
  --text-link: var(--gold-700);
  --text-link-hover: var(--ink-900);

  --border-hairline: #E8E0D2;
  --border-default: var(--cream-300);
  --border-strong: var(--ink-200);
  --border-accent: var(--gold-400);
  --border-inverse: rgba(250, 241, 220, 0.18);

  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --accent-soft: var(--gold-100);
  --accent-rule: linear-gradient(90deg, var(--gold-500), var(--gold-300) 60%, transparent);

  --action-fill: var(--ink-900);
  --action-fill-hover: var(--ink-700);
  --action-fill-text: var(--cream-50);

  --focus-ring: 0 0 0 3px rgba(196, 151, 47, 0.32);

  /* 反転面（濃紺の上）で使う文字色。透過白ではなく生成りを透かす */
  --on-ink-strong: var(--cream-50);
  --on-ink: rgba(250, 241, 220, 0.82);
  --on-ink-muted: rgba(250, 241, 220, 0.6);
  --on-ink-faint: rgba(250, 241, 220, 0.45);
  --on-ink-gold: var(--gold-300);
}

/* --------------------------------------------------------------------------
   2. 書体
   見出し＝明朝（Shippori Mincho B1）、UI・本文＝ゴシック（Zen Kaku Gothic New）、
   番号・日付＝等幅。Webフォントは index.html 側で読み込む（display=swap）。
   -------------------------------------------------------------------------- */
:root {
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "HiraMinProN-W3",
    "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* 文字サイズ（固定値はDS準拠。画面幅で伸びるものは clamp で持つ） */
  --text-h4: 18px;
  --text-body-lg: 17px;
  --text-size: 15px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-micro: 11px;

  --fs-display: clamp(34px, 5vw, 58px);
  --fs-h2: clamp(26px, 3.4vw, 40px);
  --fs-h3: clamp(21px, 2.2vw, 27px);

  --leading-display: 1.44;
  --leading-heading: 1.5;
  --leading-body: 1.95;
  --leading-tight: 1.4;

  /* 日本語は詰めない。行間と字間の空気が「清潔さ」をつくる */
  --tracking-display: 0.055em;
  --tracking-heading: 0.03em;
  --tracking-body: 0.04em;
  --tracking-caps: 0.2em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --measure-prose: 34em;
}

/* --------------------------------------------------------------------------
   3. 余白・寸法・角丸
   -------------------------------------------------------------------------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container-max: 1200px;
  --gutter: clamp(18px, 4vw, 56px);
  --section-pad: clamp(56px, 7vw, 110px);
  --card-pad: clamp(22px, 2.4vw, 30px);
  --header-h: 70px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

/* --------------------------------------------------------------------------
   4. 影（暖色を帯びた、ほとんど見えない深度）
   -------------------------------------------------------------------------- */
:root {
  --shadow-1: 0 1px 2px rgba(20, 29, 41, 0.04);
  --shadow-2: 0 1px 2px rgba(20, 29, 41, 0.04), 0 12px 28px -22px rgba(20, 29, 41, 0.2);
  --shadow-3: 0 1px 2px rgba(20, 29, 41, 0.045), 0 16px 38px -24px rgba(20, 29, 41, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-3-hover: 0 2px 4px rgba(20, 29, 41, 0.05), 0 26px 56px -26px rgba(168, 122, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-gold: 0 14px 40px -18px rgba(196, 151, 47, 0.75);
  --shadow-gold-hover: 0 20px 50px -18px rgba(196, 151, 47, 0.85);
  --shadow-ink-card: 0 34px 76px -44px rgba(20, 29, 41, 0.65), inset 0 1px 0 rgba(250, 241, 220, 0.08);
  --shadow-soft: 0 1px 2px rgba(20, 29, 41, 0.03), 0 14px 32px -26px rgba(20, 29, 41, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  /* 面のグラデーション。多色グラデーションは禁止、これだけ使う */
  --wash-ink-card: linear-gradient(165deg, #1A2432, #111925);
  --wash-gold-card: linear-gradient(180deg, #FCF5E5, #F8EDD6);
  --wash-cream-card: linear-gradient(180deg, #FEFCF8, #F8F2E7);
}

/* --------------------------------------------------------------------------
   5. 動き（減速のみ。跳ねない・伸び縮みしない）
   -------------------------------------------------------------------------- */
:root {
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 340ms;
  --ease-standard: cubic-bezier(0.2, 0.6, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-ui: color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
  --transition-lift: transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}

/* --------------------------------------------------------------------------
   6. 旧トークンの互換エイリアス
   お試しボット（css/chat.css）は旧トークン名で書かれている。
   名前を新パレットへ写すことで、作り直さずに新しい世界観へ揃える。
   -------------------------------------------------------------------------- */
:root {
  --ink: var(--ink-900);
  --ink-deep: var(--ink-900);
  --paper: var(--cream-50);
  --paper-tint: var(--cream-100);
  --brass: var(--gold-600);
  --brass-light: var(--gold-300);
  --ink-72: var(--ink-700);
  --ink-06: rgba(20, 29, 41, 0.05);
  --paper-72: rgba(250, 241, 220, 0.78);
  --rule: var(--border-hairline);
  --rule-faint: var(--border-hairline);
  --rule-control: var(--cream-300);
  --rule-control-invert: rgba(250, 241, 220, 0.42);
  --font-sans: var(--font-body);
  --font-serif: var(--font-display);
  --fs-sm: var(--text-body-sm);
  --fs-xs: var(--text-caption);
  --sp-2: var(--space-2);
  --sp-3: var(--space-3);
  --sp-4: var(--space-4);
  --ease: var(--ease-standard);
  --dur: var(--dur-base);
  --radius: var(--radius-md);
}

/* ==========================================================================
   リセット・基本
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  color: var(--text-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: 1.7;
}

/* 日本語の折り返し。行末に1〜2文字だけ残るのを避ける */
h1, h2, h3, h4, p, li, blockquote {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
/* 見出しは文節で折る（「困り／事」のような分断を防ぐ）。非対応環境は normal に戻る */
h1, h2, h3, h4 { text-wrap: balance; word-break: auto-phrase; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}
main:focus-visible { outline: none; box-shadow: none; }
::selection { background: var(--gold-200); color: var(--ink-900); }

button, input, select, textarea {
  font-family: inherit;
  letter-spacing: inherit;
}

/* 見出しがヘッダーに隠れないようにする */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--ink-900);
  color: var(--cream-50);
  font-size: var(--text-body-sm);
  border-radius: var(--radius-md);
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

/* ==========================================================================
   レイアウト部品
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 rgba(220, 181, 92, 0.22);
}

/* 面の転調。紙 → 少し沈んだ紙 の2段だけで章の切れ目をつくる */
.section--paper { background: linear-gradient(180deg, #FDFBF7 0%, #F8F3EA 100%); }
.section--cream { background: linear-gradient(180deg, #F8F3EA 0%, #F2EADC 100%); }
.section--warm { background: linear-gradient(180deg, #FBF7F0 0%, #F6F0E4 100%); }
.section--case { background: linear-gradient(180deg, #F8F3EA 0%, #F1E9DA 100%); }
.section--media { background: linear-gradient(180deg, #FDFBF7 0%, #F7F1E6 100%); }

/* 反転面（濃紺）。ゴールドの光をここで焚く */
.section--invert {
  background: var(--ink-900);
  overflow: hidden;
  border-bottom: 0;
  box-shadow: none;
}
.section--invert h2,
.section--invert h3 { color: var(--on-ink-strong); }

.section__inner { position: relative; }

/* --- セクションの入り口（連番＋ラベル＋見出し） ---------------------------- */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}
.eyebrow__num {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  color: var(--text-accent);
}
.eyebrow__label {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
}
.section--invert .eyebrow__num,
.section--invert .eyebrow__label { color: var(--on-ink-gold); }

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.45;
  margin-top: 18px;
  max-width: 26em;
}
.section-lede {
  font-size: var(--text-size);
  line-height: 2.05;
  color: var(--text-body);
  margin-top: 20px;
  max-width: var(--measure-prose);
}
.section--invert .section-lede { color: var(--on-ink); }

.rule {
  height: 1px;
  border: 0;
  width: 90px;
  margin: 0;
  background: var(--accent-rule);
}

/* ==========================================================================
   ボタン・リンク
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition-ui);
}
.btn:active { transform: scale(0.985); }

/* 墨の塗り：ページ内の主導線 */
.btn--primary {
  background: var(--action-fill);
  color: var(--action-fill-text);
  box-shadow: var(--shadow-3);
}
.btn--primary:hover {
  background: var(--action-fill-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-3-hover);
}

/* 金の塗り：1画面に1つだけ。ヒーローと最終CTAに予約する */
.btn--gold {
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: var(--text-size);
  padding: 16px 30px;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

/* 線のみ。紙の上 */
.btn--ghost {
  background: var(--paper-white);
  color: var(--ink-900);
  border-color: var(--cream-300);
}
.btn--ghost:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

/* 線のみ。濃紺の上 */
.section--invert .btn--ghost,
.btn--ghost-invert {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(250, 241, 220, 0.28);
  box-shadow: none;
}
.section--invert .btn--ghost:hover,
.btn--ghost-invert:hover {
  border-color: rgba(233, 206, 143, 0.7);
  background: rgba(250, 241, 220, 0.06);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn__arrow {
  width: 13px;
  height: 13px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-standard);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 479px) {
  .btn-row { display: grid; }
  .btn-row .btn { width: 100%; }
}

/* テキストリンク。下線はゴールドの細線。
   インライン要素のまま扱い、下線は text-decoration で引く。
   border-bottom だと縦パディング（タップ領域）の分だけ線が本文から離れてしまう。 */
.link {
  display: inline;
  color: var(--text-link);
  font-size: var(--text-caption);
  position: relative;
  z-index: 1;
  padding-block: 14px;
  margin-block: -14px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  text-decoration-color: var(--gold-300);
  transition: color var(--dur-fast) var(--ease-standard),
    text-decoration-color var(--dur-fast) var(--ease-standard);
}
.link:hover { color: var(--ink-900); text-decoration-color: var(--gold-500); }
.link__ext {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 6px;
  vertical-align: -0.02em;
  opacity: 0.8;
}
.section--invert .link,
.card--ink .link,
.link--invert {
  color: var(--on-ink-gold);
  text-decoration-color: rgba(220, 181, 92, 0.5);
}
.section--invert .link:hover,
.card--ink .link:hover,
.link--invert:hover { color: var(--cream-50); text-decoration-color: var(--gold-300); }

.note {
  font-size: var(--text-caption);
  line-height: 1.95;
  color: var(--text-muted);
}
.section--invert .note { color: var(--on-ink-faint); }

/* ==========================================================================
   カード
   紙 = 白＋ヘアライン＋16px角丸。濃紺 = 光を1つ焚く。
   ========================================================================== */
.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-3);
}
.card--hover { transition: var(--transition-lift); }
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3-hover);
  border-color: var(--gold-300);
}
/* 上端のゴールドの帯（章の始まりの印） */
.card--accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 55%, transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card--gold {
  background: var(--wash-gold-card);
  border-color: var(--gold-200);
  box-shadow: 0 1px 2px rgba(168, 122, 46, 0.06),
    0 18px 40px -28px rgba(168, 122, 46, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.card--cream {
  background: var(--wash-cream-card);
  border-color: var(--cream-300);
  box-shadow: var(--shadow-soft);
}
.card--ink {
  position: relative;
  overflow: hidden;
  background: var(--wash-ink-card);
  border-color: rgba(220, 181, 92, 0.22);
  box-shadow: var(--shadow-ink-card);
  color: var(--on-ink);
}
.card--ink h3,
.card--ink h4 { color: var(--on-ink-strong); }

.card__eyebrow {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
}
.card--ink .card__eyebrow { color: var(--on-ink-gold); }
.card__body { position: relative; }

/* 箇条書き：行頭はゴールドの点 */
.dots { display: flex; flex-direction: column; gap: var(--space-3); }
.dots li {
  display: flex;
  gap: 12px;
  font-size: var(--text-body-sm);
  line-height: 1.95;
  color: var(--text-body);
}
.dots li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold-500);
}
.card--ink .dots li,
.section--invert .dots li { color: var(--on-ink); font-size: var(--text-caption); line-height: 2; }
.card--ink .dots li::before,
.section--invert .dots li::before { background: var(--gold-400); }

/* ==========================================================================
   動き
   フェードと1〜2pxの移動だけ。スケールインもスライドもしない。
   ========================================================================== */
@keyframes lumina-breathe {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.05); }
}
@keyframes lumina-breathe-still {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
@keyframes lumina-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lumina-card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lumina-shimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes lumina-dot {
  0%, 100% { box-shadow: 0 0 0 5px var(--gold-100), 0 0 0 0 rgba(196, 151, 47, 0); }
  50% { box-shadow: 0 0 0 5px var(--gold-100), 0 0 12px 2px rgba(196, 151, 47, 0.35); }
}
@keyframes lumina-glow {
  0%, 100% {
    box-shadow: 0 0 10px 2px rgba(220, 181, 92, 0.28), 0 0 0 0 rgba(220, 181, 92, 0.22);
    background: var(--gold-400);
  }
  50% {
    box-shadow: 0 0 26px 7px rgba(233, 206, 143, 0.6), 0 0 0 8px rgba(220, 181, 92, 0.1);
    background: #F1DCA6;
  }
}

/* 環境光。濃紺の面に置く、輪郭のないゴールドの光源 */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 151, 47, 0.2), rgba(196, 151, 47, 0) 64%);
  animation: lumina-breathe-still 13s var(--ease-standard) infinite;
}

/* 明滅するヘアライン */
.shimmer { animation: lumina-shimmer 6.5s var(--ease-standard) infinite; }

/* 初期表示のフェードアップ（ヒーロー用。JS不要） */
.fade-in { animation: lumina-fade-up 900ms var(--ease-out) both; }

/* スクロールで現れる群。子要素を順に出す */
.reveal > * { opacity: 0; }
.reveal.is-in > * { animation: lumina-fade-up 900ms var(--ease-out) both; }
.reveal.is-in > *:nth-child(1) { animation-delay: 0ms; }
.reveal.is-in > *:nth-child(2) { animation-delay: 100ms; }
.reveal.is-in > *:nth-child(3) { animation-delay: 200ms; }
.reveal.is-in > *:nth-child(4) { animation-delay: 300ms; }
.reveal.is-in > *:nth-child(5) { animation-delay: 400ms; }
.reveal.is-in > *:nth-child(6) { animation-delay: 480ms; }
.reveal.is-in > *:nth-child(n + 7) { animation-delay: 560ms; }
/* JSが動かない環境では最初から見えている状態にする */
.no-js .reveal > * { opacity: 1; }

/* 横並びのカード列は、左端から1枚ずつ出す（画面が狭いときは上から順になる）。
   入れ子の親が先に出てしまうと二重の淡入で濁るので、列そのものは即座に置く。 */
.reveal.is-in > .reveal--row { animation: none; opacity: 1; }
.reveal--row.is-in > *:nth-child(1) { animation-delay: 0ms; }
.reveal--row.is-in > *:nth-child(2) { animation-delay: 140ms; }
.reveal--row.is-in > *:nth-child(3) { animation-delay: 280ms; }
.reveal--row.is-in > *:nth-child(4) { animation-delay: 420ms; }
.reveal--row.is-in > *:nth-child(5) { animation-delay: 560ms; }
.reveal--row.is-in > *:nth-child(n + 6) { animation-delay: 700ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1 !important; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   印刷
   ========================================================================== */
@media print {
  .site-head,
  .to-top,
  .drawer,
  .trial { display: none !important; }
  .reveal > * { opacity: 1 !important; animation: none !important; }
  body { background: #fff; }
}
