/* =========================================================
   おとなのピアノ教室 ソラ（制作サンプル）
   スマホ前提の縦長1カラム / ラベンダー × ベージュ
   ========================================================= */

:root {
  --lav-50: #f7f4fc;
  --lav-100: #ece6f7;
  --lav-200: #ddd3f0;
  --lav-300: #c6b8e4;
  --lav-500: #8d7bbd;
  --lav-700: #5a4a88;
  --lav-800: #463a6b;
  --beige-50: #fdfaf5;
  --beige-100: #f6efe4;
  --beige-200: #ebe0cf;
  --beige-400: #cdb999;
  --text: #3e3948;
  --muted: #6c657b;
  --white: #fff;
  --line-green: #06c755;
  --radius: 14px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
}

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

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

body {
  margin: 0;
  background: var(--beige-200);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  /* 対応ブラウザでは文節単位で改行 */
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; }
a { color: inherit; }

/* 言葉の途中で改行させないためのかたまり */
.nb { display: inline-block; }

/* 強調：ラベンダーのマーカー */
strong {
  font-weight: 700;
  color: var(--lav-800);
  background: linear-gradient(transparent 62%, var(--lav-200) 62%);
}
strong.plain { background: none; }

/* ---------- レイアウト ---------- */
.site-header,
main,
.site-footer {
  max-width: 640px;
  margin: 0 auto;
  background: var(--beige-50);
}

.inner { padding: 0 20px; }

.sec { padding: 56px 0; background: var(--beige-50); }
.sec--beige { background: var(--beige-100); }
.sec--lav { background: var(--lav-50); }

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 6.2vw, 27px);
  text-align: center;
  color: var(--lav-800);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}
.sec-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--lav-300);
}

.note { font-size: 16px; color: var(--muted); line-height: 1.8; }

.sample-note {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--beige-100);
  border: 1px dashed var(--beige-400);
  border-radius: 8px;
  padding: 10px 14px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid var(--beige-200);
}
.site-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--lav-700);
  letter-spacing: 0.12em;
}

/* ---------- 画像の仮枠 ---------- */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 2px dashed var(--lav-300);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(141, 123, 189, 0.07) 0 12px, transparent 12px 24px),
    var(--lav-100);
  color: var(--lav-700);
  font-size: 16px;
  font-weight: 700;
}
.img-ph--hero { aspect-ratio: 4 / 3; margin: 24px 0; }
.img-ph--teacher { aspect-ratio: 1 / 1; max-width: 260px; margin: 0 auto 24px; border-radius: 50%; }

/* ---------- ① ファーストビュー ---------- */
.hero {
  padding: 36px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, var(--lav-100) 0%, var(--beige-50) 78%);
}
.hero-lead {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--lav-700);
  font-size: 16px;
  font-weight: 700;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(27px, 8.2vw, 38px);
  line-height: 1.45;
  color: var(--lav-800);
  letter-spacing: 0.04em;
}
.hero-tag {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 予約ボタン ---------- */
.cta { text-align: center; }
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lav-700);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--lav-800), 0 12px 22px rgba(70, 58, 107, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-line:hover,
.btn-line:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--lav-800), 0 6px 12px rgba(70, 58, 107, 0.2);
}
.btn-line:focus-visible { outline: 3px solid var(--lav-300); outline-offset: 3px; }
.line-chip {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--line-green);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.btn-text { text-align: center; }
.cta-note {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--lav-700);
  line-height: 1.6;
}

/* ---------- ② お悩み ---------- */
.worry-list li {
  position: relative;
  margin-bottom: 12px;
  padding: 16px 16px 16px 50px;
  background: var(--white);
  border-radius: var(--radius);
  line-height: 1.75;
  box-shadow: 0 2px 8px rgba(62, 57, 72, 0.05);
}
.worry-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lav-500);
}
.worry-list li::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 25px;
  width: 7px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.empathy {
  position: relative;
  margin-top: 36px;
  padding: 22px 18px;
  text-align: center;
  background: var(--lav-100);
  border-radius: var(--radius);
  font-weight: 700;
}
.empathy::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  margin-left: -14px;
  border: 14px solid transparent;
  border-top: 0;
  border-bottom-color: var(--lav-100);
}
.empathy p { margin-bottom: 0.4em; }

/* ---------- ③ 理由 ---------- */
.reason {
  margin-bottom: 20px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
}
.reason:last-child { margin-bottom: 0; }
.reason-no {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--lav-700);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.reason-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 5.6vw, 23px);
  color: var(--lav-800);
  margin-bottom: 10px;
}

/* ---------- ④ レッスンの流れ ---------- */
.lesson-flow { counter-reset: flow; margin-bottom: 24px; }
.lesson-flow li {
  counter-increment: flow;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 14px;
  padding: 16px 16px 16px 62px;
  background: var(--white);
  border-radius: var(--radius);
  line-height: 1.6;
}
.lesson-flow li::before {
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lav-500);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
}
.lesson-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px;
  bottom: -14px;
  width: 2px;
  height: 14px;
  background: var(--lav-300);
}
.lesson-flow strong { background: none; color: var(--text); }
.flow-min {
  padding: 0 10px;
  border-radius: 999px;
  background: var(--beige-100);
  color: var(--lav-700);
  font-size: 16px;
  font-weight: 700;
}

