/* 空海の智慧の灯・直販サイト。読者は60〜70代：字は大きく、行間は広く、コントラストは強く。
   グラデーションは使わない（写真の上の暗さは単色の半透明で作る） */
:root {
  --ink: #1f1b16;
  --ink-soft: #5a5046;
  --paper: #fbf8f2;
  --panel: #ffffff;
  --line: #e4dccd;
  --accent: #8a5a12;
  --accent-dark: #6d470d;
  --gold: #f0dcae;
  --night: #16120d;
  --seal: #9e2a22;
  --quote-bg: #f4ecdd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 19px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

h1, h2, h3, .scene, .turn, .closing-lead, .hero-book {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}
h1, h2, h3 { line-height: 1.5; font-weight: 700; }
h2 { font-size: 1.5em; margin: 0 0 28px; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }
.muted { color: var(--ink-soft); font-size: 0.92em; }
.small { font-size: 0.82em; color: var(--ink-soft); margin: 10px 0 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---- 購入ボタン（行動は1種類だけ） ---- */
.cta {
  display: block;
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.12em;
  font-weight: 700;
  text-decoration: none;
  padding: 20px 16px;
  border-radius: 999px;
  border: 2px solid var(--accent-dark);
  box-shadow: 0 4px 0 var(--accent-dark);
}
.cta:hover, .cta:focus { background: var(--accent-dark); }
.cta[aria-disabled="true"] { background: #9b948a; border-color: #857e74; box-shadow: none; pointer-events: none; }

/* ---- 1. ヒーロー ---- */
.hero { background-color: var(--night); background-size: cover; background-position: center; color: #fff; }
.hero-shade { background: rgba(14, 10, 6, 0.72); padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 0.95em; margin-bottom: 16px; }
.hero h1 { font-size: 2.15em; margin: 0 0 20px; }
.nb { white-space: nowrap; }
.hero-book { color: var(--gold); font-size: 1.02em; margin-bottom: 28px; }
.hero .cta { border-color: var(--gold); }
.hero-meta { font-size: 0.85em; color: #e3d6bf; margin-top: 16px; }
.cover { width: 220px; border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.hero .cover { justify-self: center; }

/* ---- 2. 場面 ---- */
.scenes { background: var(--panel); }
.scene { font-size: 1.2em; padding-left: 18px; border-left: 3px solid var(--line); margin-bottom: 18px; }
.turn { font-size: 1.45em; font-weight: 700; margin: 40px 0 0; color: var(--seal); line-height: 1.6; }

/* ---- 3. 二つの孤独 ---- */
.two { display: grid; gap: 16px; margin: 8px 0 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 6px; }
.card-strong { border: 2px solid var(--accent); }
.card-label { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; font-size: 1.15em; margin-bottom: 8px; }
.card-strong .card-label { color: var(--accent); }

/* ---- 4. 空海 ---- */
.kukai { background: var(--night); color: #f4ecdd; }
.kukai + section { border-top: 0; }
.kukai h2 { color: #fff; }
.kukai strong { color: var(--gold); }
.kukai-grid { display: grid; gap: 28px; align-items: center; }
.kukai img { width: 240px; border-radius: 8px; justify-self: center; }

/* ---- 5. 30日後 ---- */
.after { background-color: #3a2c1a; background-size: cover; background-position: center; color: #fff; padding: 0; }
.after-shade { background: rgba(20, 14, 8, 0.66); padding: 64px 0; }
.after h2 { color: #fff; }
.gains { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: g; }
.gains li { counter-increment: g; background: rgba(255, 255, 255, 0.94); color: var(--ink); border-radius: 10px; padding: 18px 20px 18px 64px; margin-bottom: 14px; position: relative; }
.gains li::before { content: counter(g); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 32px; }
.gains strong { display: block; font-size: 1.05em; }
.gains span { display: block; font-size: 0.9em; color: var(--ink-soft); }
.after-note { color: var(--gold); margin: 0; }

/* ---- 6. 30日の流れ ---- */
.weeks { list-style: none; padding: 0; margin: 0 0 20px; }
.weeks li { display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.weeks .wk { grid-row: span 2; background: var(--quote-bg); color: var(--accent); font-weight: 700; border-radius: 8px; text-align: center; align-self: start; padding: 6px 0; font-size: 0.9em; }
.weeks strong { font-size: 1.05em; }
.weeks span:last-child { font-size: 0.9em; color: var(--ink-soft); }

/* ---- 7. 試し読み ---- */
.sample { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px 22px 10px; margin-bottom: 28px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.sample-head { font-family: "Hiragino Kaku Gothic ProN", sans-serif; font-size: 0.8em; color: var(--seal); font-weight: 700; }
.sample ol { padding-left: 1.3em; }
blockquote { margin: 0 0 14px; padding: 14px 20px; background: var(--quote-bg); border-left: 5px solid var(--accent); border-radius: 4px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
blockquote p { margin: 0; }
.toc-box { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; }
.toc-box summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.toc li { margin-bottom: 0.2em; }

/* ---- 8. 特典 ---- */
.bonuses { display: grid; gap: 20px; }
.bonuses figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.bonuses img { border: 1px solid var(--line); }
.bonuses figcaption { font-size: 0.9em; color: var(--ink-soft); }
.bonuses figcaption strong { display: block; color: var(--ink); font-size: 1.08em; }

/* ---- 9. 価格 ---- */
.offer { background: var(--quote-bg); }
.offer-grid { display: grid; gap: 28px; align-items: center; }
.offer .cover { width: 180px; justify-self: center; }
.includes { padding-left: 1.2em; }
.price-big { font-size: 2.6em; font-weight: 700; line-height: 1.2; margin: 8px 0 4px; }
.price-big span { font-size: 0.35em; font-weight: 400; margin-left: 6px; }
.per-day { color: var(--ink-soft); }

/* ---- 10. FAQ ---- */
.faq dt { font-weight: 700; margin-top: 22px; }
.faq dt::before { content: "Q. "; color: var(--seal); }
.faq dd { margin: 6px 0 0; }
.faq dd::before { content: "A. "; font-weight: 700; color: var(--accent); }

/* ---- 11. 最後 ---- */
.closing { background: var(--night); color: #f4ecdd; text-align: left; }
.closing-lead { font-size: 1.45em; color: #fff; line-height: 1.6; }
.closing .cta { border-color: var(--gold); margin: 28px 0 0; }
.closing .small { color: #cdbfa6; }

footer { background: #0e0b07; padding: 28px 0 110px; font-size: 0.78em; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: #b9ab93; }

/* ---- スマホの購入バー ---- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(22, 18, 13, 0.96); padding: 10px 16px; display: flex; align-items: center; gap: 14px; z-index: 10; }
.buybar span { color: #fff; font-weight: 700; white-space: nowrap; }
.buybar .cta { padding: 12px 10px; font-size: 1em; box-shadow: none; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 260px; }
  .hero h1 { font-size: 2.5em; }
  .cover { width: 260px; }
  .two { grid-template-columns: 1fr 1fr; }
  .kukai-grid { grid-template-columns: 260px 1fr; }
  .offer-grid { grid-template-columns: 220px 1fr; }
  .buybar { display: none; }
  footer { padding-bottom: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 1.85em; }
  .cover { width: 180px; }
  section { padding: 52px 0; }
}

/* ---- 読むページ ---- */
.reader header { padding: 24px 0 8px; font-size: 0.9em; color: var(--ink-soft); }
.reader article { padding: 16px 0 32px; }
.reader article img { margin: 24px auto; border-radius: 8px; max-height: 720px; width: auto; }
.reader article h2 { margin-top: 48px; }
.reader article h2::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--seal); margin-right: 12px; vertical-align: -0.12em; }
.reader hr { border: 0; height: 32px; }
.reader table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.92em; }
.reader th, .reader td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.reader th { background: var(--quote-bg); }
.reader ul, .reader ol { padding-left: 1.3em; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 20px 8px; margin-bottom: 20px; }
.ichigen { display: block; margin: 16px 0; padding: 16px 20px; background: var(--quote-bg); border-left: 5px solid var(--accent); border-radius: 4px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.05em; }
.ichigen .label { display: block; font-size: 0.8em; color: var(--seal); font-weight: 700; margin-bottom: 4px; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 24px 0 48px; }
.pager a { display: inline-block; padding: 14px 18px; border: 2px solid var(--accent); border-radius: 8px; text-decoration: none; font-weight: 700; }
.downloads a { font-weight: 700; }
.notes { font-size: 0.9em; color: var(--ink-soft); }

@media print {
  .pager, footer, .cta, .buybar { display: none; }
}
