/* ==========================================================
   あいみピアノ教室  —  site stylesheet
   Brand color: dusty blue #8A9AB0
   ========================================================== */

:root {
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --mist: #E7EBF1;
  --mist-2: #D5DCE6;
  --dusty: #8A9AB0;
  --dusty-deep: #56677F;
  --ink: #272E3A;
  --muted: #5E6778;
  --line: #D9DEE6;
  --ivory: #F4F0EA;
  --accent: #C4918A;
  --accent-deep: #8F5D56;
  --accent-soft: #F5E7E3;
  --on-dusty: #FFFFFF;
  --ok: #3F7A5E;
  --err: #A2433B;
  --err-bg: #F8ECEA;

  /* 見出し：サイトで使う字だけに絞った明朝体（fonts/）。本文：端末の標準ゴシック（読み込み待ちで字体が変わらない） */
  --f-display: "Aimi Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-latin: "Cormorant Garamond", Georgia, serif;
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(39, 46, 58, .04), 0 12px 32px -12px rgba(39, 46, 58, .14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #15191F;
    --surface: #1C2129;
    --mist: #212833;
    --mist-2: #2C3542;
    --dusty: #8FA0B8;
    --dusty-deep: #AEBED4;
    --ink: #E7EAF0;
    --muted: #A2AAB8;
    --line: #2F3845;
    --ivory: #1E2228;
    --accent: #D6A39C;
    --accent-deep: #E2B7B1;
    --accent-soft: #3A2E2C;
    --on-dusty: #10141A;
    --ok: #7CC2A0;
    --err: #F0A097;
    --err-bg: #3A2523;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15191F;
  --surface: #1C2129;
  --mist: #212833;
  --mist-2: #2C3542;
  --dusty: #8FA0B8;
  --dusty-deep: #AEBED4;
  --ink: #E7EAF0;
  --muted: #A2AAB8;
  --line: #2F3845;
  --ivory: #1E2228;
  --accent: #D6A39C;
  --accent-deep: #E2B7B1;
  --accent-soft: #3A2E2C;
  --on-dusty: #10141A;
  --ok: #7CC2A0;
  --err: #F0A097;
  --err-bg: #3A2523;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
}

/* ---------- fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-500.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-500i.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Aimi Mincho";
  src: url("../fonts/shippori-600.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  /* 約物（「」、。）の前後の余白を詰めて、日本語の字面を自然にする */
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  /* 改行は build 時に入れた <wbr>（文節の切れ目）でだけ。はみ出しそうな時だけ例外的に折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dusty-deep); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--dusty-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.5; letter-spacing: .06em; text-wrap: pretty; margin: 0; }
/* 明朝には palt を効かせない（カタカナの字間が不揃いになるため） */
h1, h2, h3, h4, .concept__quote, .cycle__node, .facts__value, .merits li, .day__name, .teacher__name, .slots__title, .timeline__what, .poster figcaption b, .brand__ja, .hero__badge strong, .course__price .yen, .cta__price, .step__no, .numbered li::before { font-feature-settings: normal; }
/* 文節で改行できるブラウザ(Chrome等)だけ行をそろえる。できないSafariでbalanceを使うと単語の途中で切れる */
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.nw { display: inline-block; }
figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 800px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; color: var(--dusty-deep); }
.brand__text { display: grid; line-height: 1.2; }
.brand__ja { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .12em; }
.brand__en { font-family: var(--f-latin); font-style: italic; font-size: 13px; letter-spacing: .08em; color: var(--muted); }

