/* Web 入口（野菜ズレ診断の Web 版・web-entry c90）。配色・書体は public/index.php と同じ緑系（新しい配色を起こさない）。
 * c91：読み手は年配の人が多いので視認性を優先した。本文 18px・行間 1.9、薄いグレーの文字を残さない、
 * 文字はすべて背景とのコントラスト比 4.5:1 以上（本文は 7:1 以上）、押せるものは高さ 48px 以上。
 * 緑は色相（約135°）を保ったまま濃くした（#4a8c5a は白地で 4.05:1 しかなかった）。
 * c97：Sige が OK した見本（楽しく弾む雰囲気）に合わせた。地は生成り、項目は白いカード。足した色は押せる決め手の赤と
 * 目印の黄だけで、緑は c91 の値のまま。見出しだけ明朝体（端末の書体だけを使い、外部のフォントは読み込まない）。
 * 動きはすべて CSS の animation で、prefers-reduced-motion では止める（このファイルの末尾）。 */
:root{
  --bg:#FBF6EA;
  --card:#ffffff;
  --card-line:#E4DCC6;
  --picked:#E6F1E0;
  --tile-off:#B9C7BB;
  --grey-green:#5b6b5e;
  --placeholder:#5b5b5b;
  --red:#B83A1B;
  --red-deep:#7c2610;
  --yellow:#FFD84A;
  --yellow-soft:#FFF3C4;
  --yellow-line:#8a6a00;
  --wait-track:#E9E3D2;
  --stage-bg:#EEF5E6;
  --mincho:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  --panel:#F1F7F1;
  --ink:#222222;
  --ink-soft:#3a3a3a;
  --green:#2e5738;
  --green-deep:#2a5034;
  --line:#e4ece4;
  --tile-line:#7f9a85;
  --disabled:#dfe8df;
  --error:#8f1d16;
}
*{box-sizing:border-box;}
/* display を指定した要素でも hidden 属性で消えるように（待ち時間・そろった表示を JS が hidden で出し入れする）。 */
[hidden]{display:none !important;}
/* 張り付く帯（進み具合・高さ 46px）の下に、移動先の項目やフォーカスした入力が隠れないようにする。 */
html{scroll-padding-top:60px;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;
  line-height:1.9;
  font-size:18px;
  -webkit-text-size-adjust:100%;
}
a{color:var(--green);}
:focus-visible{outline:3px solid var(--green);outline-offset:2px;}
/* 文中のリンクは行の高さを変えずに、押せる範囲だけを縦に広げる（高さ 48px 以上）。 */
.privacy-note a,.missing a{padding:12px 0;}
.wrap{max-width:680px;margin:0 auto;padding:18px 14px 64px;}
/* 問診の冒頭。バナーは幅いっぱい（PC は本文の上限 680px まで）で、縦横比を保つ。 */
header.hero{background:var(--card);border-bottom:3px solid var(--green);text-align:center;}
header.hero .banner{display:block;width:100%;max-width:680px;height:auto;margin:0 auto;}
header.hero .hero-text{max-width:680px;margin:0 auto;padding:18px 18px 22px;}
header.hero p.brand{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--green);letter-spacing:.08em;}
header.hero h1{margin:0 0 12px;font-family:var(--mincho);font-size:29px;font-weight:700;color:var(--green-deep);line-height:1.45;}
header.hero p.lead{margin:0 auto;max-width:520px;font-size:18px;text-align:left;}
/* 結果ページの上の帯（題名）。 */
header.band{background:var(--green);color:#fff;padding:10px 18px;text-align:center;}
header.band p.brand{margin:0;font-size:16px;font-weight:700;letter-spacing:.08em;}

/* 進み具合の帯。画面の上に張り付く。高さは 46px に固定（野菜の帯がこのすぐ下に張り付くため）。 */
.progress{position:sticky;top:0;z-index:5;background:var(--green);color:#fff;}
.progress-in{
  max-width:680px;height:46px;margin:0 auto;padding:0 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.progress-text{font-size:16px;font-weight:700;line-height:1.5;white-space:nowrap;}
.progress-dots{display:flex;gap:6px;flex:none;}
.progress .dot{display:block;width:14px;height:14px;border-radius:50%;border:2px solid #fff;}
.progress .dot.on{background:var(--yellow);}

/* ── 問診 ───────────────────────────────── */
/* 質問のカード（01から07）。fieldset の legend は浮かせて、カードの枠の上に乗らないようにする。 */
.field{
  margin:16px 0 0;padding:16px 14px 18px;min-width:0;
  background:var(--card);border:2px solid var(--card-line);border-radius:20px;
}
#form > .field:first-child{margin-top:0;}
.field > .label{float:left;width:100%;margin:0 0 10px;padding:0;}
.field > .label + *{clear:both;}
.q-head{display:flex;align-items:center;gap:10px;}
#f-vegetables .q-head{align-items:flex-start;}
.q-num{
  flex:none;width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--mincho);font-size:19px;font-weight:700;line-height:1;
}
.q-label{font-size:20px;font-weight:700;color:var(--green-deep);line-height:1.5;}
.q-label label{cursor:pointer;}
.hint{margin:0 0 8px;font-size:16px;color:var(--ink-soft);}
.date-selects{display:flex;gap:10px 12px;flex-wrap:wrap;}
.date-unit{display:inline-flex;align-items:center;gap:6px;max-width:100%;}
/* 年の選択肢は和暦を添えて長いので、幅 360px でははみ出さずに縮む（閉じた表示が詰まるだけで、選ぶ画面は全文）。 */
.date-unit select{min-width:0;flex:0 1 auto;}
select,input[type=text],input[type=email]{
  font:inherit;font-size:18px;color:var(--ink);line-height:1.4;
  border:2px solid var(--tile-line);border-radius:12px;background:#fff;padding:10px;
  min-height:52px;max-width:100%;
}
input[type=text],input[type=email]{width:100%;padding:10px 12px;}
/* 入力例は薄いグレーにしない（白地で 6.9:1）。 */
input[type=text]::placeholder{color:var(--placeholder);opacity:1;}

/* 選択のタイル。選ぶと枠が緑・地が薄緑になり、1回だけ弾む（vz-pop）。 */
.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;}
.choice-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.choice-grid.color{grid-template-columns:repeat(6,minmax(0,1fr));}
.choice-grid.four{grid-template-columns:repeat(4,minmax(0,1fr));}
.choice-grid.nine{grid-template-columns:repeat(9,minmax(0,1fr));}
.choice-grid.veg{grid-template-columns:repeat(6,minmax(0,1fr));}
.tile{position:relative;display:block;cursor:pointer;min-width:0;}
.tile input{position:absolute;opacity:0;width:1px;height:1px;margin:0;}
.tile-body{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-height:56px;padding:6px 4px;border:3px solid var(--tile-off);border-radius:14px;background:#fff;
  font-size:18px;font-weight:700;text-align:center;line-height:1.3;color:var(--ink);
}
.tile input:checked + .tile-body{border-color:var(--green);background:var(--picked);animation:vz-pop .45s ease-out;}
/* 野菜は絵が主役なので、選ばれた印（チェック）を角に出す。 */
.choice-grid.veg .tile input:checked + .tile-body::after{
  content:"\2713";position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;
  background:var(--green);color:#fff;font-size:16px;font-weight:700;line-height:28px;text-align:center;
}
.tile input:focus-visible + .tile-body{outline:3px solid var(--green);outline-offset:2px;}
.tile-name{display:block;}
.choice-grid.two .tile-body{font-size:20px;}
.choice-grid.color .tile-body,.choice-grid.four .tile-body{padding:10px 2px 8px;}
.choice-grid.color .tile-name{font-size:16px;}
.swatch{display:block;width:40px;height:40px;border-radius:50%;border:2px solid var(--grey-green);}
/* 季節と野菜の絵は白地。選ばれて地が薄緑になっても白い四角が出ないよう、地の色と掛け合わせる。 */
.season-img{display:block;width:48px;height:48px;mix-blend-mode:multiply;}
.choice-grid.four .tile-name{font-size:20px;}
.choice-grid.nine .tile-body{font-family:var(--mincho);font-size:26px;padding:6px 0;}
.choice-grid.veg .tile-body{padding:6px 2px 8px;}
.veg-img{display:block;width:84px;max-width:100%;height:auto;aspect-ratio:1/1;mix-blend-mode:multiply;}
.veg-name{display:block;margin-top:2px;font-size:16px;line-height:1.3;}
/* 野菜の「ちょうど3つ」と数。野菜の一覧を送っている間、進み具合の帯（46px）のすぐ下に張り付く。 */
.veg-band{
  position:sticky;top:46px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 10px;padding:4px 16px;background:var(--yellow-soft);border:2px solid var(--yellow-line);border-radius:999px;
}
.veg-band-hint{font-size:16px;color:var(--ink);line-height:1.6;}
.veg-count{flex:none;font-family:var(--mincho);font-size:22px;font-weight:700;color:var(--green-deep);white-space:nowrap;}
/* 野菜の一覧の中でフォーカスが移っても、2本の帯の下に隠れないようにする。 */
.choice-grid.veg .tile{scroll-margin-top:56px;}
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

.notice{margin:10px 0 0;font-size:18px;color:var(--error);}
.privacy-note{margin:22px 0 0;font-size:16px;color:var(--ink-soft);}
/* 送信ボタンが押せない理由（まだ埋まっていない項目）。ボタンのすぐ上に出す。 */
.missing{margin:18px 0 0;font-size:16px;color:var(--ink-soft);line-height:1.8;}
/* 7つそろったとき：選んだ3つの野菜が並んで弾み、「そろいました。」と出る。 */
.ready{margin:18px 0 0;text-align:center;}
.ready-trio{display:flex;align-items:flex-end;justify-content:center;gap:6px;margin:0 0 4px;}
.ready-trio img{display:block;width:84px;height:84px;animation:vz-hop 1.1s ease-in-out infinite;}
.ready-text{margin:0;font-size:18px;font-weight:700;color:var(--green-deep);}
.submit-row{text-align:center;margin:12px 0 0;}
.button{
  display:inline-block;background:var(--green);color:#fff;text-decoration:none;border:2px solid var(--green);cursor:pointer;
  font:inherit;font-size:19px;font-weight:700;padding:12px 32px;border-radius:999px;line-height:1.5;min-height:48px;
}
/* 押せない間も文字が読める濃さを保つ（薄くしすぎない）。色を変えて、押せる状態と見分ける。 */
.button[disabled]{background:var(--disabled);border-color:var(--disabled);color:var(--ink-soft);cursor:default;}
.button.ghost{background:#fff;color:var(--green);border:2px solid var(--green);}
/* 送信ボタン。そろうまで生成りの地、そろうと赤くなって、ゆっくり弾む。押せるかどうかの判定は form.js（今のまま）。 */
.submit-row .button{
  display:block;width:100%;min-height:64px;padding:0 16px;font-size:21px;line-height:60px;
  background:var(--red);border-color:var(--red);box-shadow:0 5px 0 var(--red-deep);
  animation:vz-hop 1.1s ease-in-out infinite;
}
.submit-row .button[disabled]{background:var(--wait-track);border-color:#B9B29C;color:var(--ink-soft);box-shadow:none;animation:none;}
.error{margin:14px 0 0;padding:10px 14px;border-radius:10px;background:#fdecea;color:var(--error);font-size:18px;}
.noscript{margin:0 0 16px;padding:10px 14px;border-radius:10px;background:var(--panel);font-size:18px;}
@keyframes vz-pop{0%{transform:scale(1);}35%{transform:scale(1.14) rotate(-3deg);}65%{transform:scale(.96) rotate(2deg);}100%{transform:scale(1);}}
@keyframes vz-hop{0%,100%{transform:translateY(0);}50%{transform:translateY(-6px);}}

/* ── 結果 ───────────────────────────────── */
/* 待ち時間。切り抜きの野菜5体が順に跳ね、白いカードの言葉が5秒ごとに変わり、棒が20秒かけて進む。
 * 棒は実際の進み具合ではなく目安で、96% で止まる。結果が出たら待ちの表示ごと消える。 */
.waiting{display:flex;flex-direction:column;align-items:center;gap:28px;margin:0;padding:22px 0 8px;text-align:center;}
/* 野菜は1体 76px。幅 360px では5体が並びきらないので、はみ出さずに縮む。 */
.cast{display:flex;align-items:flex-end;justify-content:center;width:100%;height:130px;}
.cast img{display:block;flex:0 1 76px;min-width:0;width:76px;height:auto;aspect-ratio:1/1;animation:vw-jump 2s ease-in-out infinite;}
.cast img:nth-child(2){animation-delay:.25s;}
.cast img:nth-child(3){animation-delay:.5s;}
.cast img:nth-child(4){animation-delay:.75s;}
.cast img:nth-child(5){animation-delay:1s;}
.wait-card{width:100%;padding:20px 18px;background:var(--card);border:2px solid var(--card-line);border-radius:20px;}
.wait-step{
  margin:0 0 14px;min-height:68px;display:flex;align-items:center;justify-content:center;
  font-family:var(--mincho);font-size:21px;font-weight:700;line-height:1.6;color:var(--green-deep);
}
.wait-step span{animation:vw-in .5s ease-out;}
.wait-bar{height:14px;border-radius:999px;background:var(--wait-track);overflow:hidden;}
.wait-bar > span{display:block;width:96%;height:14px;border-radius:999px;background:var(--green);animation:vw-fill 20s linear both;}
.waiting > p{margin:0;}
/* 時間がかかっているとき（waiting_long）：野菜と棒を下げ、白いカードに本文の書体で案内を出す。 */
.waiting.long .cast,.waiting.long .wait-bar,.waiting.long > p{display:none;}
.waiting.long .wait-step{margin:0;min-height:0;font-family:inherit;font-size:18px;font-weight:400;color:var(--ink);}
@keyframes vw-jump{0%,60%,100%{transform:translateY(0) scale(1,1);}20%{transform:translateY(-26px) scale(.96,1.05);}40%{transform:translateY(0) scale(1.06,.93);}}
@keyframes vw-fill{from{width:4%;}to{width:96%;}}
@keyframes vw-in{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
/* 失敗・期限切れ・見つからないの案内も、生成りの地に白いカードで出す。 */
.message{margin:22px 0 0;padding:20px 18px;background:var(--card);border:2px solid var(--card-line);border-radius:20px;text-align:center;}

/* 結果の冒頭：呼びかけ → 「…を野菜にたとえると…」→ カードが飛び込む → タイプ名とキャッチ。 */
.result-top{padding:8px 4px 8px;text-align:center;}
.greeting{margin:0 0 4px;font-size:18px;font-weight:700;color:var(--green-deep);animation:vr-in .6s ease-out both;}
.reveal{margin:0 0 18px;font-family:var(--mincho);font-size:24px;font-weight:700;line-height:1.6;color:var(--ink);animation:vr-in .6s ease-out both;}
.card-frame{
  position:relative;width:300px;max-width:100%;margin:22px auto 0;padding:10px 10px 12px;
  background:var(--card);border-radius:16px;box-shadow:0 10px 0 var(--card-line),0 0 0 2px var(--card-line);
  transform:rotate(-2deg);animation:vr-card .8s cubic-bezier(.2,.9,.3,1.2) .7s both;
}
.card-tape{position:absolute;top:-14px;left:50%;width:80px;height:28px;margin-left:-40px;background:var(--yellow);opacity:.9;transform:rotate(-3deg);}
.card-img{display:block;width:100%;height:auto;aspect-ratio:603/1080;border-radius:10px;}
.type-label{margin:34px 0 6px;font-family:var(--mincho);font-size:31px;font-weight:700;line-height:1.4;color:var(--green-deep);animation:vr-in .6s ease-out 1.5s both;}
.type-catch{
  display:inline-block;margin:0;padding:4px 18px;background:var(--yellow-soft);border:2px solid var(--yellow-line);border-radius:999px;
  font-size:18px;font-weight:700;color:var(--ink);animation:vr-in .6s ease-out 1.5s both;
}

/* 結果の各段。白いカードで、左上に緑の丸い札の見出しを付ける。 */
.result-body{display:flex;flex-direction:column;gap:26px;padding:22px 0 0;}
section.article{--sec-pad-x:16px;position:relative;margin:0;padding:0 var(--sec-pad-x) 16px;background:var(--card);border:2px solid var(--card-line);border-radius:20px;}
section.article.no-head{padding-top:20px;}
/* 区切りの野菜がカードの上の縁に立つ段は、前の段の文字に重ならないよう上を 30px 空ける。 */
section.article.deco{margin-top:30px;}
.deco-veg{position:absolute;top:-60px;right:18px;width:68px;height:68px;}
/* 札は通常の流れに置く（c126）。負の margin-top で枠の上辺にまたがり、1行でも2行でも札の下から本文が始まる。
 * 札の高さ 34.6px（17px×1.8＋上下 2px）。上辺から -18px・本文までは 28px なので、margin-bottom は 28-(34.6-18)=11.4px。
 * 左は枠の内側の縁から 14px（枠の左右の余白 --sec-pad-x を引いて負の margin-left）。幅の上限は枠の外縁から左右 14px 内側まで。 */
section.article h2{
  display:block;width:fit-content;max-width:calc(100% + 2 * var(--sec-pad-x) - 28px);
  margin:-18px 0 11.4px calc(14px - var(--sec-pad-x));padding:2px 16px;white-space:normal;overflow-wrap:anywhere;
  background:var(--green);color:#fff;border-radius:999px;font-size:17px;font-weight:700;line-height:1.8;
}
section.article p{margin:0 0 12px;font-size:18px;}
section.article p:last-child{margin-bottom:0;}
/* 今日のあなたの位置：地を薄緑・枠を緑にして目立たせる。昨日・今日・明日は日めくり風の札。 */
section.article.stage-sec{--sec-pad-x:14px;padding:0 var(--sec-pad-x) 18px;background:var(--stage-bg);border-color:var(--green);}
section.article.stage-sec > p:first-of-type{margin-bottom:18px;}
.stage-row{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin:0 0 16px;}
.stage{flex:1 1 0;min-width:0;overflow:hidden;text-align:center;background:#fff;border:2px solid var(--tile-off);border-radius:10px;}
.stage.prev{transform:rotate(-2deg);}
.stage.next{transform:rotate(2deg);}
.stage .when{display:block;background:var(--grey-green);color:#fff;font-size:16px;font-weight:700;line-height:1.7;}
.stage .name{display:block;padding:12px 2px 14px;font-family:var(--mincho);font-size:18px;font-weight:700;line-height:1.4;color:var(--ink);}
.stage.today{flex:1.35 1 0;border:3px solid var(--red);border-radius:12px;box-shadow:0 6px 0 var(--card-line);animation:vr-today 2.4s ease-in-out infinite;}
.stage.today .when{background:var(--red);font-size:17px;line-height:1.8;}
.stage.today .name{padding:16px 2px 18px;font-size:24px;}
.cta{text-align:center;margin:16px 0 4px;}
/* 最後の段の LINE のボタン（緑・高さ 64px・下に濃い影）。 */
section.article .cta .button{display:block;width:100%;min-height:64px;padding:0 12px;font-size:20px;line-height:60px;box-shadow:0 5px 0 #1b3522;}
/* 説明ページ（mitooshi c123）。Web と LINE の違いの表と、共有の定型文の欄。結果ページの部品はそのまま使い、足すのはこの2つだけ。 */
.about-table-wrap{overflow-x:auto;margin:0 0 12px;}
.about-table{width:100%;border-collapse:collapse;font-size:17px;line-height:1.5;}
.about-table th,.about-table td{padding:8px 6px;border-bottom:1px solid var(--card-line);text-align:left;vertical-align:top;}
.about-table thead th{color:var(--green-deep);}
.about-table tbody th{font-weight:700;}
.share-text{display:block;box-sizing:border-box;width:100%;font:inherit;font-size:18px;line-height:1.6;color:var(--ink);
  border:2px solid var(--tile-line);border-radius:12px;background:#fff;padding:10px 12px;resize:none;}
/* 結果画面のメール欄（mitooshi 段3 c118）。見た目は「今日のあなたの位置」と同じで、最後の段の中に置くので上下を空けるだけ。 */
section.article .mail-sec{margin:32px 0 16px;}
/* メール欄の中の縦の間隔（c127）。値はすべて問診ページの既存の規則から取る（新しい数字は無い）。
 * 本文の p の規則（section.article p・特異性が高い）に負けて問診の値が効いていなかったので、メール欄の中だけ同じ強さで書き直す。
 *  案内文 → 入力欄の項目: 16px（問診の項目と項目の間 .field） / ラベル → 入力欄: 10px（.field > .label）
 *  入力欄 → 誤り表示: 10px（.notice） / 入力欄 → ボタン: 22px（.privacy-note の上） / ボタン → 注記: 22px（.privacy-note の上） */
section.article.mail-sec form{margin:16px 0 0;}
section.article.mail-sec .q-label{display:block;margin:0 0 10px;}
section.article.mail-sec .notice{margin:10px 0 0;}
section.article.mail-sec .cta{margin:22px 0 0;}
section.article.mail-sec .privacy-note{margin:22px 0 0;}
/* 「お届け中」の一行とリンクだけが見えている間は、いちばん下の p の下の余白を他の段と同じ（0）にする。 */
section.article.mail-sec > p:not(:has(~ :not([hidden]))){margin-bottom:0;}
/* 結果の末尾の説明（根っこの話・毎日の巡り・c93）。押すとその場で下に広がる。見出しは押せるものと分かる見た目
 * （高さ 48px 以上・18px・開閉の印）。開いた中身は本文と同じ 18px。 */
.about{margin:0 0 10px;border:2px solid var(--tile-line);border-radius:14px;background:var(--bg);}
.about summary{
  display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 14px;
  font-size:18px;font-weight:700;color:var(--green-deep);cursor:pointer;list-style:none;line-height:1.7;
}
.about summary::-webkit-details-marker{display:none;}
.about summary::before{content:"\25B6";flex:none;font-size:13px;transition:transform .15s;}
.about[open] summary::before{transform:rotate(90deg);}
.about summary:focus-visible{outline:3px solid var(--green);outline-offset:2px;border-radius:14px;}
section.article .about p{margin:0;padding:0 14px 10px;font-size:18px;}
section.article .about p:last-child{margin-bottom:0;padding-bottom:14px;}
section.article .about + p{margin-top:16px;}
section.article .about:last-of-type{margin-bottom:0;}
p.note{margin:12px 0 0;font-size:16px;color:var(--ink-soft);}
p.note a{display:inline-block;min-height:48px;line-height:48px;}
/* 結果の下：お店のボタン（白地・緑の枠 3px）と「もう一度診断する」。 */
.after{display:flex;flex-direction:column;gap:12px;padding:0 4px;}
.after .button.ghost{display:block;min-height:60px;padding:0 12px;border:3px solid var(--green);color:var(--green-deep);font-size:19px;line-height:54px;text-align:center;}
.after .retry{display:block;padding:10px 0;font-size:18px;text-align:center;}
@keyframes vr-in{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
@keyframes vr-card{0%{opacity:0;transform:scale(.7) rotate(-9deg);}60%{opacity:1;transform:scale(1.04) rotate(-1deg);}100%{opacity:1;transform:scale(1) rotate(-2deg);}}
@keyframes vr-today{0%,100%{transform:translateY(0) rotate(0deg);}50%{transform:translateY(-5px) rotate(1.5deg);}}

footer{margin-top:30px;padding-top:16px;border-top:2px solid var(--card-line);font-size:15px;color:var(--ink-soft);line-height:1.8;}
footer a{display:inline-block;min-height:48px;line-height:48px;color:var(--green);text-decoration:underline;}
footer p{margin:0;}
footer p + p{margin-top:4px;}

/* PC 幅では見出しの改行を消す。 */
@media (min-width:601px){
  .br-sp{display:none;}
}
/* 数字の9個は1列あたり 56px を切ると窄いので、スマホでは 3列×3段。野菜はスマホで 3列、色は 4列（PC はどちらも 6列）。 */
@media (max-width:600px){
  .choice-grid.nine{grid-template-columns:repeat(3,minmax(0,1fr));}
  .choice-grid.veg{grid-template-columns:repeat(3,minmax(0,1fr));}
  .choice-grid.color{grid-template-columns:repeat(4,minmax(0,1fr));}
}
/* 幅 400px 以下では、進み具合の帯の文字と丸7つが1行に収まるように詰める。 */
@media (max-width:400px){
  .progress-in{padding:0 12px;gap:8px;}
  .progress-dots{gap:4px;}
}
/* 動きを減らす設定の端末では動かさない。待ち時間の言葉は切り替えるが動かさず、棒は半分で止める。 */
@media (prefers-reduced-motion:reduce){
  .tile input:checked + .tile-body,.ready-trio img,.submit-row .button,
  .cast img,.wait-step span,
  .greeting,.reveal,.card-frame,.type-label,.type-catch,.stage.today{animation:none;}
  .wait-bar > span{animation:none;width:50%;}
  .about summary::before{transition:none;}
}