/* ---------- ⑤ 生徒さんの声 ---------- */
.voice {
  position: relative;
  margin: 0 0 18px;
  padding: 26px 20px 20px;
  background: var(--beige-100);
  border-radius: var(--radius);
}
.voice::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 14px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--lav-300);
}
.voice blockquote { margin: 0; }
.voice figcaption {
  margin-top: 10px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--lav-700);
}
.voice figcaption::before { content: "― "; }
#voices .sample-note { margin-top: 24px; }

/* ---------- ⑥ 講師紹介 ---------- */
.teacher-name {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
}
.teacher-role {
  display: block;
  font-size: 16px;
  color: var(--lav-700);
  font-weight: 700;
}
.teacher-name strong {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.1em;
}
.teacher-kana { font-size: 16px; }
.teacher-fict { display: block; font-size: 16px; color: var(--muted); }
.teacher-msg {
  margin: 24px 0 0;
  padding: 22px 20px;
  background: var(--white);
  border-left: 5px solid var(--lav-300);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}

/* ---------- 表 ---------- */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
}
.tbl th,
.tbl td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--lav-200);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.tbl tr:last-child th,
.tbl tr:last-child td { border-bottom: 0; }

.tbl--price thead th {
  background: var(--lav-700);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}
.tbl--price tbody th { background: var(--lav-50); font-weight: 700; color: var(--lav-800); }
.tbl--price td { text-align: center; }
.tbl--price .price strong { font-size: 20px; white-space: nowrap; }

.tbl--info th {
  width: 8em;
  background: var(--lav-100);
  color: var(--lav-800);
  font-weight: 700;
}
.tbl--info td { padding-left: 14px; }

.price-notes { margin-top: 22px; }
.price-notes li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
  line-height: 1.75;
}
.price-notes li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lav-300);
}

/* ---------- ⑧ 体験の流れ ---------- */
.steps { margin-bottom: 32px; }
.step {
  position: relative;
  margin-bottom: 26px;
  padding: 22px 20px;
  background: var(--white);
  border-radius: var(--radius);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  margin-left: -12px;
  border: 12px solid transparent;
  border-bottom: 0;
  border-top-color: var(--lav-300);
}
.step-no {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lav-500);
}
.step-title {
  font-size: 20px;
  color: var(--lav-800);
  margin-bottom: 8px;
}
.step-sub { font-size: 16px; font-weight: 400; color: var(--muted); }

/* ---------- ⑨ よくある質問 ---------- */
.faq details {
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 48px 18px 16px;
  font-weight: 700;
  line-height: 1.65;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--lav-300); outline-offset: -3px; }
/* 開閉の ＋ / − */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--lav-500);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary { background: var(--lav-50); }

.q-mark,
.a-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}
.q-mark { background: var(--lav-700); color: var(--white); }
.a-mark { background: var(--beige-200); color: var(--lav-800); }
.answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--lav-200);
}
.answer p { line-height: 1.8; }

/* ---------- ⑪ 最後のひと押し ---------- */
.closing {
  text-align: center;
  background: linear-gradient(180deg, var(--beige-50) 0%, var(--lav-100) 100%);
}
.closing-lead { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.closing-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 7.6vw, 34px);
  color: var(--lav-800);
  margin-bottom: 22px;
}
.closing-text { margin-bottom: 30px; }

/* ---------- フッター ---------- */
.site-footer { padding: 28px 20px 36px; background: var(--lav-100); }
.site-footer .sample-note { background: var(--white); text-align: center; }

/* ---------- スマホ：追従する予約ボタン ---------- */
.sticky-cta { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 86px; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 250, 245, 0.94);
    border-top: 1px solid var(--lav-200);
    box-shadow: 0 -4px 16px rgba(62, 57, 72, 0.1);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .sticky-cta.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .btn-line--sticky {
    min-height: 54px;
    padding: 8px 16px;
    font-size: 17px;
    box-shadow: 0 3px 0 var(--lav-800);
  }
  .btn-line--sticky:hover,
  .btn-line--sticky:active { transform: none; box-shadow: 0 3px 0 var(--lav-800); }
}

/* 幅の狭いスマホ（〜359px）：余白を詰めて言葉の途中での改行を防ぐ */
@media (max-width: 359px) {
  .inner { padding: 0 14px; }
  .tbl th,
  .tbl td { padding: 12px 6px; }
  .tbl--info th { width: 7em; }
  .tbl--info td { padding-left: 8px; letter-spacing: 0; }
  .teacher-msg { padding: 18px 14px; font-size: 17px; letter-spacing: 0; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .inner { padding: 0 40px; }
  .sec { padding: 72px 0; }
  main { box-shadow: 0 0 40px rgba(62, 57, 72, 0.08); }
}

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