.gnav { margin-left: auto; }
.gnav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.gnav__list a {
  display: block; padding: 8px 11px; font-size: 14px; letter-spacing: .06em; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 8px; position: relative;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px;
  background: var(--dusty); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.gnav__list a:hover::after, .gnav__list a[aria-current="page"]::after { transform: scaleX(1); }
.gnav__list a[aria-current="page"] { color: var(--dusty-deep); }
.gnav__cta { margin-left: 8px; }
.gnav__ig a { display: flex; align-items: center; gap: 8px; }
.gnav__ig svg { width: 20px; height: 20px; }
.gnav__ig-label { display: none; }
.gnav__list .gnav__ig a::after { display: none; }
.gnav__list .gnav__cta a { color: var(--surface); display: inline-flex; justify-content: center; border-radius: 999px; }
.gnav__list .gnav__cta a::after { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid var(--dusty-deep);
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: .1em;
  text-decoration: none; cursor: pointer; line-height: 1.4;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn--primary { background: var(--dusty-deep); color: var(--surface); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn--ghost { background: transparent; color: var(--dusty-deep); }
.btn--ghost:hover { background: var(--dusty-deep); color: var(--surface); }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.header-cta { display: none; }
.menu-toggle {
  display: none; margin-left: 10px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s, background-color .3s;
}
.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { top: -6px; }
.menu-toggle__bar::after { top: 6px; }
.menu-open .menu-toggle__bar { background: transparent; }
.menu-open .menu-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .header-cta {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0;
    height: 40px; padding: 0 clamp(12px, 3.6vw, 18px); border-radius: 999px; background: var(--dusty-deep); color: var(--surface);
    font-size: clamp(12px, 3.4vw, 14px); font-weight: 700; letter-spacing: .06em; white-space: nowrap; text-decoration: none;
  }
  .header-cta:hover { background: var(--ink); color: var(--surface); }
  .site-header__inner { gap: clamp(8px, 2.5vw, 24px); }
  .brand { min-width: 0; gap: clamp(6px, 2vw, 12px); }
  .brand__mark { width: clamp(30px, 9vw, 40px); height: clamp(30px, 9vw, 40px); }
  .brand__ja { font-size: clamp(14px, 4.4vw, 19px); letter-spacing: clamp(.02em, .6vw, .12em); white-space: nowrap; }
  .brand__en { font-size: clamp(10px, 2.9vw, 13px); white-space: nowrap; }
  .menu-toggle { width: clamp(40px, 11vw, 46px); height: clamp(40px, 11vw, 46px); }
}
@media (max-width: 430px) {
  .site-header__inner { padding-inline: 12px; gap: 6px; }
  .brand { gap: 6px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__ja { font-size: clamp(13px, 4.1vw, 17px); letter-spacing: .02em; }
  .brand__en { font-size: 10px; letter-spacing: .02em; }
  .header-cta { height: 36px; padding: 0 clamp(9px, 2.8vw, 14px); font-size: clamp(11px, 3.2vw, 13px); letter-spacing: .02em; }
  .menu-toggle { width: 38px; height: 38px; margin-left: 6px; }
}
@media (max-width: 340px) { .brand__en { display: none; } }
  .gnav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
  }
  .menu-open .gnav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list li { border-bottom: 1px solid var(--line); }
  .gnav__list a { padding: 18px 4px; font-size: 16px; }
  .gnav__list a::after { display: none; }
  .gnav__ig-label { display: inline; }
  .gnav__ig svg { width: 18px; height: 18px; color: var(--dusty-deep); }
  .gnav__cta { margin: 28px 0 0; border-bottom: 0 !important; }
  .gnav__cta .btn { width: 100%; padding: 16px; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter があると fixed のメニューがヘッダー基準になって透けるので、開いている間は外す */
  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--mist { background: var(--mist); }
.section--surface { background: var(--surface); }
.section--warm { background: var(--ivory); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-latin); font-style: italic; font-size: 20px; letter-spacing: .06em;
  color: var(--accent-deep); line-height: 1; font-variant-numeric: lining-nums;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.h2 { font-size: clamp(24px, 3.2vw, 34px); }
.h3 { font-size: clamp(19px, 2.2vw, 22px); }
.lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); max-width: 40em; }
.section-head--center .lead { margin-inline: auto; }
.prose { max-width: 40em; display: grid; gap: 1.2em; }
.prose strong, .lead strong, .answer strong, .box p strong, .note-list strong, .feature p strong, .step p strong, .hero__sub strong, .field__hint strong, .course__desc strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 60%, var(--accent-soft) 60%); padding-inline: .05em; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px); background: linear-gradient(120deg, var(--ivory) 0%, var(--mist) 55%); }
.page-hero .ripple { position: absolute; right: -180px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.page-hero__inner { position: relative; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 44px); }
.page-hero p { color: var(--muted); max-width: 36em; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs li + li::before { content: "／"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); display: inline-block; padding-block: 8px; }

