/* モグの紹介ページ。
   色・角丸・余白は DESIGN.md のトークン。書体は「丸ゴシック」— DESIGN.md の SF Pro Rounded に対応する
   Web の書体として Zen Maru Gothic を使う(Hiragino Sans は角ゴシックで、指定と食い違っていた)。
   骨格は 1 枚もの、トーンは静か。派手さではなく「文字の大きさ」「余白」「昼と夜の落差」で見せる。 */
:root {
  color-scheme: light dark;
  --ink: #3B3A3E;
  --ink-soft: #67646F;
  --surface: #FBF7EE;
  --accent: #4F5D8C;
  --blush: #F2A9A0;
  --bg: #EFEAF7;
  --night-bg: #232331;
  --night-ink: #D9D5E3;
  --night-ink-soft: #A8A4B8;
  --night-accent: #9AA6D8;
  --radius: 24px;
  --line: rgba(79, 93, 140, .14);
  --star: rgba(79, 93, 140, .3);

  /* 重なりの尺度。任意の値を足さない */
  --z-sky: 0;
  --z-body: 1;
  --z-float: 5;
  --z-bar: 20;

  /* モーション。DESIGN.md の motion トークンをそのまま Web へ(Spring は使わない) */
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-gentle: cubic-bezier(.33, 0, .15, 1);
  --ease-breath: cubic-bezier(.45, 0, .55, 1);
  --ease-tap: cubic-bezier(.25, .1, .25, 1);
  --dur-tap: .15s;
  --dur-standard: .35s;
  --dur-gentle: .7s;
  --dur-fade: .8s;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #D9D5E3;
    --ink-soft: #A8A4B8;
    --surface: #2E2E3E;
    --accent: #9AA6D8;
    --bg: #232331;
    --line: rgba(154, 166, 216, .18);
    --star: rgba(154, 166, 216, .38);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* hidden にすると body がスクロールコンテナになり view() が壊れる */
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(72px, 9vw, 112px) 0; }
a { color: inherit; }

/* 夜空の星。昼はほとんど見えず、夜の段でだけはっきりする(意味のある差) */
.sky { position: fixed; inset: 0; z-index: var(--z-sky); pointer-events: none; overflow: hidden; }
/* 見えていないあいだは回さない。JS が付けるクラスで止める —— 効かなくても
   「今までどおり回り続ける」だけなので、入場の演出とは違って失敗しても壊れない */
.paused, .paused .mogu { animation-play-state: paused !important; }
.sky i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--star);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(10vh); opacity: 0; }
  12%, 88% { opacity: 1; }
  to { transform: translateY(-110vh); opacity: 0; }
}
/* 空全体の明るさもスクロールで変える。地の色は動かせない
   (8% 夜に寄せるだけで本文が 4.22:1 になり AA を割る)ので、夜は星が語る */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .sky { animation: sky-deepen linear both; animation-timeline: scroll(root block); }
  }
}
/* 山を「点」ではなく「区間」にする。夜の段は 56〜64% にいるので、
   そこを通り抜けきるまで空を深いままにしておく */
@keyframes sky-deepen {
  0%   { opacity: .25; }
  44%  { opacity: 1; }
  66%  { opacity: 1; }
  100% { opacity: .35; }
}

.bar-wrap, main, footer { position: relative; z-index: var(--z-body); }

/* ── 両脇の余白。モグのことばを縦書きで、ごく淡く流す ──
   Clucky が時計の数字を回している位置。数字は禁則なので、このプロダクトの中身である
   「ことば」を置く。読ませるものではなく、気配として置くので極端に淡くする。
   本文の幅(680px)+ 余裕が取れる画面でだけ出す。 */
.margins {
  position: fixed; inset: 0; z-index: var(--z-sky);
  pointer-events: none;
  /* hidden にすると .margins 自身がスクロールコンテナになり、
     中の scroll() が「決して動かない箱」を指して進捗 0 で固まる(body と同じ罠) */
  overflow: clip;
  display: none;
}
.margin-column {
  position: absolute; top: 0;
  writing-mode: vertical-rl; text-orientation: upright;
  display: flex; gap: 3.5em;
  font-size: clamp(2.6rem, 3.4vw, 4.4rem);
  font-weight: 900; letter-spacing: .12em; line-height: 1;
  color: var(--ink);
  opacity: .055;
  white-space: nowrap;
}
.margin-column.left { left: 3.5vw; }

