/* Claude Code Meta広告自動化エージェント｜シリーズ共通デザイン v2（濃い茶黒×オレンジ・読みやすさ・角丸）2026-10-14 */
:root {
  --font-heading: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --fs-body: clamp(17px, 1rem + 0.15vw, 18px);
  --fs-note: clamp(14px, 0.85rem + 0.1vw, 15px);
  --fs-h2: clamp(26px, 1.3rem + 1.5vw, 36px);
  --fs-h3: clamp(19px, 1.05rem + 0.4vw, 22px);
  --fs-fv: clamp(30px, 1.4rem + 2.6vw, 52px);
  --color-main: #f2a463;          /* 見出しの強調・枠・番号（アンバー） */
  --color-on-main: #1c120a;       /* メイン色の上に置く文字 */
  --color-main-soft: #2b1f17;     /* メイン色の薄い面 */
  --color-glow: rgba(255, 140, 50, .35);
  --color-accent: #ff8a2b;        /* CTA専用（オレンジ） */
  --color-accent-text: #1c120a;
  --color-bg: #141110;
  --color-bg-alt: #1b1613;
  --color-card: #231c18;
  --color-text: #f4eee8;
  --color-muted: #c2b6ab;
  --color-line: #3e3129;
  --radius: 18px;
  --btn-radius: 999px;
  --section-space: clamp(72px, 4.5rem + 3vw, 120px);
  --content-width: 800px;         /* 文章だけのセクションも800pxにして、FV・カード類と左端をそろえる（2026-10-14） */
  --wide-width: 830px;            /* 中身800px＋左右15px。FV・カード・表の左端をそろえる（2026-10-14） */
  --side-space: 15px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.45; margin: 0; word-break: auto-phrase; }
.ph { display: inline-block; }
p { margin: 0 0 1em; }
a { color: var(--color-main); }

.wrap { max-width: var(--wide-width); margin: 0 auto; padding: 0 var(--side-space); }
.wrap.narrow, .narrow { max-width: var(--content-width); margin-left: auto; margin-right: auto; }
.wrap.narrow { max-width: calc(var(--content-width) + var(--side-space) * 2); }
.center { text-align: center; }

/* 要確認（公開前に必ず埋める箇所） */
.todo {
  display: inline-block;
  background: #fff3cd;
  color: #6b4a00;
  font-weight: 700;
  font-size: var(--fs-note);
  padding: 0 6px;
  border-radius: 4px;
  margin: 6px 0 0;
}

/* ヘッダー */
.site-head { border-bottom: 1px solid var(--color-line); background: var(--color-bg); }
.site-head .wrap {
  display: flex; align-items: center; min-height: 56px;
  font-weight: 700; color: var(--color-main); font-size: 15px; letter-spacing: .03em;
}

