/* 結婚後の手続き順番帳 ― 世界観は「ふたりの手続き帳」：生成りの和紙・墨の明朝・朱肉の判子・祝いの水引。
   共通の base.css は読まない（site.json look: own）
   字体：Shippori Mincho B1（見出し・数字）＋ Zen Kaku Gothic Antique（本文）
   動きの型：「結ぶ・押す・めくる」― 水引が結ばれるように線が引かれ、判子は上から押され、帳面は下からめくれて現れる */
:root {
  --washi: #f5efe2; --paper: #fffcf5; --paper-2: #fbf6ea;
  --sumi: #2a2521; --sumi-2: #6a6158; --sumi-3: #736a60;
  --shu: #c3361f; --shu-soft: rgba(195, 54, 31, .1);
  --gold: #a9853a; --gold-2: #d4b36a; --ai: #2d3f63;
  --rule: #e4d9c4; --rule-2: #efe6d4;
  --min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --goth: "Zen Kaku Gothic Antique", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sumi); }
body { margin: 0; background: var(--fiber), var(--washi); color: var(--sumi); font-family: var(--goth); font-size: 16px; line-height: 1.9; letter-spacing: .03em; font-feature-settings: "palt" 1; }
a { color: var(--ai); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(45, 63, 99, .4); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(212, 179, 106, .35) 62%); }
p { margin: 0 0 1em; }
input, select, button { font: inherit; }
[hidden] { display: none !important; }

/* ── 頭：細い墨の帯と、金の一本線 ── */
.site-header { background: var(--paper); color: var(--sumi); padding: 12px 20px 11px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; border-bottom: 1px solid var(--gold); box-shadow: 0 3px 0 -2px var(--gold); }
.site-name { color: var(--sumi); text-decoration: none; font-family: var(--min); font-weight: 700; font-size: 1.02rem; letter-spacing: .16em; }
.pr-notice { margin: 0; color: var(--sumi-3); font-size: 0.8rem; letter-spacing: .06em; }

/* ── 本文の柱 ── */
.site-main { max-width: 720px; margin: 0 auto; padding: 0 20px 24px; }
h1, h2, h3 { font-family: var(--min); font-weight: 800; letter-spacing: .06em; line-height: 1.5; }
h2 { font-size: 1.3rem; margin: 64px 0 20px; display: flex; align-items: center; gap: 14px; }
h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--shu); rotate: 45deg; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
h3 { font-size: 1.05rem; margin: 32px 0 10px; }
.source { font-size: 0.94rem; color: var(--sumi-3); overflow-wrap: anywhere; line-height: 1.7; }

/* ── 表紙 ── */
.cover { position: relative; padding: 56px 0 36px; margin-bottom: 8px; }
.cover-tate { position: absolute; right: -4px; top: 44px; margin: 0; writing-mode: vertical-rl; font-family: var(--min); font-weight: 700; font-size: 0.94rem; letter-spacing: .5em; color: var(--sumi-3); }
.mizuhiki { display: block; width: 168px; height: auto; margin: 0 0 22px -6px; overflow: visible; }
.mz { stroke-width: 3.2; }
.mz-r { stroke: var(--shu); }
.mz-g { stroke: var(--gold); }
.cover h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); line-height: 1.22; margin: 0 40px 22px 0; letter-spacing: .04em; }
.cover h1 .sub { display: block; font-size: .95rem; line-height: 1.7; margin-top: 18px; font-weight: 700; color: var(--sumi-2); letter-spacing: .08em; }
.cover .lead { font-size: .95rem; color: var(--sumi-2); margin: 0 30px 0 0; }
.cover .lead strong { color: var(--sumi); }
.hanko {
  position: absolute; right: 36px; top: 168px; width: 72px; height: 72px; display: grid; place-items: center;
  border: 3px solid var(--shu); border-radius: 50%; color: var(--shu); rotate: -9deg; opacity: .86; mix-blend-mode: multiply;
  -webkit-mask-image: var(--grain), linear-gradient(#000, #000); -webkit-mask-composite: xor;
}
.hanko::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--shu); border-radius: 50%; }
.hanko span { font-family: var(--min); font-weight: 800; font-size: 1.25rem; writing-mode: vertical-rl; letter-spacing: .05em; line-height: 1; }

