/* PlantLog サイト共通スタイル
   アプリ（AppStyle.swift）の確定トークンに合わせる：
   背景 #EEF5EA / アクセント #22C55E / 文字 #1F3A24 / カード角丸 26px */

:root {
  --bg: #EEF5EA;
  --card: #FFFFFF;
  --accent: #22C55E;
  --text: #1F3A24;
  --text-secondary: #5B7360;
  --line: #E2EADF;
  --radius: 26px;
  /* アプリ本文は Zen Maru Gothic。Web フォントを読みに行かず、
     同系統の丸ゴシックがあればそれを使う（読み込み待ちゼロ・外部依存ゼロ） */
  --font: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4",
          "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* アプリはライトモード固定（D-3）。ブラウザの自動反転を止めてトンマナを揃える */
html { color-scheme: light; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── ヘッダー ───────────────────────────── */

header.site {
  text-align: center;
  padding: 24px 0 8px;
}

header.site .logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

header.site .logo .leaf { color: var(--accent); }

header.site .tagline {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── カード ───────────────────────────── */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  margin: 20px 0;
}

.card h2 {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.6;
}

.card h3 {
  font-size: 15px;
  margin: 24px 0 4px;
  line-height: 1.7;
}

.card h3:first-of-type { margin-top: 8px; }

.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

.card ul {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.card li { margin-bottom: 4px; }

.meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ページ見出し（ポリシー・規約） */
.page-title {
  font-size: 22px;
  margin: 8px 0 0;
  text-align: center;
}

/* ── リンク ───────────────────────────── */

a {
  color: #157F3C; /* アクセント緑は文字だと薄いのでリンクだけ濃く（コントラスト確保） */
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { opacity: 0.75; }

/* メールアドレスなど、長い文字列が横にはみ出さないように */
.break { word-break: break-all; }

/* ページ内リンクの並び */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;      /* チップ・ピルは r=999（アプリと同じ） */
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.links a:hover { background: #E4EEDF; opacity: 1; }

/* 戻るリンク */
.back {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}

/* ── フッター ───────────────────────────── */

footer.site {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

footer.site p { margin: 12px 0 0; }

footer.site .nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* ── 本文をそのまま流し込む枠（ポリシー・規約） ──────────
   アプリ内の文面（PolicyText / TermsText）を改行ごと転載するため、
   改行を保持しつつ折り返しは有効にする */
.plain {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.95;
}
