/*
  寄付ページの別案（i-cube 風）の見た目。index.html と thanks.html で共用する。
  照合表（i-cube の実測と、この別案の値・ずれ）は docs/donation-page-icube-benchmark.md。
*/
/* 色の役割は i-cube に合わせ、色相は今の HP（文字 #02423D・ボタン #005C55・背景 #FFEEE6）とロゴ（桃色・朱色）から取った。照合表の「色」 */
:root {
  --ink: #02423D;          /* 今の HP の文字色。大きな見出し */
  --accent: #005C55;       /* 今の HP のボタン色。i-cube の青（見出し・ボタン）の役 */
  --accent-hover: #00433E;
  --text: #35524E;         /* 本文。i-cube の灰青（本文）の役 */
  --muted: #4F6B67;
  --peach: #FFEEE6;        /* 今の HP の背景色。i-cube のクリーム（札・表の見出し）の役 */
  --mint: #E8F4F0;         /* i-cube のミント（節の背景）の役 */
  --paper: #FFFDF9;        /* i-cube の生成り（節の背景）の役 */
  --sun: #FFE38A;          /* 飾りの丸。i-cube の黄色の丸の役 */
  --line: rgba(0, 92, 85, .2);
  --shadow: 0 10px 24px rgba(0, 92, 85, .12);
  --error: #B3261E;
  --focus: #D9661F;
  --note: #A14A00;
  --note-bg: #FFF4E8;
  --note-ink: #5A2A00;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --hand: "Klee One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; /* 手書き風（吹き出しと結びの一文）。2026-10-18 に Yomogi から、読みやすい Klee One SemiBold に替えた */
  --hp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}
