/* 光明（こうみょう）：墨の闇に差す、一筋の光
   濃い墨色の面に、金の細い線と淡い光。本文は白い紙に、明朝体でゆったりと。 */
:root {
  --sumi: #0f1117;
  --sumi-2: #181b23;
  --paper: #f5f4f1;
  --ink: #1c1e24;
  --muted: #585e6a;
  --gold: #c9a959;
  --gold-line: rgba(201, 169, 89, .55);
  --gold-text: #7a5c0e;
  --on-dark: #ece8dc;
  --on-dark-mute: #a9aebb;
  --rule: #d9d5ca;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "MS PMincho", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sumi); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 1.0625rem;
  line-height: 2.05;
  line-break: strict;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

p { margin: 0 0 1.35em; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-underline-offset: .2em; }
a:hover { text-decoration: none; }
a:focus-visible, .button:focus-visible { outline: 3px solid #b7791f; outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 20; background: #fff; color: #000; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.ph { display: inline-block; }

/* ============ 上の墨色の面（題字・メニュー・光） ============ */
.top { position: relative; isolation: isolate; overflow: hidden; background: var(--sumi); color: var(--on-dark); }
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 58% at 50% 0%, rgba(236, 212, 146, .30), rgba(236, 212, 146, 0) 72%),
    radial-gradient(46% 30% at 50% 100%, rgba(236, 212, 146, .07), rgba(236, 212, 146, 0) 75%);
}