/* ── 付箋のような注意書き ── */
.memo { position: relative; background: #fbf3d8; padding: 18px 18px 16px 22px; margin: 10px 0 0; font-size: 0.94rem; color: var(--sumi-2); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 24px -20px rgba(70, 50, 20, .6); rotate: -.4deg; }
.memo::before { content: ""; position: absolute; top: -9px; left: 50%; width: 84px; height: 20px; translate: -50% 0; rotate: 2deg; background: rgba(195, 54, 31, .16); }
.memo p { margin: 0; }
.memo strong { background: none; color: var(--sumi); }

/* ── 帳面：罫線の紙 ── */
.page {
  position: relative; background: var(--paper); border-radius: 2px; padding: 20px 18px;
  box-shadow: 0 0 0 1px var(--rule), 0 1px 0 1px #fff inset, 0 22px 34px -26px rgba(60, 40, 10, .55);
}
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(var(--shu) 0 33%, var(--paper) 33% 36%, var(--gold) 36% 64%, var(--paper) 64% 67%, var(--shu) 67%); opacity: .85; }

/* ── 選ぶ ── */
.pick fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.pick legend { font-family: var(--min); font-weight: 800; font-size: 1.02rem; margin-bottom: 10px; padding: 0; letter-spacing: .05em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 12px; font-size: .88rem; line-height: 1.45;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; color: var(--sumi); transition: background .2s, border-color .2s, color .2s;
}
.chip span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--sumi-3); transition: all .25s cubic-bezier(.2, 1.4, .4, 1); }
.chip input[type="checkbox"] + span::before { border-radius: 2px; }
.chip input:checked + span { background: #fff; border-color: var(--shu); color: var(--sumi); box-shadow: 0 0 0 1px var(--shu) inset; }
.chip input:checked + span::before { border-color: var(--shu); background: radial-gradient(var(--shu) 0 4px, transparent 4.5px); scale: 1.15; }
.chip input[type="checkbox"]:checked + span::before { background: var(--shu); box-shadow: 0 0 0 2px #fff inset; }
.chip input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }
.pick .hint, .hint { font-size: 0.94rem; color: var(--sumi-3); margin: 8px 0 0; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px; border-radius: 2px; border: 0;
  background: var(--sumi); color: #f7f0e1; font-family: var(--min); font-weight: 800; font-size: 1rem; letter-spacing: .14em; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 var(--gold) inset, 0 12px 20px -14px rgba(0, 0, 0, .7); transition: transform .15s, box-shadow .15s;
}
.btn::after { content: "→"; font-family: var(--goth); transition: translate .2s; }
.btn:hover::after { translate: 4px 0; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--sumi); box-shadow: 0 0 0 1px var(--sumi-3) inset; font-size: .88rem; min-height: 44px; padding: 8px 18px; }
.btn.ghost::after { content: none; }
.err { color: var(--shu); font-weight: 700; min-height: 1em; margin: 6px 0; font-size: .88rem; }

