/* SAWZAN サイト共通スタイル。色・文字・ヘッダー/フッター・文書ページの体裁。
   ページ固有のスタイルは、各ページの <style> に書く。設計は docs/site_design.md。 */
:root {
  --bg: #F3EFE8;
  --bg-soft: #EAE4DA;
  --surface: #FBF8F3;
  --ink: #22201D;
  --muted: #6B645B;
  --rule: #D6CFC4;
  --accent: #2E4953;
  --brand: #ED7210;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110F; --bg-soft: #1B1916; --surface: #191714; --ink: #EBE6DD; --muted: #A0978B;
    --rule: #33302A; --accent: #B8CECA; --brand: #F28A2E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110F; --bg-soft: #1B1916; --surface: #191714; --ink: #EBE6DD; --muted: #A0978B;
  --rule: #33302A; --accent: #B8CECA; --brand: #F28A2E; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.9; letter-spacing: 0.02em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ---- ヘッダー ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 800; letter-spacing: 0.32em; font-size: 1rem; text-decoration: none; }
.brand img { display: block; height: 42px; width: auto; }
nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
nav a { text-decoration: none; color: var(--muted); letter-spacing: 0.08em; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { border-bottom: 1px solid var(--brand); padding-bottom: 2px; }

/* ---- フッター ---- */
footer { position: relative; margin-top: 40px; padding: 38px 0 48px; color: var(--muted); font-size: 0.85rem; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: conic-gradient(from 135deg at 50% 100%, transparent 0 90deg, var(--rule) 90deg 180deg, transparent 180deg) 0 0 / 18px 9px repeat-x; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- 文書ページ(規約・公告・アプリ案内): <body class="doc"> ---- */
.doc main { max-width: 760px; margin: 0 auto; padding: 120px 20px 24px; }
.doc h1 { margin: 0 0 18px; font-family: var(--serif); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.05em; line-height: 1.4; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.doc h2 { margin: 2.2em 0 0; font-family: var(--serif); font-size: 1.15rem; color: var(--accent); letter-spacing: 0.04em; }
.doc h3 { margin: 1.8em 0 0; font-family: var(--serif); font-size: 1rem; letter-spacing: 0.04em; }
.doc a { color: var(--accent); }
.doc .muted { color: var(--muted); font-size: 0.9rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; font-size: 0.92rem; }
.doc th { background: var(--surface); }
.doc .crumb { margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.08em; }
.doc .crumb a { color: var(--muted); text-decoration: none; }
.doc .crumb a:hover { text-decoration: underline; }
.doc ul.links { list-style: none; margin: 1.4em 0; padding: 0; border-top: 1px solid var(--rule); }
.doc ul.links li { border-bottom: 1px solid var(--rule); }
.doc ul.links a { display: block; padding: 14px 4px; text-decoration: none; }
.doc ul.links a::after { content: " →"; color: var(--muted); }
.doc ul.links a:hover { color: var(--brand); }
.doc .lead { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; margin: 1.2em 0 0.6em; }
.doc .status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; color: var(--muted); font-size: 0.92rem; }
.doc .badge { display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em; padding: 2px 12px; border: 1px solid var(--brand); border-radius: 999px; color: var(--ink); }
.doc ul.features { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.doc ul.features li { padding: 16px 4px; border-bottom: 1px solid var(--rule); }
.doc ul.features strong { display: block; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.doc ul.shots { list-style: none; margin: 1.2em 0 0.6em; padding: 0 0 8px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; }
.doc ul.shots li { flex: 0 0 auto; width: 165px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.doc ul.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-soft); }
.doc ul.shots span { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.doc ol.steps { list-style: none; counter-reset: step; margin: 1em 0; padding: 0; border-top: 1px solid var(--rule); }
.doc ol.steps li { counter-increment: step; position: relative; padding: 16px 4px 16px 44px; border-bottom: 1px solid var(--rule); }
.doc ol.steps li::before { content: counter(step); position: absolute; left: 6px; top: 16px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--brand); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 0.9rem; }
.doc ol.steps strong { display: block; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.doc .app-head { display: flex; align-items: flex-start; gap: 20px; margin: 0 0 8px; }
.doc .app-head h1 { margin: 0 0 10px; }
.doc .app-icon { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 22%; border: 1px solid var(--rule); display: block; }
.doc .app-head > div { flex: 1 1 auto; min-width: 0; }
@media (max-width: 420px) { .doc .app-icon { width: 76px; height: 76px; } .doc .app-head { gap: 14px; } }
.doc .wrap { max-width: 760px; padding: 0 20px; }

@media (max-width: 640px) {
  :root { --header-h: 84px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { flex-direction: column; justify-content: center; align-items: flex-start; height: var(--header-h); gap: 2px; }
  .brand { font-size: 0.92rem; gap: 10px; }
  .brand img { height: 34px; }
  nav ul { gap: 14px; font-size: 0.78rem; white-space: nowrap; }
  nav a { letter-spacing: 0.03em; }
  .doc main { padding-top: calc(var(--header-h) + 20px); }
}
/* 幅が狭い端末(420px以下)では、メニューを2行に折り返す */
@media (max-width: 520px) {
  :root { --header-h: 124px; }
  nav ul { flex-wrap: wrap; gap: 0 16px; white-space: normal; font-size: 0.82rem; }
  nav a { display: inline-block; padding: 5px 0; }
}