/* ── 右の余白の月 ──
   ページを下るほど満ち、夜の段(全体の 53% 付近)でいちばん満ちて、また欠ける。
   影の円を横に動かすだけなので、動くのは transform だけ。 */
.moon {
  position: absolute; top: 0; right: 3vw;
  width: clamp(230px, 24vw, 460px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--surface);
  opacity: .62;
}
/* 影。地と同じ色で月を覆い、動かすことで満ち欠けを作る */
.moon i {
  position: absolute; inset: -1px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-12%);
}

@media (min-width: 1180px) {
  .margins { display: block; }
}

/* スクロールに連れて、ゆっくりすれ違う。動かすのは transform だけ */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .margin-column {
      animation: margin-drift linear both;
      /* scroll() だと祖先の overflow 次第で別の箱を掴む。文書スクロールを名指しする */
      animation-timeline: scroll(root block);
    }
    .margin-column.left { animation-name: margin-drift-up; }
    .moon { animation: moon-rise linear both; animation-timeline: scroll(root block); }
    .moon i { animation: moon-phase linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes margin-drift-up {
  0%   { transform: translateY(10%) scale(.86); opacity: .5; }
  53%  { transform: translateY(-30%) scale(1.06); opacity: 1; }
  100% { transform: translateY(-72%) scale(.9); opacity: .55; }
}
@keyframes moon-phase {
  0%   { transform: translateX(-4%); }   /* ほとんど新月 */
  44%  { transform: translateX(-100%); } /* 夜の段に入る手前で満月 */
  66%  { transform: translateX(-100%); } /* 夜を抜けきるまで満ちたまま */
  100% { transform: translateX(-8%); }   /* また新月へ */
}
/* 月そのものも昇って沈む。形の変化だけより、位置が動くほうがはっきり伝わる */
@keyframes moon-rise {
  0%   { transform: translateY(96vh) scale(.82); }  /* 地平線の下から */
  44%  { transform: translateY(10vh) scale(1); }    /* 夜の段の手前でいちばん高い */
  66%  { transform: translateY(4vh) scale(1.02); }  /* 夜を抜けても、まだそこにいる */
  100% { transform: translateY(84vh) scale(.86); }  /* また沈む */
}
/* スクロール駆動が使えない環境では、動かさず静かに置いておく */
@supports not (animation-timeline: scroll()) {
  .margin-column.left { transform: translateY(-16%); }
  .moon { transform: translateY(34vh); }
  .moon i { transform: translateX(-62%); }
}

/* キーボードで来た人が、ヘッダーを飛ばして本文へ行けるように */
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 30;
  background: var(--accent); color: #FDFBF6;
  padding: 12px 18px; border-radius: 0 0 14px 14px; text-decoration: none;
  font-size: .9rem; font-weight: 700;
}
.skip:focus-visible { top: 0; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ヘッダー */
.bar-wrap {
  position: sticky; top: 0; z-index: var(--z-bar);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .bar-wrap { background: rgba(239, 234, 247, .85); }
}
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 680px; margin: 0 auto; padding: 8px 24px;
}
.brand {
  display: flex; align-items: center; gap: 9px; min-height: 48px;
  font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.bar-count { color: var(--ink-soft); font-size: .8rem; }
.bar .cta {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 22px; font-size: .9rem; border-radius: 999px;
}

/* ボタン */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; border: 0; border-radius: 18px;
  background: var(--accent); color: #FDFBF6;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
  padding: 14px 34px; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-standard) var(--ease-tap), background var(--dur-tap) linear;
}
/* 押し込みは DESIGN.md の tap(沈み込み)。数値も体感も、浮くより沈むほうが手応えが出る */
.cta:active { transform: scale(.97); }
.cta.quiet {
  background: transparent; color: var(--ink-soft);
  font-weight: 500; font-size: .92rem; min-height: 48px; padding: 8px 16px;
  text-decoration: underline; text-underline-offset: 4px;
}
/* 診断への導線は、ページで一番押されてほしいので一段大きい */
.cta.big { min-height: 62px; font-size: 1.08rem; padding: 16px 38px; }
/* 矢印は「この先がある」の合図。絵文字ではなく組版の記号を使う */
.cta .arw {
  margin-left: 10px; font-weight: 500;
  transition: transform var(--dur-standard) var(--ease-standard);
}
/* ボタンの下に、押す前に知りたいことを置く(所要時間・無料・登録不要) */
.cta-stack { display: grid; gap: 10px; justify-items: center; }
.cta-meta { font-size: .84rem; color: var(--ink-soft); margin: 0; }

