/* =========================================================
   LINE登録LP(試作品)
   方針: スマホ最優先 / 清潔感・上品さ・安心感 / 読みやすさ
   色は「アイボリー × 深いグレージュ × 控えめなゴールド」。
   緑はLINEのボタンだけに使い、押す場所がひと目で分かるようにする。
   ========================================================= */

:root {
  --bg: #fbf8f3;          /* アイボリー(ページの地) */
  --tint: #f2eadf;        /* 区切り用の淡いベージュ */
  --surface: #ffffff;
  --ink: #2f2a25;         /* 本文(背景との差を十分にとる) */
  --ink-sub: #5f574f;
  --accent: #8a6a3f;      /* 控えめなゴールド(白地でも読める濃さ) */
  --accent-ink: #785d37;  /* 茶色の文字用。どの背景でもコントラスト比4.6以上 */
  --accent-soft: #e9dfd1;
  --line: #048639;        /* LINEの緑と同じ色相。白い文字でコントラスト比4.69(4.5以上) */
  --line-dark: #036b2e;
  --tbc: #b4232a;         /* 要確認(試作品用) */
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 45, 30, 0.08);
  --sticky-h: 76px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ece6dd;    /* PCで見たときの外側 */
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  /* 固定ボタンの下に最後の内容が隠れないように */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

main, .footer { max-width: 480px; margin: 0 auto; background: var(--bg); }

h1, h2, h3 { margin: 0; line-height: 1.5; font-weight: 700; }
p { margin: 0; }

