/* Googleマップ集客 販売ページ 共通スタイル（GPT デザイン仕様 2026-11-03 に合わせて調整） */
:root {
  --navy: #183247;
  --navy-2: #112c3f;
  --ink: #263b47;
  --muted: #657680;
  --line: #dddeda;
  --bg: #ffffff;
  --bg-soft: #f4f2ed;
  --bg-warm: #f1eee7;
  --accent: #a95a3b;        /* 強調（文字・線） */
  --cta: #a95a3b;           /* ボタン面（白文字が読みやすい濃さ） */
  --cta-hover: #8e472b;
  --cta-shadow: #7a3c24;
  --gold: #c9971c;
  --gold-soft: #ecdcc9;
  --link: #4b6472;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(27, 48, 58, .07);
  --max: 760px;
  --max-wide: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f8f7f4;
  color: var(--ink);
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
section.warm { background: var(--bg-warm); }
h1, h2, h3 { letter-spacing: .03em; }
h2 {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  font-family: "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", serif;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 36px;
  color: var(--navy);
}
/* 見出しの下に短いオレンジの線 */
h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--accent); margin: 14px auto 0; }
h2 .sub { display: block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .18em; margin-bottom: 8px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--navy); margin: 28px 0 10px; }
p { margin: 0 0 1.1em; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }
.mark { background: linear-gradient(transparent 62%, var(--gold-soft) 62%); font-weight: 700; }
.strong { font-weight: 700; color: var(--accent); }

/* 白背景のイラストを、淡い背景の上でもなじませる */
.blend { mix-blend-mode: multiply; }
.figure { margin: 0 auto 28px; text-align: center; }
.figure img { display: block; margin: 0 auto; }

/* ヘッダー帯 */
.topbar { background: var(--navy); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; }

