/* KIRIBAKO ユーザーガイド - スタイル (LP / 規約ページと統一) */

:root {
  --text: #2b2118;
  --text-muted: #6b5e51;
  --bg: #faf6f0;
  --surface: #ffffff;
  --border: #d9cfc1;
  --accent: #4c3c26;
  --link: #6b4f1f;
  --max-width: 820px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

.serif {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  letter-spacing: 0.08em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 上部ナビ */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.home-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.home-link:hover { text-decoration: underline; }

.lang-switch { font-size: 13px; }
.lang-switch a {
  color: var(--link);
  text-decoration: none;
  margin: 0 2px;
}
.lang-switch a:hover { text-decoration: underline; }
.lang-switch strong { color: var(--text); }

/* ヘッダー */
.guide-header { text-align: center; padding: 8px 0 16px; }
.guide-header img.appicon {
  width: 72px; height: 72px; border-radius: 18px;
  box-shadow: 0 4px 14px rgba(43, 33, 24, 0.18);
}
.guide-header h1 {
  font-size: 30px; font-weight: 600; margin: 16px 0 4px;
  letter-spacing: 0.10em;
}
.guide-header .sub { color: var(--text-muted); font-size: 14px; margin: 0; }

/* クイックスタート (3ステップ) */
.quickstart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
.quickstart .qs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}
.quickstart .qs .num {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  line-height: 28px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.quickstart .qs .qs-title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.quickstart .qs p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 計測方法の選び方 (2択比較) */
.choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 8px;
}
.choose .opt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.choose .opt .opt-head { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--accent); }
.choose .opt p { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 0; }
.choose .opt .opt-for { font-size: 13px; margin-top: 8px; }
.choose .opt .opt-for strong { color: var(--text); }

/* 目次 */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.toc h2 { font-size: 16px; margin: 0 0 12px; color: var(--accent); letter-spacing: 0.04em; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--link); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* セクション */
section { margin: 0 0 8px; padding-top: 16px; }
h2.sec {
  font-size: 22px; font-weight: 600;
  margin: 36px 0 14px; color: var(--accent);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  letter-spacing: 0.03em;
}
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
p { margin: 12px 0; }
ul, ol.steps + ul { margin: 12px 0; padding-left: 24px; }
li { margin: 4px 0; }
strong { font-weight: 600; }
a { color: var(--link); text-underline-offset: 2px; }

/* 手順リスト */
ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 16px 0;
  padding: 0;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 14px 44px;
  margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: 600;
  font-size: 15px;
}
ol.steps > li strong { display: block; margin-bottom: 2px; }

/* スクリーンショット */
.shot {
  display: block;
  margin: 18px auto;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(43, 33, 24, 0.12);
}
.shot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 24px;
}

/* コールアウト */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.callout.tip { border-left-color: #5a7d4c; }
.callout.warn { border-left-color: #a06a2c; }
.callout .label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

/* プラン表 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { background: #f3ebde; font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq h3 { margin-top: 20px; }
.faq h3::before { content: "Q. "; color: var(--accent); font-weight: 700; }
.faq p { margin-top: 6px; }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
footer a { color: var(--link); text-decoration: none; margin: 0 8px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 24px 16px 48px; }
  .guide-header h1 { font-size: 25px; }
  h2.sec { font-size: 19px; }
  .quickstart { grid-template-columns: 1fr; }
  .choose { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ede2d3;
    --text-muted: #a99988;
    --bg: #1a1410;
    --surface: #251c14;
    --border: #3d2f22;
    --accent: #d9b87a;
    --link: #d9b87a;
  }
  th { background: #2e2419; }
  ol.steps > li::before { color: #1a1410; }
}