/* ── ヒーロー ───────────────────────────── */
.hero { text-align: center; padding: clamp(48px, 8vw, 88px) 0 clamp(72px, 11vw, 128px); }
.hero-figure { position: relative; display: grid; place-items: center; margin-bottom: 24px; }
/* 光だまり — DESIGN.md がキャラ背後にだけ認めている唯一のグラデーション */
.hero-figure::before {
  content: ''; position: absolute; width: min(560px, 92vw); aspect-ratio: 1;
  background: radial-gradient(circle, var(--surface) 0%, transparent 66%);
  opacity: .8;
}
/* 見た目は絵のまま、中身はボタン */
.mogu-button {
  position: relative; display: block; padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: 50%;
  transition: transform 90ms var(--ease-tap);
}
.mogu-button:active { transform: scale(.94); }
/* 四角い枠は絵に合わないので、輪郭ではなく光で在り処を示す */
.mogu-button:focus-visible { outline: none; }
.mogu-button:focus-visible .mogu { filter: drop-shadow(0 0 6px var(--accent)); }
.hero .mogu {
  position: relative; width: clamp(180px, 34vw, 260px); height: auto; display: block;
  animation: breathe 5.5s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.028); }
}
h1 {
  font-size: clamp(1.95rem, 5.2vw, 3.05rem);
  font-weight: 900; line-height: 1.42; letter-spacing: -.03em;
  margin: 0 0 20px;
}
.hero .lead {
  color: var(--ink-soft); font-size: clamp(.96rem, 1.9vw, 1.08rem);
  margin: 0 auto 30px; max-width: 34em; line-height: 1.95;
  /* 「iPhone ア/プリ」のように語の途中で折らない */
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}
.hero .sub { display: block; margin-top: 14px; }

