/* =========================================================
   ヨモギヤ楽器 オリジナルピアノ教室 LP
   css/style.css
   ---------------------------------------------------------
   デザイントークン（ワイヤーフレーム共通設計ルール準拠）
   ========================================================= */
:root {
  --c-base: #FAF7F2;      /* ベース：ウォームホワイト */
  --c-navy: #1F3A5F;      /* メイン：深いネイビー（信頼） */
  --c-navy-dark: #15294a;
  --c-honey: #F5B939;     /* アクセント：ハニーイエロー（CTA専用） */
  --c-honey-dark: #e3a51d;
  --c-brown: #8a6d4f;     /* サブ：木目ブラウン */
  --c-cream: #F3EDE2;     /* 帯背景 */
  --c-warm: #F6EFE7;      /* メソッド背景 */
  --c-text: #2b2b2b;
  --c-text-sub: #6b6b6b;
  --c-line: #e2dccf;

  --ff-body: "Noto Sans JP", sans-serif;
  --ff-num: "Oswald", "Noto Sans JP", sans-serif;

  --w-container: 1080px;
  --w-narrow: 880px;
  --w-read: 800px;

  --radius: 12px;
  --radius-btn: 8px;
  --shadow: 0 4px 16px rgba(31, 58, 95, .12);
}

/* ---------- リセット・基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); }
ul, ol { list-style: none; }
.num { font-family: var(--ff-num); font-weight: 600; letter-spacing: .02em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pc-only { display: inline; }
.sp-only { display: none; }
.center { text-align: center; }

:focus-visible { outline: 3px solid var(--c-honey); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 汎用レイアウト ---------- */
.container { max-width: var(--w-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--w-narrow); }
.container--read { max-width: var(--w-read); }

.section { padding: 88px 0; }
.section--cream { background: var(--c-cream); }
.section--warm { background: var(--c-warm); }
.section--paper { background: #fff; }

.section__h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
}
.section__h3 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
  color: var(--c-navy);
  margin: 40px 0 16px;
}
.section-summary {
  max-width: var(--w-read);
  margin: 0 auto 40px;
  text-align: center;
  font-weight: 500;
}
.note { font-size: 12px; color: var(--c-text-sub); margin-top: 12px; }
.micro { font-size: 13px; color: var(--c-text-sub); margin-top: 10px; }
.micro--light { color: rgba(255,255,255,.85); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--cta {
  background: var(--c-honey);
  color: var(--c-navy-dark);
  box-shadow: var(--shadow);
}
.btn--cta:hover { transform: scale(1.02); background: var(--c-honey-dark); box-shadow: 0 6px 20px rgba(31,58,95,.2); }
.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--md { font-size: 15px; padding: 12px 20px; width: 100%; }
.btn--lg { font-size: 18px; padding: 18px 40px; }
.btn--xl { font-size: 19px; padding: 20px 48px; width: 100%; margin-top: 8px; }
.btn--bar { width: 100%; height: 56px; line-height: 56px; padding: 0; border-radius: 0; font-size: 16px; }

.cta-block { text-align: center; margin-top: 48px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  max-width: var(--w-container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.site-header__logo img { height: 36px; width: auto; }

/* ---------- ファーストビュー ---------- */
.fv { padding: 56px 0 40px; overflow: hidden; }
.fv__inner {
  max-width: var(--w-container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 55% 45%; gap: 32px; align-items: center;
}
.fv__h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.55;
  margin-bottom: 18px;
}
.fv__h1 .num { color: var(--c-brown); font-size: 1.18em; }
.fv__h1 small { font-size: .55em; font-weight: 700; }
.fv__sub { font-size: clamp(15px, 1.6vw, 17px); margin-bottom: 18px; }
.fv__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fv__badges li {
  font-size: 13px; font-weight: 700; color: var(--c-navy);
  background: #fff; border: 1px solid var(--c-line);
  border-radius: 999px; padding: 6px 14px;
}
.fv__lead { font-size: 14px; margin-bottom: 20px; }
.fv__micro { font-size: 13px; font-weight: 500; color: var(--c-text-sub); margin-bottom: 8px; }

.fv__visual { position: relative; }
.fv__main-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.fv__sub-img {
  position: absolute; right: -8px; bottom: -28px;
  width: 42%; border-radius: var(--radius);
  border: 4px solid #fff; box-shadow: var(--shadow);
}
.page-summary {
  max-width: var(--w-read); margin: 48px auto 0; padding: 0 24px;
  font-size: 13px; color: var(--c-text-sub); text-align: center;
}

/* 鍵盤モチーフの区切り（シグネチャ要素） */
.keys-divider {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--c-navy) 0 9px, transparent 9px 23px) top/100% 8px no-repeat,
    repeating-linear-gradient(90deg,
      #fff 0 22px, var(--c-line) 22px 23px) bottom/100% 14px no-repeat;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

/* ---------- セクション2：ファクトボックス ---------- */
.factbox {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.factbox__list li { position: relative; padding-left: 56px; }
.factbox__list li + li { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--c-line); }
.factbox__icon {
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-navy); color: #fff;
  font-weight: 700; font-size: 17px;
}
.factbox__title { font-size: 18px; color: var(--c-navy); margin-bottom: 6px; }
.factbox__link { margin-top: 28px; text-align: right; font-weight: 700; }

/* ---------- セクション3：比較 ---------- */
.compare__icons {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-bottom: 12px; font-size: 22px;
}
.compare__icon { display: grid; justify-items: center; }
.compare__icon small { font-size: 11px; color: var(--c-text-sub); }
.compare__vs { color: var(--c-line); }

.table-wrap { overflow: visible; }
.compare-table {
  width: 100%; max-width: 960px; margin: 0 auto;
  border-collapse: collapse; background: #fff;
  border: 1px solid var(--c-line); font-size: 15px;
}
.compare-table caption { caption-side: top; }
.compare-table th, .compare-table td {
  border: 1px solid var(--c-line); padding: 14px 16px;
  text-align: left; vertical-align: top;
}
.compare-table thead th {
  background: var(--c-navy); color: #fff; text-align: center;
  font-size: 15px;
}
.compare-table tbody th { background: var(--c-cream); width: 18%; font-size: 14px; }
.compare-table .compare-table__yomogiya { background: rgba(245, 185, 57, .12); }
.compare-table thead .compare-table__yomogiya { background: var(--c-navy-dark); color: var(--c-honey); }
.compare-table .num { font-size: 1.15em; color: var(--c-brown); }

.checklist { max-width: 720px; margin: 0 auto; }
.checklist li {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-btn);
  padding: 12px 18px; font-weight: 500;
}
.checklist li + li { margin-top: 10px; }

/* ---------- セクション4：メソッド ---------- */
.method { max-width: 960px; margin: 0 auto; }
.method__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 56px;
}
.method__row--reverse .method__fig { order: 2; }
.method__fig img { border-radius: var(--radius); box-shadow: var(--shadow); }
.method__text ul li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
}
.method__text ul li::before {
  content: "♪"; position: absolute; left: 0; color: var(--c-brown);
}
.method__text .section__h3 { margin-top: 0; }