* { 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(--paper); color: var(--text);
  font-family: var(--round); font-weight: 500;
  font-size: 16px; line-height: 1.85; letter-spacing: .04em;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ico { width: 32px; height: 32px; flex: none; color: var(--accent); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: middle; }
.tbc { color: var(--note); font-weight: 700; white-space: nowrap; }
.nw { white-space: nowrap; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, legend { font-weight: 700; }
/* 改行（2026-10-18 ユーザー意見。同日の 2 回目の意見で見直し）:
   - 本文は、ふつうの日本語の折り返しで右端まで流す（言葉の区切りでの折り返し〈auto-phrase〉は、行の右が大きく空いて左に寄って見えたのでやめた）。
     行頭に句読点や小さい「ゃ」などは置かない（line-break: strict）。最後の行が 1 字だけにならないように整える（text-wrap: pretty）。
     名前・金額・日付・複合語など、切れると読みにくい語だけ <span class="nw"> でひとまとまりにする
   - 見出し・ボタン・札などの短い文だけ、<wbr> の位置（無ければ折り返さない）で折り返す */
body { line-break: strict; }
p, li, dd, .opt-desc { text-wrap: pretty; }
h1 span, h2, h3, h4, legend, .btn, .tag, .when, .pills > span, .chips strong, .chips span, .table dt, .opt-title, .bubble, .subject, .story .wish, .photo, .sub-link, .movie-cap > span { word-break: keep-all; overflow-wrap: anywhere; }
h2, .story .wish { text-wrap: balance; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* デモ版の帯（公開版には入らない） */
.demo-bar { background: #1E2B29; color: #fff; font-family: var(--hp); font-size: 13px; line-height: 1.5; letter-spacing: .02em; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.demo-bar button { font: inherit; color: #fff; background: transparent; border: 1px solid #fff; border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.demo-bar button[aria-pressed="true"] { background: #fff; color: #1E2B29; }

/* 改良点の番号（デモ版だけ） */
.note { display: none; }
body.show-notes .note { display: block; border-left: 4px solid var(--note); background: var(--note-bg); color: var(--note-ink); font-family: var(--hp); font-weight: 400; font-size: 13px; line-height: 1.6; padding: 8px 12px; margin: 0 0 14px; letter-spacing: 0; border-radius: 0 8px 8px 0; text-align: left; }
.note b { margin-right: 8px; }

/* ヘッダー（今の HP のロゴ・名前・住所だけを写した簡易版。書体も今の HP に近いゴシックのまま）。
   メニューは 2026-10-18 に外した（押しても開かない写しだったため。Wix では HP の共通のヘッダーとメニューを使う） */
.site-header { background: #fff; border-bottom: 1px solid #B7CCC9; font-family: var(--hp); color: var(--ink); letter-spacing: .02em; font-weight: 400; }
.site-header .wrap { padding-top: 16px; padding-bottom: 12px; }
.site-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 74px; height: auto; }
.brand-sub { display: block; font-size: 13px; }
.brand-name { display: block; font-size: 30px; letter-spacing: .2em; line-height: 1.3; }
.site-info { font-size: 12px; color: #42625E; line-height: 1.6; margin: 0; }

/* 波（節の上の端。fill は currentColor = その節の背景色） */
.wave { position: absolute; left: -24px; width: calc(100% + 48px); height: 36px; display: block; pointer-events: none; } /* 左右に 24px はみ出させ、横のパララックスで端が空かないように（main で切る） */
main { overflow-x: clip; }
.wave.top { top: -35px; }
.wave.flip { transform: scaleX(-1); }
@media (min-width: 768px) { .wave { height: 64px; } .wave.top { top: -63px; } }

/* 飾りの丸（i-cube の各節の右上の黄色・左下のミントの丸） */
.deco { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.deco::before, .deco::after { content: ""; position: absolute; border-radius: 50%; }
.deco::before { width: 150px; height: 150px; top: 18px; right: -64px; background: var(--sun); opacity: .45; }
.deco::after { width: 170px; height: 170px; bottom: -70px; left: -60px; background: var(--peach); opacity: .9; }
.bg-peach .deco::after { background: #fff; opacity: .7; }
.bg-mint .deco::after { background: #fff; opacity: .75; }
@media (min-width: 768px) {
  .deco::before { width: 260px; height: 260px; top: 24px; right: -110px; }
  .deco::after { width: 280px; height: 280px; bottom: -120px; left: -90px; }
}

/* 最初の画面（i-cube の FV: 写真を全幅 → 下端に波 → 吹き出し・白い札・白い箱の見出しを写真に重ねる） */
.fv { position: relative; background: var(--peach); padding-bottom: 64px; }
.fv-photo { position: relative; height: 280px; overflow: hidden; }
.fv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.fv-photo .wave { bottom: -1px; height: 48px; color: var(--peach); }
.fv-text { position: relative; z-index: 2; margin-top: -76px; padding: 0 20px; }
.fv-movie { padding: 0 20px; margin-top: 30px; position: relative; z-index: 1; }
.bubble { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 5px 20px 6px 14px; border-radius: 999px; background: var(--accent); color: #FFF3D6; font-family: var(--hand); font-weight: 600; font-size: 19px; line-height: 1.4; letter-spacing: .08em; }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -9px; border-style: solid; border-width: 10px 7px 0 7px; border-color: var(--accent) transparent transparent transparent; }
.bubble .ico { width: 22px; height: 22px; color: #FFF3D6; --peach: transparent; }
.pills { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 12px; }
.pills > span { display: block; padding: 3px 18px 4px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.catch { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 18px; font-size: 27px; line-height: 1.3; color: var(--ink); letter-spacing: .06em; }
.catch span { display: block; padding: 6px 14px 7px; border-radius: 12px; background: #fff; }
.lead { font-size: 17px; line-height: 1.9; color: var(--ink); margin: 22px 0 0; }
.chips { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.chips li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 7px 18px 8px; border-radius: 999px; background: #fff; box-shadow: 0 6px 14px rgba(0, 92, 85, .10); line-height: 1.5; letter-spacing: .02em; }
.chips strong { font-size: 16px; color: var(--accent); }
.chips span { font-size: 12px; color: var(--muted); }
.sub-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; }
/* 600〜1023px（iPad の縦など）: スマホと同じ 1 列のまま、文と動画を 640px の幅に収め、写真を高くする */
@media (min-width: 600px) and (max-width: 1023px) {
  .fv-photo { height: 380px; }
  .fv-text, .fv-movie { max-width: 640px; margin-left: auto; margin-right: auto; }
  .catch { font-size: 30px; }
}
/* 1024px から（iPad の横・PC）: 左に文、右に写真と動画の 2 列 */
@media (min-width: 1024px) {
  .fv { padding-bottom: 96px; overflow: hidden; }
  .fv-inner { max-width: 1040px; margin: 0 auto; padding: 48px 32px 0; display: grid; grid-template-columns: 1fr 1.05fr; grid-template-areas: "text photo" "text movie"; gap: 28px 48px; align-items: start; position: relative; z-index: 1; }
  .fv-photo { grid-area: photo; height: 300px; border-radius: 32px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); }
  .fv-photo .wave { display: none; }
  .fv-text { grid-area: text; margin-top: 0; padding: 0; }
  .fv-movie { grid-area: movie; margin: 0; padding: 0; }
  .catch { font-size: 34px; }
}

/* ボタン（i-cube: 角が丸く端まで丸い、濃い色に白抜きの太字） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 12px 30px; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg { flex: none; }
.btn-outline { background: #fff; color: var(--accent); box-shadow: 0 6px 14px rgba(0, 92, 85, .10); }
.btn-outline:hover { background: var(--mint); border-color: var(--accent); }
@media (min-width: 600px) { .btn { width: auto; min-width: 300px; } }

/* 動画の枠（i-cube の MOVIE: 白い額・角丸）。中は HP の動画を参照する <video>（再生のボタンはブラウザのもの）。下に題と説明 */
.movie { margin: 0; padding: 7px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.movie-in { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1f2a28; }
.movie-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #1f2a28; }
.movie-cap { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 6px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.movie-title { color: var(--ink); font-weight: 700; }
/* 読み込めないとき（is-failed）だけ、動画の代わりに HP へのリンクを出す */
.movie-fallback { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: var(--mint); color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; text-decoration: none; }
.movie.is-failed .movie-video { visibility: hidden; }
.movie.is-failed .movie-fallback { display: flex; }
.movie-fallback:hover .play { transform: scale(1.06); }
.movie-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 12px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; }
.play { transition: transform .15s ease; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(2, 66, 61, .18); color: var(--accent); }

/* 節（i-cube: 英字の小見出し → 大きな見出しを中央に。背景は節ごとに生成り・ミント・桃色、境目は波） */
section { position: relative; padding: 56px 0 64px; scroll-margin-top: 8px; }
@media (min-width: 768px) { section { padding: 72px 0 88px; } }
.bg-paper { background: var(--paper); color: var(--text); }
.bg-mint { background: var(--mint); }
.bg-peach { background: var(--peach); }
.bg-paper > .wave { color: var(--paper); }
.bg-mint > .wave { color: var(--mint); }
.bg-peach > .wave { color: var(--peach); }
.head { text-align: center; margin: 0 0 26px; }
.badge { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(0, 92, 85, .10); }
.bg-paper .badge { background: var(--peach); box-shadow: none; }
.badge .ico { width: 34px; height: 34px; }
.head h2 { margin: 0; color: var(--accent); font-size: 23px; line-height: 1.45; letter-spacing: .06em; }
@media (min-width: 768px) { .head h2 { font-size: 32px; letter-spacing: .08em; } .head { margin-bottom: 36px; } .badge { width: 72px; height: 72px; } .badge .ico { width: 40px; height: 40px; } }
/* 文字の組み合わせ（2026-10-18。全節で同じ組み合わせにする。照合表 16 節）
   節の見出し h2 … 700・23px（PC 32px）・行間 1.45・緑
   小見出し（カード・流れ・申込の手順・振込先）… 700・18px・行間 1.5・緑
   説明文（節の見出しの下・控除・振込・使い道のまとめ）… 500・16px・行間 1.85。中央にそろえた 40 字ほどの幅の中で左そろえ
   カードの文（使い道・流れ・表・手順・申込の欄の案内・メール）… 500・15px・行間 1.8
   補足（金額の案内・デモのお知らせ・振込先の見本の説明）… 14px ／ 注記（写真の説明・欄の説明・小さな注意）… 13px */
.desc, .section-lead, .use-now, .use-foot, .center-small, .offline-text { max-width: 40em; margin: 0 auto 24px; font-size: 16px; line-height: 1.85; text-align: left; color: var(--text); }

/* 白いカード（i-cube: 白・角丸・やわらかい影） */
.card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); }

/* 寄付金の使い道（i-cube の施設紹介のカード: 左に角丸の写真、右に見出しと文） */
.tag { display: table; margin: 0 auto 16px; padding: 3px 22px 4px; border-radius: 999px; background: var(--peach); color: var(--accent); font-size: 16px; line-height: 1.6; letter-spacing: .12em; }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* 使い道のカードは、どの幅でも「写真が上・文が下」（2026-10-18 に 3 案を比べて決めた。screenshots/use_cards_compare.png） */
.use-list li { display: block; padding: 12px 12px 16px; }
.use-list .photo { aspect-ratio: 16 / 10; margin-bottom: 12px; font-size: 13px; }
.use-list h4, .use-list p, .use-list .photo-cap { padding: 0 4px; }
.use-list h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: var(--accent); font-size: 18px; line-height: 1.5; }
.use-list h4 .ico { width: 26px; height: 26px; }
.use-list p { margin: 0; font-size: 15px; line-height: 1.8; }
.photo { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--peach); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; padding: 6px; letter-spacing: 0; }
figure.photo { padding: 0; margin: 0; display: block; overflow: hidden; }
.ph-ico { width: 48px; height: 48px; opacity: .8; } /* 写真の枠（ご提供待ち）の中のアイコン */
figure.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-cap { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 6px 0 0; letter-spacing: .02em; }
/* 600〜1023px: 写真が上のカードを 2 列で */
@media (min-width: 600px) and (max-width: 1023px) {
  .use-list { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 680px; margin-left: auto; margin-right: auto; }
}
/* 1024px から: 写真が上のカードを 3 列（今年度は 2 列） */
@media (min-width: 1024px) {
  .use-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .use-list.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
  .use-list li { padding: 14px 14px 18px; }
}
.use-foot { margin-top: 22px; margin-bottom: 0; }
.down { display: flex; justify-content: center; margin: 26px 0; color: var(--accent); opacity: .55; }
.use-now { margin-bottom: 18px; }

/* 私たちの挑戦（i-cube の理念: 白いカードに文。最後の一文は手書き風） */
.story { max-width: 720px; margin: 0 auto; padding: 26px 22px 24px; }
@media (min-width: 768px) { .story { padding: 40px 48px 36px; } }
.story p:last-child { margin: 0; }
.story .wish { margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); color: var(--accent); font-family: var(--hand); font-weight: 600; font-size: 20px; line-height: 1.7; text-align: center; letter-spacing: .06em; }

/* 申込の欄（i-cube の応募フォーム: 白いカード・角丸の枠の欄・STEP の札） */
.form-box { max-width: 720px; margin: 0 auto; padding: 24px 18px 22px; }
@media (min-width: 768px) { .form-box { padding: 40px 44px 36px; } }
fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 18px; margin: 0 0 12px; padding: 0; }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--peach); color: var(--accent); font-size: 16px; line-height: 1; }
.legend-ico { width: 28px; height: 28px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices.kind { grid-template-columns: 1fr 1fr; } }
.choices.amount { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .choices.amount { grid-template-columns: repeat(4, 1fr); } }
.opt { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 62px; padding: 12px 14px 12px 48px; background: #fff; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; line-height: 1.5; }
.opt input { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.opt.has-ico { padding-right: 54px; }
.choices.amount .opt { padding-left: 44px; padding-right: 8px; }
.choices.amount .opt input { left: 14px; }
.choices.amount .opt-title { font-size: 15px; letter-spacing: .02em; }
.use-list rt { font-size: 10px; letter-spacing: 0; }
.opt-ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; }
.opt.is-checked { background: var(--mint); border-color: var(--accent); }
.opt-title { font-weight: 700; color: var(--ink); }
.keep { word-break: keep-all; overflow-wrap: anywhere; }
.opt-desc { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.amt { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.amt small { font-size: 14px; margin-left: 2px; }
.hint { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 10px 0 0; }
.custom { margin-top: 14px; }
.custom label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.yen { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.yen input { flex: 1; min-width: 0; font: inherit; font-size: 20px; padding: 10px 14px; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; }
.yen input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; min-height: 1.6em; }
.other-guide { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--mint); font-size: 15px; }
.other-guide b { display: block; color: var(--ink); }
.summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 20px; margin: 0 0 16px; border-radius: 16px; background: var(--peach); }
.summary strong { display: inline-block; font-size: 23px; color: var(--ink); }
.info { font-size: 15px; line-height: 1.8; padding: 12px 16px; margin: 0 0 22px; border-radius: 14px; background: var(--mint); }
.form-box .btn { width: 100%; }
.small { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; letter-spacing: .02em; }
.demo-pay { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--note); background: var(--note-bg); color: var(--note-ink); font-size: 14px; line-height: 1.7; letter-spacing: .02em; }
.demo-result { margin-top: 16px; border: 1px solid var(--note); background: var(--note-bg); color: var(--note-ink); padding: 12px 14px; font-size: 14px; border-radius: 12px; }

/* ご寄付のあとの流れ（i-cube の FLOW: 白いカードを縦に重ね、時期の札を付ける） */
.flow { margin: 0 auto; max-width: 720px; }
.flow-step { padding: 18px 20px 20px; }
.flow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; }
.when { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--peach); color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.flow-step h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 18px; line-height: 1.5; }
.flow-step h3 .ico { width: 26px; height: 26px; }
.flow-step .who-line { margin-top: 6px; }
.who-line b { display: table; margin: 0 0 2px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.flow-step p { margin: 0; font-size: 15px; line-height: 1.8; }
.flow-gap { display: flex; justify-content: center; padding: 6px 0; color: var(--accent); opacity: .45; }
@media (min-width: 768px) {
  .flow-step { display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; align-items: center; padding: 22px 28px; }
  .flow-top { display: contents; }
  .when { grid-row: 1 / span 2; }
  .flow-step > p, .flow-body { grid-column: 2; }
}

/* 寄付金控除・振込先・運営（i-cube の募集要項の表: 白い角丸の表、左の見出しは淡い色の帯） */
.table { max-width: 640px; margin: 0 auto 18px; overflow: hidden; }
.table dl { margin: 0; }
.table dl > div { display: grid; grid-template-columns: 112px 1fr; border-bottom: 1px solid var(--line); }
.table dl > div:last-child { border-bottom: 0; }
.table dt, .table dd { margin: 0; padding: 14px 14px; line-height: 1.8; }
.table dt { padding-left: 8px; padding-right: 8px; }
.table dt { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--peach); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.table dd { font-size: 15px; }
/* スマホ（599px まで）は、表の見出しを上に、文を下に（文の幅を広くとり、行の右が空かないように） */
@media (max-width: 599px) { .table dl > div { grid-template-columns: 1fr; } .table dt { justify-content: flex-start; text-align: left; padding: 6px 16px; } .table dd { padding: 10px 16px 14px; } }
@media (min-width: 600px) { .table dl > div { grid-template-columns: 10em 1fr; } .table dt, .table dd { padding: 16px 22px; } .table dt { font-size: 14px; } }
.center-small { margin-bottom: 18px; }

/* 振込先（見本） */
.bank-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bank-head h3 { margin: 0; color: var(--accent); font-size: 18px; }
.sample-mark { font-size: 13px; font-weight: 700; color: var(--note); border: 1.5px solid var(--note); border-radius: 999px; padding: 1px 12px; letter-spacing: .04em; }
.bank dd { font-weight: 700; color: var(--ink); }
.bank-note { font-size: 14px; line-height: 1.7; color: var(--note-ink); background: var(--note-bg); border-top: 1px solid var(--line); margin: 0; padding: 10px 18px; letter-spacing: .02em; }
.steps { list-style: none; max-width: 640px; margin: 0 auto 20px; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; padding: 14px 18px; counter-increment: step; font-size: 15px; line-height: 1.8; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--accent); font-weight: 700; font-size: 17px; }
.offline-text { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 720px; margin: 0 auto; }

/* 運営（i-cube の施設紹介: 白いカードの中央にロゴ、下に点線で区切った情報） */
.org { max-width: 720px; margin: 0 auto; padding: 26px 22px 18px; text-align: center; }
.org-logo { display: block; width: 132px; height: auto; margin: 0 auto 16px; border-radius: 12px; }
.org dl { margin: 0; padding-top: 14px; border-top: 2px dashed var(--line); text-align: left; }
.org dl > div { display: grid; grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
@media (min-width: 600px) { .org dl > div { grid-template-columns: 7em 1fr; gap: 16px; } .org { padding: 36px 44px 26px; } }
.org dt { font-weight: 700; color: var(--accent); }
.org dd { margin: 0; }

/* フッター（今の HP のまま） */
.site-footer { background: #fff; border-top: 1px solid #B7CCC9; padding: 24px 0 110px; font-family: var(--hp); font-weight: 400; font-size: 12px; color: #42625E; letter-spacing: .02em; }

/* スマホの画面下に固定するボタン */
/* 追随の「寄付する」ボタン（2026-10-18 ユーザー意見）。最初のボタンと申込の欄が見えていない間だけ出る（index.html の最後のスクリプト）
   - 1199px まで: 画面の下に横長の帯（フッターの下に帯のぶんの余白をとり、最後の行を隠さない）
   - 1200px から: 右下の丸いボタン（本文の幅 960px・最初の画面の幅 1040px の外に収まる。重ならないことを画面画像で確かめた） */
.float-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .97); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 18px rgba(0, 92, 85, .12); transform: translateY(110%); transition: transform .2s ease; }
.float-cta.show { transform: none; }
.float-btn { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 520px; min-height: 52px; margin: 0 auto; padding: 10px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.float-btn:hover { background: var(--accent-hover); }
.float-btn .ico { width: 24px; height: 24px; color: #fff; --peach: transparent; }
@media (min-width: 1200px) {
  .float-cta { left: auto; right: 20px; bottom: 20px; padding: 0; background: none; border-radius: 50%; box-shadow: none; transform: translateY(160px); }
  .float-btn { flex-direction: column; gap: 2px; width: 88px; height: 88px; min-height: 0; padding: 0; border-radius: 50%; font-size: 14px; letter-spacing: .06em; box-shadow: 0 8px 20px rgba(0, 67, 62, .3); }
  .float-btn .ico { width: 28px; height: 28px; }
  .site-footer { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .float-cta { transition: none; } }
#donate-form { scroll-margin-top: 16px; }
body.shot:not(.shot-float) .float-cta { display: none; }
body.shot-float .float-cta { transition: none; }
body.shot:not(.shot-float) .site-footer { padding-bottom: 32px; }
.no-float .site-footer { padding-bottom: 32px; }

/* ── ありがとうのページ（thanks.html） ── */
.fv-thanks { padding: 40px 0 76px; text-align: center; }
.fv-thanks .bubble::after { left: 50%; margin-left: -7px; }
.fv-thanks .catch { align-items: center; font-size: 25px; }
.fv-thanks .lead { max-width: 30em; margin: 0 auto; text-align: left; }
@media (min-width: 600px) { .fv-thanks .lead { text-align: center; } }
@media (min-width: 768px) { .fv-thanks { padding: 64px 0 104px; } .fv-thanks .catch { font-size: 34px; } }
.mail { max-width: 640px; margin: 0 auto; padding: 24px 20px 22px; font-size: 15px; line-height: 1.8; }
@media (min-width: 768px) { .mail { padding: 36px 44px 30px; } }
.mail p:last-child { margin-bottom: 0; }
.subjects { display: grid; gap: 10px; margin: 0 0 18px; }
.subject { margin: 0; padding: 12px 14px; font-size: 15px; border-radius: 14px; background: var(--mint); color: var(--ink); font-weight: 700; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.subject .who { display: table; margin: 0 0 4px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; letter-spacing: .06em; }
.thanks-actions { margin-top: 4px; }
.thanks-actions + .small { text-align: center; margin-top: 16px; }

/* ── 動き（2026-10-18 ユーザー意見「もう少し動きのある形に」）──
   やさしく、読みやすさを邪魔しない。動かすのは transform と opacity だけ（レイアウトがずれない）。
   「動きを減らす」の設定の人には、どれも動かさない（@media の外には動きを書かない）。
   スクロールで出る動きとパララックスは motion.js が html に .motion を付けたときだけ（JS が無ければ全部そのまま見える）。 */
.num { position: relative; z-index: 0; white-space: nowrap; }
.num::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .1em; height: .42em; z-index: -1; border-radius: 4px; background: var(--sun); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  /* 最初の画面: 読み込んだときに、吹き出し・札・見出し・要点・ボタンが下からふわっと（CSS だけ。最後は必ず見える。1 秒ほどで終わる） */
  .fv .bubble, .fv .pills > span, .fv .catch span, .fv .chips li, .fv-text > div > .btn, .fv-thanks .lead { animation: rise .6s cubic-bezier(.2, .7, .3, 1) backwards; } /* backwards: 終わったあとは何も残さない（ホバーの動きを邪魔しない） */
  .fv .pills > span:nth-child(1) { animation-delay: .06s; }
  .fv .pills > span:nth-child(2) { animation-delay: .1s; }
  .fv .catch span:nth-child(1) { animation-delay: .14s; }
  .fv .catch span:nth-child(2) { animation-delay: .2s; }
  .fv .chips li:nth-child(1) { animation-delay: .26s; }
  .fv .chips li:nth-child(2) { animation-delay: .3s; }
  .fv .chips li:nth-child(3) { animation-delay: .34s; }
  .fv-text > div > .btn, .fv-thanks .lead { animation-delay: .38s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* スクロールで出る（motion.js が、最初の画面より下の要素にだけ .rv を付ける） */
  html.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); transition-delay: var(--rv-delay, 0s); }
  html.motion .rv.rv-in { opacity: 1; transform: none; }
  /* 見出しのバッジは、出るときに少し弾む */
  html.motion .head.rv-in .badge { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) .12s backwards; }
  @keyframes pop { from { transform: scale(.7); } to { transform: none; } }
  /* 数字のしるし（寄付金控除の例の金額）: 出るときに、黄色の帯が左から伸びる */
  html.motion .rv .num::after { transform: scaleX(0); transform-origin: left center; transition: transform .8s cubic-bezier(.2, .7, .3, 1) .35s; }
  html.motion .rv.rv-in .num::after { transform: none; }

  /* パララックス（motion.js が --fy・--py・--wx を書く） */
  html.motion .fv-photo img { transform: translate3d(0, var(--fy, 0px), 0) scale(1.12); will-change: transform; }
  html.motion .deco::before { transform: translate3d(0, var(--py, 0px), 0); }
  html.motion .deco::after { transform: translate3d(0, calc(var(--py, 0px) * -.6), 0); }
  html.motion .wave.top { transform: translate3d(var(--wx, 0px), 0, 0); }
  html.motion .wave.top.flip { transform: translate3d(var(--wx, 0px), 0, 0) scaleX(-1); }

  /* ボタン・選ぶ欄の反応（指で押したとき・マウスを載せたとき） */
  .btn, .opt, .float-btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
  .btn:active, .opt:active, .float-btn:active { transform: scale(.97); }
  .opt.is-checked { animation: chosen .3s ease; }
  @keyframes chosen { 50% { transform: scale(1.03); } }
  .summary strong.bump { animation: bump .35s ease; }
  @keyframes bump { 40% { transform: scale(1.08); } }
  .float-cta.show .float-btn { animation: float-in .5s cubic-bezier(.3, 1.5, .5, 1); }
  @keyframes float-in { from { transform: scale(.85); } to { transform: none; } }
  @keyframes beat { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 67, 62, .22); }
  .btn-outline:hover { box-shadow: 0 8px 18px rgba(0, 92, 85, .14); }
  .opt:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 92, 85, .12); }
  .float-btn:hover { transform: scale(1.06); }
  .float-btn:hover .ico, .movie-fallback:hover .play svg { animation: beat .9s ease-in-out infinite; }
}
/* 画面画像を撮るときは、動きをすべて止めて最後の形で撮る */
body.shot *, body.shot *::before, body.shot *::after { animation: none !important; transition: none !important; }
@media print { .rv { opacity: 1 !important; transform: none !important; } }