/* ── 進み具合：水引の金の糸 ── */
.lead { font-size: .95rem; }
#junban-count { font-family: var(--min); font-weight: 700; font-size: 1.02rem; }
.progress { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; }
.progress-bar { flex: 1; height: 6px; background: var(--rule-2); border-radius: 3px; overflow: hidden; position: relative; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--shu), var(--gold)); transition: width .6s cubic-bezier(.2, .8, .2, 1); border-radius: 3px; }
.progress-text { font-family: var(--min); font-weight: 800; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-note { font-family: var(--min); color: var(--sumi-2); text-align: center; padding: 28px 12px; border: 1px dashed var(--rule); background: var(--paper-2); }

/* ── 行き先ごとの順番：左に朱の通し番号 ── */
.stops { list-style: none; padding: 0; margin: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 1px; background: repeating-linear-gradient(var(--gold) 0 4px, transparent 4px 9px); }
.stop { position: relative; padding-left: 60px; margin-bottom: 34px; }
.stop-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.stop-no {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper);
  border: 2px solid var(--shu); border-radius: 50%; color: var(--shu); font-family: var(--min); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 4px var(--washi);
}
.stop-title { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.stop-why { font-size: 0.94rem; color: var(--sumi-2); margin: 6px 0 12px; }
.stop .page { padding: 4px 0; }
.stop.is-hidden, .todo.is-hidden { display: none; }
.todos { list-style: none; margin: 0; padding: 0; }
.todo { position: relative; padding: 14px 16px 14px 14px; border-bottom: 1px solid var(--rule-2); }
.todo:last-child { border-bottom: 0; }
.todo-row { display: flex; gap: 12px; align-items: flex-start; }
.todo-check { position: relative; flex: none; width: 44px; height: 44px; margin: -6px 0 0 -4px; cursor: pointer; }
.todo-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.todo-check .box { position: absolute; inset: 10px; border: 1.5px solid var(--sumi-3); border-radius: 2px; background: #fff; transition: all .2s; }
.todo-check input:focus-visible + .box { outline: 2px solid var(--shu); outline-offset: 2px; }
.todo-main { min-width: 0; flex: 1; padding-right: 40px; }
.todo-name { font-weight: 700; margin: 0; line-height: 1.6; font-size: .96rem; transition: color .3s; }
.todo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.badge { display: inline-block; font-size: 0.8rem; line-height: 1.5; padding: 2px 8px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--sumi-2); border-radius: 2px; }
.badge.due { border-color: var(--shu); color: var(--shu); background: var(--shu-soft); font-weight: 700; }
.badge.due-soft { border-color: var(--gold-2); color: #7d6127; }
.badge.visit { background: var(--sumi); border-color: var(--sumi); color: #f7f0e1; }
.todo details { margin-top: 8px; }
.todo summary { cursor: pointer; font-size: 0.94rem; color: var(--ai); min-height: 32px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.todo summary::-webkit-details-marker { display: none; }
.todo summary::before { content: "＋"; font-size: 0.8rem; transition: rotate .2s; }
.todo details[open] summary::before { rotate: 45deg; }
.todo dl { margin: 6px 0 0; font-size: 0.94rem; background: var(--paper-2); padding: 10px 12px; border-left: 2px solid var(--gold-2); }
.todo dt { font-weight: 700; font-size: 0.8rem; color: var(--sumi-3); letter-spacing: .1em; margin-top: 8px; }
.todo dt:first-child { margin-top: 0; }
.todo dd { margin: 0; }
.needs, .facts { margin: 0; padding-left: 1.1em; }
.needs li, .facts li { margin: 2px 0; }

/* 済の判子 */
.stamp {
  position: absolute; right: 10px; top: 10px; width: 50px; height: 50px; display: grid; place-items: center; pointer-events: none;
  border: 2.5px solid var(--shu); border-radius: 50%; color: var(--shu); font-family: var(--min); font-weight: 800; font-size: 1.3rem;
  opacity: 0; transform: rotate(-14deg) scale(1.6); mix-blend-mode: multiply;
  -webkit-mask-image: var(--grain), linear-gradient(#000, #000); -webkit-mask-composite: xor;
}
.todo.is-done .stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
.todo.is-done .todo-name { color: var(--sumi-3); text-decoration: line-through; text-decoration-color: rgba(195, 54, 31, .7); text-decoration-thickness: 1.5px; }
.todo.is-done .todo-check .box { background: var(--shu); border-color: var(--shu); }
.todo.is-done .todo-check .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 40deg; }

/* ── 期限の表 ── */
.table-wrap { overflow-x: auto; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.kigen-table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
.kigen-table th, .kigen-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--rule-2); }
.kigen-table th { font-family: var(--min); font-size: .8rem; letter-spacing: .12em; border-bottom: 2px solid var(--sumi); background: var(--paper-2); }
.kigen-table .c-due { white-space: nowrap; color: var(--shu); font-family: var(--min); font-weight: 800; font-size: 1rem; }

/* ── 数えてわかったこと：手帳の見開きの大きな数字 ── */
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); box-shadow: 0 0 0 1px var(--rule); margin: 8px 0 18px; }
.tally-item { background: var(--paper); padding: 18px 14px 16px; }
.tally-n { font-family: var(--min); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sumi); font-variant-numeric: tabular-nums; }
.tally-item:first-child .tally-n, .tally-item:nth-child(3) .tally-n { color: var(--shu); }
.tally-n small { font-size: .85rem; margin-left: 3px; color: var(--sumi-2); }
.tally-what { font-size: 0.94rem; color: var(--sumi-2); margin-top: 10px; line-height: 1.65; }
.bundle { list-style: none; padding: 0; margin: 10px 0 0; }
.bundle li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.bundle .b-place { font-family: var(--min); font-weight: 700; font-size: .95rem; }
.bundle .b-dots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.bundle .b-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--gold); }
.bundle .b-dots i.visit { background: var(--shu); border-color: var(--shu); }
.bundle .b-n { grid-row: 1; grid-column: 2; font-size: 0.94rem; color: var(--sumi-2); }