.teachers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 920px; margin: 32px auto 0;
}
.teacher-card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.teacher-card img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px;
}
.teacher-card__quote { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.teacher-card__name { font-size: 12px; color: var(--c-text-sub); }

/* ---------- セクション5：エリア ---------- */
.area-map { max-width: 760px; margin: 0 auto 32px; }
.area-map img { border-radius: var(--radius); }

.area-filter {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: end;
  max-width: 760px; margin: 0 auto 36px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 20px 24px;
}
.area-filter__item { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-navy); flex: 1 1 240px; }
.area-filter select, .area-filter input {
  font-family: var(--ff-body); font-size: 15px;
  padding: 10px 12px; border: 1px solid var(--c-line);
  border-radius: var(--radius-btn); background: var(--c-base);
}
.area-filter__count { font-size: 13px; color: var(--c-text-sub); flex-basis: 100%; }

.center-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.center-card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 22px;
  display: grid; gap: 8px; align-content: start;
}
.center-card[hidden] { display: none; }
.center-card__thumb { width: 100%; border-radius: var(--radius-btn); }
.center-card__name {
  font-size: 18px; color: var(--c-navy);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.center-card__ward {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--c-brown); border-radius: 4px; padding: 2px 8px;
}
.center-card__addr { font-size: 13px; color: var(--c-text-sub); }
.center-card__copy { font-size: 14px; }
.center-card__days { font-size: 13px; font-weight: 700; color: var(--c-navy); }

.area-help { text-align: center; margin-top: 40px; }
.area-help__tel { font-size: 18px; font-weight: 700; margin-top: 6px; }
.area-help__tel a { text-decoration: none; font-size: 1.3em; }

/* ---------- セクション6：ポリシー ---------- */
.policy-block { margin-bottom: 48px; }
.policy-block__fig { max-width: 640px; margin: 0 auto 20px; }
.policy-block__fig img { border-radius: var(--radius); }
.policy-block ul li {
  position: relative; padding-left: 18px; margin-bottom: 10px;
}
.policy-block ul li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--c-honey);
}
.policy-block p { margin-bottom: 12px; }

.policy-quote {
  border-left: 4px solid var(--c-navy);
  background: var(--c-cream);
  padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
}
.policy-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--c-text-sub); }

/* ---------- セクション7：FAQ ---------- */
.faq__item {
  background: #fff; border-bottom: 1px solid var(--c-line);
}
.faq__item:first-of-type { border-top: 1px solid var(--c-line); }
.faq__q {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 56px 20px 52px;
  font-weight: 700; color: var(--c-navy); font-size: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "Q"; position: absolute; left: 12px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-navy); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.faq__q::after {
  content: "＋"; position: absolute; right: 20px; top: 20px;
  color: var(--c-brown); font-weight: 700;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a {
  position: relative; padding: 0 24px 22px 52px;
}
.faq__a::before {
  content: "A"; position: absolute; left: 12px; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-honey); color: var(--c-navy-dark);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}

