/* ツキヨ 公開ページ共通スタイル。ブランドは夜の暗い背景が標準なので、ライト表示は用意しない。
   色は設計書 §14-1 に合わせる。文字と背景の差は 4.5:1 以上。
   夜 #0D0A12 / 宵 #15111C / 面 #1E1828 / 月金 #E9CB8B / 文字 #F5F0F7 / 補足 #BDB3C9 */
:root {
  color-scheme: dark;
  --ink: #0d0a12;
  --ink-deep: #08060c;
  --night: #15111c;
  --surface: #1e1828;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5f0f7;
  --text-sub: #bdb3c9;
  --gold: #e9cb8b;
  --gold-light: #fbe7b5;
  --gold-ink: #1a1208;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 420px at 100% 0%, rgba(58, 36, 82, 0.55), rgba(58, 36, 82, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--gothic);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-light); }
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ヘッダー */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.12em;
}
.brand:hover { color: var(--text); }
.brand svg { display: block; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  min-height: 44px;
  line-height: 28px;
  color: var(--text-sub);
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

/* 見出し */
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; color: var(--text); }
h1 { font-size: 1.875rem; line-height: 1.5; letter-spacing: 0.04em; margin: 8px 0 12px; }
h2 {
  font-size: 1.375rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 1.125rem; line-height: 1.6; margin: 28px 0 8px; }

p, ul, ol, dl, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--gold); }
strong { font-weight: 700; color: var(--text); }
.sub, .meta { color: var(--text-sub); }
.meta { font-size: 0.9375rem; }
.lead { color: var(--text-sub); font-size: 1.0625rem; }

/* トップ */
.hero { padding: 24px 0 8px; }
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}
.hero .eyebrow {
  font-family: var(--mincho);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.9375rem;
  margin: 0 0 8px;
}
.tag {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 12px;
}
.button {
  display: inline-block;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 28px;
}
.button:hover { background: var(--gold-light); color: var(--gold-ink); }
.cta-note { color: var(--text-sub); font-size: 0.9375rem; margin-top: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 8px;
  margin: 20px 0;
}
.card h3 { margin-top: 0; }
.card h2 { margin-top: 0; padding-top: 0; border-top: 0; }

.features { list-style: none; padding: 0; margin: 0; }
.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 6px;
  margin: 0 0 12px;
}
.features li::marker { content: ""; }
.features h3 { margin: 0 0 4px; font-size: 1.0625rem; color: var(--gold); }

.promises { counter-reset: p; list-style: none; padding: 0; }
.promises li {
  counter-increment: p;
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 0.7em;
}
.promises li::before {
  content: counter(p, cjk-ideographic);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--mincho);
  font-weight: 700;
}

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--text-sub); font-weight: 500; white-space: nowrap; }
thead th { border-bottom: 1px solid var(--gold); color: var(--text); }

.spec-table th { width: 11em; white-space: normal; }
@media (max-width: 560px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .spec-table th, .spec-table td { border: 0; padding: 0 0 2px; }
  .spec-table th { color: var(--gold); font-size: 0.875rem; }
  h1 { font-size: 1.625rem; }
  .hero h1 { font-size: 2rem; }
}

/* 注意の囲み */
.note {
  border-left: 3px solid var(--gold);
  background: var(--night);
  padding: 12px 16px;
  margin: 0 0 1.2em;
  border-radius: 0 12px 12px 0;
}
.note p:last-child { margin-bottom: 0; }

/* よくある質問 */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 12px;
  padding: 0 18px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 700;
  list-style-position: outside;
}
summary::marker { color: var(--gold); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 1em; }

.toc { background: var(--night); border-radius: 16px; padding: 14px 20px 6px; margin: 0 0 1.5em; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* フッター */
.site-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 0.9375rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 8px; }
.site-footer nav a {
  display: inline-block;
  padding: 8px 10px 8px 0;
  min-height: 44px;
  line-height: 28px;
  color: var(--text-sub);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--gold); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  a, h1, h2, h3, strong { color: #000; }
}