/* ── 一覧のページ ── */
.dest { background: var(--paper); box-shadow: 0 0 0 1px var(--rule); padding: 16px 18px; margin: 14px 0; }
.dest h3 { margin: 0 0 6px; }
.dest dl { margin: 0; font-size: 0.94rem; }
.dest dt { font-weight: 700; font-size: 0.8rem; color: var(--sumi-3); letter-spacing: .1em; margin-top: 8px; }
.dest dd { margin: 0; }
.dest .facts { margin-top: 4px; }
.sources-list { padding-left: 1.2em; font-size: 0.94rem; }
.sources-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-main > h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 48px 0 16px; line-height: 1.35; }
.site-main > h1 .sub, h1 .sub { display: block; font-size: .95rem; color: var(--sumi-2); margin-top: 10px; }

/* ── よくある質問：問・答 ── */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; font-family: var(--min); font-weight: 700; line-height: 1.6; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--sumi); color: #f7f0e1; font-size: .82rem; border-radius: 2px; margin-top: 1px; }
.faq summary::after { content: "＋"; margin-left: auto; color: var(--sumi-3); transition: rotate .25s; font-family: var(--goth); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { position: relative; margin: 0 0 18px; padding: 0 4px 0 42px; font-size: 0.94rem; color: var(--sumi-2); }
.faq details p::before { content: "答"; position: absolute; left: 4px; top: 2px; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--shu); color: var(--shu); font-family: var(--min); font-weight: 800; font-size: .82rem; border-radius: 50%; }

