:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --border: #e4e4df;
  --accent: #e8590c;
  --accent-soft: #fff1e6;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1e2125;
    --text: #e8e9eb;
    --muted: #a0a6ae;
    --border: #30343a;
    --accent: #ff8a4c;
    --accent-soft: #2b2018;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; }
.brand { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.brand-sub { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 8px; }
.nav { display: flex; gap: 16px; font-size: 0.9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Top */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: 1.8rem; }
.hero p { margin: 0; color: var(--muted); }

.section { padding: 24px 0; }
.section h2 { font-size: 1.3rem; margin: 0 0 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { background: var(--accent-soft); border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; text-decoration: none; }

.faq-group h3 { font-size: 1rem; color: var(--muted); margin: 24px 0 8px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.card:hover { border-color: var(--accent); }
.card-title { display: block; font-weight: 700; margin-bottom: 4px; }
.card-body { display: block; font-size: 0.85rem; color: var(--muted); }

.contact { text-align: center; }
.contact p { color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 10px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Legal docs */
.doc { padding: 32px 0; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.doc h1 { margin: 0; font-size: 1.6rem; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 4px 0 24px; }
.prose h2 { font-size: 1.1rem; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.prose blockquote { margin: 0 0 24px; padding: 8px 16px; background: var(--accent-soft); border-radius: 8px; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