/* ---------- 最終CTA・フォーム ---------- */
.final-cta {
  background: var(--c-navy);
  color: #fff;
  padding: 88px 0 96px;
}
.final-cta__h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900; text-align: center; line-height: 1.6;
  margin-bottom: 20px;
}
.final-cta__points {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px;
  margin-bottom: 36px; font-weight: 700;
}
.final-cta__tel { text-align: center; margin-top: 28px; font-size: 17px; }
.final-cta__tel a { color: var(--c-honey); text-decoration: none; font-size: 1.3em; }

.entry-form {
  background: #fff; color: var(--c-text);
  border-radius: var(--radius); padding: 36px 40px;
  display: grid; gap: 18px;
}
.entry-form__row { display: grid; gap: 6px; }
.entry-form__row label { font-weight: 700; font-size: 14px; color: var(--c-navy); }
.entry-form .req {
  font-size: 11px; color: #fff; background: #c0392b;
  border-radius: 4px; padding: 1px 7px; margin-left: 6px; font-weight: 700;
}
.entry-form input, .entry-form select {
  font-family: var(--ff-body); font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--c-line);
  border-radius: var(--radius-btn); background: var(--c-base);
  width: 100%;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-navy-dark); color: rgba(255,255,255,.8);
  text-align: center; padding: 28px 24px 110px;
  font-size: 13px;
}
.site-footer__org { font-weight: 700; margin-bottom: 6px; }

/* ---------- SP固定CTAバー ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.fixed-cta.is-visible { transform: translateY(0); }

/* =========================================================
   レスポンシブ（〜768px）
   ========================================================= */
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .section { padding: 64px 0; }

  /* FV：縦積み */
  .fv { padding-top: 32px; }
  .fv__inner { grid-template-columns: 1fr; gap: 24px; }
  .fv__copy { order: 1; }
  .fv__visual { order: 2; margin-bottom: 24px; }
  .fv__badges { justify-content: flex-start; }
  .btn--lg { display: block; width: 100%; padding: 18px 16px; font-size: 16px; }

  .factbox { padding: 28px 20px; }

  /* 比較表：縦積みカード化（DOMはtableのまま） */
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table thead { display: none; }
  .compare-table tr { border: 1px solid var(--c-line); margin-bottom: 16px; background: #fff; }
  .compare-table th, .compare-table td { border: none; border-bottom: 1px dashed var(--c-line); }
  .compare-table td::before, .compare-table tbody th::before {
    content: attr(data-label);
    display: block; font-size: 11px; font-weight: 700; color: var(--c-text-sub);
    margin-bottom: 2px;
  }
  .compare-table tbody th { background: var(--c-cream); width: 100%; }

  .method__row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
  .method__row--reverse .method__fig { order: 0; }

  .teachers { grid-template-columns: 1fr; }

  .center-grid { grid-template-columns: 1fr; }

  .entry-form { padding: 28px 20px; }

  .fixed-cta { display: block; }
}

/* PCでは固定バー非表示 */
@media (min-width: 769px) {
  .fixed-cta { display: none; }
  .site-footer { padding-bottom: 28px; }
}

/* ---------- セクション4改：レッスンカリキュラム ---------- */
.curriculum { max-width: 1040px; margin: 0 auto; }
.curriculum__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900; color: var(--c-brown);
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.curriculum__lead { font-weight: 500; margin-bottom: 8px; }
.curriculum__note { font-size: 12px; color: var(--c-text-sub); margin-bottom: 32px; }

.curriculum-group { margin-bottom: 44px; }
.curriculum-group__title {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700; color: var(--c-brown);
  margin-bottom: 18px;
}
.curriculum-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.curriculum-card img { border-radius: var(--radius-btn); margin-bottom: 12px; }
.curriculum-card__title {
  font-size: 18px; color: var(--c-navy);
  text-align: center; margin-bottom: 8px;
}
.curriculum-card__list { font-size: 13.5px; }
.curriculum-card__list li {
  position: relative; padding-left: 14px; margin-bottom: 4px;
}
.curriculum-card__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-honey);
}

/* ---------- スライドショー予定地（フルワイド・仮） ---------- */
.slideshow-space {
  margin-top: 72px;
  height: 240px;
  display: grid; place-content: center; gap: 8px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg,
      #e7e2d6 0 24px, #efeadf 24px 48px);
  border-top: 1px dashed var(--c-brown);
  border-bottom: 1px dashed var(--c-brown);
}
.slideshow-space__label {
  font-weight: 700; color: var(--c-navy);
  background: rgba(255,255,255,.85);
  padding: 6px 16px; border-radius: 4px;
}
.slideshow-space__sub {
  font-size: 13px; color: var(--c-text-sub);
  background: rgba(255,255,255,.85);
  padding: 4px 12px; border-radius: 4px;
}

@media (max-width: 768px) {
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .curriculum-card__list { font-size: 12.5px; }
  .slideshow-space { height: 160px; margin-top: 48px; }
}
