/* 横山ピアノ教室 — 新しいA案「レッスンノート」
   クリーム色のドット方眼の紙。赤ペン＝センター北、青ペン＝あざみ野。手書き風の見出し、ポラロイド、付箋、チケット */

:root {
  --paper: #f7f1e3;
  --paper-2: #efe6d2;
  --ink: #2b2926;
  --ink-soft: #5f5a52;
  --line: #d9ceb6;
  --red: #bb2d2f;
  --blue: #1f56a5;
  --yellow: #ffe27a;
  --marker: rgba(255, 213, 79, .62);
  --white: #fffdf8;
  --shadow: 0 1px 0 rgba(60, 50, 30, .05), 0 10px 22px rgba(60, 50, 30, .16);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", cursive;
  --header-h: 68px;
  --wash: rgba(239, 230, 210, .7);
  --tape: rgba(255, 213, 79, .65);
  --tape-strong: rgba(255, 213, 79, .8);
  --stub: rgba(255, 213, 79, .35);
  --c3: #e0a300;
  --dot: rgba(70, 58, 34, .17);
  --ph1: #efe7d3;
  --ph2: #e8dec6;
}

/* 色の見本 2：ミント（芝生の緑）。付箋も、紙も、やわらかい緑 */
:root[data-palette="2"] {
  --paper: #f1f6ea;
  --line: #cfdcc0;
  --yellow: #cde8a4;
  --marker: rgba(150, 205, 90, .5);
  --wash: rgba(223, 236, 205, .75);
  --tape: rgba(150, 205, 90, .65);
  --tape-strong: rgba(150, 205, 90, .85);
  --stub: rgba(185, 222, 140, .45);
  --c3: #6aa84f;
  --dot: rgba(40, 78, 36, .17);
  --ph1: #e2edd3;
  --ph2: #d9e6c6;
}

/* 色の見本 3：さくら（やさしいピンク） */
:root[data-palette="3"] {
  --paper: #fbf2ef;
  --line: #e6cfd0;
  --yellow: #ffd2da;
  --marker: rgba(255, 160, 184, .5);
  --wash: rgba(247, 225, 227, .75);
  --tape: rgba(255, 160, 184, .65);
  --tape-strong: rgba(255, 160, 184, .85);
  --stub: rgba(255, 200, 212, .5);
  --c3: #e57b92;
  --dot: rgba(110, 56, 68, .15);
  --ph1: #f3e2e2;
  --ph2: #ecd7d8;
}

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

