/* ==========================================================
   Lesson Running LP
   テーマ: data-theme 属性で切替(候補確定後、未使用テーマは削除可)
   ========================================================== */

/* --- 候補A: バレエピンク(クラシックチュチュ) --- */
:root {
  --primary: #c9748d;
  --primary-dark: #a8536e;
  --primary-soft: #faf1f3;
  --accent: #b99a5e;
  --text: #3c3438;
  --muted: #8a7b81;
  --bg: #ffffff;
  --bg-alt: #faf6f7;
  --border: #eddfe3;
  --footer-bg: #40343a;
  --max-width: 1080px;
}

/* --- 候補B: モーブ&グレージュ(大人シック) --- */
:root[data-theme="mauve"] {
  --primary: #9a7aa0;
  --primary-dark: #7b5d81;
  --primary-soft: #f6f1f7;
  --accent: #a99263;
  --text: #3a343c;
  --muted: #867d89;
  --bg: #ffffff;
  --bg-alt: #f8f5f9;
  --border: #e8dfea;
  --footer-bg: #3d3540;
}

/* --- 候補C: バーガンディ&シャンパンゴールド(劇場の緞帳) --- */
:root[data-theme="burgundy"] {
  --primary: #8e3d55;
  --primary-dark: #6f2c41;
  --primary-soft: #f9f0f2;
  --accent: #bf9d5f;
  --text: #3d3336;
  --muted: #8a7a7e;
  --bg: #ffffff;
  --bg-alt: #faf6f2;
  --border: #ecdfd9;
  --footer-bg: #423136;
}

/* --- 候補D: ラベンダー(リラの精) --- */
:root[data-theme="lavender"] {
  --primary: #8b7ab8;
  --primary-dark: #6d5c99;
  --primary-soft: #f4f2fa;
  --accent: #ab9668;
  --text: #37343e;
  --muted: #817d8d;
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --border: #e4e0ef;
  --footer-bg: #383342;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.brand .brand-mark {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
}

.brand .brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.site-nav .nav-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 44px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 88% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(560px 400px at 4% 108%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(175deg, var(--primary-soft) 0%, #fff 62%, var(--bg-alt) 100%);
  padding: 84px 0 0;
  text-align: center;
}

.hero .badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--primary-dark);
}

.hero .lead {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero .cta-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Hero mockups --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-top: 52px;
  padding: 0 24px;
}

.mock {
  text-align: left;
  filter: drop-shadow(0 18px 30px rgba(60, 40, 50, 0.16));
}

/* PC(管理画面)モック */
.mock-pc {
  width: min(520px, 58vw);
  background: #fff;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
}

.mock-pc .mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mock-pc .mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.mock-pc .mock-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 220px;
}

.mock-pc .mock-side {
  background: var(--primary-soft);
  padding: 14px 12px;
  font-size: 0.62rem;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 2.4;
}

.mock-pc .mock-main {
  padding: 16px 18px;
}

