/* プライバシーポリシー・利用規約の共通スタイル（index.html と同じ配色・書体） */
:root {
  --bg: #0f1012;
  --surface: #17181b;
  --line: #2a2c31;
  --fg: #ecedef;
  --muted: #9a9ca3;
  --mark-bg: #3a3420;
  --mark-fg: #f3e2a6;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f3f1; --surface: #ffffff; --line: #d9d9d6; --fg: #121316; --muted: #5d5f66;
    --mark-bg: #fbefc4; --mark-fg: #4a3b00; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f3f1; --surface: #ffffff; --line: #d9d9d6; --fg: #121316; --muted: #5d5f66;
  --mark-bg: #fbefc4; --mark-fg: #4a3b00; color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 0.85rem; max-width: 72rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.875rem; }
@media (max-width: 520px) { .site-header nav { margin-left: 0; width: 100%; gap: 0.25rem 1rem; } }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--fg); }
main .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0.75rem 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.375rem; margin: 2.75rem 0 0.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-weight: 600; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.4rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; margin: 2rem 0 0; }
.summary ul { margin: 0; }
.draft { border: 1px dashed var(--muted); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--muted); margin-top: 1.5rem; }
.todo { background: var(--mark-bg); color: var(--mark-fg); padding: 0 0.3em; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.caps { text-transform: none; font-size: 0.9375rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding-block: 2rem; font-size: 0.875rem; color: var(--muted); max-width: 72rem; }
.site-footer a { color: var(--muted); }

/* 日本語のページ：和文は Noto Sans JP。見出しは文節で改行する */
:root:lang(ja) {
  --font-display: "Bricolage Grotesque", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans JP", "Hiragino Sans", sans-serif;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; letter-spacing: 0; line-height: 1.35; }
:lang(ja) body { line-height: 1.8; }
:lang(ja) .label { letter-spacing: 0.06em; }

/* 問い合わせフォーム */
.form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .legend { font-weight: 600; font-size: 0.9375rem; }
.field .hint { color: var(--muted); font-size: 0.875rem; }
.form select, .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem;
}
.form textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.form select:focus-visible, .form input:focus-visible, .form textarea:focus-visible, .form button:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 2px;
}
.counter { justify-self: end; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex: none; accent-color: var(--fg); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  justify-self: start; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 999px; padding: 0.75rem 1.5rem;
}
.submit[disabled] { opacity: 0.55; cursor: default; }
.status { min-height: 1.5em; margin: 0; }
.status.error { color: var(--fg); border-left: 3px solid var(--fg); padding-left: 0.75rem; }
.done { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: var(--surface); margin-top: 2rem; }
.done h2 { margin: 0 0 0.5rem; padding: 0; border: 0; }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin-top: 1.5rem; }
.notice ul { margin: 0; }
