/* サクブン先生 LP 共通スタイル（アプリと同じ暖色トーン） */
:root {
  --bg: #faf6ef;
  --card: #fff;
  --ink: #4a3b2c;
  --ink-soft: #7a6a58;
  --ink-faint: #a89684;
  --accent: #f28c28;
  --accent-dark: #d9740f;
  --line: #eee2d0;
  --genko: #e2a893;
  --green: #2f9e6e;
  --pink: #d6409f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}

.brand {
  font-weight: 800;
  font-size: 19px;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.header-nav a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .header-nav a:not(.btn) { display: none; }
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 4px 14px rgba(242, 140, 40, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 140, 40, 0.4); }

.btn--big { font-size: 19px; padding: 16px 44px; }

.btn--small { font-size: 14px; padding: 8px 20px; box-shadow: none; }

.btn-note { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* ===== ヒーロー ===== */
.hero {
  /* 原稿用紙のマス目を思わせる薄いグリッド */
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(226, 168, 147, 0.16) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(226, 168, 147, 0.16) 39px 40px),
    linear-gradient(#fdfaf4, var(--bg));
  padding: 56px 0 30px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.5;
  margin: 0 0 14px;
  font-weight: 900;
}

.hero h1 .accent { color: var(--accent-dark); }

.hero-sub { font-size: 16px; color: var(--ink-soft); margin: 0 0 26px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }

.hero-badges li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(90, 60, 30, 0.16);
  overflow: hidden;
  background: #fff;
}

/* ===== セクション共通 ===== */
section { padding: 64px 0; }

.section-label {
  display: inline-block;
  background: #fde8d2;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 16px;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.5;
  margin: 0 0 18px;
  font-weight: 900;
}

.section-lead { color: var(--ink-soft); margin: 0 0 36px; max-width: 640px; }

/* ===== 悩み ===== */
.pain { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 760px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.pain-card .emoji { font-size: 30px; }

.pain-card h3 { font-size: 16px; margin: 8px 0 6px; }

.pain-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 特徴 ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--flip .feature-text { order: 2; }
.feature-row--flip .feature-media { order: 1; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; }
  .feature-row--flip .feature-text { order: 1; }
  .feature-row--flip .feature-media { order: 2; }
}

.feature-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}

.feature-text h3 { font-size: 22px; margin: 6px 0 12px; line-height: 1.5; }

.feature-text p { margin: 0; color: var(--ink-soft); }

.feature-media img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(90, 60, 30, 0.12);
}

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }

@media (max-width: 760px) { .feature-cards { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.feature-card .emoji { font-size: 28px; }

.feature-card h4 { font-size: 16px; margin: 8px 0 6px; }

.feature-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 使い方 ===== */
.howto { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 760px) { .howto-grid { grid-template-columns: 1fr; } }

.howto-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px 22px;
}

.howto-step .step-num {
  position: absolute;
  top: -14px;
  left: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  border-radius: 999px;
  padding: 3px 14px;
}

.howto-step h3 { font-size: 16px; margin: 4px 0 8px; }

.howto-step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 料金 ===== */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.price-card--main { border: 2px solid var(--accent); position: relative; }

.price-card--main .price-badge {
  position: absolute;
  top: -14px;
  left: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 16px;
}

.price-card h3 { margin: 0 0 4px; font-size: 18px; }

.price-value { font-size: 34px; font-weight: 900; margin: 6px 0 2px; }

.price-value small { font-size: 15px; font-weight: 700; color: var(--ink-soft); }

.price-sub { font-size: 13px; color: var(--ink-faint); margin: 0 0 16px; }

.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 14.5px; }

.price-card li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); }

.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 900; }

.price-card li.minus::before { content: "—"; color: var(--ink-faint); }

.price-cta { margin-top: auto; text-align: center; }

.price-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 18px auto 0;
  max-width: 900px;
}

/* ===== FAQ ===== */
.faq { background: #fff; border-top: 1px solid var(--line); }

.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
  max-width: 860px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "＋";
  position: absolute;
  right: 2px;
  color: var(--accent-dark);
  font-weight: 900;
}

.faq details[open] summary::after { content: "−"; }

.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* ===== 最後のCTA ===== */
.last-cta { text-align: center; padding: 80px 0; }

.last-cta h2 { margin-bottom: 12px; }

.last-cta p { color: var(--ink-soft); margin: 0 0 28px; }

/* ===== フッター ===== */
.site-footer {
  background: #f2ead9;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; }

.footer-links a { color: var(--ink-soft); }

.copyright { color: var(--ink-faint); }

/* ===== 法定ページ ===== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }

.legal-page h1 { font-size: 24px; }

.legal-page h2 { font-size: 18px; margin-top: 40px; }

.legal-page table { width: 100%; border-collapse: collapse; background: #fff; }

.legal-page th, .legal-page td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.legal-page th { background: var(--bg); white-space: nowrap; width: 30%; font-weight: 800; }

@media (max-width: 560px) {
  .legal-page th, .legal-page td { display: block; width: auto; }
  .legal-page th { border-bottom: none; }
  .legal-page tr + tr th { border-top: none; }
}

.legal-page ol > li, .legal-page ul > li { margin-bottom: 6px; }

.back-home { display: inline-block; margin-bottom: 24px; font-size: 14px; }
