/* 横山ピアノ教室 — B版（飾りを減らした版）
   赤＝センター北、青＝あざみ野は教室の目印だけに使う。色の組み合わせは data-palette で切り替える（1〜3） */

:root {
  --bg: #ffffff;
  --tint: #f6f6f3;
  --ink: #232326;
  --ink-soft: #5c5c60;
  --line: #e2e1dc;
  --accent: #7d6a3f;
  --dark: #1d1d20;
  --dark-ink: #ffffff;
  --red: #b3262c;
  --blue: #1e4f8f;
  --school-weight: 3px;
  --cta: #f5b301;
  --cta-ink: #1b1b1d;
  --cta-edge: #b98300;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", cursive;
  --header-h: 68px;
}

/* 色の見本 2：背景も、芝生のようなやわらかい緑。濃い緑を締め色にする。赤・青は教室の目印のまま */
:root[data-palette="2"] {
  --bg: #e8f2dc;
  --tint: #d9ebca;
  --ink: #1c2a19;
  --ink-soft: #46583f;
  --line: #bfd6ad;
  --accent: #2f6b2a;
  --dark: #26501f;
  --red: #b3262c;
  --blue: #1e4f8f;
  --school-weight: 6px;
  --cta: #f28c1e;
  --cta-ink: #1b1b1d;
  --cta-edge: #b25f08;
}
:root[data-palette="2"] .preview-dialog button { background: #2f6b2a; border-color: #2f6b2a; color: #fff; }
:root[data-palette="2"] .btn-outline { border-color: #2f6b2a; color: #1f4a1a; }
:root[data-palette="2"] .btn-outline:hover { background: #d9ebca; }
:root[data-palette="2"] .cta-band { background: #26501f; }
:root[data-palette="2"] .site-footer { background: #d9ebca; }
:root[data-palette="2"] .site-header, :root[data-palette="2"] .drawer, :root[data-palette="2"] .mobile-bar { background: #eef6e4; }
:root[data-palette="2"] .mb-item { background: #fff; }
:root[data-palette="2"] .contact-line { background: #fff; }
/* 教室のカードと、写真の枠は、白で浮かせる */
:root[data-palette="2"] .school { background: #fff; padding-bottom: 18px; }
:root[data-palette="2"] .placeholder { background: #f5faee; border-color: #bfd6ad; }
:root[data-palette="2"] .notice-band { background: #d9ebca; }
:root[data-palette="2"] .preview-bar { background: #1c3a17; }
:root[data-palette="2"] .keys-band { border-top-color: #1c2a19; }

/* 色の見本 3：生成り色とこげ茶。やわらかい印象（A版に近い） */
:root[data-palette="3"] {
  --bg: #f6efe3;
  --tint: #ede3d1;
  --ink: #3a2b22;
  --ink-soft: #6b5a4d;
  --line: #d8c9b2;
  --accent: #9a6b3f;
  --dark: #3a2b22;
  --red: #a8323a;
  --blue: #2c5282;
  --cta: #c9482b;
  --cta-ink: #ffffff;
  --cta-edge: #8f2f18;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  padding-bottom: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.5; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ib { display: inline-block; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- プレビュー表示・お知らせ帯 ---------- */
.preview-bar { background: var(--ink); color: #fff; font-size: 13px; line-height: 1.6; text-align: center; padding: 8px 16px; }
.preview-bar strong { color: #f3dfb4; }
.palette { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; white-space: nowrap; }
.palette button {
  font: inherit; font-size: 12px; min-width: 28px; height: 24px; padding: 0 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; border-radius: 3px;
}
.palette button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.notice-band { background: var(--tint); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.notice-band .container { display: flex; gap: 10px; align-items: baseline; padding-top: 9px; padding-bottom: 9px; }
.notice-tag { flex: none; color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { width: 172px; mix-blend-mode: multiply; }
.gnav { display: none; margin-left: auto; }
.gnav ul { display: flex; gap: 2px; }
.gnav a { display: block; padding: 8px 10px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.gnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-tel { display: none; text-decoration: none; text-align: right; line-height: 1.3; }
.header-tel-label { display: block; font-size: 11px; color: var(--ink-soft); }
.header-tel-num { font-size: 19px; font-weight: 700; letter-spacing: .04em; }

.menu-btn { margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 6px 4px; color: var(--ink); cursor: pointer; font: inherit; }
.menu-icon { display: grid; gap: 5px; width: 26px; }
.menu-icon span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-label { font-size: 10px; line-height: 1; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px 20px 100px; }
.drawer li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.drawer-contact { margin-top: 20px; display: grid; gap: 10px; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.contact-kind { flex: none; font-size: 12px; font-weight: 500; color: var(--ink-soft); }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 3px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--dark); color: var(--dark-ink); }
.btn-primary:hover { opacity: .88; }
.btn-light { background: #fff; color: var(--dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--tint); }
.btn-lg { min-height: 60px; padding: 14px clamp(16px, 5vw, 32px); font-size: clamp(15px, 4.4vw, 17px); white-space: nowrap; }
.btn-block { width: 100%; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-more:hover { color: var(--accent); }

/* 写真の枠（撮影待ち）：飾りをつけず、静かな枠にする */
.placeholder { margin: 0; background: var(--tint); border: 1px solid var(--line); display: flex; align-items: flex-end; }
.placeholder figcaption { margin: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- 最初の画面 ---------- */
.hero { padding: 36px 0 52px; }
.hero-inner { display: grid; gap: 32px; }
.hero-area { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero-copy { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 8vw, 48px); line-height: 1.5; letter-spacing: .04em; }
.hero-lead { margin-top: 20px; color: var(--ink-soft); font-size: 15.5px; }
.hero-schools { margin: 18px 0 24px; font-size: 14.5px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hero-schools .sep { color: var(--ink-soft); font-weight: 400; margin: 0 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 2px; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.hero .btn-lg { width: 100%; }
.contact-block { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.contact-lead { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.big-contact { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.big-contact:first-of-type { border-top: 0; }
.big-contact-kind { flex: none; width: 3.2em; font-size: 13px; color: var(--ink-soft); }
.big-contact-value { font-size: clamp(20px, 6.6vw, 26px); font-weight: 700; letter-spacing: .03em; line-height: 1.3; white-space: nowrap; }
.big-contact-mail { font-size: clamp(15px, 4.7vw, 19px); letter-spacing: 0; }
.contact-hours { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.hero-side { display: grid; gap: 4px; }
.hero-photo { aspect-ratio: 4 / 3; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-title { font-family: var(--serif); font-size: clamp(24px, 6vw, 30px); letter-spacing: .05em; }
.section-note { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.split { display: grid; gap: 26px; }
.split-links { margin-top: 20px; line-height: 2.2; }

/* 見出しと本文を、横に並べる行（飾りのない一覧） */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row dt, .row-label { font-weight: 700; font-size: 15px; }
.row dd { color: var(--ink); }
.row strong { font-weight: 700; }
.row h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.row p { font-size: 15px; color: var(--ink-soft); }
.row-sub { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* 2つの教室 */
.school-grid { display: grid; gap: 40px; margin-top: 30px; }
.school { background: var(--bg); }
.school-red { --school-color: var(--red); }
.school-blue { --school-color: var(--blue); }
.school-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.school-head { background: var(--school-color); color: #fff; padding: 14px 18px 13px; border-radius: 4px 4px 0 0; }
.school-area { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.school h3 { font-family: var(--serif); font-size: 22px; margin: 2px 0 0; color: #fff; }
.school-photo { margin: 0; }
.school-photo img { border-radius: 0; }
.school-photo figcaption { padding: 8px 2px 0; }
.school .info, .school .link-more { margin-left: 2px; }
.school .info { margin-top: 14px; }
.info { display: grid; gap: 6px; font-size: 14.5px; margin-bottom: 14px; }
.info div { display: grid; grid-template-columns: 3em 1fr; gap: 10px; }
.info dt { font-weight: 700; color: var(--ink-soft); }
.info dd { margin: 0; }
.school .link-more { border-color: var(--school-color); }

/* 体験の流れ */
.flow { border-top: 1px solid var(--ink); }
.flow li { display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow-no { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--accent); }
.flow h3 { font-family: var(--serif); font-size: 18px; }
.flow p { font-size: 15px; color: var(--ink-soft); }
.flow-cta { margin-top: 26px; }
.flow-cta .btn-lg { width: 100%; max-width: 420px; }
.flow-alt { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.flow-alt a { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* 新着 */
.news-list { border-top: 1px solid var(--ink); margin-bottom: 22px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 2px; text-decoration: none; align-items: center; }
.news-date { grid-column: 1; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.news-title { grid-column: 1; font-weight: 500; line-height: 1.6; }
.news-list a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; color: var(--accent); }
.news-list a:hover .news-title { text-decoration: underline; text-underline-offset: 3px; }
.news-fallback { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 2px; margin-bottom: 20px; color: var(--ink-soft); font-size: 15px; }
.news-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

/* 講師 */
.teacher { display: grid; gap: 28px; align-items: start; }
.teacher-photo { aspect-ratio: 4 / 5; max-width: 320px; width: 100%; }
.teacher-name { margin-top: 18px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.teacher-role { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.teacher-quote { margin: 16px 0 18px; padding: 0 0 0 16px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 16px; line-height: 2; }
.teacher-quote p + p { margin-top: 8px; }
.teacher-bio { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; display: grid; gap: 4px; }
.teacher-bio li { padding-left: 1em; text-indent: -1em; }
.teacher-bio li::before { content: "・"; }

/* 最後のボタン帯 */
.cta-band { background: var(--dark); color: #fff; padding: 64px 0; text-align: center; }
.cta-title { font-family: var(--serif); font-size: clamp(24px, 6vw, 34px); letter-spacing: .05em; }
.cta-lead { margin: 12px auto 24px; color: #d9d5ce; }
.cta-band .btn-lg { width: 100%; max-width: 420px; }
.cta-contact { margin-top: 24px; display: grid; gap: 4px; justify-items: center; }
.cta-contact a { text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: .03em; white-space: nowrap; }
.cta-contact a[href^="mailto"] { font-size: 18px; letter-spacing: 0; }
.cta-contact a span { font-size: 12px; font-weight: 500; color: #bdb7ad; margin-right: 10px; letter-spacing: 0; }

/* フッター */
.site-footer { background: var(--tint); padding: 48px 0 20px; font-size: 14px; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand img { width: 170px; mix-blend-mode: multiply; }
.footer-contact { margin-top: 12px; font-weight: 700; font-size: 16px; line-height: 1.8; }
.footer-contact a { text-decoration: none; overflow-wrap: anywhere; }
.footer-schools { display: grid; gap: 12px; }
.fs dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fs dd { margin: 0; color: var(--ink-soft); }
.fs-red dt::before, .fs-blue dt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.fs-red dt::before { background: var(--red); }
.fs-blue dt::before { background: var(--blue); }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.copyright { text-align: center; margin-top: 32px; color: var(--ink-soft); }

/* スマホの下部固定ボタン */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--ink);
}
.mb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 3px; text-decoration: none; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); line-height: 1.3; cursor: pointer; background: var(--bg); }
.mb-icon { font-size: 18px; line-height: 1.1; }
.mb-primary { background: var(--dark); color: #fff; border-color: var(--dark); font-size: clamp(13px, 3.9vw, 15px); white-space: nowrap; }

/* プレビューの説明（申込みボタン） */
.preview-dialog { border: 0; border-radius: 4px; padding: 24px 22px 20px; max-width: 360px; width: calc(100% - 40px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: var(--ink); font-family: var(--sans); background: #fff; }
.preview-dialog::backdrop { background: rgba(29, 29, 32, .45); }
.preview-dialog h2 { font-size: 17px; margin-bottom: 10px; }
.preview-dialog p { font-size: 14.5px; color: var(--ink-soft); }
.preview-dialog form { margin-top: 18px; text-align: right; }
.preview-dialog button { font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 3px; border: 0; background: var(--dark); color: #fff; cursor: pointer; }

.coming { padding: 80px 20px 100px; text-align: center; }
.coming h1 { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.coming p { color: var(--ink-soft); margin-bottom: 26px; }
body.no-mobile-bar { padding-bottom: 0; }

/* ---------- 幅の広い画面 ---------- */
@media (min-width: 720px) {
  .container { padding: 0 32px; }
  .school-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1.3fr; }
  .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { grid-template-columns: repeat(4, max-content); gap: 6px 24px; }
  .footer-contact a { white-space: nowrap; }
  .hero .btn-lg { width: auto; }
  .row { grid-template-columns: 11em 1fr; gap: 24px; }
  .rows-wide .row { grid-template-columns: 7em 1fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .header-tel { display: block; margin-left: auto; padding-right: 16px; border-right: 1px solid var(--line); }
  .menu-btn { margin-left: 0; }
  .logo img { width: 190px; }
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section { padding: 88px 0; }
  .split { grid-template-columns: 300px 1fr; gap: 64px; }
  .teacher { grid-template-columns: 300px 1fr; gap: 64px; }
  .footer-inner { grid-template-columns: 1fr 1.3fr auto; }
  .footer-nav { grid-column: auto; }
  .footer-nav ul { grid-template-columns: repeat(2, max-content); gap: 6px 20px; }
}

@media (min-width: 1180px) {
  .menu-btn, .drawer { display: none !important; }
  .gnav { display: block; }
  .header-tel { margin-left: 8px; padding-right: 0; padding-left: 16px; border-right: 0; border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-icon span { transition: none; }
}


/* ---------- 細かい工夫 ---------- */
::selection { background: var(--ink); color: var(--bg); }

/* ヘッダー：スクロールしたら、うすい影 */
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(35, 35, 38, .06); }

/* ボタン：矢印が少し動く */
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.link-more span[aria-hidden] { display: inline-block; transition: transform .2s; }
.link-more:hover span[aria-hidden] { transform: translateX(3px); }

/* 見出しの前の、黒鍵のしるし（一覧の項目名） */
.row dt::before, .row-label::before {
  content: ""; display: inline-block; width: 5px; height: 11px; margin-right: 9px; vertical-align: -1px;
  background: var(--ink); border-radius: 0 0 2px 2px;
}

/* 最初の画面：ピアノのイラスト */
.hero-illust { margin: 0; color: var(--ink); }
.hero-illust svg { width: 100%; height: auto; display: block; max-width: 560px; margin: 0 auto; }
.hero-illust figcaption { margin-top: 8px; text-align: center; font-size: 12px; color: var(--ink-soft); }

/* 教室の写真の説明 */
.school-photo figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }

/* 最後のボタン帯：うっすらと五線譜 */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 49px; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .13) 0 1px, transparent 1px 12px);
}
.cta-band .container { position: relative; }

/* 鍵盤の帯（最後のボタン帯とフッターの間） */
.keys-band {
  height: 40px; background-color: #fff; border-top: 1px solid #232326;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154' height='40' viewBox='0 0 154 40'%3E%3Cg stroke='%23232326' stroke-width='1'%3E%3Cpath d='M0.5 0V40M22.5 0V40M44.5 0V40M66.5 0V40M88.5 0V40M110.5 0V40M132.5 0V40'/%3E%3C/g%3E%3Cg fill='%23232326'%3E%3Crect x='15' y='0' width='14' height='24' rx='1.5'/%3E%3Crect x='37' y='0' width='14' height='24' rx='1.5'/%3E%3Crect x='81' y='0' width='14' height='24' rx='1.5'/%3E%3Crect x='103' y='0' width='14' height='24' rx='1.5'/%3E%3Crect x='125' y='0' width='14' height='24' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center top;
}
@media (min-width: 960px) {
  .hero-illust svg { max-width: 600px; }
}


/* ---------- B2：やわらかさ・ピアノ教室らしさ ---------- */
/* 手書き風の一言 */
.hand {
  font-family: var(--hand); font-size: 18px; line-height: 1.6; color: var(--ink); margin-top: 14px;
  transform: rotate(-2deg); transform-origin: left center; letter-spacing: .04em;
}
.hand::before { content: "♪ "; color: var(--red); }
.hand-hero { text-align: center; transform-origin: center; margin-top: 10px; font-size: 19px; }
.hand-hero::before { content: "♪ "; color: var(--red); }
.hand-hero::after { content: " ♪"; color: var(--blue); }

/* ひとことイラスト（カット）：パソコンなど広い画面のみ */
.spot { display: none; width: 150px; height: auto; margin-top: 28px; color: var(--ink); }
.spot-sheet { transform: rotate(-3deg); }
.spot-bouquet { transform: rotate(4deg); }
@media (min-width: 960px) {
  .spot { display: block; }
}

/* 音符が、ゆっくり弾む */
.note { transform-box: fill-box; transform-origin: center bottom; animation: bob 4.4s ease-in-out infinite; }
.note-blue { animation-delay: -1.6s; }
.note-ink { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .note { animation: none; } }

/* 鍵盤の帯：触ると、鍵がへこむ（見た目だけ。音は鳴らない） */
.keys-band.is-built { background-image: none; display: flex; position: relative; overflow: hidden; height: 44px; background: #fff; }
.keys-band .wk { flex: none; width: 22px; height: 100%; border-right: 1px solid #232326; background: #fff; transition: background .12s, transform .12s; transform-origin: top; }
.keys-band .wk:first-child { border-left: 1px solid #232326; }
.keys-band .wk:hover, .keys-band .wk.down { background: #e7e4dc; transform: translateY(2px); }
.keys-band .bk { position: absolute; top: 0; width: 14px; height: 27px; background: #232326; border-radius: 0 0 2px 2px; transition: transform .12s; transform-origin: top; z-index: 1; }
.keys-band .bk:hover, .keys-band .bk.down { transform: translateY(2px); background: #3a3a3f; }
@media (prefers-reduced-motion: reduce) { .keys-band .wk, .keys-band .bk { transition: none; } }

/* スマホ：手書き風の一言は、後ろの♪を外して1行におさめる。教室の下に余白 */
@media (max-width: 719px) {
  .hand-hero::after { content: ""; }
  .hand-hero { font-size: 17px; }
}
.school { padding-bottom: 18px; }

/* 最初の画面：狭いスマホでも、中の長い文字で列が広がらないようにする */
.hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-text, .hero-side { min-width: 0; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}


/* ---------- 無料体験の申込みを、目に留まりやすく（2026-10-20） ---------- */
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta-edge); box-shadow: 0 5px 0 var(--cta-edge); }
.btn-primary:hover { opacity: 1; transform: translateY(2px); box-shadow: 0 3px 0 var(--cta-edge); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 var(--cta-edge); }
.btn-lg { min-height: 64px; font-size: clamp(16px, 4.6vw, 18px); border-radius: 4px; }
.cta-band .btn-light { background: var(--cta); color: var(--cta-ink); border-color: var(--cta-edge); box-shadow: 0 5px 0 var(--cta-edge); }
.cta-band .btn-light:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--cta-edge); }
.mb-primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta-edge); }

/* 最初の画面のボタン：「無料」の印と、ゆるやかな波紋 */
.cta-wrap { position: relative; display: block; }
.free-badge {
  position: absolute; left: -10px; top: -17px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #b3262c; color: #fff; font-weight: 700; font-size: 14px;
  transform: rotate(-10deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .22);
}
.cta-wrap .btn-primary { position: relative; }
.cta-wrap .btn-primary::after {
  content: ""; position: absolute; inset: -5px; border: 2px solid var(--cta); border-radius: 7px; opacity: 0;
  animation: ring 2.8s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { transform: scale(.97); opacity: .9; } 100% { transform: scale(1.06); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cta-wrap .btn-primary::after { animation: none; } }
.cta-note { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
@media (min-width: 720px) { .cta-wrap { display: inline-block; } }

/* ヘッダーの申込みボタン（広い画面） */
.header-cta { display: none; }
@media (min-width: 960px) {
  .header-cta {
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; margin-left: 4px; padding: 10px 18px;
    background: var(--cta); color: var(--cta-ink); border: 2px solid var(--cta-edge); border-radius: 4px;
    font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 3px 0 var(--cta-edge);
  }
  .header-cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--cta-edge); }
  .header-tel { margin-left: auto; }
}
@media (min-width: 1180px) {
  .header-tel { margin-left: 8px; }
  .gnav { margin-left: auto; }
}

/* ヘッダー：電話番号は折り返さない。広い画面では、ヘッダーの幅を広げる */
.header-tel-num { white-space: nowrap; }
@media (min-width: 1180px) {
  .site-header .container { max-width: 1240px; }
}

/* プレビューのバー：「案B」から入口に戻るリンク */
.bar-back { color: #f3dfb4; font-weight: 700; }