/* ---------- ripple motif (sound rings) ---------- */
.ripple circle { fill: none; stroke: var(--dusty); }
.ripple .r-fill { fill: color-mix(in srgb, var(--dusty) 14%, transparent); stroke: none; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--ivory) 0%, var(--mist) 50%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}
.hero__copy { display: grid; gap: 26px; position: relative; z-index: 2; }
.hero__place { font-size: 14px; letter-spacing: .14em; color: var(--dusty-deep); display: flex; align-items: center; gap: 10px; }
.hero__place::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.38; letter-spacing: .08em; font-weight: 600; }
.hero__title em { font-style: normal; color: var(--dusty-deep); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; z-index: -1;
  background: var(--accent-soft); border-radius: 2px;
  transform-origin: left; animation: mark 1.1s .5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__photo {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; width: 100%; max-width: 100%;
  border-radius: 240px 240px 18px 18px; overflow: hidden; background: var(--mist-2);
  box-shadow: var(--shadow);
}
.hero__photo picture { display: block; width: 100%; height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__rings { position: absolute; z-index: 0; left: 50%; top: 42%; width: 190%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero__rings circle { transform-origin: 50% 50%; transform-box: fill-box; }
.hero__badge {
  position: absolute; z-index: 2; left: 50%; bottom: -16px; transform: translateX(-50%);
  background: var(--surface); border-radius: 999px; padding: 7px 16px 7px 7px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.45; white-space: nowrap; color: var(--muted);
}
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 13px; color: var(--ink); }
.hero__badge-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--dusty); display: grid; place-items: center; color: var(--on-dusty); flex-shrink: 0; }
.hero__badge-dot svg { width: 15px; height: 15px; }
@media (min-width: 861px) {
  .hero__badge { padding: 9px 22px 9px 9px; gap: 12px; bottom: -20px; }
  .hero__badge strong { font-size: 16px; letter-spacing: .06em; }
  .hero__badge-dot { width: 36px; height: 36px; }
  .hero__badge-dot svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__rings .wave { animation: wave 6s linear infinite; opacity: 0; }
  .hero__rings .wave:nth-of-type(2) { animation-delay: 2s; }
  .hero__rings .wave:nth-of-type(3) { animation-delay: 4s; }
}
@keyframes focus-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
@keyframes focus-dot {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.12); }
}
@keyframes wave {
  0% { transform: scale(.55); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}

.hero__visual { margin-bottom: 16px; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(78%, 360px); }
}

/* ---------- key facts bar ---------- */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__item { padding: 22px 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.facts__item:first-child { border-left: 0; }
.facts__label { font-size: 12px; letter-spacing: .14em; color: var(--accent-deep); }
.facts__value { font-family: var(--f-display); font-size: 18px; font-weight: 600; line-height: 1.6; }
.facts__sub { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--accent-deep); letter-spacing: .04em; }
@media (max-width: 860px) {
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts__item { padding: 16px 14px; }
  .facts__value { font-size: 15px; }
}
@media (max-width: 560px) {
  .page-hero .ripple { right: -300px; opacity: .55; }
  .dl dt { font-size: 13px; letter-spacing: .02em; }
}

