/* 規約・運営情報などの文章ページ（/about/ /terms/ /privacy/ /contact/）。
   デザインシステム（css/tokens.css・docs/DESIGN.md）の規則で組む。読みやすさだけを優先し、装飾は足さない。 */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper-texture), var(--paper-1); color: var(--ink-1);
  font-family: var(--font-sans); font-size: var(--fs-md); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
a { color: var(--shu-deep); }

/* ---- ヘッダー（年表アプリ・歴史テストと同じ寸法） ---- */
.site-header { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 8px; min-height: 61px;
  padding: 10px 12px; background: color-mix(in srgb, var(--paper-0) 97%, transparent); border-bottom: 1px solid var(--line-1); }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1; font-weight: 700;
  letter-spacing: var(--ls-wide); color: var(--ink-3); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand:hover { color: var(--ink-1); }
/* メニューは年表アプリ・歴史テストと同じもの（css/test.css と同じ指定。ページを行き来しても位置が動かないように） */
.menu { position: relative; display: flex; margin-left: auto; }   /* 狭い画面ではハンバーガーを右端に */
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 0 12px;
  background: var(--card); border: 2px solid var(--line-2); border-radius: var(--r-md); }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink-1); transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 236px; padding: 6px; white-space: nowrap;
  display: flex; flex-direction: column; background: var(--paper-texture), var(--card); border: 1px solid var(--line-1);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
.nav-drawer[hidden] { display: none; }
.nav-drawer a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 700;
  color: var(--ink-1); text-decoration: none; }
.nav-drawer a:hover { background: var(--paper-2); }
.nav-drawer .sister { margin-top: 4px; border-top: 1px solid var(--line-1); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--river-deep); }
/* 広い画面はハンバーガーに入れずヘッダーに並べる（LP と同じ 820px で切り替え） */
@media (min-width: 821px) {
  .nav-drawer, .nav-drawer[hidden] { display: flex; flex-direction: row; align-items: center; gap: 20px; position: static;
    min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-drawer a { min-height: 0; padding: 0; border-radius: 0; font-size: 14px; color: var(--ink-2); }
  .nav-drawer a:hover { background: none; color: var(--river-deep); }
  .nav-drawer .sister { margin: 0; border: 0; color: var(--river-deep); }
  .nav-drawer .sister::before { content: '｜'; margin-right: 20px; color: var(--line-2); font-weight: 500; }
  .menu { margin-left: 14px; }   /* 広い画面はロゴのすぐ右（年表アプリの1段目と同じ） */
  .nav-toggle { display: none; }
}

/* ---- 本文 ---- */
main { max-width: 720px; margin: 0 auto; padding: 26px 20px 64px; }
.breadcrumb { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }
.breadcrumb a { color: var(--ink-3); }
h1 { font-size: 26px; font-weight: 900; line-height: 1.3; margin: 0 0 18px; }
.lead { font-size: 15px; line-height: 1.95; color: var(--ink-2); margin: 0 0 8px; }
.doc h2 { font-size: 18px; font-weight: 900; margin: 32px 0 10px; }
.doc h3 { font-size: 15px; font-weight: 900; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 15px; line-height: 1.95; }
.doc ol, .doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc dl { margin: 0; }

/* 注意書き（黄土の淡色。特商法の前置きなど） */
.note { background: var(--ochre-pale); border: 1px solid color-mix(in srgb, var(--ochre) 45%, var(--paper-1));
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 22px; font-size: 14px; line-height: 1.85; }

/* 定義表（特商法・運営者情報） */
.table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; }
.table th, .table td { border: 1px solid var(--line-1); padding: 12px 14px; text-align: left; font-size: 14.5px; line-height: 1.8;
  vertical-align: top; }
.table th { width: 34%; background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.table td ul { margin: 0; padding-left: 18px; }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table tr { border: 1px solid var(--line-1); border-radius: var(--r-md); margin: 0 0 10px; overflow: hidden; }
  .table th, .table td { border: 0; }
  .table th { border-bottom: 1px solid var(--line-1); }
}

.meta { margin: 30px 0 0; font-size: 13px; color: var(--ink-3); }


/* ---- お問い合わせフォーム ---- */
.form { margin: 18px 0 0; }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.field .req { font-size: 11px; font-weight: 700; color: var(--shu-deep); background: var(--shu-pale);
  border-radius: var(--r-xs); padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border-radius: var(--r-md);
  border: 2px solid var(--line-2); background: var(--card); color: var(--ink-1);
  font: inherit; font-size: 15px; line-height: 1.7; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--line-ink); box-shadow: var(--focus-ring); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 12.5px; line-height: 1.9; color: var(--ink-3); margin: 0 0 16px; }
.form-submit { min-height: 48px; padding: 0 26px; border-radius: var(--r-pill); border: 2px solid var(--river);
  background: var(--river); color: var(--ink-on-color); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast); }
.form-submit:hover:not(:disabled) { background: var(--river-deep); border-color: var(--river-deep); }
.form-submit:disabled { opacity: .55; cursor: default; }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.8; }
.form-status.ok { color: var(--moss); }
.form-status.ng { color: var(--shu-deep); }