/* S01 ファーストビュー（左寄せ） */
.fv {
  padding: clamp(40px, 2rem + 4vw, 96px) 0 clamp(56px, 3rem + 4vw, 104px);
  text-align: left;
  background:
    radial-gradient(ellipse 60% 70% at 92% 20%, rgba(255, 140, 50, .22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 100%, rgba(255, 120, 40, .10), transparent 70%),
    var(--color-bg);
}
.fv-label {
  display: inline-block;
  font-size: var(--fs-note); font-weight: 700; line-height: 1.6;
  color: var(--color-main); background: var(--color-main-soft);
  border: 1px solid rgba(242, 164, 99, .45);
  padding: 6px 14px; border-radius: var(--radius);
  margin: 0 0 56px;               /* 削除した商品名の行の分も、キャッチとの間を空けておく */
}
.fv-name { font-size: var(--fs-note); font-weight: 700; color: var(--color-muted); letter-spacing: .04em; margin: 0 0 16px; }
.fv-catch { max-width: 1040px; margin: 0 0 24px; font-size: var(--fs-fv); font-weight: 700; line-height: 1.45; }
.fv-catch .ln { display: block; }
.fv-catch .ln.hl { color: var(--color-main); }
.fv-catch .ln.sub-ln { font-size: .72em; }
.fv-catch .ln.sub-ln.first { margin-top: .7em; }
.fv-catch .ph { display: inline-block; }
.fv-sub { max-width: 760px; margin: 0 0 28px; color: var(--color-text); }

/* 画像（S01・S03・S05） */
figure { margin: 0; }
.fv-visual img, .split-img img, .head-img img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.fv-visual img { box-shadow: 0 0 60px rgba(255, 140, 50, .18); }
.fv-grid { display: grid; gap: 28px; }

/* PC：S01は文章と画像の2列、S03は文章と写真の2列、S05は見出しと写真の2列 */
@media (min-width: 961px) {
  /* ラベルと商品名は横いっぱい。キャッチと画像は半分ずつ。キャッチは左半分いっぱいの大きさ */
  .fv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 0; align-items: center; }
  .fv-text { display: contents; }
  .fv-grid .fv-label { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; }
  .fv-grid .fv-name { grid-column: 1 / -1; grid-row: 2; }
  /* キャッチは上端を固定（枠との間56pxを保つ）。画像はその行の高さの中で上下中央 */
  .fv-grid .fv-catch { grid-column: 1; grid-row: 3; margin-bottom: 0; font-size: 41px; padding-left: 20px; align-self: start; min-width: 0; }
  .fv-visual { grid-column: 2; grid-row: 3; width: 100%; position: relative; left: -10px; align-self: center; min-width: 0; }
  .fv-grid .fv-sub { grid-column: 1 / -1; grid-row: 4; align-self: start; max-width: none; margin: 32px 0 0; }
  .fv-sub .sent { display: block; }
  .fv-grid .fv-sub { text-align: center; font-size: calc(var(--fs-body) * 1.3); line-height: 1.75; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .split-img img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 60% 40%; }
  .head-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; margin-bottom: 36px; }
  .head-split .sec-title { margin-bottom: 0; }
}
/* タブレット・スマホ：縦に並べる */
@media (max-width: 960px) {
  /* 縦に並ぶときは、文章の左端はそろえたまま、かたまりごと中央に置く（2026-10-14） */
  .fv-text { text-align: center; }
  .fv-text .fv-catch { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .fv-grid .fv-sub { justify-self: center; text-align: left; }
  .fv-visual { max-width: 560px; justify-self: center; width: 100%; }
  .fv-grid { gap: 20px; }
  .fv-grid .fv-sub { margin-bottom: 0; }
  .split-text { max-width: var(--content-width); }
  .split-img { margin-top: 32px; max-width: 560px; }
  .split-img img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 22%; }
  .head-split .sec-title { margin-bottom: 20px; }
  .head-img { margin-bottom: 32px; max-width: 560px; }
}

/* S01下 目次 */
.toc { background: var(--color-bg-alt); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.toc ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--color-line); border-radius: var(--btn-radius);
  color: var(--color-text); text-decoration: none; font-size: var(--fs-note); font-weight: 700;
  background: var(--color-card);
}
.toc a::after { content: "↓"; margin-left: 8px; color: var(--color-main); }
.toc a:hover { border-color: var(--color-main); }
.toc a:focus-visible { outline: 3px solid var(--color-main); outline-offset: 2px; }

/* 価格とボタン */
.price { margin: 0 0 14px; line-height: 1.3; }
.pmain { font-family: var(--font-heading); font-size: clamp(32px, 1.7rem + 1.2vw, 42px); font-weight: 700; }
.psub { display: inline-block; font-size: clamp(17px, 1rem + 0.2vw, 19px); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 16px 40px;
  background: var(--color-accent); color: var(--color-accent-text);
  font-weight: 700; font-size: var(--fs-body); line-height: 1.4;
  text-decoration: none; border-radius: var(--btn-radius);
  box-shadow: 0 0 0 1px rgba(255, 170, 90, .6), 0 6px 24px var(--color-glow);
  transition: transform .15s, box-shadow .15s;
}
.btn::after { content: "→"; margin-left: 10px; }
.btn:hover { transform: translateY(1px); box-shadow: 0 0 0 1px rgba(255, 170, 90, .8), 0 4px 18px var(--color-glow); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-note { font-size: var(--fs-note); color: var(--color-muted); margin: 12px 0 0; }
.cta-block.center { text-align: center; margin-top: 48px; }

/* セクション共通 */
.sec { padding: var(--section-space) 0; scroll-margin-top: 0; }
.sec.alt { background: var(--color-bg-alt); }
/* 見出しは「center」の目印がなくても、すべて中央寄せ（v2・2026-10-14） */
.sec-title { font-size: var(--fs-h2); margin-bottom: 36px; text-align: center; margin-left: auto; margin-right: auto; }
.sec-title.center { text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; }
.sub-title { font-size: var(--fs-h3); margin: 0 0 20px; }

/* 面（カード類）の共通 */
.check-list li, .role, .steps li, .card, .box-list li, .qa, .fit-box.no, .flow-item {
  background: var(--color-card);
  border: 1px solid var(--color-line);
}

/* S02 お悩み */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  border-radius: var(--radius);
  padding: 18px 20px 18px 58px;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 20px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-main); color: var(--color-on-main); font-size: 14px; font-weight: 700; line-height: 1;
  margin-top: 3px;
}