body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  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; }
mark { background: none; color: inherit; background-image: linear-gradient(transparent 58%, var(--marker) 58%); padding: 0 .08em; }
strong { font-weight: 700; background-image: linear-gradient(transparent 70%, var(--marker) 70%); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.page-wide { max-width: 980px; }
.ib { display: inline-block; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); 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; background: none; }
.notice-band { background: var(--yellow); border-bottom: 1px dashed rgba(43, 41, 38, .45); 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; font-family: var(--hand); font-weight: 600; color: var(--red); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px dashed var(--line); }
.site-header.is-scrolled { box-shadow: 0 8px 20px rgba(60, 50, 30, .08); }
.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; background-image: linear-gradient(transparent 62%, transparent 62%); }
.gnav a:hover { background-image: linear-gradient(transparent 62%, var(--marker) 62%); }
.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: 2.5px; background: currentColor; border-radius: 2px; 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(7.5px) 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(-7.5px) rotate(-45deg); }
.drawer { border-top: 2px dashed var(--line); background: var(--paper); 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 dashed 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; background: var(--yellow); border-radius: 3px; text-decoration: none; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.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: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 3px 4px 0 var(--red); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--red); }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: 3px 4px 0 var(--blue); }
.btn-outline:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--blue); }
.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%; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.link-hand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hand); font-weight: 600; font-size: 18px; text-decoration: none; background-image: linear-gradient(transparent 80%, var(--marker) 80%); }
.link-hand:hover { background-image: linear-gradient(transparent 55%, var(--marker) 55%); }
.link-hand span[aria-hidden] { display: inline-block; transition: transform .2s; }
.link-hand:hover span[aria-hidden] { transform: translateX(4px); }
.links-hand { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section-wash { background: var(--wash); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.no { font-family: var(--hand); font-weight: 600; font-size: 15px; color: var(--red); transform: rotate(-3deg); transform-origin: left; display: inline-block; margin-bottom: 2px; }
.h-note { font-family: var(--hand); font-weight: 600; font-size: clamp(27px, 7vw, 36px); line-height: 1.4; }
.h-note span { background-image: linear-gradient(transparent 62%, var(--marker) 62%); padding: 0 .18em; margin-left: -.18em; }
.lead-note { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 最初の画面 ---------- */
.hero { padding: 40px 0 56px; }
.hero .page { text-align: center; }
.tape-tag { display: inline-block; margin-bottom: 18px; transform: rotate(-1.5deg); }
.tape-tag span { display: inline-block; background: var(--tape-strong); padding: 4px 18px; font-family: var(--hand); font-weight: 600; font-size: 15px; box-shadow: 0 2px 0 rgba(0, 0, 0, .06); clip-path: polygon(2% 0, 98% 0, 100% 50%, 98% 100%, 2% 100%, 0 50%); }
.hero-copy { font-family: var(--hand); font-weight: 600; font-size: clamp(31px, 8.6vw, 54px); line-height: 1.5; letter-spacing: .03em; }
.hero-lead { margin: 18px auto 0; max-width: 34em; color: var(--ink-soft); font-size: 15.5px; text-align: left; }
.pens { margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.pen { font-family: var(--hand); font-weight: 600; font-size: 17px; padding: 2px 4px; }
.pen-red { background-image: linear-gradient(transparent 60%, rgba(187, 45, 47, .26) 60%); color: #8c1d20; }
.pen-blue { background-image: linear-gradient(transparent 60%, rgba(31, 86, 165, .26) 60%); color: #174482; }
.hero-grid { margin-top: 34px; display: grid; gap: 30px; align-items: center; }
.hero-cta { margin-top: 34px; position: relative; display: inline-block; }
.hero-cta .btn-lg { width: 100%; }
.stamp { position: absolute; right: -14px; top: -34px; width: 64px; height: 64px; border: 3px solid var(--red); color: var(--red); border-radius: 50%; display: grid; place-items: center; font-family: var(--hand); font-weight: 600; font-size: 14px; line-height: 1.2; transform: rotate(14deg); background: rgba(255, 253, 248, .7); }
.stamp span { text-align: center; }

/* 付箋 */
.postit { position: relative; background: var(--yellow); padding: 26px 22px 20px; border-radius: 2px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); }
.postit::before { content: ""; position: absolute; top: -13px; left: 50%; width: 86px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 253, 248, .6); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.postit-contact { text-align: left; }
.postit-lead { font-family: var(--hand); font-weight: 600; font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.big-contact { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; border-top: 1.5px dashed rgba(43, 41, 38, .35); }
.big-contact-kind { flex: none; width: 3.2em; font-size: 13px; }
.big-contact-value { font-size: clamp(20px, 6.6vw, 28px); 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; }
.postit-hours { margin-top: 6px; font-size: 13px; }

/* ポラロイド */
.polaroid { position: relative; margin: 0; background: var(--white); padding: 10px 10px 40px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); }
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); z-index: 1; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; font-family: var(--hand); font-size: 14px; line-height: 1.4; text-align: center; color: var(--ink-soft); }
.polaroid-img { width: 100%; aspect-ratio: 4 / 3; }
.placeholder-img { background: repeating-linear-gradient(45deg, var(--ph1) 0 10px, var(--ph2) 10px 20px); }
.placeholder-img.portrait { aspect-ratio: 4 / 5; }

/* ---------- レッスンのしくみ：チェックリスト ---------- */
.checks { margin-top: 26px; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.chk { width: 24px; height: 24px; margin-top: 4px; border: 2px solid var(--ink); border-radius: 4px; position: relative; background: var(--white); }
.chk::after { content: "✓"; position: absolute; left: 3px; top: -9px; font-family: var(--hand); font-weight: 600; font-size: 26px; color: var(--red); transform: rotate(-6deg); }
.lbl { display: inline-block; margin-right: 10px; font-family: var(--hand); font-weight: 600; font-size: 16px; color: #fff; background: var(--ink); padding: 0 10px; border-radius: 3px; line-height: 1.7; vertical-align: 1px; }

/* ---------- 2つの教室 ---------- */
.school-pair { margin-top: 38px; display: grid; gap: 54px; }
.school { text-align: left; }
.school .polaroid { margin-bottom: 22px; }
.school-area { font-family: var(--hand); font-weight: 600; font-size: 14px; }
.school-red .school-area { color: var(--red); }
.school-blue .school-area { color: var(--blue); }
.school h3 { font-family: var(--hand); font-size: 23px; margin: 2px 0 12px; }
.hl-red { background-image: linear-gradient(transparent 58%, rgba(187, 45, 47, .26) 58%); padding: 0 .12em; }
.hl-blue { background-image: linear-gradient(transparent 58%, rgba(31, 86, 165, .26) 58%); padding: 0 .12em; }
.info { display: grid; gap: 4px; font-size: 14.5px; margin-bottom: 14px; }
.info div { display: grid; grid-template-columns: 3em 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.info dt { font-weight: 700; color: var(--ink-soft); }
.info dd { margin: 0; }

/* ---------- レッスン案内：赤ペンの丸 ---------- */
.lesson-list { margin-top: 28px; display: grid; gap: 30px; }
.lesson-list li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
.circ { display: grid; place-items: center; width: 80px; height: 66px; border: 3px solid var(--red); border-radius: 52% 48% 50% 50% / 55% 45% 55% 45%; transform: rotate(-4deg); font-family: var(--hand); font-weight: 600; font-size: 20px; color: var(--red); background: rgba(255, 253, 248, .6); }
.lesson-list li:nth-child(2) .circ { transform: rotate(3deg); border-radius: 48% 52% 46% 54% / 50% 50% 50% 50%; }
.lesson-list h3 { font-family: var(--hand); font-size: 20px; margin-bottom: 4px; }
.lesson-list p { font-size: 15px; color: var(--ink-soft); }
.small-tags { margin-top: 6px; font-size: 13px; }

/* ---------- 無料体験の流れ ---------- */
.flow { margin-top: 30px; display: grid; gap: 6px; text-align: center; }
.flow li { position: relative; }
.flow-no { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 50%; font-family: var(--hand); font-weight: 600; font-size: 26px; background: var(--white); transform: rotate(-4deg); }
.flow h3 { font-family: var(--hand); font-size: 20px; margin: 6px 0 2px; }
.flow p { font-size: 14.5px; color: var(--ink-soft); max-width: 18em; margin: 0 auto; }
.flow-arrow { font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--red); transform: rotate(90deg); }
.flow-cta { margin-top: 34px; text-align: center; }
.flow-cta .btn-lg { width: 100%; max-width: 420px; }
.flow-alt { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }
.flow-alt a { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- 新着 ---------- */
.news-list { margin: 22px 0 26px; border-top: 2px dashed var(--line); }
.news-list li { border-bottom: 2px dashed 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-family: var(--hand); font-weight: 600; font-size: 14px; color: var(--blue); }
.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; font-family: var(--hand); font-size: 22px; color: var(--red); }
.news-list a:hover .news-title { background-image: linear-gradient(transparent 62%, var(--marker) 62%); }
.news-fallback { margin: 22px 0 22px; padding: 18px 16px; background: var(--white); border: 2px dashed var(--line); font-size: 15px; color: var(--ink-soft); }
.news-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 講師：手紙 ---------- */
.teacher { display: grid; gap: 40px; align-items: center; }
.teacher-polaroid { max-width: 320px; width: 100%; margin: 0 auto; }
.letter { background: var(--white); padding: 30px 24px 26px; box-shadow: var(--shadow); background-image: repeating-linear-gradient(transparent 0 33px, rgba(31, 86, 165, .13) 33px 34px); background-position: 0 14px; }
.teacher-name { margin-top: 14px; font-family: var(--hand); font-size: 25px; font-weight: 600; }
.teacher-role { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.teacher-quote { margin: 14px 0 16px; padding: 0; font-family: var(--hand); font-size: 16px; line-height: 2.1; }
.teacher-quote p + p { margin-top: 6px; }
.teacher-bio { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; display: grid; gap: 4px; background: rgba(255, 253, 248, .85); }
.teacher-bio li { padding-left: 1em; text-indent: -1em; }
.teacher-bio li::before { content: "・"; }

/* ---------- 発表会：チケット ---------- */
.tickets { margin-top: 28px; display: grid; gap: 18px; }
.ticket { position: relative; display: grid; grid-template-columns: 8.2em 1fr; background: var(--white); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 rgba(43, 41, 38, .18); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 8.2em; width: 18px; height: 18px; margin-left: -9px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.ticket::before { top: -10px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.ticket-stub { display: grid; place-items: center; padding: 14px 8px; text-align: center; font-family: var(--hand); font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--red); border-right: 2px dashed var(--ink); background: var(--stub); }
.ticket-body { padding: 14px 16px; font-size: 14.5px; }

/* ---------- 関連サービス ---------- */
.memos { margin-top: 28px; display: grid; gap: 16px; }
.memo { background: var(--white); padding: 16px 18px 16px 22px; border-left: 8px solid var(--c, var(--red)); box-shadow: var(--shadow); }
.memo-1 { --c: var(--red); }
.memo-2 { --c: var(--blue); }
.memo-3 { --c: var(--c3); }
.memo h3 { font-family: var(--hand); font-size: 19px; margin-bottom: 2px; }
.memo p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 最後：大きな付箋 ---------- */
.cta { padding: 64px 0 56px; }
.postit-cta { text-align: center; padding: 38px 20px 30px; }
.cta-title { font-family: var(--hand); font-size: clamp(25px, 6.4vw, 36px); }
.cta-lead { margin: 10px auto 22px; font-size: 15px; }
.postit-cta .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; margin-right: 10px; letter-spacing: 0; }

/* ---------- フッター ---------- */
.site-footer { padding: 0 0 20px; font-size: 14px; background: var(--wash); }
.cut-line { height: 26px; border-top: 2px dashed var(--ink-soft); position: relative; margin-bottom: 30px; }
.cut-line span { position: absolute; left: 22px; top: -17px; font-size: 22px; background: var(--paper); padding: 0 6px; color: var(--ink-soft); }
.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: 10px; height: 10px; 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: 30px; 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(--paper); border-top: 2px dashed var(--ink-soft); }
.mb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; text-decoration: none; font-size: 12.5px; font-weight: 700; border: 2px solid var(--ink); line-height: 1.3; cursor: pointer; background: var(--yellow); }
.mb-icon { font-size: 18px; line-height: 1.1; }
.mb-primary { background: var(--ink); color: #fff; font-size: clamp(13px, 3.9vw, 15px); white-space: nowrap; }

/* プレビューの説明（申込みボタン） */
.preview-dialog { border: 0; border-radius: 6px; 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: var(--white); }
.preview-dialog::backdrop { background: rgba(43, 41, 38, .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: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }

.coming { padding: 80px 20px 100px; text-align: center; }
.coming h1 { font-family: var(--hand); 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; }
  .page { padding: 0 32px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero-cta .btn-lg { width: auto; }
  .school-pair { grid-template-columns: 1fr 1fr; gap: 48px; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 6px; }
  .flow-arrow { transform: none; padding-top: 10px; }
  .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; }
  .lesson-list li { grid-template-columns: 110px 1fr; gap: 24px; }
  .circ { width: 100px; height: 78px; font-size: 22px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .header-tel { display: block; margin-left: auto; padding-right: 16px; border-right: 2px dashed var(--line); }
  .menu-btn { margin-left: 0; }
  .logo img { width: 190px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 76px 0; }
  .teacher { grid-template-columns: 300px 1fr; gap: 56px; }
  .tickets { grid-template-columns: 1fr; }
  .memos { grid-template-columns: repeat(3, 1fr); }
  .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: 1080px) {
  .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: 2px dashed var(--line); }
}

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

/* ---------- 調整（2026-10-20） ---------- */
/* 傾けた写真・付箋が、狭い画面で横にはみ出さないようにする */
main { overflow-x: clip; }
/* 手紙：罫線をやめ、赤い余白の線だけにする */
.letter { background-image: linear-gradient(to right, transparent 30px, rgba(187, 45, 47, .35) 30px, rgba(187, 45, 47, .35) 32px, transparent 32px); padding-left: 46px; }
/* スタンプ：ボタンの文字にかからない位置へ */
.stamp { right: -30px; top: -40px; }
@media (max-width: 719px) {
  .stamp { right: -6px; top: -42px; width: 58px; height: 58px; font-size: 13px; }
  .hero-cta { display: block; }
}
/* スマホの下の固定ボタン：狭い画面でもはみ出さない */
.mobile-bar { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 2fr); }
.mb-item { min-width: 0; padding: 0 4px; }


/* プレビューのバー：色の見本の切り替え */
.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); }

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