.site-header { padding: 1.1rem 1rem 0; text-align: center; }
.site-title {
  display: block; color: var(--on-dark); text-decoration: none;
  font-size: .95rem; font-weight: 500; letter-spacing: .14em; line-height: 1.8;
}
.nav { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav a {
  display: block; min-height: 44px; padding: .7rem .8rem;
  color: var(--on-dark-mute); text-decoration: none;
  font-size: .85rem; letter-spacing: .1em; line-height: 1.5;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
@media (min-width: 720px) { .site-header { padding-top: 1.6rem; } .site-title { font-size: 1.05rem; } .nav a { font-size: .9rem; padding: .8rem 1.05rem; } }

/* ---- 各ページの題名 ---- */
.page-head { padding: 3.25rem 1rem 3.75rem; text-align: center; }
.page-head h1 {
  margin: 0; color: #f3efe2; font-weight: 500;
  font-size: clamp(1.8rem, 7.4vw, 2.8rem); line-height: 1.5;
  letter-spacing: .2em; text-indent: .2em; text-wrap: balance;
}
.page-head h1::after { content: ""; display: block; width: 3rem; height: 1px; margin: 1.1rem auto 0; background: var(--gold); }
.page-head .sub { display: block; margin-bottom: .4rem; font-size: .95rem; letter-spacing: .3em; color: var(--on-dark-mute); }

/* ---- トップ：縦書きの前書き ---- */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(30rem, 84svh, 46rem);
  padding: 3rem 1rem 3.5rem;
}
.hero::before {
  /* 光の輪 */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(88vw, 38rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px solid var(--gold-line); border-radius: 50%; opacity: .45; pointer-events: none;
}
.hero-title {
  margin: 0 0 1.75rem; position: relative;
  color: var(--gold); font-size: .95rem; font-weight: 500; letter-spacing: .6em; text-indent: .6em;
}
.vertical {
  position: relative; margin: 0;
  writing-mode: vertical-rl; text-orientation: mixed;
  height: min(23em, 62svh);
  font-size: clamp(1.15rem, 4.7vw, 1.7rem); line-height: 2.35; letter-spacing: .14em;
  color: var(--on-dark); font-weight: 400;
  text-wrap: balance;
  animation: rise 1.8s ease-out both;
}
.vertical p { margin: 0 0 0 1.4em; text-indent: 0; }
.vertical p.by { margin: 0; font-size: .68em; letter-spacing: .22em; color: #c4c8d2; text-align: end; text-wrap: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- 現在までのご署名：光の輪の中に人数 ---- */
.count-wrap { display: grid; place-items: center; padding: 0 1rem 4.25rem; }
.halo {
  position: relative; width: min(84vw, 22rem); aspect-ratio: 1;
  display: grid; align-content: center; justify-items: center; text-align: center;
  border: 1px solid var(--gold-line); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 212, 146, .17), rgba(236, 212, 146, 0) 78%);
}
.halo::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(201, 169, 89, .22); border-radius: 50%; }
.count-label { margin: 0 0 .1rem; font-size: .95rem; letter-spacing: .3em; text-indent: .3em; color: var(--on-dark-mute); }
.count-line { margin: 0; line-height: 1.15; }
.count {
  font-size: clamp(4.25rem, 21vw, 6.75rem); font-weight: 500; color: #f7f2e3;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.unit { margin-left: .3rem; font-size: 1.4rem; color: var(--gold); }
.count-note { margin: .4rem 0 0; min-height: 1.9em; font-size: .85rem; letter-spacing: .06em; color: var(--on-dark-mute); font-family: var(--gothic); }

/* ============ 白い紙の面（本文） ============ */
.page { max-width: 36rem; margin: 0 auto; padding: 3.25rem 1.4rem 4.5rem; }

.prose { text-align: justify; }
.prose p { margin: 0 0 1.35em; }
.prose p.ind { text-indent: 1em; }
.prose p.byline, .byline { text-align: right; color: var(--muted); }
.prose p.center { text-align: center; }
.prose h2 {
  margin: 3.25rem 0 1.1rem; text-align: left;
  font-size: 1.2rem; font-weight: 600; line-height: 1.7; letter-spacing: .05em;
}
.prose h2::before { content: ""; display: block; width: 2rem; height: 1px; margin-bottom: .9rem; background: var(--gold); }
.prose > h2:first-child { margin-top: 0; }
.prose hr { border: 0; height: 1px; margin: 3.5rem auto; width: 40%; background: var(--gold-line); }

.prose figure { margin: 2.25rem auto; text-align: center; }
.prose figure img { max-width: min(100%, 22rem); padding: 8px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.prose figure img[src*="ryokyu-sign"] { padding: 0; box-shadow: none; background: transparent; }
.prose figure.right { text-align: right; margin-right: 0; }
.prose figure.right img { max-width: 14rem; }
.prose figcaption { margin-top: .7rem; font-size: .95rem; line-height: 1.8; color: var(--muted); text-align: center; }
.prose .figure-row { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin: 2.25rem 0; }
.prose .figure-row figure { flex: 1 1 14rem; margin: 0; }
.prose.response figure img { max-width: 100%; padding: 0; box-shadow: 0 0 0 1px var(--rule), 0 8px 24px -12px rgba(15, 17, 23, .35); }

.prose ul.plain { margin: 0 0 1.4em; padding-left: 1.4em; text-align: left; }
.prose ul.plain li { margin: .15em 0; }
.prose .info { margin: 0 0 1.75rem; text-align: left; }
.prose .info div { display: grid; grid-template-columns: 9rem 1fr; gap: .2rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.prose .info dt { font-weight: 700; }
.prose .info dd { margin: 0; }
.prose.policy h2 { font-size: 1.1rem; }
@media (max-width: 520px) { .prose .info div { grid-template-columns: 1fr; gap: 0; } }
.notice { font-size: .95rem; color: var(--muted); font-family: var(--gothic); line-height: 1.9; }

/* ---- ボタン ---- */
.button {
  display: block; width: 100%; max-width: 22rem; margin: 0 auto;
  padding: 1rem 1.25rem; min-height: 3.5rem;
  background: var(--sumi); color: #f3efe2; border: 1px solid var(--gold);
  font: inherit; font-weight: 600; letter-spacing: .14em; line-height: 1.6; text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { background: #23272f; box-shadow: inset 0 0 0 1px var(--gold); }
.button.is-off { background: #e7e5de; border-color: #cfcabb; color: #6b6f78; cursor: not-allowed; box-shadow: none; }
.button.sub { background: transparent; color: var(--ink); border-color: var(--ink); font-size: .95rem; letter-spacing: .06em; }
.button.sub:hover { background: #fff; box-shadow: none; }
.form-note { font-size: .9rem; color: var(--muted); text-align: center; font-family: var(--gothic); }

/* ---- 現在までのご署名：お礼 ---- */
.thanks { text-align: center; }
.thanks figure { margin: 0 auto 2rem; }
.thanks figure img { padding: 8px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.thanks p { margin-bottom: .5em; }
.thanks .from { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }
.thanks .to-form { margin-top: 2.5rem; }
.demo { margin: 3rem 0 0; padding: 1.25rem; border: 1px dashed #8d8f97; background: #fff; font-family: var(--gothic); font-size: .95rem; line-height: 1.9; }
.demo h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.demo h2::before { display: none; }

/* ============ 下の墨色の面 ============ */
.site-foot {
  padding: 3.25rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--sumi); color: var(--on-dark-mute); text-align: center;
  border-top: 1px solid var(--gold-line);
  font-size: .85rem; letter-spacing: .08em; line-height: 2;
}
.site-foot p { margin: 0 0 1rem; }
.site-foot .tagline { max-width: 30em; margin-left: auto; margin-right: auto; color: var(--on-dark); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; }
.foot-links a { color: var(--on-dark-mute); padding: .5rem 0; text-underline-offset: .25em; }
.foot-links a:hover { color: #fff; }
.site-foot .org { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .vertical { animation: none; } * { transition: none !important; } }

/* ============ ご賛同・ご連絡フォーム ============ */
.form { margin-top: 2.25rem; text-align: left; font-family: var(--gothic); }
.form fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.form legend, .form .field > label { display: block; margin: 0 0 .5rem; padding: 0; font-weight: 700; line-height: 1.7; }
.form .field { margin: 0 0 1.5rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  display: block; width: 100%; padding: .8rem .9rem;
  font: inherit; font-size: 1rem; line-height: 1.7; color: var(--ink);
  background: #fff; border: 1px solid #8d8f97; border-radius: 2px;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid #b7791f; outline-offset: 2px; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: #9b1c1c; box-shadow: 0 0 0 1px #9b1c1c; }

.choice {
  display: flex; align-items: flex-start; gap: .85rem;
  margin: 0 0 .75rem; padding: 1rem 1.1rem; min-height: 3.5rem;
  background: #fff; border: 1px solid #8d8f97; border-radius: 2px; cursor: pointer; line-height: 1.6;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfaf6; }
.choice input { flex: none; width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--sumi); }
.choice small { display: block; margin-top: .1rem; font-size: .88rem; font-weight: 400; color: var(--muted); }
.choice span { font-weight: 600; }

.consent { display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 1.5rem; line-height: 1.7; cursor: pointer; }
.consent input { flex: none; width: 1.3rem; height: 1.3rem; margin: .25rem 0 0; accent-color: var(--sumi); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 1.25rem; padding: .85rem 1rem; color: #7a1414; background: #fdf2f2; border-left: 4px solid #9b1c1c; line-height: 1.8; }
.done { margin-top: 2.5rem; padding: 2rem 1.25rem; text-align: center; background: #fff; box-shadow: 0 0 0 1px var(--rule); font-size: 1.05rem; }
.done:focus { outline: none; }
.form-note { text-align: center; }
.contact .notice { margin: 1.5rem 0 1.25rem; }