/* S03 先に決める4つ */
.four { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.four li {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-main-soft); border: 1px solid rgba(242, 164, 99, .35); border-radius: var(--radius);
  padding: 18px 20px; font-weight: 700; font-size: var(--fs-h3); line-height: 1.5;
}
.four .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-main); color: var(--color-on-main); font-size: 16px;
}

/* S04 進め方 */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.role { border-radius: var(--radius); padding: 28px; }
.role h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.role.you { border-color: rgba(242, 164, 99, .6); box-shadow: inset 0 6px 0 var(--color-main), 0 0 32px rgba(255, 140, 50, .12); }
.role.you h3 { color: var(--color-main); }
.role.cc { box-shadow: inset 0 6px 0 var(--color-line); }
.role ul { margin: 0; padding-left: 1.2em; }

/* S04 確認①〜③の流れ図 */
.flow { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; }
.flow-item {
  border-color: rgba(242, 164, 99, .6); border-radius: var(--radius);
  padding: 20px; text-align: center; font-weight: 700; line-height: 1.6;
  box-shadow: 0 0 28px rgba(255, 140, 50, .12);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.flow-no {
  align-self: center;
  display: inline-block; padding: 2px 14px; border-radius: var(--btn-radius);
  background: var(--color-main); color: var(--color-on-main); font-size: var(--fs-note);
}
.flow-arrow { align-self: center; color: var(--color-main); font-size: 24px; font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-main-soft); color: var(--color-main); font-weight: 700;
  border: 1px solid rgba(242, 164, 99, .35);
}
.steps li.check { border-color: var(--color-main); }
.steps li.check::before { background: var(--color-main); color: var(--color-on-main); }
.steps .tag { display: inline-block; font-size: var(--fs-note); font-weight: 700; color: var(--color-main); margin-left: 6px; }
.steps .note { display: block; font-size: var(--fs-note); color: var(--color-muted); }
.after-note { margin: 24px 0 0; font-size: var(--fs-note); color: var(--color-muted); }

/* カード（S05・S06） */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-no {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-main); color: var(--color-on-main); font-weight: 700; margin: 0 0 14px;
}

/* 「このLPも、LP自動化エージェントで作りました。」（S06・S13） */
.made-with {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; max-width: 100%; margin: -12px auto 36px;
  padding: 10px 22px; border-radius: var(--btn-radius);
  border: 1px solid var(--color-main); background: var(--color-main-soft);
  color: var(--color-text); font-weight: 700; line-height: 1.6; text-align: left;
  box-shadow: 0 0 24px rgba(255, 140, 50, .14);
  word-break: auto-phrase;
}
.made-with-mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-main); color: var(--color-on-main); font-size: 13px; line-height: 1;
}
.sec.final .made-with { margin: 4px auto 28px; }
@media (max-width: 640px) {
  .made-with { margin: -8px auto 28px; padding: 10px 16px; border-radius: var(--radius); }
}

/* S07 比較表（「この商品の場合」を強調） */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--color-bg-alt); font-size: var(--fs-note); color: var(--color-muted); }
.compare tbody th { width: 24%; }
.compare td:not(.ours) { color: var(--color-muted); }
.compare .ours {
  background: rgba(242, 164, 99, .12); font-weight: 700; color: var(--color-text);
  border-left: 2px solid var(--color-main); border-right: 2px solid var(--color-main);
  font-size: calc(var(--fs-body) * 1.03);
}
.compare thead .ours { background: var(--color-main); color: var(--color-on-main); font-size: var(--fs-body); border-top: 2px solid var(--color-main); }
.compare tbody tr:last-child .ours { border-bottom: 2px solid var(--color-main); }
.compare td.ours::before { content: "✓ "; color: var(--color-main); }

/* S08 ルール */
.box-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.box-list li { border-radius: var(--radius); padding: 18px 22px; border-left: 6px solid var(--color-main); }

/* S09 向いている方 */
.fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.fit-box { border-radius: var(--radius); padding: 32px; }
.fit-box.yes { background: var(--color-main-soft); border: 1px solid rgba(242, 164, 99, .5); }
.fit-box ul { margin: 0; padding-left: 1.2em; }
.fit-box li + li { margin-top: 8px; }
.fit-box.yes .fit-title { font-size: var(--fs-h2); margin-bottom: 20px; }
.fit-box.no .fit-title { font-size: var(--fs-h3); margin-bottom: 14px; color: var(--color-muted); }

