/* 明るい背景に、アプリのデザインのトークン（docs/handoff/design-tokens.md）の松葉色と朱をアクセントに使う。
   読み物のページなので、ダークモードには切り替えない */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F4;
  --ink: #1E2A22;
  --ink-muted: #5E6B62;
  --pine: #2F5D46;
  --pine-soft: #EAF1EB;
  --seal: #B8352A;
  --line: #E6E9E3;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* ヘッダーとフッター */
.site-header, .site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header { border-bottom: 1px solid var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-header nav, .site-footer nav { display: flex; gap: 20px; font-size: 14px; }
.site-header nav a, .site-footer nav a { color: var(--ink-muted); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
  flex-wrap: wrap;
}

/* 本文 */
main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

/* 日本語の見出しが、文節の途中で折り返さないようにする */
h1, h2, .lead, .badge { word-break: auto-phrase; }

h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.4; letter-spacing: 0.01em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.5; margin: 56px 0 12px; }
h3 { font-size: 16px; margin: 28px 0 6px; }

p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.meta { color: var(--ink-muted); font-size: 14px; }

.callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--pine-soft);
  border-radius: var(--radius);
}
.callout-title { font-weight: 700; margin-bottom: 8px; }
.callout ul { margin: 0; padding-left: 1.2em; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
th { background: var(--bg-soft); color: var(--ink-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
td:first-child { font-weight: 600; min-width: 9em; }

.mail {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.mail:hover { background: var(--pine-soft); }

/* よくある質問 */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  padding: 16px 32px 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-muted);
}
details[open] summary::after { content: "−"; }
details > p { color: var(--ink); }

/* トップページ */
.hero { text-align: center; padding-top: 80px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(30, 42, 34, 0.12); margin-bottom: 32px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 20px; }
.lead { max-width: 34em; margin: 0 auto 32px; color: var(--ink-muted); font-size: 17px; }
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 700;
  font-size: 15px;
}
