/* AGA（薄毛治療）オンライン診療 LP — メディカルアルファクリニック
   方針：白地・フラット。グラデーション／濃い背景／影は使わない。線と余白と文字の大きさで階層を作る。 */
:root {
  --blue: #036eb7;     /* 公式 基調ブルー */
  --cyan: #4abec4;     /* 公式 シアン */
  --cyan-soft: #e8f6f7;
  --blue-soft: #eef5fb;
  --ink: #1b2836;
  --sub: #5b6b7b;
  --line: #dbe4ec;
  --line-green: #06c755;
  --r: 16px;
  --w: 600px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.75; line-break: strict; overflow-wrap: anywhere;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
main, .hd, .ft { max-width: var(--w); margin: 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
em { font-style: normal; }
/* 文節で折り返したい短い見出し・演出だけ keep-all（<wbr>の位置で折れる） */
.stage, .bridge, .sec__title, .fv__title { word-break: keep-all; }
sup { font-size: .55em; vertical-align: super; line-height: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hd__logo { text-decoration: none; color: var(--blue); }
.hd__logo-text { font-weight: 900; letter-spacing: .08em; font-size: 15px; }
.hd__logo-text i { font-style: normal; color: var(--cyan); }
.hd__tag { font-size: 11px; color: var(--sub); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; }

/* ---------- FV ---------- */
.fv { padding: 12px 16px 20px; }
.fv__title { margin: 0 0 10px; font-size: clamp(21px, 6vw, 30px); font-weight: 900; line-height: 1.3; color: var(--ink); letter-spacing: .01em; }
.fv__title-aga { color: var(--blue); }
.fv__title-sub { color: var(--blue); font-size: .78em; }

/* 演出ステージ（写真＋お悩み） */
.stage { position: relative; aspect-ratio: 750 / 570; border-radius: var(--r); overflow: hidden; background: #dfe9f1; cursor: pointer; }
.stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.stage__q {
  position: absolute; left: 0; top: 14px; margin: 0; padding: 6px 14px 6px 12px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: clamp(14px, 4vw, 18px); border-radius: 0 10px 10px 0;
}
.stage__panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 71%;
  background: #fff; padding: 12px 14px 10px; border-top: 3px solid var(--cyan);
  transition: height .45s cubic-bezier(.2,.8,.2,1);
}
.stage__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.stage__list li { display: flex; gap: 8px; align-items: flex-start; font-size: clamp(13px, 3.6vw, 16px); font-weight: 700; line-height: 1.45; }
.stage__list em { color: var(--blue); }
.ck { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; background: var(--blue); position: relative; }
.ck::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.stage__big { display: none; }
.stage__skip, .stage__replay {
  position: absolute; right: 10px; top: 12px; z-index: 2;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; min-height: 32px; position: absolute;
}
.stage__skip { display: none; }
.stage__replay { display: none; }

/* 再生中 */
.stage.is-play .stage__panel { height: 58%; }
.stage.is-play .stage__list { display: none; }
.stage.is-play .stage__big { display: block; }
.stage.is-play .stage__skip { display: block; }
.stage.is-play .stage__q { animation: in-left .45s cubic-bezier(.2,.8,.2,1) both; }
.stage__num { display: block; font-size: clamp(30px, 9vw, 44px); font-weight: 900; line-height: 1; color: var(--cyan); letter-spacing: -.02em; }
.stage__text { margin: 4px 0 0; font-size: clamp(19px, 5.6vw, 28px); font-weight: 900; line-height: 1.38; text-wrap: balance; }
.stage__text em { color: var(--blue); display: inline-block; }
.stage__big.is-in .stage__num { animation: in-up .35s cubic-bezier(.2,.8,.2,1) both; }
.stage__big.is-in .stage__text { animation: in-right .4s cubic-bezier(.2,.8,.2,1) .05s both; }
.stage__big.is-in .stage__text em { animation: pop .45s cubic-bezier(.3,1.5,.5,1) .2s both; }
.stage__big.is-out { animation: out-left .22s ease-in both; }
/* 出そろった後 */
.stage.is-final .stage__replay { display: block; }
.stage.is-final .stage__list li { animation: in-left .35s cubic-bezier(.2,.8,.2,1) both; }
.stage.is-final .stage__list li:nth-child(2) { animation-delay: .05s; }
.stage.is-final .stage__list li:nth-child(3) { animation-delay: .1s; }
.stage.is-final .stage__list li:nth-child(4) { animation-delay: .15s; }
.stage.is-final .stage__list li:nth-child(5) { animation-delay: .2s; }
.stage.is-static .stage__list li { animation: none; }

@keyframes in-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes in-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes out-left { to { opacity: 0; transform: translateX(-28px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(1.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* 橋渡しコピー */
.bridge {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px;
  margin: 10px 0 0; padding: 8px 12px; text-decoration: none; text-align: center;
  color: var(--ink); font-weight: 700; font-size: clamp(13px, 3.7vw, 16px); line-height: 1.5;
  background: var(--cyan-soft); border-radius: 12px;
}
.bridge strong { color: var(--blue); font-weight: 900; font-size: 1.12em; }
.bridge__go { width: 9px; height: 9px; margin-left: 6px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg) translateY(-2px); }

/* 3つのゼロ */
.zero { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zero li { display: flex; flex-direction: column; align-items: center; padding: 8px 2px 6px; }
.zero li + li { border-left: 1px solid var(--line); }
.zero__k { font-size: 12px; font-weight: 700; color: var(--sub); }
.zero__v { font-size: clamp(34px, 10vw, 46px); font-weight: 900; color: var(--blue); line-height: 1.05; letter-spacing: -.02em; }
.zero__v small { font-size: .38em; font-weight: 700; margin-left: 1px; letter-spacing: 0; }
.zero__v .zero__pre { font-size: .3em; margin: 0 2px 0 0; }
.zero__v sup { font-size: .28em; color: var(--sub); font-weight: 500; }

/* 価格・3ヶ月 */
.fv__offer { margin: 6px 0 0; text-align: center; }
.fv__price { margin: 0; font-weight: 700; font-size: 15px; }
.fv__price b { font-size: clamp(30px, 9vw, 40px); color: var(--blue); font-weight: 900; letter-spacing: -.01em; margin: 0 2px; }
.fv__price small, .fv__reco small { font-size: 11px; color: var(--sub); font-weight: 500; }
.fv__reco { display: flex; flex-direction: column; align-items: center; padding: 8px 10px; border: 2px solid var(--cyan); border-radius: 12px; }
.fv__reco[hidden] { display: none; }
.fv__reco-label { font-size: 11px; font-weight: 700; color: #fff; background: var(--cyan); border-radius: 99px; padding: 0 10px; }
.fv__reco-name { font-weight: 900; font-size: 15px; margin-top: 2px; }
.fv__reco-price { font-weight: 700; }
.fv__reco-price b { font-size: 28px; color: var(--blue); font-weight: 900; }
.fv__key { margin: 6px 0 0; font-weight: 900; font-size: clamp(16px, 4.6vw, 20px); }
.fv__key b { color: var(--blue); font-size: 1.2em; }
.fv__key-note { margin: 0; font-size: 11px; color: var(--sub); }

/* LINEボタン */
.btn-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 12px 0 0; min-height: 56px; padding: 10px 16px;
  background: var(--line-green); color: #fff; text-decoration: none; font-weight: 900; font-size: 17px;
  border-radius: var(--r);
}
.btn-line:active { transform: translateY(1px); }
.btn-line__icon { font-size: 11px; font-weight: 900; letter-spacing: .02em; color: var(--line-green); background: #fff; border-radius: 6px; padding: 1px 5px; }
.notes { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--sub); }

/* ---------- 共通セクション ---------- */
.sec { padding: 36px 16px; border-top: 1px solid var(--line); }
.sec__title { margin: 0 0 6px; font-size: clamp(20px, 5.6vw, 26px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.sec__title::before { content: ""; display: block; width: 28px; height: 4px; background: var(--cyan); border-radius: 2px; margin-bottom: 10px; }
.sec__title small { font-size: .6em; font-weight: 700; color: var(--sub); margin-left: 4px; }
.sec__lead { margin: 0 0 16px; color: var(--sub); font-size: 14px; }

/* ---------- セルフチェック ---------- */
.check { background: var(--blue-soft); border-top: 0; }
.check__form { display: grid; gap: 14px; }
.q { margin: 0; padding: 0; border: 0; }
.q legend { font-weight: 900; font-size: 16px; margin-bottom: 8px; padding: 0; }
.q__n { display: inline-block; color: #fff; background: var(--blue); border-radius: 6px; padding: 0 7px; margin-right: 8px; font-size: 13px; }
.q label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; margin-top: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; }
.q input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.q input:checked { border-color: var(--blue); }
.q input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.q label:has(input:checked) { border-color: var(--blue); color: var(--blue); }
.result { margin-top: 18px; padding: 18px 16px; background: #fff; border: 2px solid var(--blue); border-radius: var(--r); outline: none; }
.result[hidden] { display: none; }
.result__label { margin: 0; font-size: 12px; font-weight: 700; color: var(--blue); }
.result__name { margin: 2px 0 0; font-size: 20px; font-weight: 900; line-height: 1.4; }
.result__price { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.result__price b { font-size: 26px; color: var(--blue); font-weight: 900; }
.result__why { margin: 8px 0 0; font-size: 14px; }
.result__note { margin: 8px 0 0; font-size: 12px; color: var(--sub); }
.result__redo { margin-top: 10px; font: inherit; font-size: 13px; color: var(--sub); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* ---------- 料金 ---------- */
.plan__item { padding: 16px 0; border-top: 1px solid var(--line); }
.plan__item--main { border: 2px solid var(--blue); border-radius: var(--r); padding: 16px; margin-bottom: 8px; }
.plan__tag { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--cyan); }
.plan__name { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.45; }
.plan__what { margin: 2px 0 10px; font-size: 13px; color: var(--sub); }
.plan__price { margin: 0; display: grid; gap: 0; }
.plan__price div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.plan__price dt { font-size: 13px; color: var(--sub); white-space: nowrap; }
.plan__price dd { margin: 0; text-align: right; font-weight: 700; }
.plan__price dd b { font-size: 28px; color: var(--blue); font-weight: 900; }
.plan__price small { display: block; font-size: 11px; color: var(--sub); font-weight: 500; }
.plan__notes { margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--sub); }
.plan__notes li { margin-top: 3px; }

/* 写真の差し替え枠 */
.ph { margin: 16px 0 0; aspect-ratio: 16 / 10; display: grid; place-items: center; background: #f4f7fa; border: 1.5px dashed #b9c7d4; border-radius: var(--r); color: var(--sub); font-size: 12px; font-weight: 700; }
.ph--qr { width: 120px; aspect-ratio: 1; margin: 0; }

/* ---------- 流れ ---------- */
.flow__list { list-style: none; margin: 0; padding: 0; }
.flow__list li { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.flow__list li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 48px; bottom: -6px; width: 2px; background: var(--line); }
.flow__n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; display: grid; place-items: center; }
.flow__list h3 { margin: 4px 0 2px; font-size: 16px; }
.flow__list p { margin: 0; font-size: 14px; color: var(--sub); }

/* ---------- 始められない理由・FAQ・詳しく ---------- */
.why__list { margin: 0; }
.why__list div { padding: 12px 0; border-top: 1px solid var(--line); }
.why__list dt { font-weight: 900; font-size: 16px; color: var(--blue); }
.why__list dt::before { content: "Q. "; color: var(--cyan); }
.why__list dd { margin: 4px 0 0; font-size: 14px; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > p, details > ul, details > dl, details > div { margin: 0 0 14px; font-size: 14px; }
.faq summary::before { content: "Q. "; color: var(--cyan); font-weight: 900; }

.drug div, .unapp div, .clinic div { padding: 8px 0; border-top: 1px dashed var(--line); }
.drug dt, .unapp dt, .clinic dt { font-weight: 700; }
.drug dd, .unapp dd, .clinic dd { margin: 2px 0 0; color: var(--ink); }
.unapp { border: 1.5px solid var(--blue); border-radius: 12px; padding: 4px 12px; }
.more__list { padding-left: 1.2em; }
.side { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; }
.side th, .side td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.side th { background: var(--blue-soft); font-weight: 700; }
.side caption { text-align: left; font-weight: 900; padding: 4px 0; }
.src { font-size: 11px; color: var(--sub); }

/* ---------- LINE案内・CTA ---------- */
.line__steps { margin: 0 0 16px; padding-left: 1.4em; }
.line__steps li { margin: 4px 0; }
.line__steps b { color: var(--blue); }
.line__qr { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--sub); }
.cta { text-align: center; background: var(--cyan-soft); border-top: 0; }
.cta .sec__title::before { margin-left: auto; margin-right: auto; }

/* ---------- フッター ---------- */
.ft { padding: 24px 16px 32px; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); }
.ft p { margin: 4px 0; }
.ft__name { font-weight: 900; color: var(--blue); letter-spacing: .08em; }

/* ---------- 下部固定バー ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  max-width: var(--w); margin: 0 auto; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.bar__info { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.4; }
.bar__check { display: block; font-weight: 700; color: var(--blue); }
.bar__check[hidden] { display: none; }
.bar__reco { font-weight: 700; }
.bar__reco[hidden] { display: none; }
.bar__reco b { color: var(--blue); font-size: 17px; }
.bar__reco-l { display: inline-block; font-size: 10px; color: #fff; background: var(--cyan); border-radius: 99px; padding: 0 7px; margin-right: 4px; }
.bar__line { flex: 0 0 auto; display: grid; place-items: center; min-height: 48px; padding: 0 18px; background: var(--line-green); color: #fff; font-weight: 900; text-decoration: none; border-radius: 12px; font-size: 15px; }

/* 動きを減らす設定：静止表示 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.fv__price-note { display: block; font-size: 11px; color: var(--sub); font-weight: 500; }
.bar__side { font-size: 11px; font-weight: 500; color: var(--sub); }
.result__price[hidden], .fv__reco-price[hidden], [data-reco-pricewrap][hidden] { display: none; }
/* タップ範囲を44px相当に広げる（見た目はそのまま） */
.stage__skip::after, .stage__replay::after { content: ""; position: absolute; inset: -8px -6px; }
/* 幅の狭い端末では演出枠を少し縦長に */
@media (max-width: 359px) { .stage { aspect-ratio: 750 / 640; } }
/* aspect-ratio 非対応（iOS 14以前）向け */
@supports not (aspect-ratio: 1) { .stage { height: 0; padding-top: 76%; } .ph { height: 200px; } }/* FV：行動を1行で */
.fv__how { margin: -4px 0 10px; font-size: 13px; font-weight: 700; color: var(--sub); }
.fv__how span { color: var(--cyan); margin: 0 2px; }
/* 始めるハードルを下げる */
.ease { margin-top: 24px; padding: 18px 16px; border: 2px solid var(--cyan); border-radius: var(--r); }
.ease__title { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.ease__list { list-style: none; margin: 0; padding: 0; }
.ease__list li { padding: 10px 0 10px 30px; border-top: 1px dashed var(--line); position: relative; }
.ease__list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); }
.ease__list li::after { content: ""; position: absolute; left: 8px; top: 16px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ease__list b { display: block; font-size: 16px; color: var(--blue); }
.ease__list span { display: block; font-size: 13px; color: var(--ink); margin-top: 2px; }
.tbd { font-style: normal; font-size: 11px; color: #c25a00; font-weight: 700; margin-left: 4px; }
.btn-note { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--sub); }
/* セルフチェック：1問ずつ（JS有効時） */
.check__progress { display: none; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--sub); }
.check__bar { flex: 1; height: 6px; background: #fff; border-radius: 3px; overflow: hidden; }
.check__bar i { display: block; height: 100%; width: 33.3%; background: var(--blue); transition: width .3s; }
.check__back { font: inherit; font-size: 12px; color: var(--sub); background: none; border: 0; text-decoration: underline; padding: 6px 0; cursor: pointer; }
.js-step .check__progress { display: flex; }
.js-step .q { display: none; }
.js-step .q.is-current { display: block; animation: in-right .3s cubic-bezier(.2,.8,.2,1) both; }
.js-step.is-done .q, .js-step.is-done .check__progress { display: none; }/* 出そろった後は、白い下地を一覧の高さだけにする（幅が広い画面で余白が出ないように） */
.stage.is-final .stage__panel, .stage:not(.is-play) .stage__panel { height: auto; transition: none; }
/* 薬のかんたん説明 */
.plan__drugs { list-style: none; margin: 4px 0 12px; padding: 0; }
.plan__drugs li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 1.55; }
.plan__drugs .how { flex: 0 0 auto; font-size: 12px; font-weight: 900; color: #fff; background: var(--blue); border-radius: 6px; padding: 1px 8px; margin-top: 1px; }
.plan__drugs .how--apply { background: var(--cyan); }
.plan__drugs b { display: block; font-size: 14px; }.hd__logo-img { width: 170px; height: auto; display: block; }
.ft__logo { width: 150px; height: auto; }
/* 下部固定バー：本文との境目が分かるよう淡い青の下地＋上線 */
.bar { background: var(--blue-soft); border-top: 2px solid var(--blue); }/* 運営クリニック */
.clinic-box { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.clinic-box__photo { margin: 0; aspect-ratio: 16 / 9; }
.clinic-box__photo img { width: 100%; height: 100%; object-fit: cover; }
.clinic-box__body { padding: 14px 16px; font-size: 13px; }
.clinic-box__body p { margin: 0; }
.clinic-box__label { font-size: 11px; font-weight: 700; color: var(--cyan); }
.clinic-box__name { font-size: 17px; font-weight: 900; margin: 2px 0 6px !important; }
/* 各セクションの画像 */
.sec-img { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.sec-img img { width: 100%; height: 100%; object-fit: cover; }
.sec-img figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(27,40,54,.55); padding: 0 6px; border-radius: 4px; }