/* 見出し。器が細いので、導入は中央に置いて画面の真ん中に軸を通す */
.intro { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  color: var(--accent); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; margin: 0 0 14px;
}
h2 {
  font-size: clamp(1.65rem, 4.4vw, 2.6rem);
  font-weight: 900; line-height: 1.42; letter-spacing: -.02em;
  margin: 0 0 14px;
}
.section-note { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.section-note.tight { margin-bottom: 0; }
.wrap.centered { text-align: center; }

/* ── 3 ステップ:カードをやめて、大きな数字の縦の流れに ── */
.steps { display: grid; gap: clamp(36px, 5vw, 56px); }
.step { display: grid; grid-template-columns: clamp(56px, 9vw, 84px) 1fr; gap: clamp(18px, 3vw, 32px); }
.step-no {
  font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 900; line-height: 1;
  color: var(--accent); opacity: .28; letter-spacing: -.04em;
}
.step h3 { margin: 0 0 6px; font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 900; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.95; }

/* ── できること:塗りつぶしカードをやめて、線で仕切る ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.tile { padding: clamp(24px, 3.4vw, 34px) 0; border-bottom: 1px solid var(--line); }
.tile:nth-child(odd) { padding-right: clamp(16px, 3vw, 32px); border-right: 1px solid var(--line); }
.tile:nth-child(even) { padding-left: clamp(16px, 3vw, 32px); }
.tile h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 900; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .89rem; line-height: 1.85; }

/* ── モグのこと:ことばを主役の大きさに(語彙がこのプロダクトの中身) ── */
.voices { display: grid; gap: clamp(40px, 6vw, 68px); }
.voice { display: grid; grid-template-columns: clamp(88px, 15vw, 128px) 1fr; gap: clamp(20px, 3.4vw, 36px); align-items: start; }
.voice img { width: 100%; height: auto; }
.voice h3 {
  margin: 0 0 10px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; color: var(--accent);
}
.voice .line {
  margin: 0 0 12px; font-size: clamp(1.2rem, 3.1vw, 1.7rem);
  font-weight: 900; line-height: 1.62; letter-spacing: -.015em;
}
.voice p:last-child { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.9; }

/* ── やらないこと:カードをやめて、大きな否定の連なりに ── */
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.nots li { padding: clamp(22px, 3.2vw, 30px) 0; border-bottom: 1px solid var(--line); }
.nots strong {
  display: block; font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  font-weight: 900; line-height: 1.6; letter-spacing: -.015em; margin-bottom: 4px;
}
.nots span { color: var(--ink-soft); font-size: .91rem; line-height: 1.85; }

/* ── 夜の段:ここだけ全幅で夜モードの配色に落とす(アプリが 23 時にやることと同じ) ── */
.night {
  background: var(--night-bg); color: var(--night-ink);
  text-align: center; position: relative; overflow: hidden;
}
.night .eyebrow { color: var(--night-accent); }
.night h2 { color: var(--night-ink); font-size: clamp(1.8rem, 5.2vw, 3.1rem); }
.night p { color: var(--night-ink-soft); margin: 0 auto; max-width: 30em; font-size: 1rem; line-height: 2; }
.night img { width: clamp(120px, 22vw, 172px); height: auto; margin-bottom: 28px; }
/* 夜は星がはっきり見える */
.night-sky { position: absolute; inset: 0; pointer-events: none; }
.night-sky i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(217, 213, 227, .45);
  opacity: var(--o, .5);
}
.night .wrap { position: relative; z-index: var(--z-body); }
/* 夜の段は全幅で暗くなる。脇のことばは地に埋もれるので、そのままで良い */

/* ── 締め ── */
.closing { text-align: center; }
.closing img { width: clamp(120px, 22vw, 168px); height: auto; margin-bottom: 20px; }
.closing h2 { margin-bottom: 16px; }
.closing-lead { color: var(--ink-soft); margin: 0 0 clamp(26px, 4vw, 38px); line-height: 1.95; }

/* ── 6 つのかたち ──
   押した先に何があるかを、押す前に見せる。診断は「自分はどれか」が押す理由になる。
   休みの姿を .82 にしておき、JS は「灯す」方向にだけ働く。
   JS が落ちても 6 つとも読めるので、消える方向には倒れない(v35 の落とし穴) */
.types {
  list-style: none; padding: 0;
  margin: 0 auto clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.4vw, 14px);
}
/* 絵が小さいと 6 つとも「黒いかたまり」に見えて選べない。
   見分けの手がかりは持ち物(月・虫めがね・スマホ)なので、絵を大きく取る */
.types li {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  opacity: .82;
  transition: opacity var(--dur-gentle) var(--ease-gentle),
              transform var(--dur-gentle) var(--ease-gentle);
}
.types img { width: clamp(72px, 17vw, 128px); height: auto; }
.types span {
  font-size: clamp(.7rem, 1.6vw, .8rem); font-weight: 700;
  color: var(--ink); letter-spacing: .01em; line-height: 1.45;
}
.types li.lit { opacity: 1; transform: translateY(-4px) scale(1.03); }

/* ウェイトリスト */
.waitlist { margin: clamp(40px, 6vw, 60px) auto 0; max-width: 440px; text-align: left; }
.waitlist-label { display: block; font-size: .92rem; margin-bottom: 10px; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--ink);
  min-height: 56px;
}
.waitlist-input::placeholder { color: var(--ink-soft); opacity: .75; }
.waitlist-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist-button { padding: 14px 22px; white-space: nowrap; }
.waitlist-note { color: var(--ink-soft); font-size: .8rem; margin: 10px 0 0; line-height: 1.8; }
.waitlist.done .waitlist-row { display: none; }
.waitlist.done .waitlist-label { color: var(--accent); font-weight: 700; }