.mock-pc .mock-title {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.mock-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-stat {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.mock-stat .k {
  font-size: 0.55rem;
  color: var(--muted);
}

.mock-stat .v {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mock-rows .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding: 6px 2px;
}

.mock-rows .pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.55rem;
  font-weight: 600;
}

/* スマホ(LINE)モック
   LINEのトーク画面を模すため、ここだけテーマ色ではなくLINE実機の配色
   (トーク背景 #8cabd8、送信吹き出し #8ce44e)を固定で使う */
.mock-phone {
  width: 208px;
  background: #8cabd8;
  border: 6px solid #26282c;
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.mock-phone .mock-line-head {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 7px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #e3e6ea;
}

.mock-line-head .back {
  font-size: 0.85rem;
  line-height: 1;
  color: #111;
}

.mock-line-head .head-icons {
  margin-left: auto;
  color: #6b7280;
  font-size: 0.55rem;
  letter-spacing: 2px;
}

.mock-phone .mock-chat {
  padding: 10px 8px 12px;
  min-height: 168px;
}

.msg {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  align-items: flex-end;
}

.msg .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
}

.msg .sender {
  font-size: 0.48rem;
  color: #eef3fa;
  margin-bottom: 2px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.msg .bubble {
  background: #fff;
  border-radius: 13px;
  padding: 7px 9px;
  font-size: 0.55rem;
  line-height: 1.6;
  max-width: 122px;
  color: #1f2328;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.msg .bubble .b-title {
  font-weight: 700;
  display: block;
}

.msg.out {
  justify-content: flex-end;
}

.msg.out .bubble {
  background: #8ce44e;
}

.msg .time {
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.mock-richmenu {
  background: #fff;
  border-top: 1px solid #dfe3e8;
}

.mock-richmenu .rm-bar {
  font-size: 0.48rem;
  color: #6b7280;
  text-align: center;
  padding: 3px 0;
}

.mock-richmenu .rm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--primary-dark);
  gap: 1px;
  border-top: 1px solid var(--primary-dark);
}

.rm-grid span {
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 0;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-label {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 52px;
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
}

.about-text p + p {
  margin-top: 1.2em;
}

/* ---------- 対応教室リスト ---------- */
.targets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 28px;
  max-width: 940px;
  margin: 0 auto;
}

.targets li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.targets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.targets-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 24px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 2px 10px rgba(70, 50, 60, 0.04);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-dark);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
}

.step .step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.step .step-num::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-card .p-head {
  background: var(--primary-soft);
  border-bottom: 2px solid var(--primary);
  padding: 12px 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
  letter-spacing: 0.08em;
}

.price-card.featured .p-head {
  background: var(--primary);
  color: #fff;
}

.price-card .p-body {
  padding: 20px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.price-card .p-target {
  font-size: 0.78rem;
  color: var(--muted);
}

.price-card .p-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.price-card .p-price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.fee-box {
  max-width: 820px;
  margin: 30px auto 0;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 26px;
  font-size: 0.88rem;
}

.fee-box .fee-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.fee-box p {
  color: var(--text);
  font-size: 0.86rem;
}

.pricing-note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note li {
  margin-left: 1.4em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(500px 300px at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(150deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--primary-dark);
}

.cta-band .btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ---------- Contact ---------- */
.contact-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 32px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.contact-box .contact-mail {
  margin: 22px 0 0;
  font-size: 0.82rem;
}

.contact-box .contact-address {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  user-select: all;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #d8d0d3;
  padding: 52px 0 34px;
  font-size: 0.88rem;
}

.site-footer .footer-brand {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: center;
  margin-bottom: 26px;
}

.site-footer a {
  color: #d8d0d3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .copyright {
  text-align: center;
  color: #a89ba0;
  font-size: 0.78rem;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 64px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 1.55rem;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.legal-page h2 {
  font-size: 1.12rem;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}

.legal-page p,
.legal-page li {
  font-size: 0.93rem;
  color: var(--text);
}

.legal-page ol,
.legal-page ul {
  padding-left: 1.6em;
  margin: 8px 0;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.93rem;
}

table.legal-table th,
table.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

table.legal-table th {
  background: var(--bg-alt);
  width: 32%;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- テーマ切替(プレビュー用・確定後に削除) ---------- */
.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 12px 14px;
  font-size: 0.72rem;
}

.theme-switcher .ts-title {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.theme-switcher button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text);
}

.theme-switcher button:hover {
  background: var(--bg-alt);
}

.theme-switcher button.active {
  background: var(--primary-soft);
  font-weight: 700;
}

.theme-switcher .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-visual {
    gap: 16px;
  }

  .mock-phone {
    width: 150px;
  }

  .mock-pc .mock-side {
    display: none;
  }

  .mock-pc .mock-body {
    grid-template-columns: 1fr;
  }

  table.legal-table th {
    white-space: normal;
  }
}
