/* レッスンナウ！ 共有スタイル
   トーン: 譜面紙 × 墨 × 緞帳のバーガンディ × 真鍮。上品・信頼感重視、モバイル優先 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #FBFAF6;
  --surface: #FFFFFF;
  --ink: #221F1B;
  --muted: #6F6A61;
  --line: #E4E0D6;
  --line-strong: #CFC9BB;
  --velvet: #8A3242;
  --velvet-deep: #6E2635;
  --velvet-tint: #F6ECEE;
  --brass: #A8853B;
  --brass-tint: #F5EFDF;
  --pine: #3E6B4F;
  --pine-tint: #E7F0E9;
  --slate: #44618C;
  --slate-tint: #E9EFF7;
  --radius: 12px;
  --radius-sm: 8px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

/* PC では紙面を静かに浮かせる */
@media (min-width: 720px) {
  body { background: #F1EFE8; }
  .page { background: var(--paper); max-width: 520px; margin: 0 auto; min-height: 100vh;
          box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(34, 31, 27, 0.08); }
}

.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.wrap { padding: 0 20px; }

/* ---------- ヘッダー / フッター ---------- */

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink); text-decoration: none;
}
.brand .bang { color: var(--velvet); }
.head-link {
  font-size: 13px; color: var(--velvet); text-decoration: none;
  border: 1px solid var(--velvet); border-radius: 999px; padding: 6px 14px;
}
.head-link:hover { background: var(--velvet-tint); }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px; margin-top: 48px;
  font-size: 12px; color: var(--muted);
}
.site-foot .brand { font-size: 15px; }
.site-foot p { margin-top: 8px; }

/* ---------- 五線譜モチーフ（シグネチャ） ---------- */

.staff {
  height: 25px; margin: 40px 20px; position: relative;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 6px);
  background-size: 100% 25px; background-repeat: no-repeat;
}
.staff::after {
  content: "♪";
  position: absolute; right: 8px; top: -6px;
  color: var(--brass); font-size: 17px; line-height: 1;
  background: var(--paper); padding: 0 6px;
}

/* ---------- 見出し ---------- */

.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; color: var(--brass);
  text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; letter-spacing: 0.02em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; margin-bottom: 14px; }
h3 { font-size: 15px; }
.section { padding: 8px 20px; }
.lead { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--velvet); border-color: var(--velvet); color: #fff; }
.btn.primary:hover { background: var(--velvet-deep); border-color: var(--velvet-deep); }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, .chip:focus-visible, .inp:focus-visible {
  outline: 2px solid var(--velvet); outline-offset: 2px;
}

/* ---------- フォーム ---------- */