/* S10 価格（背景に帯） */
#s10-price {
  background:
    linear-gradient(180deg, transparent 0, transparent 34%, rgba(255, 140, 50, .16) 34%, rgba(255, 140, 50, .16) 72%, transparent 72%),
    var(--color-bg-alt);
}
.price-box {
  max-width: 680px; margin: 0 auto;
  background: var(--color-card); border: 2px solid var(--color-main); border-radius: var(--radius);
  padding: clamp(28px, 1rem + 3vw, 48px); text-align: center;
  box-shadow: 0 0 48px rgba(255, 140, 50, .18);
}
.pname { font-weight: 700; font-size: var(--fs-h3); margin-bottom: 8px; color: var(--color-main); }
.price-box .price { margin-bottom: 28px; }
.inc { text-align: left; border-top: 1px solid var(--color-line); padding-top: 24px; margin-bottom: 28px; }
.inc h3 { font-size: var(--fs-body); margin-bottom: 8px; }
.inc ul { margin: 0 0 16px; padding-left: 1.2em; }
.inc dl { margin: 0; }
.inc dt { font-weight: 700; margin-top: 14px; }
.inc dd { margin: 2px 0 0; }

/* S12 FAQ（タップで開閉） */
.faq { display: grid; gap: 12px; }
.qa { border-radius: var(--radius); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; flex: none; color: var(--color-main); font-weight: 700; }
.qa summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--color-line); color: var(--color-main); font-size: 18px; line-height: 1;
}
.qa[open] summary::after { content: "−"; }
.qa summary:focus-visible { outline: 3px solid var(--color-main); outline-offset: -3px; border-radius: var(--radius); }
.qa .ans { display: flex; gap: 12px; padding: 0 24px 22px; }
.qa .ans::before { content: "A"; flex: none; color: var(--color-muted); font-weight: 700; }
.qa .ans p { margin: 0; }

/* S13 最後のご案内 */
.sec.final {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 140, 50, .25), transparent 70%),
    #1f1712;
  border-top: 1px solid rgba(242, 164, 99, .4);
}
.sec.final .sec-title { color: var(--color-text); }

/* 教材ページの画像（S03・S06・S07） */
.doc-img { margin: 0; }
.doc-img img, .card-img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--color-line);
}
.doc-img figcaption { margin-top: 8px; font-size: var(--fs-note); color: var(--color-muted); }
.doc-img.wide { max-width: var(--content-width); margin: 0 auto 36px; text-align: center; }
.card-img { margin: 0 0 18px; }
.doc-split-text { max-width: var(--content-width); margin: 0 auto; }
.doc-split .doc-img { max-width: 560px; margin: 8px auto 0; }
@media (min-width: 961px) {
  .doc-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
  .doc-split-text { margin: 0; }
  .doc-split .doc-img { margin: 0; }
}

/* S03 情報を並べた資料／伝わる順番の対比 */
.roles.vs { margin: 36px 0 0; }
.role.ng h3, .role.ng li { color: var(--color-muted); }
.order { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.order .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-main); color: var(--color-on-main); font-size: 14px;
}
.lead-line {
  margin-top: 36px; padding: 18px 22px;
  border-left: 6px solid var(--color-main); background: var(--color-card);
  border-radius: var(--radius); font-weight: 700;
}
.lead-line strong { color: var(--color-main); }

/* イメージ写真（S02・S05・S10）：横長に切りそろえて、見出しの下に置く */
.sec-photo { margin: 0 0 36px; }
.sec-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--color-line);
}
@media (max-width: 640px) {
  .sec-photo { margin-bottom: 28px; }
  .sec-photo img { aspect-ratio: 16 / 10; }
}

/* S04 補足 */
.role-note { margin: 0; font-weight: 700; text-align: center; }

/* S12 購入後の流れ */
.steps.after { max-width: var(--content-width); margin: 0 auto; }