.ad-slot { margin: 28px 0; padding: 12px; border: 1px dashed var(--rule); }
/* 売り場の枠（承認後だけ出る）：段取りの行のすぐ下の、朱の縁の付箋 */
.ad-slot.cta { background: #fff; border: 1.5px solid var(--shu); padding: 16px 18px; box-shadow: 0 14px 24px -20px rgba(70, 50, 20, .6); }
.cta-pr { display: inline-block; margin: 0 0 6px; padding: 0 8px; font-size: .8rem; letter-spacing: .1em; color: var(--sumi-2); border: 1px solid var(--rule); }
.cta-h { margin: 0 0 4px; font-family: var(--min); font-weight: 800; font-size: 1.05rem; line-height: 1.6; }
.cta-t { margin: 0; font-size: .94rem; color: var(--sumi-2); }

/* ── 段取り表（/dandori/）：表紙は小さく、すぐ暦 ── */
.dd-cover { padding: 44px 0 8px; }
.dd-cover .mizuhiki { width: 132px; margin-bottom: 14px; }
.dd-cover h1 { font-size: clamp(1.85rem, 8.4vw, 2.8rem); line-height: 1.32; margin: 0 0 18px; }
.dd-cover h1 .sub { font-size: .95rem; line-height: 1.7; margin-top: 12px; }
.dd-cover .lead { font-size: 1rem; }

/* 挙式までの暦：棒＝探し始め→決めた、丸＝その時期。右端が挙式 */
.koyomi { margin: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--rule), 0 22px 34px -26px rgba(60, 40, 10, .55); padding: 18px 16px 14px; }
.ky-ticks { position: relative; height: 22px; margin: 0 8px 4px; border-bottom: 1px solid var(--sumi-3); }
.ky-ticks span { position: absolute; left: var(--x); bottom: 4px; translate: -50% 0; white-space: nowrap; font-size: .8rem; line-height: 1.3; color: var(--sumi-2); font-family: var(--min); font-weight: 700; }
.ky-ticks small { display: none; font-size: .8rem; }
.ky-ticks span:first-child { translate: 0 0; }
.ky-ticks span:last-child { translate: -100% 0; color: var(--shu); }
.ky-rows { list-style: none; margin: 0; padding: 0; }
.ky-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name val" "track track"; gap: 2px 10px; padding: 10px 0 8px; border-bottom: 1px solid var(--rule-2); }
.ky-row:last-child { border-bottom: 0; }
.ky-name { grid-area: name; font-family: var(--min); font-weight: 800; font-size: 1rem; line-height: 1.5; }
.ky-val { grid-area: val; font-family: var(--min); font-weight: 700; font-size: .94rem; color: var(--shu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ky-track { grid-area: track; position: relative; height: 18px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 20%) 0 0 / 100% 100%; }
.ky-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.ky-bar { position: absolute; top: 3px; bottom: 3px; left: var(--a); right: calc(100% - var(--b)); min-width: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--gold-2), var(--shu)); transform-origin: left center; }
.ky-dot { position: absolute; top: 50%; left: var(--a); width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%; background: var(--paper); border: 3px solid var(--shu); }
.ky-day .ky-dot { background: var(--shu); box-shadow: 0 0 0 4px var(--shu-soft); }
.ky-day .ky-name, .ky-day .ky-val { color: var(--shu); }
.ky-any { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 2.5px dashed var(--ai); }
.ky-free .ky-val { color: var(--ai); }
.koyomi figcaption { margin: 12px 8px 0; }

