/* 専用サイト「紀ノ川DX オンライン予約（子どもの教室・レッスン向け）」の動く見本（public-lesson/demo/。画面は lesson-demo.js が描く）だけで使う見た目。
   スマホの画面の見本なので、パソコンでも幅 480px の列で見せる。色・書体は site.css の変数を使う（ライト／ダークの切りかえもそのまま効く）。
   押す所は高さ 44px 以上、本文は 16px 以上。動きは付けない */
.ld-body { background: var(--paper); color: var(--ink); }
.ld-wrap { width: min(100% - 32px, 480px); margin-inline: auto; }
.ld-banner { margin: 0; padding: 8px 16px; background: var(--navy-deep); color: #fff; font-size: max(.85rem, 14px); font-weight: 700; line-height: 1.6; text-align: center; }

/* ---------- 上の枠：戻る・題・場面の切りかえ・見本の中の今日 ---------- */
.ld-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 12px 0; }
.ld-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: max(.9rem, 15px); font-weight: 700; color: var(--link); }
.ld-title { margin-top: 2px; font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; line-height: 1.4; letter-spacing: .03em; }
.ld-title small { display: block; font-family: var(--f-body); font-weight: 700; font-size: max(.85rem, 14px); letter-spacing: .02em; color: var(--muted); }
.ld-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ld-tabs a { display: grid; place-items: center; min-height: 48px; padding: 6px 4px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--tint); color: var(--ink-soft); font-weight: 700; font-size: max(.86rem, 14px); line-height: 1.35; text-align: center; text-decoration: none; }
.ld-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ld-clock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0; padding-block: 8px; font-size: max(.85rem, 14px); line-height: 1.6; color: var(--ink-soft); }
.ld-reset { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--link); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- 画面の中身 ---------- */
.ld-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
.ld-logo small { margin-left: auto; font-size: max(.85rem, 14px); font-weight: 700; color: var(--muted); }
.ld-crest { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 7px #fff; }
.ld-app { padding-block: 20px 40px; outline: none; }
.ld-screen > * + * { margin-top: 12px; }
/* 見本の中の見出しは、本文の書体の太字にする（JS が描く文字は、見出しの書体の文字の集計に入らないため。docs/fonts.md） */
.ld-h { font-weight: 700; font-size: 1.45rem; line-height: 1.4; letter-spacing: .02em; }
.ld-h3 { margin-top: 24px; font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
.ld-h3 small, .ld-kid h3 small { margin-left: 8px; font-size: max(.85rem, 14px); font-weight: 700; color: var(--muted); }
.ld-h3.is-alert { color: var(--orange-ink); }
.ld-small { font-size: max(.9rem, 15px); line-height: 1.75; color: var(--ink-soft); }
.ld-center { text-align: center; }
.ld-gap { margin-top: 20px; }
.ld-screen p { line-height: 1.85; }
.ld-screen a { color: var(--link); }
.ld-loading { color: var(--muted); }
.ld-backlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.ld-flash { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--lp-green, #1F7A4D); background: var(--surface); font-weight: 700; line-height: 1.7; }
.ld-flash span { display: block; font-weight: 400; font-size: max(.9rem, 15px); color: var(--ink-soft); }
.ld-flash.is-bad { border-left-color: var(--orange); }
.ld-guide { padding: 12px 14px; border-radius: 12px; background: var(--hl-soft); font-size: max(.9rem, 15px); line-height: 1.75; color: var(--ink); }
.ld-guide b { display: block; font-size: max(.8rem, 13px); letter-spacing: .08em; color: var(--link); }
.ld-next { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: max(.9rem, 15px); color: var(--ink-soft); }

.ld-pill { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); font-size: max(.8rem, 13px); font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.ld-pill.is-mk, .ld-pill.is-ok { background: var(--hl-soft); border-color: transparent; color: var(--link); }
.ld-pill.is-no, .ld-pill.is-late, .ld-pill.is-soon { background: var(--orange-soft); border-color: transparent; color: var(--orange-ink); }
.ld-pill.is-wait { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 保護者のページ：お子さまごとの枠、振替の案内、レッスンの行 */
.ld-kid { margin-top: 22px; }
.ld-kid h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.ld-kid h4 { margin-top: 14px; font-size: max(.9rem, 15px); font-weight: 700; color: var(--muted); }
.ld-tk { display: grid; gap: 2px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--link); background: var(--surface); color: var(--ink); text-decoration: none; }
.ld-screen a.ld-tk { color: var(--ink); }
.ld-tk b { font-size: 1.05rem; }
.ld-tk span { font-size: max(.9rem, 15px); line-height: 1.6; color: var(--ink-soft); }
.ld-tk i { justify-self: start; margin-top: 8px; padding: 8px 18px; border-radius: 10px; background: var(--navy); color: #fff; font-style: normal; font-weight: 700; }
.ld-tk.is-soon { border-color: var(--orange); }
.ld-lesson, .ld-st { display: grid; gap: 6px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ld-lesson.is-off { background: var(--tint); }
.ld-d, .ld-nm { font-weight: 700; font-size: 1.05rem; line-height: 1.5; }
.ld-t { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.ld-note { font-size: max(.9rem, 15px); line-height: 1.7; color: var(--ink-soft); }
.ld-note.is-warn { color: var(--orange-ink); font-weight: 700; }
.ld-note.is-large { font-size: 1rem; }
.ld-act, .ld-btn, .ld-btn2, .ld-btn3, .ld-link, .ld-choice { font: inherit; cursor: pointer; }
.ld-act, .ld-btn, .ld-btn2, .ld-btn3 { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 12px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.ld-act { margin-top: 4px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); }
.ld-screen a.ld-act { color: var(--ink); }
.ld-btns { display: grid; gap: 10px; margin-top: 18px; }
.ld-btn { border: 0; background: var(--navy); color: #fff; min-height: 54px; }
.ld-screen a.ld-btn { color: #fff; }
.ld-btn.is-stop { background: var(--orange-ink); }
.ld-btn2 { border: 1px solid var(--navy); background: var(--surface); color: var(--ink); }
.ld-screen a.ld-btn2 { color: var(--ink); }
.ld-btn3 { border: 2px solid var(--orange-ink); background: var(--surface); color: var(--orange-ink); }
.ld-screen a.ld-btn3 { color: var(--orange-ink); }
.ld-btn3.is-fill { background: var(--orange-ink); color: #fff; }
.ld-link { justify-self: start; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--link); font-weight: 700; text-align: left; text-decoration: underline; }
.ld-big { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--tint); font-size: 1.1rem; font-weight: 700; line-height: 1.6; }
.ld-big .ld-small { font-weight: 400; }
.ld-rules { margin-top: 28px; padding: 16px; border-radius: 14px; background: var(--tint); }
.ld-rules h3 { font-size: 1rem; font-weight: 700; }
.ld-rules ul { margin: 8px 0 0; padding-left: 1.2em; font-size: max(.9rem, 15px); line-height: 1.8; color: var(--ink-soft); }

/* 教室の画面：メニュー、日付、クラスのカード、名簿 */
.ld-sub { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.ld-sub a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.ld-screen .ld-sub a { color: var(--ink-soft); }
.ld-screen .ld-sub a[aria-current="page"] { border-bottom-color: var(--link); color: var(--link); }
.ld-sub b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .85rem; }
.ld-days { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ld-days .ld-h { font-size: 1.25rem; text-align: center; }
.ld-days a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-weight: 700; }
.ld-plain { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ld-plain summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; }
.ld-plain .ld-btn2 { width: 100%; margin-top: 8px; }
.ld-card { display: block; margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.ld-screen a.ld-card { color: var(--ink); }
.ld-lrow { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; align-items: start; }
.ld-time { font-weight: 700; font-size: 1.15rem; line-height: 1.4; }
.ld-who { font-size: 1.05rem; line-height: 1.5; }
.ld-nums { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: max(.9rem, 15px); color: var(--ink-soft); }
.ld-limit { margin-top: 6px; }
.ld-limit .ld-pill:first-child { margin-left: 0; }
.ld-empty { padding: 24px 0; text-align: center; color: var(--muted); }
.ld-summary { padding: 10px 14px; border-radius: 12px; background: var(--hl-soft); font-weight: 700; }
.ld-state { padding: 14px 16px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-ink); font-weight: 700; line-height: 1.6; }
.ld-state small { display: block; font-weight: 400; font-size: max(.9rem, 15px); color: var(--ink); }
.ld-tog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-tog button { min-height: 48px; border-radius: 12px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.ld-tog button.is-y[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ld-tog button.is-n[aria-pressed="true"] { background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.ld-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ld-sum dt { padding-top: 10px; font-size: max(.85rem, 14px); font-weight: 700; color: var(--muted); }
.ld-sum dd { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.ld-legend { font-weight: 700; margin-top: 18px; }
.ld-choices { display: grid; gap: 8px; margin-top: 8px; }
.ld-choice { display: flex; align-items: center; min-height: 48px; padding: 8px 16px 8px 44px; position: relative; border-radius: 12px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); font-weight: 700; text-align: left; }
.ld-choice::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.ld-choice[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.ld-choice[aria-pressed="true"]::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 45%, var(--surface) 50%); }

/* 体験の申込み：週の切りかえ、時間割の行、手順 */
.ld-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ld-weeks a { display: grid; place-items: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: max(.85rem, 14px); text-decoration: none; }
.ld-screen .ld-weeks a { color: var(--ink-soft); }
.ld-screen .ld-weeks a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ld-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 8px; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.ld-screen a.ld-row { color: var(--ink); box-shadow: var(--shadow); }
.ld-row.is-off { background: var(--tint); color: var(--muted); }
.ld-row b { display: block; font-size: 1.1rem; line-height: 1.3; }
.ld-row small { display: block; font-size: max(.85rem, 14px); color: var(--muted); }
.ld-n { font-weight: 700; line-height: 1.5; }
.ld-seat { padding: 2px 10px; border-radius: 999px; font-size: max(.85rem, 14px); font-weight: 700; white-space: nowrap; }
.ld-seat.is-ok { background: var(--hl-soft); color: var(--link); }
.ld-seat.is-few { background: var(--orange-soft); color: var(--orange-ink); }
.ld-seat.is-off { background: var(--line); color: var(--ink-soft); }
.ld-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; }
.ld-steps li { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: max(.85rem, 14px); font-weight: 700; }
.ld-steps li i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-style: normal; font-size: .8rem; }
.ld-steps li.is-on { background: var(--hl-soft); color: var(--link); }
.ld-steps li[aria-current="step"] { background: var(--navy); color: #fff; }
.ld-steps li[aria-current="step"] i { color: var(--navy); }
.ld-nextlist { margin: 0; padding-left: 1.4em; line-height: 1.9; }

.ld-foot { padding-block: 20px 36px; border-top: 1px solid var(--line); font-size: max(.85rem, 14px); line-height: 1.8; color: var(--muted); }
.ld-foot p + p { margin-top: 10px; }
.ld-foot a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; color: var(--link); }

:is(.ld-back, .ld-tabs a, .ld-reset, .ld-act, .ld-btn, .ld-btn2, .ld-btn3, .ld-link, .ld-choice, .ld-card, .ld-row, .ld-tk, .ld-tog button, .ld-weeks a, .ld-sub a):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
