/* 専用サイト「紀ノ川DX オンライン予約（子どもの教室・レッスン向け）」（public-lesson/。lib/lesson-site.js が作る。docs/lesson-subsite.md）だけで使う見た目。
   土台と、商品ページの部品（.lp-*）は site.css。ここには、このサイトで足した部品（.ls-*）だけを書く。
   並べ方は、専用サイト「LINE予約ホームページ」（yoyaku.css の .ys-*）と同じ考え方。別のサイトなので、同じ決まりをこのファイルにも書いてある（片方を直しても、もう片方は変わらない）。
   色・影・書体は site.css の変数を使う（ライト／ダークの切りかえもそのまま効く）。動きを減らす設定では動かさない */

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

/* ---------- 最初の画面：商品の名前、スマホの画面 2 枚、丸い印 ---------- */
.ls-product { margin-top: 14px; font-weight: 700; font-size: max(.95rem, 15px); line-height: 1.6; color: var(--link); }
.ls-hero .ls-product + h1 { margin-top: 6px; }
.ls-hero-shot { position: relative; margin: 0; }
.ls-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; }
.ls-phones img { width: 100%; height: auto; }
.ls-phones img:last-child { margin-top: 92px; }
.ls-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); }
.ls-badge span { font-size: max(.8rem, 13px); font-weight: 700; letter-spacing: .02em; }
.ls-badge b { font-size: 1.04rem; font-weight: 700; letter-spacing: 0; }
/* 見出しのすぐ下の 1 行：開発中で、申込みと契約を受け付けていないこと */
.ls-hero-rule { margin-top: 12px; font-weight: 700; font-size: max(1rem, 16px); line-height: 1.7; color: var(--ink); }
.ls-hero-rule span { display: inline-block; } /* 文の途中で折れないように、1 文ずつ */
@media (min-width: 960px) { .ls-hero .lp-hero-sub { margin-top: 0; } .ls-hero .ls-points { margin-top: 12px; gap: 8px; } .ls-hero .ls-points li { padding: 8px 12px; } .ls-hero .lp-hero-grid { row-gap: 14px; } }
.ls-points { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
@media (min-width: 560px) { .ls-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ls-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; }
.ls-points .lp-icon { width: 34px; height: 34px; margin: 0; }
@media (max-width: 359px) { .ls-badge { width: 112px; height: 112px; } .ls-badge b { font-size: .96rem; } .ls-badge span { font-size: 13px; letter-spacing: 0; } }
@media (min-width: 960px) { .ls-phones { max-width: 520px; gap: 8px; } .ls-badge { width: 136px; height: 136px; } .ls-badge b { font-size: 1.16rem; } }

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

/* ---------- 開発中の帯（実際の教室では、まだ使われていないこと） ---------- */
.section.ls-proof { padding-block: 48px; text-align: center; }
.ls-proof-text { margin: 16px auto 0; max-width: 40em; font-size: max(1rem, 16px); line-height: 1.85; color: var(--on-navy-soft); }
.ls-proof-link { margin-top: 14px; }
.ls-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; }
.ls-proof-link a:hover { background: color-mix(in srgb, #fff 12%, transparent); }

/* ---------- 悩み：4 つを短く ---------- */
.section.ls-worries, .section.ls-answer, .section.ls-sample, .section.ls-status { padding-block: 72px; }
@media (min-width: 720px) { .section.ls-worries, .section.ls-answer, .section.ls-sample, .section.ls-status { padding-block: 96px; } }
.ls-worry-list { list-style: none; display: grid; gap: 12px; }
.ls-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; }
.ls-worry-list li::before { content: ""; position: absolute; left: 24px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--link); opacity: .7; }
@media (min-width: 720px) { .ls-worry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- しくみ：保護者 2 手順 → 教室 2 手順 ---------- */
.ls-flow { list-style: none; counter-reset: lsf; display: grid; gap: 30px; }
.ls-flow li { counter-increment: lsf; 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); }
.ls-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); }
.ls-flow li::after { content: counter(lsf, 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; }
.ls-who { justify-self: start; padding: 2px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.ls-who.is-school { background: var(--lp-green-soft); color: var(--ink); }
.ls-flow b { font-size: max(1.1rem, 17px); line-height: 1.5; }
.ls-flow li > span:last-child { font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ls-answer-note { margin-top: 24px; }
@media (min-width: 960px) {
  .ls-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .ls-flow li + li::before { left: -19px; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* ---------- 特長：画面つきの 3 つ（商品ページの .lp-pain の並べ方を使う）＋カード 4 枚 ---------- */
.ls-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; }
.ls-feat .lp-pain-title { margin-top: 8px; }
.ls-feats .lp-pain:first-child { border-top: 0; padding-top: 0; }
.ls-cards { margin-top: 40px; }
/* スマホ：画面の絵を少し小さく（長さをへらす） */
@media (max-width: 719.98px) { .ls-feat .lp-pain-shot img { width: min(100%, 300px); } }
/* パソコンの幅：番号・題・文を、画面の絵の高さのまん中にまとめる（上下の余りは、いちばん上と下の行が受ける） */
@media (min-width: 720px) {
  .ls-feat { grid-template-rows: 1fr auto auto 1fr; row-gap: 14px; }
  .ls-feat .lp-pain-shot { grid-row: 1 / 5; }
  .ls-feat .ls-feat-no { grid-row: 1; align-self: end; }
  .ls-feat .lp-pain-title { grid-row: 2; margin-top: 0; }
  .ls-feat .lp-pain-text { grid-row: 3; align-self: start; margin-top: 0; }
  .ls-feats .lp-pain:nth-child(odd) .ls-feat-no { grid-column: 2; }
}

/* ---------- 合う教室・合わない使い方 ---------- */
#notfit { scroll-margin-top: calc(var(--header-h) + 16px); }
.lp-fit h3 + .list-cards, .lp-fit h3 + .lp-checks { margin-top: 14px; }

/* ---------- できること：保護者・教室の 2 つの枠 ---------- */
.ls-two { display: grid; gap: 16px; }
.ls-box { padding: 22px 20px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ls-box h3 { font-size: max(1.1rem, 17px); line-height: 1.5; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.ls-box ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.ls-box li { position: relative; padding-left: 22px; font-size: max(.98rem, 16px); line-height: 1.75; color: var(--ink); }
.ls-box li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); }
@media (min-width: 860px) { .ls-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .ls-box { padding: 26px 26px 24px; } }

/* ---------- 開発の状況：まだできないことの表 ---------- */
.ls-status-dl { display: grid; gap: 0; max-width: 880px; border-top: 1px solid var(--line); }
.ls-status-dl div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ls-status-dl dt { font-weight: 700; color: var(--ink); font-size: max(1rem, 16px); line-height: 1.6; }
.ls-status-dl dd { margin: 0; color: var(--ink-soft); font-size: max(.98rem, 16px); line-height: 1.75; }
.ls-status-dl dd b { display: block; margin-bottom: 6px; color: var(--ink); line-height: 1.6; }
.ls-measure { max-width: 46em; }
@media (max-width: 719.98px) { .lp-en { display: none; } }
/* 確認用の仮の置き場所（プレビューのビルドの /lesson-preview/）の上の帯 */
.ls-preview-note { margin: 0; padding: 6px 16px; background: var(--navy-deep); color: #fff; font-size: max(.82rem, 13px); font-weight: 700; text-align: center; }
.ls-footer .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; }
/* 最初の画面の絵の上の札・できることの注記・カードの中の注意 */
.ls-shot-label { margin: 0 0 4px; max-width: calc(100% - 150px); text-align: left; font-size: max(.88rem, 14px); font-weight: 700; line-height: 1.5; color: var(--ink-soft); }
.ls-box-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: max(.95rem, 16px); line-height: 1.75; color: var(--ink-soft); }
.ls-card-caution, .lp-card p.ls-card-caution { margin-top: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, #C8510F 45%, var(--line)); border-left: 5px solid #C8510F; border-radius: 0 10px 10px 0; background: color-mix(in srgb, #C8510F 9%, var(--surface)); color: var(--ink); font-size: max(.98rem, 16px); line-height: 1.75; }
.ls-card-caution b { display: block; margin-bottom: 2px; color: color-mix(in srgb, #C8510F 78%, var(--ink)); font-size: max(1rem, 16px); }
/* PC の幅で、よくある質問の答えの 1 行が 60 字を超えないように */
.lp-faq details p { max-width: 46em; }
@media (min-width: 720px) { .ls-status-dl div { grid-template-columns: 15em minmax(0, 1fr); gap: 28px; } }
.ls-status { scroll-margin-top: var(--header-h); }

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

/* ---------- 動く見本（架空の教室）：カード 3 枚 ---------- */
.ls-sample-grid { list-style: none; display: grid; gap: 16px; }
.ls-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); }
/* 画面の上のほうだけを見せる（下は枠で切る）。全体は「動く見本」で見られる */
.ls-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; }
.ls-sample-card img { width: min(100%, 300px); height: auto; }
.ls-sample-card h3 { font-size: max(1.1rem, 17px); line-height: 1.5; }
.ls-sample-card p { font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ls-sample-card .more { min-height: 44px; margin-top: 2px; }
@media (min-width: 720px) { .ls-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .ls-sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ls-sample-card figure { height: 320px; } }

/* 開発中の試作の画面（サーバーで動く本体の写し。上の見本とは別の物なので、見出しと説明を付けて分ける） */
.ls-proto { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.ls-proto h3 { font-size: max(1.16rem, 18px); line-height: 1.5; }
.ls-proto > p { margin-top: 8px; max-width: 46em; font-size: max(.95rem, 16px); line-height: 1.8; color: var(--ink-soft); }
.ls-proto-grid { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.ls-proto-grid figure { margin: 0; display: grid; gap: 8px; }
.ls-proto-grid img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ls-proto-grid figcaption { font-size: max(.95rem, 16px); line-height: 1.5; color: var(--ink); }
.ls-proto-grid figcaption b { display: block; width: fit-content; margin: 0 0 4px; padding: 1px 8px; border-radius: 999px; background: var(--hl-soft); color: var(--link); font-size: max(.8rem, 13px); }
@media (min-width: 860px) { .ls-proto-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .ls-proto-grid figcaption b { display: inline-block; margin: 0 8px 0 0; } }

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

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

/* ---------- フッター ---------- */
.ls-footer .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.ls-footer .brand-name { display: grid; gap: 1px; font-size: 1.02rem; line-height: 1.2; letter-spacing: .03em; }
.ls-footer .brand-name small { font-family: var(--f-body); font-weight: 700; font-size: max(.8rem, 13px); letter-spacing: .04em; opacity: .8; }
@media (max-width: 900px) { .ls-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ls-footer .footer-brand { grid-column: 1 / -1; } }

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