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

/* テーマ。JS 無効時は OS 設定、JS 有効時は data-theme 属性に従う */
:root {
  color-scheme: light;
  --fg: #1a1a1a;
  --bg: #fff;
  --muted: #888;
  --border: #e5e7eb;
  --accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fg: #e5e7eb;
    --bg: #121212;
    --muted: #9ca3af;
    --border: #2e2e2e;
    --accent: #60a5fa;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --fg: #e5e7eb;
  --bg: #121212;
  --muted: #9ca3af;
  --border: #2e2e2e;
  --accent: #60a5fa;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch { font-size: 0.9rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--muted); }

/* ライト時は「ダークへ」の月、ダーク時は「ライトへ」の太陽を表示 */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.8rem; color: var(--accent); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

p, li { font-size: 0.95rem; }
ul { padding-left: 1.5rem; }

/* 特定商取引法画像 */
.tokushoho-wrapper {
  margin: 1.5rem 0 2rem;
  display: flex;
  justify-content: center;
}

.tokushoho-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
}

hr { border: 0; border-top: 1px solid var(--border); }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