footer {
  text-align: center; color: var(--ink-soft); font-size: .84rem;
  padding: 56px 24px 64px; border-top: 1px solid var(--line);
}
footer a { color: var(--ink-soft); }
footer .tagline { margin: 0 0 12px; font-weight: 700; color: var(--ink); }
footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
footer nav a { min-height: 48px; display: inline-flex; align-items: center; }

/* ── 入場。一斉に出さず、順に送り出す(「表」ではなく「語り」に見せる) ──
   CSS のスクロール駆動で動かす。JS のイベント(IntersectionObserver / scroll)には**頼らない** ——
   環境によっては一度も発火せず、中身が opacity:0 のまま永久に消えることを実測で踏んだ。
   未対応のブラウザでは、この @supports ごと無視されるので「最初から全部見えている」に落ちる。 */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* 動かすのは**小さい要素だけ**。
       画面より高い箱(セクションや .wrap)に付けると entry フェーズが終わらず、
       opacity:0 のまま固まって中身ごと消える(実測で踏んだ)。 */
    .intro,
    .steps > *, .tiles > *, .voices > *, .nots > *,
    .hero-note,
    .closing > .wrap > *,
    .night > .wrap > * {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    /* 並ぶものは、後ろほど少し遅れて出る(一斉に出ると「表」に見える) */
    .steps > *:nth-child(2), .tiles > *:nth-child(2), .voices > *:nth-child(2), .nots > *:nth-child(2) { animation-range: entry 16% entry 96%; }
    .steps > *:nth-child(3), .tiles > *:nth-child(3), .voices > *:nth-child(3), .nots > *:nth-child(3) { animation-range: entry 22% cover 34%; }
    .tiles > *:nth-child(4), .nots > *:nth-child(4) { animation-range: entry 28% cover 38%; }
    .tiles > *:nth-child(5), .nots > *:nth-child(5) { animation-range: entry 34% cover 42%; }
    .tiles > *:nth-child(6) { animation-range: entry 40% cover 46%; }

    /* ことばは「話しはじめる」ように左から現れる */
    .voice .line { animation: speak linear both; animation-timeline: view(); animation-range: entry 25% entry 95%; }
    @keyframes speak { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

    /* 夜の星は、暗闇に目が慣れるように少しずつ灯る */
    .night-sky i { animation: star-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes star-in { from { opacity: 0; } to { opacity: var(--o, .5); } }
  }
}
/* タイルの hover は入場アニメと衝突しないよう、背景だけを別に受け持たせる */
.tile { transition: background var(--dur-standard) var(--ease-standard); }

/* ── ヒーローの段階入場(読み込み時)。光だまり → モグ → 見出し → 本文 → CTA ── */
.js .hero [data-enter] { opacity: 0; transform: translateY(22px); }
body.ready .hero [data-enter] {
  opacity: 1; transform: none;
  transition: opacity var(--dur-fade) var(--ease-gentle), transform var(--dur-fade) var(--ease-gentle);
}
.js .hero-figure::before { opacity: 0; transform: scale(.86); }
body.ready .hero-figure::before {
  opacity: .8; transform: none;
  transition: opacity 1.2s var(--ease-gentle), transform 1.4s var(--ease-gentle);
}
/* 見出しは行ごとに下から立ち上げる(器で刈り取る) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; }
.js .line-mask > span { transform: translateY(105%); }
body.ready .line-mask > span {
  transform: none;
  transition: transform .95s var(--ease-gentle);
}
body.ready .line-mask:nth-of-type(2) > span { transition-delay: .1s; }

/* ── さわってみて(Clucky の "hey! click me" にあたる誘い) ── */
.hint {
  display: inline-flex; align-items: center; gap: 5px;
  /* モグに寄せる(見出しとの間に立たせると、内容の一部に見えてしまう) */
  margin: -14px 0 22px; color: var(--ink-soft); font-size: .76rem;
  letter-spacing: .04em; opacity: 0;
  transition: opacity .8s var(--ease-gentle);
  pointer-events: none;
}
.hint::before { content: '↑'; font-size: .9em; opacity: .7; }
.hint.show { opacity: .85; animation: hint-sway 2.6s var(--ease-breath) infinite; }
.hint.gone { opacity: 0; animation: none; }
@keyframes hint-sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── モグの語彙リング(Clucky の回転ダイヤルにあたる signature device)──
   数字は禁則(要件書 §4)。代わりに、このプロダクトの中身である「ことば」を静かに巡らせる */
.words { position: relative; height: 2.4em; margin: 4px 0 26px; }
.words b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(1rem, 2.3vw, 1.18rem); font-weight: 700; color: var(--accent);
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease-gentle), transform .9s var(--ease-gentle);
}
.words b.on { opacity: 1; transform: none; }
.words b.off { opacity: 0; transform: translateY(-14px); }

