/* ==========================================================
   待機リストLP — 墨と朱。静かな帳簿。
   light/dark は prefers-color-scheme で自動切替。
   ========================================================== */
:root {
  --bg: #faf8f4;
  --surface: #f1ede6;
  --ink: #211d18;
  --ink-2: #6b645b;
  --line: rgba(33, 29, 24, .16);
  --line-soft: rgba(33, 29, 24, .09);
  --accent: #a8322d;        /* 朱 — 印肉の色 */
  --accent-ink: #fffdf9;    /* 朱の上に載せる文字 */
  --focus: #a8322d;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", YuGothic, "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171512;
    --surface: #201d19;
    --ink: #ebe6dd;
    --ink-2: #a59d90;
    --line: rgba(235, 230, 221, .18);
    --line-soft: rgba(235, 230, 221, .09);
    --accent: #d96c56;
    --accent-ink: #1c120e;
    --focus: #d96c56;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  font-feature-settings: "palt";
  caret-color: var(--accent);
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--accent); }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--line-soft);
}
.masthead {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 0;
}
.seal {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: block;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.wordmark .latin {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .8rem;
  color: var(--ink-2);
  letter-spacing: .04em;
  margin-left: .5em;
}
.masthead .tag {
  margin-left: auto;
  font-size: .78rem;
  color: var(--ink-2);
  letter-spacing: .02em;
}
@media (max-width: 34rem) { .masthead .tag { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4rem; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 3.2vw, 2.6rem);
  line-height: 1.65;
  letter-spacing: .015em;
  text-wrap: balance;
  max-width: 22em;
}
.hero .category {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero .category .name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .03em;
}
.hero .category .name-en {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-2);
  letter-spacing: 0;
  margin-top: .2rem;
}
.hero .lede {
  margin-top: 1.4rem;
  color: var(--ink);
  max-width: 36rem;
}
.hero .actions { margin-top: 2.5rem; display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .8rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: filter .15s ease-out, transform .15s ease-out;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: translateY(1px); }
.hero .actions .aside { font-size: .85rem; color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .category, .hero .lede, .hero .actions {
    animation: rise .7s cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero .category { animation-delay: .12s; }
  .hero .lede    { animation-delay: .18s; }
  .hero .actions { animation-delay: .24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(.6rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- sections ---------- */
section { padding: 3.5rem 0 0; }
section:last-of-type { padding-bottom: 5rem; }

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .04em;
  line-height: 1.6;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
section > p { max-width: 38rem; }
section p + p { margin-top: 1rem; }

.muted { color: var(--ink-2); }
code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: .1em .35em;
}

/* 帳簿風の定義リスト（4類型） */
.ledger { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.ledger > div {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.ledger dt { font-weight: 600; letter-spacing: .01em; }
.ledger dd { color: var(--ink-2); font-size: .95rem; line-height: 1.85; }
@media (max-width: 40rem) {
  .ledger > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* 箇条書き */
ul.plain { list-style: none; margin-top: 1.25rem; max-width: 38rem; }
ul.plain li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .55rem;
  height: 1px;
  background: var(--accent);
}

.note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: .93rem;
  max-width: 38rem;
}

/* ---------- form ---------- */
.form-card { margin-top: 1.75rem; max-width: 38rem; }
.field { margin-bottom: 1.6rem; }
.field > label.head, fieldset legend {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .5rem;
  letter-spacing: .01em;
}
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .82rem; margin-left: .4em; }

input[type="email"], input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .65rem .8rem;
  transition: border-color .15s ease-out;
}
input[type="email"]:hover, input[type="text"]:hover { border-color: var(--ink-2); }
input[type="email"]:focus, input[type="text"]:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}
input::placeholder { color: var(--ink-2); opacity: 1; }

fieldset { border: 0; }
.choices { border-top: 1px solid var(--line-soft); margin-top: .4rem; }
.choices label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.7;
}
.choices label:hover { background: var(--surface); }
.choices input[type="radio"] {
  flex: none;
  margin-top: .45em;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.other-line { display: flex; align-items: center; gap: .4rem; flex: 1; flex-wrap: wrap; }
.other-input-wrap { display: inline-flex; align-items: center; gap: .25rem; flex: 1; min-width: 11rem; }
.other-input-wrap input[type="text"] { flex: 1; min-width: 0; padding: .4rem .6rem; font-size: .9rem; }

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: .85rem 2rem;
  cursor: pointer;
  transition: filter .15s ease-out, transform .15s ease-out;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"]:disabled { opacity: .55; cursor: default; filter: none; }

.form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.5em; }
.privacy-brief { margin-top: 1rem; font-size: .8rem; line-height: 1.7; color: var(--ink-2); }
.privacy-details { margin: 1.25rem 0 0; font-size: .8rem; color: var(--ink-2); }
.privacy-details summary { cursor: pointer; padding: .25rem 0; }
.privacy-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-details ol { margin: .75rem 0 0 1.25rem; display: grid; gap: .5rem; line-height: 1.7; }
.privacy-contact { margin-top: 1rem; max-width: 26rem; display: grid; gap: .4rem; }
.privacy-contact label { font-size: .8rem; }
.privacy-contact input, .privacy-contact textarea { width: 100%; font: inherit; font-size: .85rem; padding: .45rem .6rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.privacy-contact input:focus-visible, .privacy-contact textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.privacy-contact button { margin-top: .35rem; justify-self: start; font: inherit; font-size: .85rem; padding: .45rem 1rem; color: var(--bg); background: var(--ink); border: none; border-radius: 4px; cursor: pointer; }
.form-status.error { color: var(--accent); }

.thanks {
  margin-top: 1.75rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 1px solid var(--accent);
  border-radius: 4px;
  max-width: 38rem;
}
.thanks p + p { margin-top: .6rem; }
[hidden] { display: none !important; }

/* honeypot: 視覚・支援技術の双方から外す */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0 3rem;
  font-size: .85rem;
  color: var(--ink-2);
}
footer .row { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; }

/* 2026-08-20: CSP style-src 'self' を維持するため、インラインstyle属性から移設 */
.mt-lead { margin-top: 1.25rem; }