/* ---------- concept ---------- */
.concept { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.concept__body { display: grid; gap: 28px; }
.concept__quote { font-family: var(--f-display); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.8; letter-spacing: .06em; }
.cycle { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: center; }
.cycle svg { width: 100%; height: 100%; }
.cycle__node {
  position: absolute; transform: translate(-50%, -50%); width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; gap: 2px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(15px, 1.9vw, 20px); line-height: 1.45; padding: 8px; white-space: nowrap; letter-spacing: .02em;
}
.cycle__node small { font-family: var(--f-latin); font-style: italic; font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.cycle__node--a { left: 50%; top: 17%; background: var(--accent-soft); }
.cycle__node--b { left: 81%; top: 71%; }
.cycle__node--c { left: 19%; top: 71%; }
.cycle__center { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .concept { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.features:has(> .feature:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .features:has(> .feature:nth-child(3):last-child) .feature { grid-template-columns: 1fr; } .features:has(> .feature:nth-child(3):last-child) .feature__icon { grid-row: auto; } .features:has(> .feature:nth-child(3):last-child) .feature p, .features:has(> .feature:nth-child(3):last-child) .feature ul { grid-column: 1; } }
.feature { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-content: start; }
.feature__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--dusty-deep); display: grid; place-items: center; }
.feature:nth-child(2n) .feature__icon { background: var(--accent-soft); color: var(--accent-deep); }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 19px; align-self: center; }
.feature p { font-size: 15px; color: var(--muted); grid-column: 2; }
.feature ul { grid-column: 2; list-style: none; display: grid; gap: 4px; font-size: 14px; margin-top: 6px; }
.feature li { padding-left: 1.2em; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--dusty); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__icon { grid-row: auto; }
  .feature p, .feature ul { grid-column: 1; }
}
@media (max-width: 760px) {
  .features, .features:has(> .feature:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .features--scroll, .features--scroll:has(> .feature:nth-child(3):last-child) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .features--scroll::-webkit-scrollbar { display: none; }
  .features--scroll .feature { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---------- split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; background: var(--mist-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 22px; align-content: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } .split__media { aspect-ratio: 16 / 10; max-height: 380px; } }

/* ---------- courses / price ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.course--featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.course__tag { position: absolute; top: -12px; left: 24px; background: var(--accent-deep); color: var(--surface); font-size: 12px; letter-spacing: .1em; padding: 3px 12px; border-radius: 999px; }
.course__for { font-size: 13px; letter-spacing: .1em; color: var(--dusty-deep); }
.course h3 { font-size: 20px; }
.course__desc { font-size: 14px; color: var(--muted); }
.course__price { display: flex; align-items: baseline; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.course__price .yen { font-family: var(--f-display); font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.course__price .unit { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .courses { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .course { padding: 24px 20px; } }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { background: var(--mist); font-size: 13px; letter-spacing: .1em; font-weight: 500; color: var(--muted); }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table td.price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
@media (max-width: 600px) {
  .table { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody { display: block; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table th, .table td { padding: 0; border: 0; }
  .table tbody th { grid-column: 1; grid-row: 1; white-space: normal; }
  .table td.price { grid-column: 2; grid-row: 1; text-align: right; }
  .table td:not(.price) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--muted); }
}
.note-list { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.note-list li { padding-left: 1.3em; position: relative; }
.note-list li::before { content: "※"; position: absolute; left: 0; }
.u-mark { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* schedule */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.day { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; border: 1px solid var(--line); }
.day__name { font-family: var(--f-display); font-size: 22px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.day__name span { font-family: var(--f-latin); font-style: italic; font-size: 16px; color: var(--muted); font-weight: 500; }
.day__time { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
@media (max-width: 700px) {
  .days { grid-template-columns: 1fr; gap: 10px; }
  .day { padding: 14px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .day__name { font-size: 19px; }
  .day__time { font-size: 16px; }
}

/* ---------- steps (real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 10px; align-content: start; position: relative; }
.step__no { font-family: var(--f-display); font-size: 13px; letter-spacing: .12em; color: var(--accent-deep); line-height: 1.2; }
.step__no b { font-size: 34px; font-weight: 600; margin-left: 4px; }
.step h3 { font-size: 19px; }
.step p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- teacher teaser ---------- */
.teacher { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.teacher__photo { border-radius: 200px 200px 16px 16px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; justify-self: center; background: var(--mist-2); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 25%; }
.teacher__name { display: grid; gap: 2px; }
.teacher__name .ja { font-family: var(--f-display); font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: .14em; }
.teacher__name .en { font-family: var(--f-latin); font-style: italic; font-size: 18px; color: var(--muted); letter-spacing: .06em; }
.teacher__role { font-size: 13px; letter-spacing: .12em; color: var(--dusty-deep); }
/* 元画像が小さい写真用：拡大して粗く見えないよう小さめに */
.teacher__photo--sm { max-width: 280px; }
@media (max-width: 860px) { .teacher { grid-template-columns: 1fr; } .teacher__photo--sm { max-width: 220px; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); }

/* ---------- recital ---------- */
.recital { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.recital__photo { border-radius: var(--radius); overflow: hidden; }
.recital__photo img { width: 100%; }
.recital__caption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.timeline { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--mist-2); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 22px 26px; display: grid; gap: 2px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--dusty); }
.timeline li.is-latest::before { background: var(--accent); border-color: var(--accent); }
.timeline__when { font-size: 14px; letter-spacing: .06em; color: var(--dusty-deep); font-variant-numeric: tabular-nums; }
.timeline__what { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.timeline__where { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .recital { grid-template-columns: 1fr; } }

.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.poster { display: grid; gap: 10px; }
.poster__img { border-radius: 10px; overflow: hidden; background: var(--mist-2); aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.poster__img img { width: 100%; height: 100%; object-fit: cover; }
.poster figcaption { font-size: 14px; display: grid; gap: 0; line-height: 1.7; }
.poster figcaption b { font-family: var(--f-display); font-size: 16px; }
.poster figcaption span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .posters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .posters { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* ---------- voices ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { background: var(--surface); border-radius: var(--radius); padding: 32px 28px 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; position: relative; }
.voice__mark { font-family: var(--f-latin); font-size: 64px; line-height: .6; color: var(--accent); height: 24px; }
.voice blockquote { margin: 0; font-size: 15px; line-height: 2; }
.voice figcaption { font-size: 13px; color: var(--muted); letter-spacing: .08em; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .voices--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .voices--scroll::-webkit-scrollbar { display: none; }
  .voices--scroll .voice { flex: 0 0 82%; scroll-snap-align: center; }
}
.voices-hint { display: none; text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .08em; }
@media (max-width: 760px) { .voices-hint { display: block; } }

/* ---------- news ---------- */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 116px 140px 1fr 20px; gap: 16px; align-items: center; padding: 20px 4px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.news-item:hover { background: color-mix(in srgb, var(--mist) 60%, transparent); }
.news-item time { font-size: 14px; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item__cat { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--mist-2); color: var(--dusty-deep); justify-self: start; white-space: nowrap; }
.news-item__title { font-size: 15px; line-height: 1.7; }
.news-item svg { width: 16px; height: 16px; color: var(--dusty); }
@media (max-width: 700px) {
  .news-item { grid-template-columns: auto 1fr; gap: 6px 12px; }
  .news-item__title { grid-column: 1 / -1; }
  .news-item svg { display: none; }
}

.news-tools {
  display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.news-tools .filter-btn { flex-shrink: 0; white-space: nowrap; }
@media (hover: hover) and (min-width: 768px) { .news-tools { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; } }
.preview-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.filter-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 40px; font: inherit; font-size: 13px; cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--dusty-deep); border-color: var(--dusty-deep); color: var(--surface); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager button { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button[aria-current="true"] { background: var(--dusty-deep); color: var(--surface); border-color: var(--dusty-deep); }

.article { display: grid; gap: 24px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.article h1 { font-size: clamp(24px, 3.4vw, 32px); }
.article__body { white-space: pre-line; line-height: 2.05; font-size: 16px; }
.article__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.article__images:has(img:nth-child(4):last-child), .article__images:has(img:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.article__images img { border-radius: 10px; width: 100%; background: var(--mist-2); }
.article__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.article__nav a { display: inline-block; padding-block: 10px; }
@media (max-width: 560px) {
  .article__nav { flex-direction: column; gap: 0; }
  .article__nav a:last-child { align-self: flex-end; text-align: right; }
  .crumbs { flex-wrap: nowrap; }
  .crumbs li { flex-shrink: 0; }
  .crumbs li:last-child { flex: 1; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .faq summary { padding: 16px 44px 16px 16px; gap: 10px; }
  .faq summary::after { right: 18px; }
  .faq .answer { padding: 0 16px 18px 42px; }
}

/* ---------- instagram strip ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--mist-2); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ig-grid a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- access ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.dl dt, .dl dd { margin: 0; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt { color: var(--muted); font-size: 14px; letter-spacing: .08em; white-space: nowrap; padding-right: 16px; }
.map-card { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; border: 1px solid var(--line); }
.route { list-style: none; display: grid; gap: 12px; }
.route li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.route li:last-child { border-bottom: 0; padding-bottom: 0; }
.route b { font-weight: 500; }
.route small { display: block; color: var(--muted); font-size: 12px; }
.route span { font-variant-numeric: tabular-nums; color: var(--dusty-deep); white-space: nowrap; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-weight: 500; display: flex; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-latin); font-size: 22px; line-height: 1.2; color: var(--accent-deep); }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 24px 22px 60px; color: var(--muted); font-size: 15px; display: grid; gap: .8em; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 80% at 20% 50%, color-mix(in srgb, var(--accent) 22%, var(--dusty-deep)) 0%, var(--dusty-deep) 70%); color: var(--surface); }
.cta .ripple { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); opacity: .35; pointer-events: none; }
.cta .ripple circle { stroke: var(--surface); }
.cta__inner { position: relative; text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: clamp(64px, 9vw, 104px); }
.cta .eyebrow { color: color-mix(in srgb, var(--surface) 80%, transparent); }
.cta .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); }
.cta p { max-width: 34em; color: color-mix(in srgb, var(--surface) 86%, transparent); }
.cta__price { font-family: var(--f-display); font-size: 18px; }
.cta__price b { font-family: var(--f-display); font-size: 30px; color: #F2DAD5; font-weight: 600; margin-inline: 4px; }
.cta .btn--primary { background: var(--surface); color: var(--dusty-deep); border-color: var(--surface); }
.cta .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .cta, :root[data-theme="dark"] .cta h2 { color: var(--on-dusty); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #3E4B5F; } }
:root[data-theme="dark"] .cta { background: #3E4B5F; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer__about { display: grid; gap: 14px; align-content: start; color: var(--muted); }
.site-footer h2 { font-family: var(--f-latin); font-style: italic; font-weight: 500; font-size: 18px; letter-spacing: .06em; color: var(--dusty-deep); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 0; }
.site-footer ul a { display: block; padding: 8px 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer ul a { word-break: keep-all; }
.ig-link { padding-block: 8px; }
.site-footer a:hover { color: var(--dusty-deep); text-decoration: underline; }
.site-footer__bottom a { display: inline-block; padding-block: 10px; }
.site-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-link svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .site-footer__about { grid-column: 1 / -1; } }

/* mobile sticky CTA */
.float-cta { display: none; }
@media (max-width: 760px) {
  .float-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    transform: translateY(140%); transition: transform .35s ease;
  }
  .float-cta.is-visible { transform: none; }
  .float-cta .btn { width: 100%; box-shadow: var(--shadow); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body:not(:has(.float-cta)) .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 28px; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.field { display: grid; gap: 10px; }
.field__label { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.req, .opt { font-size: 11px; padding: 1px 8px; border-radius: 4px; letter-spacing: .08em; font-weight: 500; }
.req { background: var(--accent-deep); color: var(--surface); }
.opt { background: var(--mist); color: var(--muted); }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--dusty-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dusty) 30%, transparent); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--err); }
.field__error { font-size: 13px; color: var(--err); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--dusty-deep); border-color: var(--dusty-deep); color: var(--surface); }
.choice input:focus-visible + span { outline: 2px solid var(--dusty-deep); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: .45em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--dusty-deep); }
.form__actions { display: grid; justify-items: center; gap: 12px; }
.form__actions .btn { min-width: 260px; }
.form__actions .btn[disabled] { opacity: .6; cursor: wait; }
.panel { border-radius: 12px; padding: 20px 24px; display: grid; gap: 8px; font-size: 15px; }
.panel--ok { background: var(--mist); }
.panel--ok h3 { color: var(--ok); }
.panel--err { background: var(--err-bg); color: var(--ink); }
.panel--err h3 { color: var(--err); }
.panel h3 { font-size: 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; gap: 28px; } .pill-note { border-radius: 12px; } .form__actions .btn { min-width: 0; width: 100%; } }

/* ---------- misc blocks ---------- */
.pill-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-2--photos { max-width: 720px; }
@media (max-width: 860px) { .grid-2--photos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-2--photos { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }
.box { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.box--line { border: 1px solid var(--line); }
.box h3 { font-size: 18px; }
.box p { font-size: 15px; color: var(--muted); }
.numbered { list-style: none; display: grid; gap: 12px; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: 12px; padding: 14px 18px; }
.numbered li::before { content: counter(n); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--dusty-deep); font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.numbered li.is-focus { background: var(--accent-deep); color: var(--surface); }
/* 4つのこと（タブ） */
.elements { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.elements .numbered li { padding: 0; }
.elements .numbered button { all: unset; box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 72px; padding: 14px 18px; cursor: pointer; border-radius: 12px; }
.elements .numbered li { grid-template-columns: 44px 1fr; padding-left: 18px; }
.elements .numbered button { padding-left: 0; }
.elements .numbered li:not(.is-focus):hover { background: color-mix(in srgb, var(--surface) 70%, var(--accent-soft)); }
.elements .numbered button:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.elements .numbered li:not(.is-focus) .numbered__tag { background: var(--accent-soft); color: var(--accent-deep); }
.elements__panel { animation: panel-in .35s ease; }
/* スマホ：開閉が分かるように＋／−の印 */
@media (max-width: 860px) {
  .elements .numbered button { padding-right: 44px; position: relative; }
  .elements .numbered button::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; background: var(--accent-soft); color: var(--accent-deep); transition: transform .3s; }
  .elements .numbered li.is-open button::after { content: "−"; background: var(--surface); color: var(--accent-deep); }
  .elements .numbered .elements__panels { margin-top: -4px; }
  .elements__panel { animation: panel-drop .35s ease; }
}
@keyframes panel-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .elements { grid-template-columns: 1fr; }
  .elements .numbered .elements__panels { list-style: none; }
}
.numbered li.is-focus::before { background: var(--surface); }
.numbered__tag { display: inline-block; margin-left: 8px; font-size: 11px; letter-spacing: .08em; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 22%, transparent); vertical-align: 2px; }
.types { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.types li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 15px; }
.merits { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.merits li { background: var(--surface); border-top: 3px solid var(--accent-soft); border-radius: 12px; padding: 20px 12px; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.6; display: grid; place-items: center; min-height: 104px; }
@media (max-width: 860px) { .merits { grid-template-columns: 1fr 1fr; gap: 10px; } .merits li { font-size: 15px; min-height: 92px; } }
.career { list-style: none; display: grid; gap: 10px; }
.career li { position: relative; padding-left: 20px; }
.career li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 1px; background: var(--dusty-deep); }
.message { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; position: relative; overflow: hidden; }
.message .ripple { position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; opacity: .6; }
.message > *:not(.ripple) { position: relative; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-row figure { margin: 0; display: grid; gap: 8px; }
.photo-row img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--mist-2); }
.photo-row figcaption { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .photo-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-row figure:nth-child(3):last-child { grid-column: 1 / -1; }
  .photo-row figure:nth-child(3):last-child img { aspect-ratio: 16 / 9; }
}
.photo-row img.contain { object-fit: contain; background: #fff; }
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.mt-m { margin-top: 24px; }
.stack { display: grid; gap: clamp(40px, 6vw, 64px); }
.stack-s { display: grid; gap: 16px; }

/* ---------- vacancy (空き枠) ---------- */
.slots { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.slots__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.slots__title { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.slots__updated { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.slots__day { display: grid; gap: 8px; align-content: start; }
.slots__name { font-weight: 500; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.slots__list { list-style: none; display: grid; gap: 6px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; padding: 7px 12px; border-radius: 8px; }
.slot--open { background: var(--accent-soft); }
.slot--open .slot__state { color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.slot--full { color: var(--muted); }
.slot--full .slot__time { text-decoration: line-through; text-decoration-color: var(--mist-2); }
.slot--full .slot__state { font-size: 13px; }
.slots__note, .slots__fallback { font-size: 14px; color: var(--muted); }
.slots:empty { display: none; }

.admin-days { display: grid; gap: 16px; }
.admin-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.admin-slots { list-style: none; display: grid; gap: 8px; }
.admin-slot { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.admin-slot .input { padding: 10px 12px; }
.admin-toggle { font: inherit; font-size: 14px; font-weight: 500; min-width: 88px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; }
.admin-toggle.is-open { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--surface); }
.admin-del { font: inherit; font-size: 13px; padding: 10px 8px; border: 0; background: none; color: var(--err); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.admin-day .btn { justify-self: start; }
.admin-day__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-day__head .select { width: auto; min-width: 130px; font-family: var(--f-display); font-weight: 600; font-size: 18px; padding: 8px 12px; }
.admin-addday { justify-self: start; }

/* ---------- about: 成長のフロー・性格のシャボン玉・写真 ---------- */
.growth { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; position: relative; }
.growth__step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px 24px 24px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.growth__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -34px; width: 24px; height: 24px; transform: translateY(-50%); background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.growth__no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.growth__step:last-child .growth__no { background: var(--accent-deep); color: var(--surface); }
.growth h3 { font-size: 18px; }
.growth p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .growth { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .growth__step:not(:last-child)::after { top: auto; bottom: -32px; right: 50%; transform: translateX(50%) rotate(90deg); }
}

.bubbles { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; padding-block: 8px; }
.bubbles li { width: calc(112px * var(--s, 1)); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink); padding: 10px;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, transparent 9%), radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--surface) 70%, transparent) 0 55%, color-mix(in srgb, var(--dusty) 22%, transparent) 75%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dusty) 35%, transparent), 0 8px 20px -12px rgba(39, 46, 58, .35); }
@media (prefers-reduced-motion: no-preference) {
  .bubbles li { animation: bubble-float 6s ease-in-out var(--d, 0s) infinite; }
}
@keyframes bubble-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.cloud-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.cloud-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); opacity: .9; }
@media (max-width: 860px) { .cloud-photo { width: 78%; } }

.photo-bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 3vw, 32px); max-width: 720px; margin-inline: auto; }
.photo-bubbles figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.photo-bubbles .bub { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-soft), var(--shadow); }
.photo-bubbles img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transform: scale(1.7); }
.photo-bubbles figcaption { font-size: 12px; color: var(--muted); line-height: 1.5; }
.photo-row--2 { grid-template-columns: 1fr 1fr; max-width: 640px; }

/* ---------- admin: tabs & news ---------- */
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.admin-tabs button { font: inherit; font-size: 15px; font-weight: 500; padding: 12px 20px; border: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-deep); }
.news-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.news-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.admin-posts { list-style: none; display: grid; gap: 8px; }
.admin-post { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.admin-post small { color: var(--muted); font-size: 12px; }
.admin-post .admin-del { grid-row: span 2; }
.panel .btn { margin-top: 8px; }

/* ---------- reveal (content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 4つの要素リスト：1行ずつ順に現れ、2番目が一度だけ脈打つ */
  .js .numbered li { opacity: 0; transform: translateX(-16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
  .js .numbered.is-in li, .js .is-in .numbered li { opacity: 1; transform: none; }
  .numbered li:nth-child(2) { transition-delay: .15s; }
  .numbered li:nth-child(3) { transition-delay: .3s; }
  .numbered li:nth-child(4) { transition-delay: .45s; }
  .js .is-in .numbered li.is-focus, .js .numbered.is-in li.is-focus { animation: focus-pulse 1.4s 1s ease-out 2; }
  .js .is-in .numbered li.is-focus::before, .js .numbered.is-in li.is-focus::before { animation: focus-dot 1.4s 1s ease-out 2; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
