/* 専用サイト「LINE予約ホームページ」（public-yoyaku/。lib/yoyaku-site.js が作る。docs/yoyaku-subsite.md）だけで使う見た目。
   土台と、商品ページの部品（.lp-*）は site.css。ここには、このサイトで足した部品（.ys-*）だけを書く。
   色・影・書体は site.css の変数を使う（ライト／ダークの切りかえもそのまま効く）。動きを減らす設定では動かさない */

/* 確認用の仮の置き場所（プレビューのビルドだけ。lib/yoyaku-site.js の toPreviewHtml）に出す帯 */
.ys-preview-note { margin: 0; padding: 6px 16px; background: var(--navy-deep); color: #fff; font-size: .8rem; font-weight: 700; text-align: center; }

/* ---------- ヘッダー：商品名と、運営の名前 ---------- */
.ys-header .brand-name { display: grid; gap: 1px; font-size: 1.06rem; line-height: 1.2; letter-spacing: .03em; }
.ys-header .brand-name small { font-family: var(--f-body); font-weight: 700; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.ys-header .ys-nav-sample { border: 1px solid var(--line); }
@media (max-width: 1023.98px) { .ys-header .brand-name { font-size: .98rem; } }
/* スマホでは、上の「相談する」を出さない（商品名が切れるため。相談のボタンは、画面の下の帯とメニューの中にある） */
@media (max-width: 559.98px) { .ys-header .header-cta { display: none; } }
@media (max-width: 374px) { .ys-header .brand-name { font-size: .9rem; } .ys-header .brand-mark { width: 30px; height: 30px; } }

/* ---------- 最初の画面：スマホの画面 2 枚と、料金の丸い印 ---------- */
.ys-hero-shot { position: relative; margin: 0; }
.ys-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-items: start; max-width: 480px; margin-inline: auto; padding-top: 12px; }
.ys-phones img { width: 100%; height: auto; }
.ys-phones img:last-child { margin-top: 92px; }
.ys-badge { position: absolute; top: 0; right: max(4px, calc(25% - 62px)); width: 124px; height: 124px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 1px; background: var(--navy); color: #fff; text-align: center; line-height: 1.3; box-shadow: var(--shadow-lift); }
.ys-badge span { font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.ys-badge b { font-size: 1.04rem; font-weight: 700; letter-spacing: 0; }
/* 見出しのすぐ下の 1 行：自動で確定しないこと（2026-11-10 の監査） */
.ys-hero-rule { margin-top: 12px; font-weight: 700; font-size: max(1rem, 16px); line-height: 1.7; color: var(--ink); }
.ys-hero-rule span { display: inline-block; } /* 文の途中で折れないように、1 文ずつ */
/* パソコンの幅：最初の画面にボタンまで入るよう、間を少しつめる */
@media (min-width: 960px) { .ys-hero .lp-hero-sub { margin-top: 0; } .ys-hero .ys-points { margin-top: 12px; gap: 8px; } .ys-hero .ys-points li { padding: 8px 12px; } .ys-hero .lp-hero-price { margin-top: 12px; } .ys-hero .lp-hero-grid { row-gap: 14px; } }
.ys-points { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
@media (min-width: 560px) { .ys-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ys-points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: max(.9rem, 15px); line-height: 1.5; }
.ys-points .lp-icon { width: 34px; height: 34px; margin: 0; }
.ys-hero .lp-hero-price { margin-top: 18px; }
@media (max-width: 359px) { .ys-badge { width: 112px; height: 112px; } .ys-badge b { font-size: .96rem; } .ys-badge span { font-size: .75rem; letter-spacing: 0; } }
@media (min-width: 960px) { .ys-phones { max-width: 520px; gap: 8px; } .ys-badge { width: 136px; height: 136px; } .ys-badge b { font-size: 1.16rem; } }

/* パソコンの幅の、右下の小さな帯（相談する・動く見本）：開いてすぐは出さない（最初の画面に同じボタンがあり、見本の説明に重なるため）。少し動かすと出る */
@media (min-width: 721px) { body:has(.ys-header:not(.is-scrolled)) .mobile-cta.is-shown { transform: translateY(140%); } }

/* ---------- 実績の帯（短い版。くわしい条件は料金の区画） ---------- */
.section.ys-proof { padding-block: 48px; text-align: center; }
.ys-proof-text { margin: 16px auto 0; max-width: 40em; font-size: max(1rem, 16px); line-height: 1.85; color: var(--on-navy-soft); }
.ys-proof-link { margin-top: 14px; }
.ys-proof-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, #fff 55%, transparent); color: #fff; font-weight: 700; text-decoration: none; }
.ys-proof-link a:hover { background: color-mix(in srgb, #fff 12%, transparent); }

/* ---------- 悩み：4 つを短く ---------- */
.section.ys-worries, .section.ys-answer, .section.ys-sample { padding-block: 72px; }
@media (min-width: 720px) { .section.ys-worries, .section.ys-answer, .section.ys-sample { padding-block: 96px; } }
.ys-worry-list { list-style: none; display: grid; gap: 12px; }
.ys-worry-list li { position: relative; padding: 18px 18px 18px 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: max(1.02rem, 16px); line-height: 1.7; }
.ys-worry-list li::before { content: "?"; position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--hl-soft); color: var(--link); font-weight: 700; line-height: 1; }
@media (min-width: 720px) { .ys-worry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- 解決（しくみ）：お客様 2 手順 → 院の方 2 手順 ---------- */
.ys-flow { list-style: none; counter-reset: ysf; display: grid; gap: 30px; }
.ys-flow li { counter-increment: ysf; position: relative; display: grid; align-content: start; gap: 6px; padding: 22px 20px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ys-flow li + li::before { content: ""; position: absolute; left: 50%; top: -22px; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.ys-flow li::after { content: counter(ysf, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--lp-green); opacity: .45; }
.ys-who { justify-self: start; padding: 2px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.ys-who.is-clinic { background: var(--lp-green-soft); color: var(--ink); }
.ys-flow b { font-size: max(1.1rem, 17px); line-height: 1.5; }
.ys-flow li > span:last-child { font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ys-answer-note { margin-top: 24px; }
@media (min-width: 960px) {
  .ys-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .ys-flow li + li::before { left: -19px; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* ---------- 特長：画面つきの 4 つ（商品ページの .lp-pain の並べ方を使う）＋カード 4 枚 ---------- */
.ys-feat-no { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1; letter-spacing: .04em; color: var(--lp-green); opacity: .55; }
.ys-feat .lp-pain-title { margin-top: 8px; }
.ys-feats .lp-pain:first-child { border-top: 0; padding-top: 0; }
.ys-cards { margin-top: 40px; }
/* スマホ：画面の絵を少し小さく（長さをへらす。2026-11-10） */
@media (max-width: 719.98px) { .ys-feat .lp-pain-shot img { width: min(100%, 220px); } }
@media (min-width: 720px) {
  .ys-feat .ys-feat-no { align-self: end; }
  .ys-feats .lp-pain:nth-child(odd) .ys-feat-no { grid-column: 2; }
}

/* ---------- 導入の流れの下の相談ボタン ---------- */
.ys-flow-cta { margin-top: 36px; justify-content: center; gap: 12px; }
.ys-flow-cta .btn { flex: 1 1 220px; max-width: 360px; }
.ys-flow-note { margin: 12px auto 0; max-width: 44em; text-align: center; }

/* ---------- 料金の区画に置く「第1号の院の条件」（商品ページでは h2。ここでは料金の中なので h3） ---------- */
.lp-price .lp-proof-card { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.lp-proof-card h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); text-align: center; color: var(--link); }
#notincluded { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- ほかの相談（短い帯） ---------- */
.section.ys-more { padding-block: 48px; }
.ys-more-card { display: grid; gap: 18px; align-items: center; padding: 26px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ys-more-card h2 { font-size: clamp(1.15rem, 4.4vw, 1.4rem); line-height: 1.5; }
.ys-more-card p { margin-top: 8px; font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ys-more-card .btn { justify-self: start; }
@media (min-width: 860px) { .ys-more-card { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding: 30px 32px; } }
@media (max-width: 720px) { .ys-more-card .btn { width: 100%; justify-content: center; text-align: center; } }

/* ---------- 制作見本（架空の院）：カード 3 枚 ---------- */
.ys-sample-grid { list-style: none; display: grid; gap: 16px; }
.ys-sample-card { display: grid; gap: 8px; align-content: start; padding: 20px 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* 画面の上のほうだけを見せる（下は枠で切る）。全体は「動く見本」で見られる */
.ys-sample-card figure { margin: 0 0 6px; display: grid; justify-items: center; align-items: start; height: 240px; padding-top: 14px; border-radius: 12px; background: var(--tint); overflow: hidden; }
.ys-sample-card img { width: min(100%, 300px); height: auto; }
.ys-sample-card h3 { font-size: max(1.1rem, 17px); line-height: 1.5; }
.ys-sample-card p { font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ys-sample-card .more { min-height: 44px; margin-top: 2px; }
@media (min-width: 860px) { .ys-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; } .ys-sample-card figure { height: 340px; } }

/* ---------- 押すと開く形（料金の「そのほかの条件」と「そのほかの含まないもの」。基本の条件は閉じずに見せる） ---------- */
.ys-fold { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ys-fold > summary { list-style: none; cursor: pointer; position: relative; display: grid; gap: 4px; min-height: 48px; padding: 14px 48px 14px 18px; font-weight: 700; font-size: max(1rem, 16px); line-height: 1.6; }
.ys-fold > summary::-webkit-details-marker { display: none; }
.ys-fold > summary span { font-weight: 400; font-size: max(.9rem, 15px); color: var(--ink-soft); line-height: 1.7; }
.ys-fold > summary::after { content: ""; position: absolute; right: 20px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.ys-fold[open] > summary::after { transform: translateY(4px) rotate(-135deg); }
.ys-fold > :not(summary) { margin: 0 14px 14px; }
.ys-fold > .list-cards { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .ys-fold > summary::after { transition: none; } }

/* ---------- 止まったときの対応（区切り 9。1 枚のカード。商品ページの .lp-future-card の見た目を使い、番号の分の上の余白はつめる） ---------- */
.ys-support-card { max-width: 760px; padding-top: 24px; }
@media (min-width: 720px) { .ys-support-card { padding-top: 30px; } }

/* ---------- 相談の帯：ボタン 3 つと、行き先の説明 ---------- */
.ys-contact { scroll-margin-top: var(--header-h); }
.ys-contact .btn-outline { background: transparent; color: #fff; border-color: color-mix(in srgb, #fff 60%, transparent); }
.ys-contact .btn-outline:hover { background: color-mix(in srgb, #fff 12%, transparent); color: #fff; border-color: #fff; }
.ys-contact-notes { list-style: none; display: grid; gap: 8px; max-width: 46em; margin: 26px auto 0; text-align: left; }
.ys-contact-notes li { position: relative; padding-left: 18px; font-size: max(.92rem, 15px); line-height: 1.8; color: var(--on-navy-soft); }
.ys-contact-notes li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--on-navy-soft); }

/* ---------- 運営 ---------- */
.ys-company-note { margin-top: 12px; }
.ys-company-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ys-company-links .more { min-height: 44px; }

/* ---------- フッター ---------- */
.ys-footer .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.ys-footer .brand-name { font-size: 1.05rem; letter-spacing: .03em; }
@media (max-width: 900px) { .ys-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ys-footer .footer-brand { grid-column: 1 / -1; } }

/* ---------- 販売事業者の表示・プライバシー（文書のページ） ---------- */
.ys-doc-dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ys-doc-dl div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ys-doc-dl dt { font-weight: 700; color: var(--ink); }
.ys-doc-dl dd { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.9; }
@media (min-width: 720px) { .ys-doc-dl div { grid-template-columns: 9em minmax(0, 1fr); gap: 24px; } }

@media (prefers-reduced-motion: reduce) { .ys-proof-link a, .ys-contact .btn-outline { transition: none; } }