/* ── マイクロインタラクション ── */
/* pointer: fine も要る。これが無いと、触る画面でタップ後にホバーが残る */
@media (hover: hover) and (pointer: fine) {
  /* 影は足さない。1px 浮くだけで十分伝わるし、そのほうが静か */
  .cta:hover { transform: translateY(-1px); }
  .cta:hover .arw { transform: translateX(3px); }
  .cta.quiet:hover { color: var(--ink); transform: none; }
  .tile { transition: background var(--dur-standard) var(--ease-standard); }
  .tile:hover { background: var(--surface); }
  .brand:hover img { transform: scale(1.08) rotate(-4deg); }
  .voice:hover img { transform: translateY(-4px); }
  footer nav a:hover { color: var(--ink); }
}
.brand img, .voice img { transition: transform var(--dur-gentle) var(--ease-gentle); }
/* will-change は常時つけない。動いていない間もレイヤーを確保し続けてしまう */
.waitlist-input { transition: border-color var(--dur-standard) var(--ease-standard), background var(--dur-standard) var(--ease-standard); }
.waitlist-input:hover { border-color: var(--accent); }

/* ヘッダーはスクロールしたら影を持つ(浮いていることを伝える) */
.bar-wrap { transition: box-shadow var(--dur-standard) var(--ease-standard), border-color var(--dur-standard) var(--ease-standard); }
.bar-wrap.floating { box-shadow: 0 6px 24px -18px rgba(35,35,49,.9); }

/* キーボードで辿る人に、いまどこにいるかを返す(DESIGN.md: フォーカスインジケータ必須) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px;
}
.night a:focus-visible, .night button:focus-visible { outline-color: var(--night-accent); }

/* モグが食べた星 */
.eaten {
  position: fixed; pointer-events: none; z-index: var(--z-float);
  color: var(--accent); font-size: 18px;
  transition: transform 1s var(--ease-gentle), opacity 1s var(--ease-gentle);
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(odd) { padding-right: 0; border-right: 0; }
  .tile:nth-child(even) { padding-left: 0; }
  .bar-count { display: none; }
  .voice { grid-template-columns: 72px 1fr; gap: 18px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .mogu, .hint.show { animation: none; }
  .sky { display: none; }
  .margin-column, .moon, .moon i { animation: none; }
  .moon { transform: translateY(34vh); }
  /* 動かさないが、中身は全部読める状態にする */
  .intro, .steps > *, .tiles > *, .voices > *, .nots > *,
  .closing > .wrap > *, .night > .wrap > *, .hero [data-enter] {
    opacity: 1; transform: none; transition: none; animation: none;
  }
  .line-mask > span { transform: none; transition: none; }
  .hero-figure::before { opacity: .8; transform: none; transition: none; }
  .voice .line { clip-path: none; transition: none; animation: none; }
  .night-sky i { opacity: .5; transition: none; animation: none; }
  .types li { opacity: 1; transition: none; }
  .types li.lit { transform: none; }
  .cta .arw { transition: none; }
  .words b { transition: none; }
  .cta, .tile, .brand img, .voice img, .waitlist-input, .bar-wrap { transition: none; }
  .cta:hover, .mogu-button:active, .cta:active { transform: none; }
  .mogu-button { transition: none; }
}
