/* 巡華 アプリ（段階 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; }
.chip-star { display: flex; align-items: center; }
.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], .ky-err[hidden] { display: none; }
.ky-err { margin-top: 10px; font-size: 14px; }
.ky-err .err { margin: 0 0 8px; }
.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); }
/* 水彩の印（art2）。凡例・印の見かた・日付の詳細だけ。暦のマスは線画 */
.pm-img { flex: none; display: inline-block; vertical-align: middle; }
.legend .pm-img { margin-right: 2px; }
.legend-person { align-items: center; gap: 2px 14px; }
.mark-list li { align-items: center; }
.mark-day { gap: 10px; }
.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, .35) 24%, rgba(0, 0, 0, .85) 52%, #000 74%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 24%, rgba(0, 0, 0, .85) 52%, #000 74%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.art-spring { --fb: url(../img/season_spring.webp); }
.art-summer { --fb: url(../img/season_summer.webp); }
.art-autumn { --fb: url(../img/season_autumn.webp); }
.art-winter { --fb: url(../img/season_winter.webp); }
.art-head .art-img { background-image: var(--fb); }
/* 二十四節気の絵（読めなければ春夏秋冬の絵が下に残る） */
.sk-01 .art-img { background-image: url(../img/sekki_01.webp), var(--fb); }
.sk-02 .art-img { background-image: url(../img/sekki_02.webp), var(--fb); }
.sk-03 .art-img { background-image: url(../img/sekki_03.webp), var(--fb); }
.sk-04 .art-img { background-image: url(../img/sekki_04.webp), var(--fb); }
.sk-05 .art-img { background-image: url(../img/sekki_05.webp), var(--fb); }
.sk-06 .art-img { background-image: url(../img/sekki_06.webp), var(--fb); }
.sk-07 .art-img { background-image: url(../img/sekki_07.webp), var(--fb); }
.sk-08 .art-img { background-image: url(../img/sekki_08.webp), var(--fb); }
.sk-09 .art-img { background-image: url(../img/sekki_09.webp), var(--fb); }
.sk-10 .art-img { background-image: url(../img/sekki_10.webp), var(--fb); }
.sk-11 .art-img { background-image: url(../img/sekki_11.webp), var(--fb); }
.sk-12 .art-img { background-image: url(../img/sekki_12.webp), var(--fb); }
.sk-13 .art-img { background-image: url(../img/sekki_13.webp), var(--fb); }
.sk-14 .art-img { background-image: url(../img/sekki_14.webp), var(--fb); }
.sk-15 .art-img { background-image: url(../img/sekki_15.webp), var(--fb); }
.sk-16 .art-img { background-image: url(../img/sekki_16.webp), var(--fb); }
.sk-17 .art-img { background-image: url(../img/sekki_17.webp), var(--fb); }
.sk-18 .art-img { background-image: url(../img/sekki_18.webp), var(--fb); }
.sk-19 .art-img { background-image: url(../img/sekki_19.webp), var(--fb); }
.sk-20 .art-img { background-image: url(../img/sekki_20.webp), var(--fb); }
.sk-21 .art-img { background-image: url(../img/sekki_21.webp), var(--fb); }
.sk-22 .art-img { background-image: url(../img/sekki_22.webp), var(--fb); }
.sk-23 .art-img { background-image: url(../img/sekki_23.webp), var(--fb); }
.sk-24 .art-img { background-image: url(../img/sekki_24.webp), var(--fb); }
/* 七十二候の絵（ui.js の KOU_READY にある候だけ class が付く。読めなければ二十四節気の絵） */
.ko-01 .art-img { background-image: url(../img/kou_01.webp), url(../img/sekki_01.webp), var(--fb); }
.ko-02 .art-img { background-image: url(../img/kou_02.webp), url(../img/sekki_01.webp), var(--fb); }
.ko-03 .art-img { background-image: url(../img/kou_03.webp), url(../img/sekki_01.webp), var(--fb); }
.ko-04 .art-img { background-image: url(../img/kou_04.webp), url(../img/sekki_02.webp), var(--fb); }
.ko-05 .art-img { background-image: url(../img/kou_05.webp), url(../img/sekki_02.webp), var(--fb); }
.ko-06 .art-img { background-image: url(../img/kou_06.webp), url(../img/sekki_02.webp), var(--fb); }
.ko-07 .art-img { background-image: url(../img/kou_07.webp), url(../img/sekki_03.webp), var(--fb); }
.ko-08 .art-img { background-image: url(../img/kou_08.webp), url(../img/sekki_03.webp), var(--fb); }
.ko-09 .art-img { background-image: url(../img/kou_09.webp), url(../img/sekki_03.webp), var(--fb); }
.ko-10 .art-img { background-image: url(../img/kou_10.webp), url(../img/sekki_04.webp), var(--fb); }
.ko-11 .art-img { background-image: url(../img/kou_11.webp), url(../img/sekki_04.webp), var(--fb); }
.ko-12 .art-img { background-image: url(../img/kou_12.webp), url(../img/sekki_04.webp), var(--fb); }
.ko-13 .art-img { background-image: url(../img/kou_13.webp), url(../img/sekki_05.webp), var(--fb); }
.ko-14 .art-img { background-image: url(../img/kou_14.webp), url(../img/sekki_05.webp), var(--fb); }
.ko-15 .art-img { background-image: url(../img/kou_15.webp), url(../img/sekki_05.webp), var(--fb); }
.ko-16 .art-img { background-image: url(../img/kou_16.webp), url(../img/sekki_06.webp), var(--fb); }
.ko-17 .art-img { background-image: url(../img/kou_17.webp), url(../img/sekki_06.webp), var(--fb); }
.ko-18 .art-img { background-image: url(../img/kou_18.webp), url(../img/sekki_06.webp), var(--fb); }
.ko-19 .art-img { background-image: url(../img/kou_19.webp), url(../img/sekki_07.webp), var(--fb); }
.ko-20 .art-img { background-image: url(../img/kou_20.webp), url(../img/sekki_07.webp), var(--fb); }
.ko-21 .art-img { background-image: url(../img/kou_21.webp), url(../img/sekki_07.webp), var(--fb); }
.ko-22 .art-img { background-image: url(../img/kou_22.webp), url(../img/sekki_08.webp), var(--fb); }
.ko-23 .art-img { background-image: url(../img/kou_23.webp), url(../img/sekki_08.webp), var(--fb); }
.ko-24 .art-img { background-image: url(../img/kou_24.webp), url(../img/sekki_08.webp), var(--fb); }
.ko-25 .art-img { background-image: url(../img/kou_25.webp), url(../img/sekki_09.webp), var(--fb); }
.ko-26 .art-img { background-image: url(../img/kou_26.webp), url(../img/sekki_09.webp), var(--fb); }
.ko-27 .art-img { background-image: url(../img/kou_27.webp), url(../img/sekki_09.webp), var(--fb); }
.ko-28 .art-img { background-image: url(../img/kou_28.webp), url(../img/sekki_10.webp), var(--fb); }
.ko-29 .art-img { background-image: url(../img/kou_29.webp), url(../img/sekki_10.webp), var(--fb); }
.ko-30 .art-img { background-image: url(../img/kou_30.webp), url(../img/sekki_10.webp), var(--fb); }
.ko-31 .art-img { background-image: url(../img/kou_31.webp), url(../img/sekki_11.webp), var(--fb); }
.ko-32 .art-img { background-image: url(../img/kou_32.webp), url(../img/sekki_11.webp), var(--fb); }
.ko-33 .art-img { background-image: url(../img/kou_33.webp), url(../img/sekki_11.webp), var(--fb); }
.ko-34 .art-img { background-image: url(../img/kou_34.webp), url(../img/sekki_12.webp), var(--fb); }
.ko-35 .art-img { background-image: url(../img/kou_35.webp), url(../img/sekki_12.webp), var(--fb); }
.ko-36 .art-img { background-image: url(../img/kou_36.webp), url(../img/sekki_12.webp), var(--fb); }
.ko-37 .art-img { background-image: url(../img/kou_37.webp), url(../img/sekki_13.webp), var(--fb); }
.ko-38 .art-img { background-image: url(../img/kou_38.webp), url(../img/sekki_13.webp), var(--fb); }
.ko-39 .art-img { background-image: url(../img/kou_39.webp), url(../img/sekki_13.webp), var(--fb); }
.ko-40 .art-img { background-image: url(../img/kou_40.webp), url(../img/sekki_14.webp), var(--fb); }
.ko-41 .art-img { background-image: url(../img/kou_41.webp), url(../img/sekki_14.webp), var(--fb); }
.ko-42 .art-img { background-image: url(../img/kou_42.webp), url(../img/sekki_14.webp), var(--fb); }
.ko-43 .art-img { background-image: url(../img/kou_43.webp), url(../img/sekki_15.webp), var(--fb); }
.ko-44 .art-img { background-image: url(../img/kou_44.webp), url(../img/sekki_15.webp), var(--fb); }
.ko-45 .art-img { background-image: url(../img/kou_45.webp), url(../img/sekki_15.webp), var(--fb); }
.ko-46 .art-img { background-image: url(../img/kou_46.webp), url(../img/sekki_16.webp), var(--fb); }
.ko-47 .art-img { background-image: url(../img/kou_47.webp), url(../img/sekki_16.webp), var(--fb); }
.ko-48 .art-img { background-image: url(../img/kou_48.webp), url(../img/sekki_16.webp), var(--fb); }
.ko-49 .art-img { background-image: url(../img/kou_49.webp), url(../img/sekki_17.webp), var(--fb); }
.ko-50 .art-img { background-image: url(../img/kou_50.webp), url(../img/sekki_17.webp), var(--fb); }
.ko-51 .art-img { background-image: url(../img/kou_51.webp), url(../img/sekki_17.webp), var(--fb); }
.ko-52 .art-img { background-image: url(../img/kou_52.webp), url(../img/sekki_18.webp), var(--fb); }
.ko-53 .art-img { background-image: url(../img/kou_53.webp), url(../img/sekki_18.webp), var(--fb); }
.ko-54 .art-img { background-image: url(../img/kou_54.webp), url(../img/sekki_18.webp), var(--fb); }
.ko-55 .art-img { background-image: url(../img/kou_55.webp), url(../img/sekki_19.webp), var(--fb); }
.ko-56 .art-img { background-image: url(../img/kou_56.webp), url(../img/sekki_19.webp), var(--fb); }
.ko-57 .art-img { background-image: url(../img/kou_57.webp), url(../img/sekki_19.webp), var(--fb); }
.ko-58 .art-img { background-image: url(../img/kou_58.webp), url(../img/sekki_20.webp), var(--fb); }
.ko-59 .art-img { background-image: url(../img/kou_59.webp), url(../img/sekki_20.webp), var(--fb); }
.ko-60 .art-img { background-image: url(../img/kou_60.webp), url(../img/sekki_20.webp), var(--fb); }
.ko-61 .art-img { background-image: url(../img/kou_61.webp), url(../img/sekki_21.webp), var(--fb); }
.ko-62 .art-img { background-image: url(../img/kou_62.webp), url(../img/sekki_21.webp), var(--fb); }
.ko-63 .art-img { background-image: url(../img/kou_63.webp), url(../img/sekki_21.webp), var(--fb); }
.ko-64 .art-img { background-image: url(../img/kou_64.webp), url(../img/sekki_22.webp), var(--fb); }
.ko-65 .art-img { background-image: url(../img/kou_65.webp), url(../img/sekki_22.webp), var(--fb); }
.ko-66 .art-img { background-image: url(../img/kou_66.webp), url(../img/sekki_22.webp), var(--fb); }
.ko-67 .art-img { background-image: url(../img/kou_67.webp), url(../img/sekki_23.webp), var(--fb); }
.ko-68 .art-img { background-image: url(../img/kou_68.webp), url(../img/sekki_23.webp), var(--fb); }
.ko-69 .art-img { background-image: url(../img/kou_69.webp), url(../img/sekki_23.webp), var(--fb); }
.ko-70 .art-img { background-image: url(../img/kou_70.webp), url(../img/sekki_24.webp), var(--fb); }
.ko-71 .art-img { background-image: url(../img/kou_71.webp), url(../img/sekki_24.webp), var(--fb); }
.ko-72 .art-img { background-image: url(../img/kou_72.webp), url(../img/sekki_24.webp), var(--fb); }
/* 見る時刻の色合い（絵の上だけ。絵はマスクの内側なので、左の薄れ方と同じに溶ける。文字の上には重ねない） */
.art-head .art-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tone-morning .art-head .art-img::after { background: #fff8ec; opacity: .30; }
.tone-evening .art-head .art-img::after { background: #e8895a; mix-blend-mode: multiply; opacity: .34; }
.tone-night .art-head .art-img::after { background: #3f5398; mix-blend-mode: multiply; opacity: .34; }
.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; }

/* 用語の説明（0.0.8）。破線の下線の語をタップすると、下のメニューの上に小さなシートが出る */
.term { font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; background: none; border: 0; padding: 3px 1px; margin: -3px -1px; cursor: pointer; display: inline; text-decoration: underline dashed var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }
.term[aria-expanded="true"] { background: rgba(200, 163, 90, .2); border-radius: 3px; }
.term:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 3px; }
.star.term { font-family: var(--sans); font-size: 11.5px; color: #8a6a22; background: #fbf0d3; border: 1px solid var(--gold-soft); border-radius: 999px; padding: 3px 10px; margin: 0; text-decoration: none; }
.star.term[aria-expanded="true"] { background: #f4e2a8; }
.gloss-pop[hidden], .gp-link[hidden] { display: none; }
.gloss-pop {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); width: min(calc(100% - 24px), 536px); max-height: 46vh; overflow: auto;
  background: var(--card); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 -2px 0 rgba(200, 163, 90, .25), 0 10px 28px rgba(75, 46, 48, .22);
}
.gloss-pop:focus { outline: none; }
.gloss-pop:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gp-head { margin: 0 0 6px; font-family: var(--serif); color: var(--rose-deep); }
.gp-term { font-size: 19px; letter-spacing: .06em; }
.gp-yomi { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.gp-body { margin: 0; font-size: 14px; line-height: 1.75; }
.gp-link { margin: 8px 0 0; font-size: 13px; }
.gp-close { display: block; margin: 10px 0 0 auto; font: inherit; font-size: 13px; color: var(--rose-deep); background: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: 6px 18px; min-height: 36px; cursor: pointer; }

/* 詳細の姓名判断 */
.seimei { margin-top: 14px; padding-top: 6px; border-top: 1px solid rgba(200, 163, 90, .3); }
.seimei .chips { margin-top: 8px; }
.seimei .facts { margin-top: 12px; }
.seimei dd p { margin: 0 0 4px; }
.seimei .kaku-n { font-family: var(--serif); color: var(--rose-deep); }
.seimei .kaku-meaning { color: var(--ink-soft); font-size: 13px; }

/* 設定の一覧・規約類の画面 */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid rgba(200, 163, 90, .25); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 6px 2px; color: var(--ink); text-decoration: none; }
.link-list a::after { content: "›"; color: var(--rose-deep); font-size: 20px; }
.legal h2 { font-size: 18px; margin: 18px 0 8px; }
.legal h3 { font-size: 16px; margin: 14px 0 6px; }
.legal h4 { font-size: 14.5px; margin: 12px 0 4px; color: var(--ink); font-family: var(--serif); }
.legal p, .legal li { font-size: 14px; line-height: 1.8; }
.legal ol, .legal ul { padding-left: 1.4em; margin: 6px 0 10px; }
.legal .muted, .legal .note { font-size: 12.5px; color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--gold-soft); padding: 4px 8px; text-align: left; vertical-align: top; }
.back-row { margin: 4px 0 12px; font-size: 14px; }

/* アプリとして使う（0.0.9）。設定の欄とインストール方法のページ */
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inst-icon { display: block; width: 56px; height: 56px; border-radius: 12px; margin: 2px 0 8px; }
.inst-steps[hidden] { display: none; }
.inst-steps .items { padding-left: 1.6em; }
.inst-steps .items li { margin: 8px 0; }
.install-row { margin-top: 10px; }

/* 運勢 段階 B（0.1.0）: ① 時期 ② あなた ③ まとめ・三つの占いの要点・花・盤の図 */
.card h3.step { margin-top: 12px; }
.card .note.nest { margin: 0 0 2px; font-size: 13px; }
.points dd p { margin: 0 0 6px; }
.points dd p.cal { margin-top: 2px; }
.points dt .star { display: inline-block; margin-top: 4px; }
.flower-row { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; }
.flower-row + .flower-row { border-top: 1px solid rgba(200, 163, 90, .25); padding-top: 10px; }
.flower-img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid rgba(200, 163, 90, .35); }
.flower-none { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; color: var(--rose); background: var(--rose-pale); }
.flower-tx { min-width: 0; }
.flower-tx p { margin: 0; }
.flower-tx .flower-label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 2px; }
.board-fig { margin: 14px 0 4px; }
.board { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.board .b-cell { fill: #fffdf8; stroke: var(--gold); stroke-width: 1; }
.board .b-center { fill: #fbf0d3; }
.board .b-warn { fill: #f8ece9; }
.board .b-you { fill: none; stroke: var(--rose-deep); stroke-width: 2.5; }
.board text { text-anchor: middle; font-family: var(--sans); fill: var(--ink); }
.board .b-dir { font-size: 13px; fill: var(--ink-soft); }
.board .b-name { font-size: 11.5px; fill: var(--ink-soft); }
.board .b-star { font-family: var(--serif); font-size: 21px; }
.board .b-star-you { fill: var(--rose-deep); font-weight: 600; }
.board .b-mark { font-size: 11px; fill: #a0463c; }
.board .b-mark-you { fill: var(--rose-deep); font-weight: 600; }

/* 巡華の占いのしくみ（app/shikumi.html）の図と表 */
.shikumi p, .shikumi li { font-size: 14.5px; line-height: 1.85; }
.shikumi ul { padding-left: 1.3em; margin: 6px 0 10px; }
.shikumi .tw { overflow-x: auto; margin: 8px 0 10px; }
.shikumi table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shikumi th, .shikumi td { border: 1px solid var(--gold-soft); padding: 5px 7px; text-align: left; vertical-align: top; line-height: 1.6; }
.shikumi th { background: #fbf0d3; color: var(--rose-deep); font-weight: 600; white-space: nowrap; }
.shikumi .toc { padding-left: 1.4em; margin: 4px 0 0; }
.shikumi .toc li { margin: 2px 0; }
.shikumi .def dt { font-weight: 600; color: var(--rose-deep); font-size: 13.5px; margin-top: 8px; }
.shikumi .def dd { margin: 2px 0 0; font-size: 14px; line-height: 1.8; }
.fig { width: 100%; max-width: 420px; height: auto; display: block; margin: 10px auto; }
.fig .b1 { fill: #fdf0f2; stroke: #e3bfc8; }
.fig .b2 { fill: #f3eefb; stroke: #cdbfe3; }
.fig .b3 { fill: #fff7e6; stroke: #d9b26a; }
.fig .ln { fill: none; stroke: #b48a3c; stroke-width: 2; }
.fig text { text-anchor: middle; fill: #4a2e35; font-family: var(--sans); }
.fig .h { font-size: 15px; font-weight: 700; fill: #7a2e45; }
.fig .t { font-size: 13px; font-weight: 600; }
.fig .s { font-size: 11.5px; fill: #8a6a70; }
.fig .lab { fill: #fff; stroke: #e3bfc8; }
.fig .lab2 { fill: #fff; stroke: #cdbfe3; }
.fig .lab3 { fill: #fff; stroke: #d9b26a; }
.fig .pill1 { fill: #f6dde3; }
.fig .pill2 { fill: #e6ddf5; }
.fig .pill3 { fill: #f7e6c2; }
.fig .tl { text-anchor: start; }
.fig .q1 { font-size: 12.5px; }
.fig .sm { font-size: 11px; }
.fig .xs { font-size: 11.5px; fill: #8a6a70; }
.fig .red { fill: #a8324f; }
.fig .x { font-size: 22px; font-weight: 700; fill: #b48a3c; }
.fig .arw { fill: #b48a3c; }
.fig .big { font-size: 20px; font-weight: 700; }
.fig .cell { fill: #fff; stroke: #d8c3bb; }
.fig .cellc { fill: #fbf4f1; stroke: #d8c3bb; }
.fig .hl { fill: #fde3e9; stroke: #b8486a; stroke-width: 2.5; }
.fig .warn { fill: #f3f0f0; stroke: #d8c3bb; }
.fig .home { fill: none; stroke: #8a6a70; stroke-width: 1.5; stroke-dasharray: 5 4; }
.area-group { margin: 6px 0 8px; font-size: 14px; font-weight: 700; padding-left: 8px; border-left: 3px solid var(--rose); }
.facts + .area-group { margin-top: 20px; }

/* ---- 五格の図・四運・補助（人物鑑定の詳細・入力の確かめ。SPEC §15.2） ---- */
.gk { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.gk text { font-family: var(--sans); fill: var(--ink); }
.gk .ch { font-family: var(--serif); text-anchor: middle; }
.gk .st { font-size: 13px; fill: var(--ink-soft); }
.gk .ln { stroke: var(--gold); stroke-width: 1.5; fill: none; }
.gk .ln-g { stroke: var(--gold); stroke-width: 1.5; fill: none; stroke-dasharray: 4 3; }
.gk .bx { fill: #fff; stroke: var(--gold); stroke-width: 1.2; }
.gk a:hover .bx, .gk a:focus .bx { fill: var(--rose-pale); }
.gk a:focus { outline: none; }
.gk a:focus-visible .bx { stroke: var(--rose-deep); stroke-width: 2.4; }
.gk .bn { font-size: 13px; text-anchor: middle; fill: var(--ink-soft); }
.gk .bv { font-size: 21px; font-family: var(--serif); text-anchor: middle; fill: var(--rose-deep); }
.gk .arr { font-size: 14px; fill: var(--rose-deep); text-anchor: end; }
.gk .ph { fill: #fffaf5; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 3; }
.gk .phn { font-size: 12px; text-anchor: middle; fill: var(--ink-soft); }
.gk .phv { font-size: 18px; text-anchor: middle; font-family: var(--serif); fill: var(--ink); }
.gk .phs { font-size: 12px; text-anchor: middle; fill: var(--ink); }
.gk-cap { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; text-align: center; }
/* 吉凶の札（全吉と同じ形: 記号＋語を枠で囲む）。360 幅でも 12px 以上になるよう、図の中は 14px */
.jt { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.4; padding: 0 7px; border: 1px solid currentColor; border-radius: 5px; white-space: nowrap; background: #fff; }
.t-dai { color: #3f7a4a; background: #eef6ef; }
.t-chu { color: #3f5c9a; background: #eef2fa; }
.t-sho { color: #8a6a22; background: #fbf4e0; }
.t-shk { color: #b8591a; background: #fdf0e4; }
.t-kyo { color: #b03a3a; background: #fbecec; }
.gk rect.tg { stroke-width: 1; }
.gk rect.tg.t-dai { fill: #eef6ef; stroke: #3f7a4a; }
.gk rect.tg.t-chu { fill: #eef2fa; stroke: #3f5c9a; }
.gk rect.tg.t-sho { fill: #fbf4e0; stroke: #8a6a22; }
.gk rect.tg.t-shk { fill: #fdf0e4; stroke: #b8591a; }
.gk rect.tg.t-kyo { fill: #fbecec; stroke: #b03a3a; }
.gk text.tgt { font-size: 14px; font-weight: 700; text-anchor: middle; }
.gk text.tgt.t-dai { fill: #3f7a4a; }
.gk text.tgt.t-chu { fill: #3f5c9a; }
.gk text.tgt.t-sho { fill: #8a6a22; }
.gk text.tgt.t-shk { fill: #b8591a; }
.gk text.tgt.t-kyo { fill: #b03a3a; }
.gk-ls { list-style: none; margin: 10px 0 0; padding: 0; }
.gk-ls li { padding: 8px 0; border-top: 1px solid var(--gold-soft); font-size: 13.5px; line-height: 1.7; }
.gk-ls li:first-child { border-top: 0; }
.gk-ls .gl-h { font-weight: 700; color: var(--ink); white-space: nowrap; }
.gk-ls .jt { margin-left: 2px; }
.gk-ls a { color: inherit; text-decoration: none; display: block; }
.gl-u, .un-u { color: var(--ink-soft); font-size: 12px; }
.seimei .sub-title { margin-top: 18px; }
.seimei .shiun-note { margin: 2px 0 6px; }
.un { list-style: none; margin: 6px 0 0; padding: 0; }
.un-row { border-top: 1px solid var(--gold-soft); }
.un-row:first-child { border-top: 0; }
.un-in { display: grid; grid-template-columns: 5.6em auto 1fr; align-items: center; gap: 2px 10px; padding: 8px 0; color: inherit; text-decoration: none; min-height: 44px; }
.un-n { font-size: 13px; color: var(--ink-soft); }
.un-v { font-family: var(--serif); font-size: 19px; color: var(--rose-deep); }
.un-row .jt { justify-self: start; }
.un-f { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.un-m { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
a.un-in:hover .un-v { text-decoration: underline; }
a.un-in .un-f::after { content: " ›"; color: var(--rose-deep); }
/* 入力の画面の確かめ（文字入りの図） */
.name-check { margin-top: 14px; }
.name-check .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