/* 段取りの帳面：左に金の点線と丸、時期は朱の明朝の大きな数字 */
.dandori { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.dandori::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: repeating-linear-gradient(var(--gold) 0 4px, transparent 4px 9px); }
.dd { position: relative; margin: 0 0 30px; }
.dd::before { content: ""; position: absolute; left: -28px; top: 10px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 2px solid var(--shu); box-shadow: 0 0 0 4px var(--washi); }
.dd-seki::before { border-color: var(--ai); }
.dd-day::before { background: var(--shu); }
.dd-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; }
.dd-big { font-family: var(--min); font-weight: 800; font-size: 1.9rem; line-height: 1.15; color: var(--shu); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dd-seki .dd-big { color: var(--ai); }
.dd-unit { font-family: var(--min); font-weight: 800; font-size: 1rem; }
.dd-note { flex-basis: 100%; font-size: .88rem; line-height: 1.5; color: var(--sumi-2); }
.dd-body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.dd-body > p { font-size: .97rem; }
.dd-body > p:last-child { margin-bottom: 0; }
.dd-facts { list-style: none; margin: 0 0 12px; padding: 10px 12px; background: var(--paper-2); border-left: 2px solid var(--gold-2); font-size: .94rem; }
.dd-facts strong { white-space: nowrap; }
.dd-link a { font-weight: 700; }
.dd-ad { list-style: none; margin: -12px 0 30px; }
.dd-ad .ad-slot { margin: 0; }
.dd-back { line-height: 2.4; }

/* トップの段取りの要約：挙式の何か月前、の大きな数字の札 */
.yokoku { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); box-shadow: 0 0 0 1px var(--rule); }
.yokoku li { background: var(--paper); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.yk-when { font-size: .88rem; color: var(--sumi-2); font-family: var(--min); font-weight: 700; }
.yk-n { display: block; white-space: nowrap; }
.yk-when b { font-size: 2rem; line-height: 1.1; color: var(--shu); margin: 0 3px; font-variant-numeric: tabular-nums; }
.yk-what { font-family: var(--min); font-weight: 800; font-size: 1rem; line-height: 1.5; }

/* ── 足：墨と金の線 ── */
.site-footer { margin-top: 80px; background: var(--sumi); color: #a59c8d; text-align: center; padding: 40px 20px 30px; font-size: 0.94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--shu) 0 33%, var(--gold) 33% 67%, var(--shu) 67%); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.site-footer a { color: #efe7d6; text-decoration: none; display: inline-block; padding: 8px 0; }
.copyright { margin: 12px 0 0; font-family: var(--min); letter-spacing: .2em; }

/* 表紙の絵：手続きで回る道のり（12/1 採点「絵が無い」）。墨の道に朱の線、行き先は判子の丸 */
.route { display: block; width: 100%; max-width: 330px; height: auto; margin: 22px auto 0; }
.route-road { fill: none; stroke: var(--rule); stroke-width: 14; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--shu); stroke-width: 2.5; stroke-dasharray: 7 7; stroke-linecap: round; }
.stop circle { fill: var(--paper); stroke: var(--sumi); stroke-width: 2; }
.stop text { font-family: var(--min); font-weight: 800; font-size: 13px; text-anchor: middle; fill: var(--sumi); }
.stop text.no { font-family: var(--min); font-size: 15px; fill: var(--shu); }
.stop:first-of-type circle { fill: var(--shu); stroke: var(--shu); }
.stop:first-of-type text:not(.no) { fill: #fff; }

/* ── PC：表紙は左右に広く、帳面は中央に ── */
@media (min-width: 900px) {
  .site-main { max-width: 820px; }
  .cover { padding: 96px 0 56px; display: grid; grid-template-columns: 1fr 200px; column-gap: 40px; }
  .cover > :not(.hanko):not(.cover-tate):not(.route) { grid-column: 1; }
  .route { grid-column: 1; }
  .cover h1 { font-size: 3.7rem; margin-right: 0; }
  .cover .lead { font-size: 1rem; max-width: 34em; }
  .hanko { position: absolute; right: 70px; top: 140px; width: 120px; height: 120px; }
  .hanko span { font-size: 2rem; }
  .cover-tate { right: 0; top: 96px; font-size: .95rem; }
  .tally { grid-template-columns: repeat(3, 1fr); }
  .page { padding: 28px 30px; }
  .yokoku { grid-template-columns: repeat(4, 1fr); }
  /* 暦：名前・棒・値を 1 行に */
  .ky-row { grid-template-columns: 9em minmax(0, 1fr) 9em; grid-template-areas: "name track val"; align-items: center; }
  .ky-val { text-align: right; }
  .ky-ticks small { display: inline; }
  .ky-ticks { margin-left: calc(9em + 18px); margin-right: calc(9em + 18px); }
  .koyomi { padding: 24px 26px 18px; }
  /* 段取り：左に時期、右に帳面 */
  .dandori { padding-left: 0; }
  .dandori::before { left: 200px; }
  .dd { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 44px; }
  .dd::before { left: 192px; top: 14px; }
  .dd-when { flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; padding-top: 4px; }
  .dd-note { flex-basis: auto; text-wrap: balance; }
  .dd-ad { margin-left: 224px; }
  .dd-cover { padding-top: 72px; }
}

/* ── 広い PC：表紙を 2 列（左＝見出し、右＝道のりの絵）、帳面も広く（12/1 採点「左右が空いている」） ── */
@media (min-width: 1120px) {
  .site-main { max-width: 1160px; padding-inline: 40px; }
  .cover { grid-template-columns: minmax(0, 1fr) 460px; column-gap: 64px; padding: 80px 0 48px; }
  .cover .route { grid-column: 2; grid-row: 1 / span 4; align-self: center; max-width: none; margin: 0; }
  .hanko { right: auto; left: calc(100% - 520px - 64px); top: 64px; width: 96px; height: 96px; }
  .cover-tate { display: none; }
  .memo { max-width: 720px; }
  .site-main > section > p, .site-main > section > h2 { max-width: 46em; }
}

/* ── 動き：結ぶ・押す・めくる ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .mz { stroke-dasharray: 420; stroke-dashoffset: 420; animation: tie 1.5s cubic-bezier(.65, 0, .35, 1) forwards; }
  .mz-g { animation-delay: .15s; } .mz-r:last-child { animation-delay: .3s; }
  @keyframes tie { to { stroke-dashoffset: 0; } }
  .route-line { animation: walk 1.2s linear infinite; }
  @keyframes walk { to { stroke-dashoffset: -14; } }
  .stop { animation: stamp .5s var(--d, 0s) cubic-bezier(.3, 1.5, .5, 1) both; transform-box: fill-box; transform-origin: center; }
  @keyframes stamp { from { opacity: 0; transform: scale(1.6); } }
  .cover h1 { animation: fadeup .9s .25s cubic-bezier(.2, .8, .2, 1) both; }
  .cover .lead, .cover-tate { animation: fadeup .9s .5s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes fadeup { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } }
  .hanko { animation: press .5s 1.25s cubic-bezier(.2, 1.5, .4, 1) both; }
  @keyframes press { from { opacity: 0; transform: scale(2.1); } 70% { opacity: .95; } }
  .memo { animation: fadeup .8s .8s cubic-bezier(.2, .8, .2, 1) both; }
  .stamp { transition: opacity .2s, transform .4s cubic-bezier(.2, 1.7, .4, 1); }
  .todo.is-done .todo-check .box { animation: tick .35s cubic-bezier(.2, 1.6, .4, 1); }
  @keyframes tick { 40% { transform: scale(.8); } }
  .reveal { opacity: 0; transform: translateY(22px) rotateX(8deg); transform-origin: 50% 0; transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .chip span:active { transform: scale(.97); }
  /* 暦の棒は左から引かれ、丸は判子のように押される */
  .koyomi.reveal .ky-bar { transform: scaleX(0); transition: transform 1s .25s cubic-bezier(.2, .8, .2, 1); }
  .koyomi.reveal .ky-dot { scale: 0; transition: scale .45s .9s cubic-bezier(.3, 1.6, .5, 1); }
  .koyomi.reveal.is-in .ky-bar { transform: none; }
  .koyomi.reveal.is-in .ky-dot { scale: 1; }
  .ky-row:nth-child(2) .ky-bar { transition-delay: .4s; } .ky-row:nth-child(4) .ky-bar { transition-delay: .55s; }
  .dd-cover h1 { animation: fadeup .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
  .dd-cover .lead { animation: fadeup .9s .4s cubic-bezier(.2, .8, .2, 1) both; }
  ::view-transition-old(root) { animation: vt-out .3s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
}
@media print { .pick, .site-header, .site-footer, .cover .hanko, .mizuhiki { display: none; } .todo-check .box { inset: 10px; } body { background: #fff; } }
.cover h1 .ln { display: block; }
