/* 箱の中身はなんだろな — サポート／プライバシー共通スタイル
   アプリ（lib/theme/app_design.dart）と同じ組み方に揃えている。
   モノクロのみ・角丸ゼロ・影なし・罫線は1px。見出しは明朝で字間を広く取る。 */

@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&family=Zen+Old+Mincho:wght@900&display=swap");

:root {
  --ink-strong: #000000;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6e6e6e;
  --line: #d6d6d6;
  --surface: #ffffff;
  --surface-warm: #f5f5f5;
  --bg-top: #ffffff;
  --bg-mid: #fafafa;
  --bg-bottom: #f0f0f0;

  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --measure: 40rem;
  --rule: 1px solid var(--ink);
  --hairline: 1px solid var(--line);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%)
    fixed;
  font-feature-settings: "palt" 1;
}

/* 紙目。刷り物の手ざわりを出すためだけの装飾なので、ごく薄く敷く。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sheet {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ── 見出し ───────────────────────────────────────────── */

.mark {
  display: block;
  width: 68px;
  height: auto;
  margin: 0 auto 1.75rem;
}

.masthead { text-align: center; }

.masthead__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.masthead__title {
  font-family: var(--mincho);
  font-weight: 900;
  margin: 0;
  padding: 1.25rem 0 1.4rem;
  line-height: 1.25;
}

.masthead__title span {
  display: block;
  letter-spacing: 0.34em;
  /* 字間を右側にも入れる組み方なので、中央に見せるため左へ押し戻す。 */
  text-indent: 0.34em;
}

.masthead__title .is-small { font-size: clamp(1.05rem, 4.4vw, 1.4rem); }
.masthead__title .is-large { font-size: clamp(1.9rem, 8.4vw, 2.9rem); margin-top: 0.15em; }

/* 長い見出しは2行に割る。span を分けているのは、text-indent が1行目にしか
   効かないため。1行ずつ独立した block にしないと2行目だけ中央がずれる。 */
.masthead__title .is-long { font-size: clamp(1.5rem, 6.6vw, 2.2rem); }
.masthead__title .is-long + .is-long { margin-top: 0.05em; }

.masthead__lede {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  padding: 0.3rem 0.9rem;
  margin-bottom: 2rem;
  color: var(--surface);
  background: var(--ink-strong);
}

/* ── 節 ──────────────────────────────────────────────── */

.section {
  border: var(--rule);
  background: var(--surface);
  padding: 1.6rem 1.5rem 1.75rem;
  margin-top: 1.25rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--hairline);
}

.section__no {
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--surface);
  background: var(--ink-strong);
  width: 1.7em;
  text-align: center;
  flex: none;
  transform: translateY(-0.05em);
}

.section__title {
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  margin: 0;
}

.section p { margin: 0 0 0.9rem; }
.section p:last-child { margin-bottom: 0; }

.section ul {
  margin: 0 0 0.9rem;
  padding-left: 0;
  list-style: none;
}

.section li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
}

.section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.45rem;
  height: 1px;
  background: var(--ink);
}

/* ── よくある質問 ─────────────────────────────────────── */

/* .section__head も div なので :first-of-type では拾えない。隣接で罫を引く。 */
.qa { padding: 1.15rem 0; }
.qa + .qa { border-top: var(--hairline); }
.qa:first-of-type { padding-top: 0.2rem; }
.qa:last-child { padding-bottom: 0; }

.qa__q {
  font-family: var(--mincho);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.qa__q::before {
  content: "Q";
  font-size: 0.78em;
  letter-spacing: 0.2em;
  margin-right: 0.6em;
  color: var(--muted);
}

.qa__a { margin: 0; }

.qa__a::before {
  content: "A";
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 0.78em;
  letter-spacing: 0.2em;
  margin-right: 0.6em;
  color: var(--muted);
}

/* ── リンク ───────────────────────────────────────────── */

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: background-color 0.14s ease, color 0.14s ease;
}

a:hover,
a:focus-visible {
  background: var(--ink-strong);
  color: var(--surface);
  text-decoration-color: transparent;
}

.mailto {
  display: inline-block;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}

/* 大きな渡り（アプリの主ボタンと同じ塗り）。 */
.crossing {
  display: block;
  margin-top: 1.25rem;
  padding: 1.05rem 1.25rem;
  text-align: center;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--surface);
  background: var(--ink-strong);
  border: var(--rule);
  text-decoration: none;
}

.crossing:hover,
.crossing:focus-visible {
  color: var(--ink-strong);
  background: var(--surface);
}

/* ── 補足・奥付 ───────────────────────────────────────── */

.note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.colophon {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.colophon a { color: var(--muted); }

/* ── 読み込み時の送り出し ─────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(0.6rem);
  animation: rise 0.62s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }
.reveal:nth-child(7) { animation-delay: 0.36s; }
.reveal:nth-child(8) { animation-delay: 0.42s; }
.reveal:nth-child(9) { animation-delay: 0.48s; }
.reveal:nth-child(10) { animation-delay: 0.54s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  a { transition: none; }
}

@media (min-width: 40rem) {
  body { font-size: 15.5px; }
  .sheet { padding-top: 4.5rem; }
  .section { padding: 2rem 2.25rem 2.25rem; }
}