/* ファーストビュー */
.hero {
  background: #faf9f5;
  color: var(--navy);
  padding: 56px 0 64px;
  text-align: center;
}
.hero.gold { background: #faf9f5; }
.hero .wrap { max-width: var(--max-wide); }
.hero .eyebrow {
  display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 3px 16px; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 900; line-height: 1.38; margin: 0 0 18px; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero .lead { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.hero .book { width: min(340px, 82%); margin: 8px auto 20px; }
.hero .book img { display: block; width: 100%; }
@media (min-width: 900px) {
  .hero { text-align: left; padding: 72px 0 84px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
  .hero-grid .book { grid-column: 2; grid-row: 1 / span 2; width: 100%; max-width: 400px; margin: 0 auto; }
  .hero-grid .hero-text { grid-column: 1; }
  .hero-grid .hero-cta { grid-column: 1; }
  .hero .btn { margin: 0; }
  .hero .btn-note { text-align: left; }
}

/* ボタン */
.btn {
  display: block; width: 100%; max-width: 560px; margin: 0 auto; min-height: 56px;
  background: var(--cta); color: #fff; text-decoration: none; text-align: center;
  font-weight: 900; font-size: 19px; line-height: 1.4;
  padding: 17px 20px; border-radius: 3px; border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 3px 0 var(--cta-shadow);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cta-shadow), 0 4px 10px rgba(18, 48, 90, .10); }
.btn small { display: block; font-size: 13px; font-weight: 400; opacity: .95; margin-top: 2px; }
.btn.green { background: var(--navy); box-shadow: 0 4px 0 #081a33, 0 8px 18px rgba(18, 48, 90, .12); }
.btn.green:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.decline {
  display: block; text-align: center; margin: 24px auto 0; font-size: 15px; color: var(--link);
  background: none; border: 0; text-decoration: underline; cursor: pointer; font-family: inherit;
}

/* カード・リスト */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 11px 0 11px 36px; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 6px;
  background: var(--navy); color: #fff; font-size: 14px; line-height: 24px; text-align: center; font-weight: 700;
}
.worry li::before { content: "?"; background: #fff; color: var(--accent); border: 2px solid var(--accent); line-height: 20px; border-radius: 50%; }
.reasons { counter-reset: r; display: grid; gap: 16px; }
.reason { position: relative; padding-left: 70px; }
.reason::before {
  counter-increment: r; content: counter(r);
  position: absolute; left: 22px; top: 24px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; text-align: center; line-height: 34px; font-weight: 700;
}
.reason h3 { margin-top: 0; }
.reason p:last-child { margin-bottom: 0; }
/* アイコンつきの理由（index.html） */
.reasons.icons .reason { padding-left: 22px; display: grid; grid-template-columns: 72px 1fr; gap: 0 16px; align-items: start; }
.reasons.icons .reason::before { display: none; }
.reasons.icons .reason .ic { grid-row: 1 / span 2; width: 72px; height: 72px; }
.reasons.icons .reason h3 .no { color: var(--accent); font-size: 14px; display: block; letter-spacing: .1em; }

/* 目次 */
.toc { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 22px; }
.toc li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc li .no { flex: none; font-weight: 900; color: var(--accent); width: 56px; font-size: 14px; padding-top: 2px; }

/* 価格 */
.price-box { text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 32px 20px; background: #fff; box-shadow: var(--shadow); }
.price-wrap { background: var(--bg-warm); border-radius: 4px; padding: 14px; }
.price-box .label { display: inline-block; font-weight: 700; color: var(--navy); background: var(--gold-soft); border-radius: 999px; padding: 3px 16px; font-size: 14px; }
.price-box .was { color: var(--muted); text-decoration: line-through; font-size: 17px; margin-top: 14px; }
.price-box .now { font-size: clamp(56px, 16vw, 64px); font-weight: 900; color: var(--accent); line-height: 1.15; }
.price-box .now span { font-size: 22px; }
.price-box .tax { font-size: 14px; color: var(--muted); }
.price-box .off { display: inline-block; background: #fff; color: var(--accent); border: 2px solid var(--accent); font-weight: 700; padding: 0 12px; border-radius: 999px; font-size: 14px; margin: 6px 0 2px; }
.price-box .book { width: min(240px, 70%); margin: 18px auto 4px; }

/* オファー用 */
.alert { background: var(--navy); color: #fff; text-align: center; padding: 12px 16px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.steps-bar { display: flex; justify-content: center; gap: 6px; padding: 14px 16px; background: var(--bg-soft); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.steps-bar span { padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps-bar span.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* プロフィール */
.profile { display: flex; gap: 22px; align-items: center; }
.profile .avatar {
  flex: none; width: 132px; height: 132px; background: url(img/author-frame.webp) center / contain no-repeat;
  display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5;
}
.profile .avatar img { width: 58%; height: auto; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
details summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "Q. "; color: var(--accent); font-weight: 900; }
details p { margin: 10px 0 0; }

/* 比較表 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); color: var(--navy); }

/* フッター */
footer { background: var(--navy); color: rgba(255,255,255,.85); font-size: 13px; padding: 28px 0; text-align: center; }
footer a { color: #fff; margin: 0 8px; }

/* 下に固定ボタン（スマホ） */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 10; display: none; }
.sticky-cta .btn { font-size: 16px; padding: 12px 16px; min-height: 0; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  h2 { margin-bottom: 28px; }
  .card { padding: 20px 18px; }
  .sticky-cta.show { display: block; }
  body.has-sticky { padding-bottom: 76px; }
  .profile { flex-direction: column; text-align: center; }
  .reasons.icons .reason { grid-template-columns: 56px 1fr; gap: 0 14px; padding-left: 18px; }
  .reasons.icons .reason .ic { width: 56px; height: 56px; }
  /* スマホでは手動の改行を外し、自然に折り返す */
  .hero .lead br, .btn-note br, .price-box br { display: none; }
}
@media (max-width: 420px) {
  .hero h1 br { display: none; }
}

/* 無料小冊子の申込み（メールアドレスを入れる小さな画面） */
dialog.apply { border: 0; border-radius: 18px; padding: 28px 22px; width: min(460px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(18, 48, 90, .25); }
dialog.apply::backdrop { background: rgba(18, 48, 90, .45); }
dialog.apply h2 { font-size: 21px; margin-bottom: 20px; }
dialog.apply label { display: block; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
dialog.apply input[type=email] { width: 100%; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }
dialog.apply input[type=email]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
dialog.apply .btn { margin-top: 16px; }

/* 発行元の出版実績（販売ページ） */
.pub-covers { display: block; margin: 22px 0 12px; }
.pub-covers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pub-covers li { aspect-ratio: 180 / 256; overflow: hidden; background: var(--bg-warm); box-shadow: 0 5px 12px rgba(27, 48, 58, .12); }
.pub-covers img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .pub-covers ul { grid-template-columns: repeat(4, 1fr); gap: 8px; } }

/* 新しい表紙（平らな紙の表紙。2026-11-04） */
.flat-cover { display: block; border: 1px solid #d8d9d2; box-shadow: 0 10px 24px rgba(9, 30, 49, .14); background: #fbf9f3; }
.hero .book:has(.flat-cover) { display: block; width: min(250px, 64%); margin: 14px auto 26px; }
@media (min-width: 900px) { .hero-grid .book:has(.flat-cover) { max-width: 300px; } }
