/* 共通ベース。各LPは :root の変数を上書きしてテーマを変える */
:root {
  --bg: #fff;
  --bg-alt: #f6f7f9;
  --text: #222;
  --muted: #666;
  --primary: #1a73e8;
  --primary-dark: #1257b3;
  --accent: #ff6b35;
  --accent-dark: #e0561f;
  --line: #e3e6ea;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.8; font-size: 16px; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
.wrap { width: min(100% - 32px, 720px); margin-inline: auto; }
.wide { width: min(100% - 32px, 960px); margin-inline: auto; }
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
h1 { font-size: clamp(26px, 6vw, 40px); }
h2 { font-size: clamp(22px, 4.8vw, 30px); text-align: center; margin-bottom: 1.2em; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

.pr-bar { background: #333; color: #fff; font-size: 12px; text-align: center; padding: 6px 12px; }
.pr-bar a { color: #fff; }

/* CTA */
.btn {
  display: block; width: 100%; max-width: 440px; margin: 20px auto 0; padding: 18px 20px;
  background: var(--accent); color: #fff; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 18px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--accent-dark), 0 10px 20px rgba(0,0,0,.15);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--accent-dark), 0 8px 16px rgba(0,0,0,.15); }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .92; }
.cta-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { margin: 0 auto; padding: 14px; font-size: 16px; box-shadow: 0 3px 0 var(--accent-dark); }
@media (min-width: 800px) { .sticky-cta { display: none; } }

/* カード・表 */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); white-space: nowrap; }
.hl { background: #fff8e1; font-weight: 700; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 18px 16px; color: #444; }

/* 手順 */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps li strong { display: block; }

.notice { background: #fff8f0; border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 6px; font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: "✔"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }

footer { background: #222; color: #bbb; padding: 36px 0 90px; font-size: 13px; }
footer a { color: #ddd; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }

/* 画像 */
.hero-img { display: block; width: min(100%, 360px); height: auto; margin: 24px auto 0; border-radius: 16px; }
.ic { display: block; width: 56px; height: 56px; margin-bottom: 10px; }

/* 長文コンテンツ用 */
.scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.scene h3 { color: var(--primary); font-size: 17px; margin-bottom: .4em; }
.scene p { margin: 0; color: #444; }
.cols { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols .card h3 { font-size: 16px; }
.cols ul { margin: 0; padding-left: 1.2em; }
.cols li { margin-bottom: .4em; }
.lead-in { font-size: 17px; }

/* 写真 */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 24px; padding: 0; }
.photo-strip figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.photo-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; color: #fff; font-size: 13px; font-weight: 700; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-banner { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 520; object-fit: cover; border-radius: var(--radius); margin: 0 0 24px; }

/* ファーストビューの料金表示 */
.price-hero { margin: 22px 0 0; font-weight: 800; line-height: 1.05; color: var(--primary); }
.price-hero .num { font-size: clamp(56px, 17vw, 80px); letter-spacing: -.02em; }
.price-hero .yen { font-size: 30px; margin-left: 2px; }
.price-hero small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: inherit; opacity: .9; }

/* 費用と支払い */
.pay-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-grid .card { text-align: center; }
.pay-grid .card .k { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pay-grid .card .v { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.3; }
.pay-grid .card p { margin: 8px 0 0; font-size: 13px; color: #555; }

/* 追従CTA: 最初から表示 */
.sticky-cta { transform: none; }

/* 追従CTA:本文中のCTAが見えている間は隠す(config.jsで制御) */
.sticky-cta { transition: transform .25s; }
.sticky-cta.is-hidden { transform: translateY(110%); }
