/* 巡華 アプリ（段階 1）。淡い生成り・桜色・ピンクゴールド・金の細線。ウェブフォントは読まない。 */
:root {
  --bg: #fbf5ee;
  --bg2: #f6e9e4;
  --card: #fffaf5;
  --ink: #4b2e30;
  --ink-soft: #7d6366;
  --rose: #b4666f;
  --rose-deep: #8f4452;
  --rose-pale: #f4dcdc;
  --gold: #c8a35a;
  --gold-soft: #e6d3a6;
  --sun: #b53b4c;
  --sat: #3f5c9a;
  --ok: #7a8f5c;
  --shadow: 0 1px 0 rgba(200, 163, 90, .25), 0 6px 18px rgba(143, 68, 82, .08);
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  --tabbar-h: 64px;
  --accent: var(--rose);
  --tint: #f9e8e8;
}
/* 季節の色（その日の節気で替える。段階 4 で絵に差し替える） */
body.season-spring { --tint: #f9e6ea; --accent: #b4666f; }
body.season-summer { --tint: #e8eef8; --accent: #6a73ad; }
body.season-autumn { --tint: #f8ebdc; --accent: #b3673a; }
body.season-winter { --tint: #ebeef2; --accent: #7a6a86; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--tint) 0, var(--bg) 220px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
a { color: var(--rose-deep); }
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }

/* 見出し・ロゴ */
.top { text-align: center; padding: 22px 0 10px; position: relative; }
.top::before, .top::after {
  content: ""; position: absolute; top: 14px; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rose-pale) 0 40%, transparent 41%), radial-gradient(circle at 70% 60%, var(--rose-pale) 0 30%, transparent 31%);
  opacity: .8; pointer-events: none;
}
.top::before { left: -6px; }
.top::after { right: -6px; transform: scaleX(-1); }
.logo { font-family: var(--serif); font-size: 34px; letter-spacing: .28em; margin: 0; padding-left: .28em; color: var(--rose-deep); font-weight: 600; line-height: 1.2; }
.logo-en { font-size: 11px; letter-spacing: .4em; color: var(--ink-soft); margin: 0; padding-left: .4em; }
.tagline { display: inline-block; margin: 10px 0 0; padding: 3px 18px; font-size: 12px; color: #fff; background: var(--accent); border-radius: 999px; letter-spacing: .08em; }
.page-title { font-family: var(--serif); font-size: 22px; margin: 4px 0 12px; text-align: center; color: var(--rose-deep); letter-spacing: .1em; }

/* カード */
.card {
  position: relative; background: var(--card); border: 1px solid var(--gold-soft); border-radius: 14px;
  padding: 16px 16px 16px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.card::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(200, 163, 90, .28); border-radius: 11px; pointer-events: none; }
.card h2 { font-family: var(--serif); font-size: 21px; line-height: 1.4; margin: 4px 0 8px; padding-left: 10px; border-left: 3px solid var(--gold); color: var(--rose-deep); }
.card h3 { font-family: var(--serif); font-size: 16px; margin: 14px 0 6px; color: var(--rose-deep); }
.card .lead { margin: 0 0 8px; }
.eyebrow { font-size: 13px; color: var(--ink-soft); margin: 0; }
.note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.row-head .date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }

.btn {
  display: block; width: 100%; font: inherit; font-size: 16px; text-align: center; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #c27983, var(--rose-deep)); border: 0; border-radius: 999px; padding: 12px 16px; margin: 12px 0 4px; letter-spacing: .06em;
}
.btn[disabled], .btn.is-off { background: #d8c4c4; color: #fff; cursor: default; }
.btn-small { display: inline-block; width: auto; font-size: 13px; padding: 6px 16px; margin: 0; background: #fff; color: var(--rose-deep); border: 1px solid var(--gold); }

.entry { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.entry .body { flex: 1; min-width: 0; }
.entry .name { font-family: var(--serif); font-size: 19px; color: var(--rose-deep); margin: 0; }
.entry .desc { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.entry .arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--rose-deep); display: grid; place-items: center; flex: none; }
.entry.is-off { opacity: .6; }
.tag-soon { display: inline-block; font-size: 11px; background: var(--rose-pale); color: var(--rose-deep); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 2px; }

/* 暦の情報の行 */
.facts { margin: 0; display: grid; grid-template-columns: 6.2em 1fr; gap: 6px 10px; }
.facts dt { color: var(--ink-soft); font-size: 13px; }
.facts dd { margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.chip { font-size: 12.5px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--gold); background: #fff; color: var(--rose-deep); }
.chip.gold { background: #fbf0d3; }
.rokuyo-big { font-family: var(--serif); font-size: 22px; color: var(--rose-deep); line-height: 1.35; }
.card > .rokuyo-big { margin: 2px 0 0; }

/* 暦の表 */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 0 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: var(--card); color: var(--rose-deep); font-size: 18px; display: grid; place-items: center; flex: none; padding: 0; font-family: inherit; cursor: pointer; }
.round[disabled] { opacity: .35; cursor: default; }
.ymsel { display: flex; align-items: baseline; justify-content: center; gap: 2px; font-family: var(--serif); font-size: 21px; color: var(--rose-deep); flex-wrap: nowrap; min-width: 0; }
.ymsel select { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; padding: 0 2px; appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center; max-width: 5.2em; }
.ymsel select:focus-visible { outline: 2px solid var(--gold); }
.cal-tools { display: flex; justify-content: center; gap: 8px; margin: 0 0 10px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--gold-soft); border-radius: 10px; overflow: hidden; background: var(--card); }
.cal .wd { text-align: center; font-size: 12px; padding: 4px 0; background: var(--rose-pale); color: var(--rose-deep); }
.cal .wd.sun { color: var(--sun); }
.cal .wd.sat { color: var(--sat); }
.cell {
  position: relative; min-width: 0; min-height: 62px; padding: 3px 1px 2px; font: inherit; color: var(--ink); background: transparent; border: 0;
  border-top: 1px solid rgba(200, 163, 90, .3); border-left: 1px solid rgba(200, 163, 90, .3); text-align: center; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.25;
}
.cell:nth-child(7n + 8) { border-left: 0; }
.cell.blank { cursor: default; }
.cell .d { font-size: 15px; font-weight: 600; }
.cell .r { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.cell .r.good { color: var(--sun); }
.cell .t { font-size: 9px; color: var(--rose-deep); background: var(--rose-pale); border-radius: 6px; padding: 0 3px; margin-top: 1px; white-space: nowrap; }
.cell .mk { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin-top: 1px; }
.mark { display: inline-block; min-width: 13px; height: 13px; line-height: 13px; font-size: 9px; border-radius: 50%; color: #fff; background: var(--gold); text-align: center; padding: 0; }
.mark.m-tora, .mark.m-mi, .mark.m-tsuchi { background: var(--rose); }
.cell.sun .d { color: var(--sun); }
.cell.sat .d { color: var(--sat); }
.cell.today { background: #fdeaea; }
.cell.today .d { color: var(--rose-deep); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.cell.sel { outline: 2px solid var(--rose); outline-offset: -2px; background: #fbe3e3; }
.cell:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-soft); margin: 8px 0 14px; padding: 0; list-style: none; }
.legend .mark { margin-right: 3px; vertical-align: -1px; }
.unsure { font-size: 12.5px; color: #8a5a2b; background: #fbf0dd; border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; }

/* 下のメニュー */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  background: rgba(255, 250, 245, .96); border-top: 1px solid var(--gold-soft); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .in { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar-h); color: var(--ink-soft); text-decoration: none; font-size: 11px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--rose-deep); }
.tab.on .ic { background: var(--rose-pale); border-radius: 999px; padding: 2px 14px; }
.tab .ic { display: grid; place-items: center; padding: 2px 14px; }

.foot { text-align: center; font-size: 12px; color: var(--ink-soft); padding: 14px 0 0; }
.foot .ver { letter-spacing: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.err { color: var(--sun); }

/* 入力・人物鑑定・設定（段階 2） */
.center { text-align: center; }
.fld { display: block; font-size: 13px; color: var(--ink-soft); margin: 10px 0 2px; }
input[type="text"], input[type="number"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--gold-soft);
  border-radius: 10px; padding: 9px 12px; min-height: 44px;
}
input[type="text"]:focus-visible, input[type="number"]:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.birth { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.birth select { min-width: 0; padding: 9px 6px; }
.setsu { border: 1px solid var(--gold-soft); border-radius: 10px; margin: 12px 0 0; padding: 8px 12px 10px; min-width: 0; }
.setsu[hidden], .unk[hidden], .form-err[hidden] { display: none; }
.setsu legend { font-size: 13.5px; padding: 0 6px; color: var(--ink); }
.opt { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--rose-deep); }
.unk { margin-top: 10px; }
.unk-row { display: grid; grid-template-columns: 1fr 5.5em; gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; }
.form-err { margin: 0 0 8px; font-size: 14px; }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.card .sec-title { margin: 2px 0 8px; }
.star { font-family: var(--sans); font-size: 11.5px; color: var(--gold); background: #fbf0d3; border-radius: 999px; padding: 0 8px; border: 1px solid var(--gold-soft); color: #8a6a22; }
.items { margin: 0 0 4px; padding-left: 1.3em; }
.items li { margin: 3px 0; }
.need { font-size: 13px; color: #8a5a2b; background: #fbf0dd; border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; }
.basis summary { cursor: pointer; font-family: var(--serif); font-size: 16px; color: var(--rose-deep); }
.basis .facts { margin-top: 10px; }
.btn-danger { background: linear-gradient(180deg, #b7787a, #8a3f45); }
.confirm .btn { margin-top: 8px; }

@media (max-width: 380px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .cell { min-height: 58px; }
  .cell .d { font-size: 14px; }
  .facts { grid-template-columns: 5.6em 1fr; }
  .top::before, .top::after { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .round, .cell { transition: background-color .15s; }
}

/* 運勢・個人の暦（段階 3） */
.card-flat { padding: 12px 12px 10px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--gold); border-radius: 999px; overflow: hidden; background: #fff; }
.seg-btn { font: inherit; font-size: 15px; color: var(--rose-deep); background: transparent; border: 0; padding: 8px 4px; min-height: 40px; cursor: pointer; letter-spacing: .1em; font-family: var(--serif); }
.seg-btn + .seg-btn { border-left: 1px solid var(--gold-soft); }
.seg-btn.on { background: linear-gradient(180deg, #c27983, var(--rose-deep)); color: #fff; }
.seg-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.period-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 10px 0 6px; }
.period-label { flex: 1; min-width: 0; font: inherit; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--rose-deep); background: transparent; border: 0; border-bottom: 1px dashed var(--gold); padding: 4px 2px; cursor: pointer; text-align: center; }
.period-label:focus-visible { outline: 2px solid var(--gold); }
.quick { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.chip-btn { min-height: 34px; cursor: pointer; font-family: inherit; }
.chip-btn.on { background: var(--rose-pale); border-color: var(--rose); font-weight: 600; }
.picker { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--gold-soft); }
.picker .birth { grid-template-columns: 1.3fr 1fr 1fr; }
.picker .btn-small { display: block; margin: 10px auto 2px; min-height: 36px; }
.picker[hidden] { display: none; }
.pad-top { margin-top: 8px; }
.facts-wide { grid-template-columns: 6.5em 1fr; }
.card .sec-title { margin: 2px 0 8px; }
.pm { flex: none; vertical-align: -2px; }
.pm-0 { color: #6f8f4e; }
.pm-1 { color: #c0607a; }
.pm-2 { color: #c4872f; }
.pm-3 { color: #55709e; }
.pm-4 { color: #3f8f9a; }
.cell .pm-wrap { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; line-height: 0; }
.cell .pm-wrap svg { width: 13px; height: 13px; }
.legend .pm { margin-right: 3px; }
.legend-person { margin-top: 0; }
.mark-list { margin: 8px 0 0; padding: 0; list-style: none; }
.mark-list li { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; font-size: 13.5px; }
.mark-list .nm { font-family: var(--serif); color: var(--rose-deep); flex: none; min-width: 1.4em; }
.mark-day { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; }
.mark-day .nm { font-family: var(--serif); font-size: 19px; color: var(--rose-deep); }
.link-row { margin: 10px 0 2px; }
.link-row .btn-small { text-decoration: none; }
/* 暦の年月の選択は幅いっぱいにしない（入力用の select の規則に縮められないように） */
.ymsel select { width: auto; min-height: 0; }
.card h2 .range { display: inline-block; font-size: 14px; color: var(--ink-soft); font-weight: 400; letter-spacing: 0; margin-left: .3em; }
.card .lead.pad-top { margin-top: 8px; }

/* 季節の挿絵・飾り帯・人物の絵（段階 4）。絵は背景で、文字より下。絵は右側に寄せ、左へ薄れさせる */
.top-art { padding: 30px 0 18px; }
.top-art::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -16px; right: -16px; width: auto; height: auto; border-radius: 0;
  background: url(../img/header.webp) center top / cover no-repeat; opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.top-art::after { display: none; }
.top-art > * { position: relative; z-index: 1; }
.art-head { position: relative; min-height: 84px; }
.art-head > *:not(.art-img) { position: relative; z-index: 1; }
.art-head .art-img {
  position: absolute; top: -4px; right: -4px; bottom: -4px; width: 44%; pointer-events: none; border-radius: 0 10px 10px 0;
  background-repeat: no-repeat; background-size: cover; background-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 30%, #000 62%);
}
.art-spring .art-img { background-image: url(../img/season_spring.webp); }
.art-summer .art-img { background-image: url(../img/season_summer.webp); }
.art-autumn .art-img { background-image: url(../img/season_autumn.webp); }
.art-winter .art-img { background-image: url(../img/season_winter.webp); }
.art-person { min-height: 92px; }
.art-person .art-img {
  width: 112px; top: -6px; bottom: auto; height: 112px; right: -6px; border-radius: 50%; background-image: url(../img/person.webp);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}
.art-person > h2, .art-person > .eyebrow { max-width: calc(100% - 100px); }

/* 図鑑へのリンク */
.zukan-row { margin: 4px 0 0; font-size: 12.5px; }
.zukan-link { color: var(--rose-deep); }
.zukan-link::after { content: " ›"; }

/* 設定の演出 */
.toggle { align-items: flex-start; min-height: 48px; padding: 6px 0; border-top: 1px solid rgba(200, 163, 90, .22); }
.toggle:first-of-type { border-top: 0; }
.toggle input { margin-top: 4px; }
.toggle .tg-name { display: block; font-size: 15px; }
.toggle .tg-desc { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* 初回の鑑定の演出。動きは CSS だけ。--T が全体の長さ（初回 4 秒・設定し直し 1 秒）。動きを減らす設定では出さない */
.reveal { --T: 4s; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 46%, #fffaf0 0, #fbeee8 55%, #f0e0ea 100%); animation: rv-fade var(--T) linear both; }
.reveal.t1 { --T: 1s; }
.rv-svg { width: min(78vw, 56vh, 420px); height: auto; overflow: visible; }
.rv-c, .rv-core, .rv-ring { transform-box: fill-box; transform-origin: center; }
.rv-c { mix-blend-mode: multiply; opacity: 0; animation-timing-function: ease-in-out; animation-fill-mode: both; animation-duration: var(--T), calc(var(--T) * .18); }
.rv-c0 { animation-name: rv-m0, rv-in; animation-delay: 0s, calc(var(--T) * .02); }
.rv-c1 { animation-name: rv-m1, rv-in; animation-delay: 0s, calc(var(--T) * .08); }
.rv-c2 { animation-name: rv-m2, rv-in; animation-delay: 0s, calc(var(--T) * .14); }
.rv-c3 { animation-name: rv-m3, rv-in; animation-delay: 0s, calc(var(--T) * .20); }
.rv-c4 { animation-name: rv-m4, rv-in; animation-delay: 0s, calc(var(--T) * .26); }
.rv-ring { opacity: 0; animation: rv-ring var(--T) ease-in-out both; }
.rv-core { opacity: 0; animation: rv-core var(--T) ease-out both; }
@keyframes rv-in { from { opacity: 0; } to { opacity: .9; } }
@keyframes rv-m0 { 0% { transform: translate(0, 0) scale(.3); } 22% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 0) scale(1); } 80%, 100% { transform: translate(0, 62px) scale(.8); } }
@keyframes rv-m1 { 0% { transform: translate(0, 0) scale(.3); } 28% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 0) scale(1); } 80%, 100% { transform: translate(-59px, 19px) scale(.8); } }
@keyframes rv-m2 { 0% { transform: translate(0, 0) scale(.3); } 34% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 0) scale(1); } 80%, 100% { transform: translate(-36px, -50px) scale(.8); } }
@keyframes rv-m3 { 0% { transform: translate(0, 0) scale(.3); } 40% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 0) scale(1); } 80%, 100% { transform: translate(36px, -50px) scale(.8); } }
@keyframes rv-m4 { 0% { transform: translate(0, 0) scale(.3); } 46% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 0) scale(1); } 80%, 100% { transform: translate(59px, 19px) scale(.8); } }
@keyframes rv-ring { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .8; transform: scale(1); } 60% { opacity: .8; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(.5); } }
@keyframes rv-core { 0%, 70% { opacity: 0; transform: scale(.2); } 88% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes rv-fade { 0% { opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.rv-pt { position: absolute; top: -12%; width: 122px; height: auto; opacity: 0; pointer-events: none; animation: rv-fall var(--T) linear both; }
.rv-pt0 { left: 8%; }
.rv-pt1 { left: 24%; animation-delay: calc(var(--T) * .12); width: 84px; }
.rv-pt2 { left: 42%; animation-delay: calc(var(--T) * .04); width: 152px; }
.rv-pt3 { left: 58%; animation-delay: calc(var(--T) * .18); width: 91px; }
.rv-pt4 { left: 72%; animation-delay: calc(var(--T) * .02); width: 133px; }
.rv-pt5 { left: 86%; animation-delay: calc(var(--T) * .14); width: 99px; }
.rv-pt6 { left: 33%; animation-delay: calc(var(--T) * .26); width: 76px; }
.rv-pt7 { left: 65%; animation-delay: calc(var(--T) * .30); width: 106px; }
@keyframes rv-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg); } 12% { opacity: .9; } 80% { opacity: .8; } 100% { opacity: 0; transform: translate(-40px, 118vh) rotate(260deg); } }
.rv-text { position: absolute; left: 0; right: 0; bottom: 18%; margin: 0; text-align: center; font-family: var(--serif); font-size: 18px; letter-spacing: .2em; color: var(--rose-deep); }
.rv-skip { position: absolute; left: 0; right: 0; bottom: 8%; margin: 0; text-align: center; font-size: 12px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .reveal { display: none; } }
@media (max-width: 380px) { .top-art::before { left: -12px; right: -12px; } }

/* 不具合を送る（段階 5） */
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--gold-soft); border-radius: 10px; padding: 9px 12px; resize: vertical; min-height: 110px; }
textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