/* ---------- 試作品用(本番では削除) ---------- */
.proto-bar {
  max-width: 480px; margin: 0 auto; padding: 10px 16px 12px;
  background: #3b352f; color: #fff; font-size: 13px; line-height: 1.6;
}
.proto-bar__title { font-weight: 700; }
.proto-bar__note { margin-top: 6px; font-size: 12px; color: #e6ded4; }
.proto-bar .tbc { background: #fff; }

.tbc {
  display: inline-block; margin: 0 2px; padding: 0 6px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1.7; vertical-align: middle;
  color: var(--tbc); background: #fdeeee; border: 1px dashed var(--tbc);
}
.tbc--block { display: block; margin: 0; padding: 8px 10px; font-size: 13px; }

/* ---------- 共通 ---------- */
.sec { padding: 52px 20px; }
.sec--tint { background: var(--tint); }
.sec__title { text-align: center; font-size: 23px; }
.sec__title::after {
  content: ""; display: block; width: 32px; height: 2px; margin: 14px auto 0; background: var(--accent);
}
.sec__lead { margin-top: 18px; color: var(--ink-sub); font-size: 15px; }
.sec__lead--follow { margin-top: 8px; }
.sec__bridge { margin-top: 28px; text-align: center; font-weight: 700; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-sub); text-align: center; }
.micro { margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-sub); }
.micro--light { color: #e8e1d8; }
.reassure { margin-top: 24px; text-align: center; font-size: 15px; color: var(--ink-sub); }

/* ---------- LINEボタン ---------- */
.btn-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; margin-top: 24px; padding: 14px 20px;
  border-radius: 999px; background: var(--line); color: #fff;
  font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(4, 134, 57, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-line:active { transform: translateY(1px); background: var(--line-dark); }
.btn-line:focus-visible { outline: 3px solid #2f2a25; outline-offset: 3px; }
.btn-line__icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 6px; border-radius: 6px; background: #fff; color: var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: 0;
}
.btn-line--large { min-height: 66px; font-size: 19px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--accent-soft);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta .btn-line--sticky { max-width: 448px; margin: 0 auto; min-height: 56px; font-size: 17px; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- 写真の仮置き ---------- */
.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #efe8de 0 12px, #e9e1d5 12px 24px);
  color: var(--ink-sub); font-size: 14px; line-height: 1.6; border-radius: var(--radius);
}

/* ---------- 1. ファーストビュー ---------- */
.fv {
  padding: 22px 20px 36px;
  background: linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
  border-top: 3px solid var(--accent);
}
.fv__target {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: clamp(13px, 3.6vw, 14px); font-weight: 700;
}
.fv__catch { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.45; letter-spacing: 0.03em; }
.fv__lead { margin-top: 16px; font-size: 15px; color: var(--ink-sub); line-height: 1.7; }
.fv__lead strong { color: var(--ink); font-weight: 700; }
/* キャッチコピー(左)と写真(右)を横に並べる。写真は縦横比3:4のまま、顔から組んだ腕までを表示 */
.fv__hero { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.fv__hero-text { flex: 1; min-width: 0; }
.fv__photo { flex: none; width: 42%; max-width: 200px; }
.fv__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(60, 45, 30, 0.14);
}
.fv__name { margin-top: 14px; padding-left: 10px; border-left: 3px solid var(--accent); line-height: 1.4; }
.fv__name-role { display: block; font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.fv__name-main { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.fv__points {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none;
}
.fv__points li { position: relative; padding-left: 17px; font-size: 14px; font-weight: 700; color: var(--ink); }
.fv__points li::before {
  content: ""; position: absolute; left: 3px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fv .btn-line { margin-top: 16px; }

/* ---------- 2. お悩み ---------- */
.checklist { margin: 28px 0 0; padding: 0; list-style: none; }
.checklist li {
  position: relative; margin-top: 10px; padding: 14px 16px 14px 46px;
  background: var(--surface); border-radius: 12px; font-size: 15px; line-height: 1.7;
}
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--accent-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 10px; margin-top: -7px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- 3. LINE登録でできること ---------- */
.merits { margin: 28px 0 0; padding: 0; list-style: none; }
.merit {
  display: flex; gap: 16px; margin-top: 12px; padding: 20px 18px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.merit__num {
  flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700;
}
.merit__title { font-size: 17px; }
.merit p:not(.merit__num) { margin-top: 6px; font-size: 15px; color: var(--ink-sub); }

/* ---------- 4. サポート内容 ---------- */
.cards { margin-top: 24px; }
.card {
  margin-top: 12px; padding: 22px 20px; background: var(--surface);
  border-radius: var(--radius); border-left: 4px solid var(--accent);
}
.card__label { color: var(--accent-ink); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.card__title { margin-top: 2px; font-size: 18px; }
.card p:last-child { margin-top: 8px; font-size: 15px; color: var(--ink-sub); }

/* ---------- 5. 方針 ---------- */
.policy { margin-top: 24px; }
.policy p { margin-top: 14px; font-size: 16px; }

/* ---------- 6. トレーナー ---------- */
.trainer { margin-top: 24px; text-align: center; }
.trainer__photo { width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; }
.trainer__role { margin-top: 16px; color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.trainer__name { font-size: 22px; font-weight: 700; }
.trainer__kana { display: block; font-size: 13px; font-weight: 400; color: var(--ink-sub); letter-spacing: 0.1em; }
.trainer__career { display: inline-block; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; font-size: 15px; }
.trainer__career li { padding: 4px 0; border-bottom: 1px dotted #d9cfc2; }
.trainer__message { margin-top: 18px; text-align: left; font-size: 15px; }

/* ---------- 7. お客様の声 ---------- */
.voices { margin-top: 24px; }
.voice { margin-top: 12px; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.voice__meta { margin-top: 8px; font-size: 14px; color: var(--ink-sub); }

/* ---------- 8. 料金 ---------- */
.plans { margin-top: 24px; }
.plan {
  position: relative; margin-top: 14px; padding: 24px 20px; text-align: center;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--accent-soft);
}
.plan--featured { border: 2px solid var(--accent); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 2px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
}
.plan__name { font-size: 18px; }
.plan__price { margin-top: 6px; font-size: 34px; font-weight: 700; letter-spacing: 0.02em; font-feature-settings: "palt"; }
.plan__unit { margin-right: 4px; font-size: 15px; }
.plan__yen { margin-left: 2px; font-size: 16px; }
.plan__tax, .plan__desc { margin-top: 6px; font-size: 14px; }
.plan__tax { color: var(--ink-sub); }
.plan__includes {
  display: inline-block; margin: 16px auto 0; padding: 14px 18px 12px; list-style: none; text-align: left;
  background: var(--bg); border-radius: 12px; font-size: 15px;
}
.plan__includes li { position: relative; padding: 2px 0 2px 22px; }
.plan__includes li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan__desc { color: var(--ink-sub); }

/* ---------- 9. 流れ ---------- */
.flow { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: none; }
.flow li { position: relative; padding: 0 0 24px 28px; border-left: 2px solid var(--accent-soft); margin-left: 8px; }
.flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg);
}
.flow__step { color: var(--accent-ink); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.flow h3 { font-size: 17px; }
.flow li p:last-child { margin-top: 4px; font-size: 15px; color: var(--ink-sub); }

/* ---------- 10. FAQ ---------- */
.faq { margin-top: 24px; }
.faq details { margin-top: 10px; background: var(--surface); border-radius: 12px; }
.faq summary {
  position: relative; padding: 16px 44px 16px 16px; font-weight: 700; font-size: 15px;
  line-height: 1.6; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--accent-ink); }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--ink-sub); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 16px 16px; font-size: 15px; color: var(--ink-sub); }

/* ---------- 11. 最後の案内 ---------- */
.final { padding: 56px 20px 60px; background: #3b352f; color: #fff; text-align: center; }
.final__title { font-size: 23px; }
.final__text { margin-top: 16px; font-size: 15px; color: #e8e1d8; }

/* ---------- フッター ---------- */
.footer { padding: 28px 20px 32px; background: #f1ece5; font-size: 14px; color: var(--ink-sub); }
.legal { margin-top: 8px; border-top: 1px solid #ddd3c6; }
.legal summary { padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--ink); }
.legal dl { margin: 0 0 12px; }
.legal dt { margin-top: 10px; font-weight: 700; color: var(--ink); }
.legal dd { margin: 2px 0 0; }
.legal p { margin-top: 8px; }
.footer__copy { margin-top: 24px; text-align: center; font-size: 13px; }

/* PC幅: スマホ幅のまま中央に表示し、外側に余白を見せる */
@media (min-width: 520px) {
  main { box-shadow: 0 0 40px rgba(60, 45, 30, 0.08); }
}

/* 見出しが2行になるとき、行の長さをそろえて1〜2文字だけ次の行に落ちるのを防ぐ */
.card__title, .sec__title { text-wrap: balance; }
/* <wbr> で指定した位置でだけ改行する(言葉の途中で切らない) */
.faq summary, .merit__title { word-break: keep-all; overflow-wrap: anywhere; }

/* 画面の高さが低いスマホ(iPhone SE など)でも、最初の画面にボタンまで収める */
@media (max-height: 600px) {
  .fv { padding-top: 16px; }
  .fv__hero { margin-top: 10px; }
  .fv__photo { width: 38%; }
  .fv__catch { font-size: clamp(21px, 6vw, 26px); line-height: 1.4; }
  .fv__name { margin-top: 10px; }
  .fv__lead { margin-top: 10px; font-size: 14px; line-height: 1.6; }
  .fv__points { margin-top: 10px; }
  .fv .btn-line { margin-top: 12px; }
}
}

/* =========================================================
   修正案 v7: プラン比較(3プランは同じ見た目。おすすめ表示はしない)
   ========================================================= */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.plan-intro { text-align: center; }
.compare-wrap { margin-top: 24px; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  font-size: 14px; line-height: 1.5;
}
.compare th, .compare td { padding: 10px 6px; text-align: center; vertical-align: middle; }
/* 項目名は表の幅いっぱいの見出し行にする(狭い列に長い言葉を入れない) */
.compare__label th {
  padding: 8px 14px; background: var(--tint); color: var(--accent-ink);
  font-size: 13px; font-weight: 700; text-align: left; letter-spacing: 0.04em;
}
.compare__plans th { padding: 12px 4px 14px; border-right: 1px solid #efe7dc; }
.compare__plans th:last-child, .compare__fit td:last-child { border-right: 0; }
.compare__freq { display: inline-block; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare__freq b { font-size: 26px; margin: 0 1px; color: var(--accent-ink); }
.compare__common td { padding: 14px 6px; font-weight: 700; }
.compare__check { position: relative; padding-left: 22px; }
.compare__check::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.compare__fit td {
  padding: 12px 6px; border-right: 1px solid #efe7dc; font-size: 14px; color: var(--ink-sub); line-height: 1.55;
  word-break: keep-all; overflow-wrap: anywhere;
}
.compare__price { padding: 14px 14px !important; color: var(--ink-sub); font-size: 14px; line-height: 1.6; }
.compare__price .tbc--block { margin-top: 8px; text-align: left; }
.plan-fit-note { margin-top: 10px; }
.plan-facts { margin: 20px 0 0; padding: 16px 18px; list-style: none; background: var(--tint); border-radius: 12px; font-size: 15px; }
.plan-facts li { position: relative; padding: 4px 0 4px 22px; }
.plan-facts li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.card__common {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; letter-spacing: 0.04em; vertical-align: 1px;
}

/* 画面の狭いスマホでもボタンの文字を1行に */
.btn-line { font-size: clamp(16px, 4.6vw, 18px); }
.btn-line--large { font-size: clamp(17px, 4.9vw, 19px); }

/* お客様の声: 最初の数行だけ表示し、「全文を読む」で開く */
.voice__lead { font-size: 15px; font-weight: 700; line-height: 1.75; }
.voice__more { margin-top: 8px; }
.voice__more summary { list-style: none; cursor: pointer; }
.voice__more summary::-webkit-details-marker { display: none; }
.voice__preview { display: block; color: var(--ink-sub); font-size: 15px; line-height: 1.75; }
.voice__toggle {
  display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700;
}
.voice__more[open] .voice__preview { display: none; }
.voice__more[open] .voice__toggle { display: none; }
.voice__body p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--ink-sub); }
.voice__body p:first-child { margin-top: 0; }
.voice__omit { color: var(--ink-sub); font-size: 14px; }
.voice .tbc--block { margin-top: 12px; }

/* トレーナー紹介の写真(円形) */
.trainer__photo { display: block; } /* <picture> は幅が効かないため、中央寄せのためにブロックにする */
.trainer__photo img { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(60, 45, 30, 0.12); }

/* 比較表の月額料金(3プラン同じ見た目) */
.compare__fees td { padding: 14px 4px 12px; border-right: 1px solid #efe7dc; }
.compare__fees td:last-child { border-right: 0; }
.compare__fee { display: block; font-size: clamp(18px, 5.4vw, 22px); font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: 0.01em; }
.compare__fee small { margin-left: 1px; font-size: 13px; }
.compare__fee-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-sub); white-space: nowrap; }
