/*
 * 運営者情報・プライバシーポリシー・お問い合わせ。
 * 色は shared/theme.css と同じ（クリーム地・細い枠・緑のアクセント）。
 */
:root {
  --bg: #fbf6ea;
  --surface: #fffdf8;
  --surface-subtle: #f7f1e3;
  --text: #3b2f2f;
  --muted: #7a6a5f;
  --border: #e6dccb;
  --border-strong: #d6c8b0;
  --radius: 20px;
  --accent: #1f7a5a;
  --accent-hover: #18664a;
  --accent-text: #ffffff;
  --accent-soft: #e7f3ec;
  --logo-blue: #2b7bd6;
  --soft-shadow: 0 1px 2px rgba(120, 95, 50, 0.06), 0 4px 14px rgba(120, 95, 50, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 246, 234, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.top-nav-link {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  color: var(--logo-blue);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.top-nav-link::after {
  content: "あなたの毎日のお供に。";
  grid-column: 2;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.top-nav-link svg { grid-row: span 2; width: 40px; height: 40px; }
.top-nav-link:hover, .top-nav-link:focus-visible { opacity: 0.85; }

.site-header { padding: 28px 16px 6px; text-align: center; }
.site-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.tagline { margin: 8px 0 0; color: var(--muted); text-wrap: pretty; }
@media (min-width: 640px) { .site-header h1 { font-size: 1.85rem; } }

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 20px 8px;
  box-shadow: var(--soft-shadow);
}

.legal h2 {
  margin: 1.6em 0 0.4em;
  padding-top: 0.2em;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.2em 0 0.3em; font-size: 0.98rem; }
.legal p, .legal li { font-size: 0.95rem; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal a:not(.btn) { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.legal a:not(.btn):hover, .legal a:not(.btn):focus-visible { color: var(--accent-hover); }

.table-wrap { overflow-x: auto; margin: 0.6em 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.86rem; line-height: 1.55; }
.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--surface-subtle); font-weight: 800; white-space: nowrap; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  word-break: break-all;
}

.btn {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 12px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(120, 95, 50, 0.08);
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
/* .legal a より詳細度を上げ、緑地のボタン文字がリンク色（緑）にならないようにする */
.legal a.btn, .legal a.btn:hover, .legal a.btn:focus-visible { color: #fff; }

/* トップの「こんなに安心！」（site/style.css の .anshin）と同じ囲み。文言が長いので折返しだけ足す */
.legal .anshin {
  display: grid;
  grid-template-columns: auto auto minmax(0, 22em);
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 0.4em;
  padding: 14px 18px;
  border: 1px solid #cfe5c4;
  border-radius: var(--radius);
  background: #eef6e8;
}
.legal .anshin-chara { width: 64px; height: 56px; }
.legal .anshin-lead { margin: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.legal .anshin-lead strong { display: block; color: var(--accent); font-size: 1.08rem; }
.legal .anshin-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
}
.legal .anshin-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: inherit;
  white-space: normal;
}
.legal .anshin-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 5px;
  margin-top: 0.45em;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 640px) { .legal .anshin { column-gap: 28px; } }
@media (max-width: 639px) {
  .legal .anshin { grid-template-columns: auto 1fr; column-gap: 10px; padding: 14px 12px; }
  .legal .anshin-chara { width: 50px; height: 44px; }
  .legal .anshin-lead { font-size: 0.85rem; }
  .legal .anshin-lead strong { font-size: 1rem; }
  .legal .anshin-list { grid-column: 1 / -1; font-size: 0.82rem; }
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 1.4em 0 0.8em;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 8px 16px 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