/* S14 フッター */
.site-foot { background: #0d0b0a; color: var(--color-muted); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: var(--fs-note); border-top: 1px solid var(--color-line); }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--color-main); }
.site-foot .disclaimer { margin-top: 16px; }
.site-foot .copy { margin-top: 16px; opacity: .8; }

/* スマホ用 固定購入ボタン */
.sticky-cta { display: none; }

/* タブレット */
@media (max-width: 960px) {
  .cards.three { grid-template-columns: 1fr; }
  .cards.three.six { grid-template-columns: 1fr 1fr; }
  .fit { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* スマホ */
@media (max-width: 640px) {
  .sec-title { margin-bottom: 28px; }
  .fv { padding-top: 16px; }
  .fv-label { margin-bottom: 40px; padding: 4px 12px; }
  .fv-name { margin-bottom: 8px; }
  .fv-catch { margin-bottom: 12px; }
  .fv-sub { margin-bottom: 18px; font-size: calc(var(--fs-body) * 1.3); line-height: 1.75; word-break: auto-phrase; }
  .fv .price { margin-bottom: 10px; }
  .toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
  .toc a { display: flex; justify-content: center; padding: 8px 10px; }
  .four { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; margin-bottom: 32px; }
  .flow { margin-bottom: 40px; gap: 8px; }
  .cards.two, .cards.three.six { grid-template-columns: 1fr; }
  .card, .role, .fit-box { padding: 24px 20px; }
  .btn { display: flex; width: 100%; padding: 16px 18px; }
  .qa summary { padding: 18px 52px 18px 18px; }
  .qa summary::after { right: 16px; }
  .qa .ans { padding: 0 18px 20px; }

  /* 比較表をカードに切り替え */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .compare thead { display: none; }
  .compare tr { background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
  .compare tbody th { width: 100%; background: var(--color-bg-alt); padding: 14px 18px; }
  .compare td { padding: 14px 18px; }
  .compare .ours, .compare tbody tr:last-child .ours { border: 0; border-left: 4px solid var(--color-main); }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--fs-note); color: var(--color-muted); font-weight: 700; margin-bottom: 2px; }
  .compare td.ours::before { content: "✓ " attr(data-label); color: var(--color-main); }

  .sticky-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 17, 16, .95);
    border-top: 1px solid var(--color-line);
    transform: translateY(110%);
    transition: transform .25s;
  }
  .sticky-cta .btn { min-height: 52px; padding: 12px 16px; font-size: 16px; }
  .sticky-cta.show { transform: translateY(0); }
  body.has-sticky .site-foot { padding-bottom: calc(48px + 76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}

/* ===== Meta広告自動化エージェント 用の追加 ===== */

/* S01 キャッチ：一番長い行（問い合わせや予約に／広告とLPのどこを直すかを、）が左半分に1行で収まる大きさ */
@media (min-width: 961px) {
  .fv-grid .fv-catch { font-size: 38px; }
}

/* S03 3つのポイント */
.four.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
.four.three li { align-items: flex-start; font-size: var(--fs-body); }
.after-point { margin: 0; }
#s03-cause .flow { margin: 8px 0 32px; }

/* S04 ルールのボックス（1つだけ） */
.rule-note {
  margin: 0; border-radius: var(--radius); padding: 18px 22px;
  background: var(--color-card); border: 1px solid var(--color-line); border-left: 6px solid var(--color-main);
}
.lead { margin-bottom: 32px; max-width: var(--content-width); }

/* S05 見出しと写真の2列（横幅800pxに合わせて、写真の列は340px） */
@media (min-width: 961px) {
  .head-split { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* S05・S11 ステップの見出しと本文 */
.steps .st { display: block; font-weight: 700; }
.steps .sd { display: block; margin-top: 4px; }

/* S06 カード：800px幅では3列だと見出しが折り返すため、PCは2列（3枚目は横いっぱい） */
@media (min-width: 961px) {
  #s06-set .cards.three { grid-template-columns: 1fr 1fr; }
  #s06-set .cards.three .card:last-child { grid-column: 1 / -1; }
}
.card-img img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--color-line); background: #fff; }

/* S06 補足のボックス */
.memo-box { margin-top: 20px; background: var(--color-main-soft); border: 1px solid rgba(242, 164, 99, .35); border-radius: var(--radius); padding: 20px 24px; }
.memo-box p { margin: 0; }

/* ヘッダーの商品名：狭い画面では言葉の区切りで折り返す */
.site-head .wrap { word-break: auto-phrase; }

/* フッターのリンク：指で押しやすい高さにする */
.site-foot a { display: inline-block; padding: 10px 0; }

/* S13 価格 */
.sec.final .price { margin-top: 24px; }

@media (max-width: 960px) {
  .four.three { grid-template-columns: 1fr; }
}

/* ボタンの文字：言葉の区切りでだけ折り返す */
.btn-label { text-align: center; }

@media (max-width: 640px) {
  .btn { font-size: 16px; padding: 16px 14px; }
  .price-box { padding: 28px 14px; }
  /* 目次は5つなので、最後の1つは横いっぱい */
  .toc li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .btn::after { display: none; }
}