.inp {
  width: 100%; padding: 11px 12px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.inp:focus { outline: none; border-color: var(--velvet); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F6A61' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- チップ / バッジ ---------- */

.chip {
  font-family: var(--sans); font-size: 13px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge.now { background: var(--pine-tint); color: var(--pine); }
.badge.online { background: var(--slate-tint); color: var(--slate); }
.badge.rec { background: var(--brass-tint); color: var(--brass); }
.badge.cert { background: var(--velvet-tint); color: var(--velvet); }

.stars { color: var(--brass); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }

/* ---------- カード ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.card + .card { margin-top: 12px; }

/* 講師カード（一覧） */
.t-card {
  display: block; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.t-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 16px rgba(34, 31, 27, 0.07); }
.t-card .t-top { display: flex; gap: 14px; align-items: flex-start; }
.t-card .t-avatar { flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; line-height: 0; }
.t-card .t-name { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.t-card .t-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.t-card .t-tagline { font-size: 13px; color: var(--ink); margin-top: 8px; }
.t-card .t-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.t-card .t-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.t-card .t-price { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.t-card .t-price small { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 400; }

/* ---------- 演奏会プログラム風の時刻（シグネチャ第2要素） ---------- */

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.08em;
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 8px 16px; background: var(--surface); color: var(--ink); cursor: pointer;
  transition: all 0.15s;
}
.slot .slot-day { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.slot[aria-pressed="true"] { border-color: var(--velvet); background: var(--velvet-tint); color: var(--velvet-deep); }
.slot[aria-pressed="true"] .slot-day { color: var(--velvet); }

/* ---------- レビューバー ---------- */

.rate-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.rate-row .rate-label { font-size: 12px; color: var(--muted); width: 9.5em; flex-shrink: 0; }
.rate-row .rate-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rate-row .rate-bar span { display: block; height: 100%; background: var(--brass); }
.rate-row .rate-num { font-family: var(--serif); font-size: 13px; width: 2.4em; text-align: right; }

.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review:first-of-type { border-top: none; }
.review .r-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.review .r-text { font-size: 13.5px; }

/* ---------- 汎用 ---------- */

.row { display: flex; align-items: center; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note {
  font-size: 12.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.7;
}
.note strong { color: var(--ink); }
.note.warn { border-color: var(--brass); background: var(--brass-tint); color: var(--ink); }

dl.spec { font-size: 13.5px; }
dl.spec > div { display: flex; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 12px; }
dl.spec > div:last-child { border-bottom: none; }
dl.spec dt { color: var(--muted); width: 7em; flex-shrink: 0; }
dl.spec dd { flex: 1; }

/* ---------- 下部固定CTA（講師詳細） ---------- */

.sticky-cta {
  position: sticky; bottom: 0; z-index: 15;
  background: linear-gradient(to top, var(--paper) 75%, rgba(251, 250, 246, 0));
  padding: 18px 20px 20px;
}
.sticky-cta .cta-inner { display: flex; align-items: center; gap: 14px; }
.sticky-cta .cta-price { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; }
.sticky-cta .cta-price small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); font-weight: 400; }
.sticky-cta .btn { flex: 1; }

/* ---------- 申し込みステップ ---------- */

.steps { display: flex; align-items: center; gap: 0; margin: 18px 0 22px; }
.steps .st { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); position: relative; padding-top: 16px; }
.steps .st::before {
  content: ""; display: block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
.steps .st::after {
  content: ""; position: absolute; top: 4px; left: calc(50% + 8px); right: calc(-50% + 8px);
  height: 1px; background: var(--line-strong);
}
.steps .st:last-child::after { display: none; }
.steps .st.on { color: var(--velvet-deep); font-weight: 600; }
.steps .st.on::before { background: var(--velvet); }
.steps .st.done::before { background: var(--brass); }

.opt-card {
  display: block; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); padding: 14px 16px; cursor: pointer; transition: all 0.15s;
}
.opt-card + .opt-card { margin-top: 10px; }
.opt-card[aria-pressed="true"] { border-color: var(--velvet); background: var(--velvet-tint); }
.opt-card .o-title { font-weight: 600; font-size: 15px; }
.opt-card .o-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.pay-summary { font-size: 14px; }
.pay-summary .pay-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line-strong); }
.pay-summary .pay-total .num { font-family: var(--serif); font-size: 22px; font-weight: 600; }

.done-box { text-align: center; padding: 40px 0 20px; }
.done-box .done-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--pine-tint); color: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}

/* ---------- トップページ ---------- */

.hero { padding: 44px 20px 8px; }
.hero h1 { font-size: 29px; line-height: 1.55; }
.hero h1 .accent { color: var(--velvet); }
.hero .hero-sub { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero .hero-cta { margin-top: 24px; }
.hero .hero-count { font-size: 12.5px; color: var(--pine); margin-top: 12px; font-weight: 600; }
.hero .hero-count .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pine); margin-right: 6px; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .hero .hero-count .dot { animation: none; } }

.how { counter-reset: how; }
.how .how-item { display: flex; gap: 14px; padding: 12px 0; }
.how .how-item .how-num {
  counter-increment: how; flex-shrink: 0;
  font-family: var(--serif); font-size: 15px; color: var(--brass);
  width: 34px; height: 34px; border: 1px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.how .how-item .how-num::before { content: counter(how); }
.how .how-item .how-title { font-weight: 600; font-size: 14.5px; }
.how .how-item .how-sub { font-size: 13px; color: var(--muted); }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-grid .trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.trust-grid .trust-item .tr-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.trust-grid .trust-item .tr-sub { font-size: 12px; color: var(--muted); line-height: 1.65; }

.wl-form { display: flex; gap: 8px; margin-top: 14px; }
.wl-form .inp { flex: 1; }
.wl-done { display: none; margin-top: 14px; }
