/* ═══════════════════════════════════════════════
   明石現ギターコーチング 〜6弦 & 11弦ギター〜
   Cream · White · Navy — heritage, refined & light
   ═══════════════════════════════════════════════ */

:root {
  /* light grounds */
  --paper: #ffffff;
  --cream: #f4eee1;          /* cream-white sections */
  --cream-soft: #faf6ec;     /* lightest cream (hero/page) */
  --cream-deep: #e9dfc9;

  /* navy family */
  --navy: #15294b;           /* primary navy */
  --navy-deep: #0d1c34;      /* darkest (image panels / footer) */
  --navy-mid: #1d3a64;
  --navy-tint: #eef1f7;      /* faint navy wash for fills */

  /* ink / text */
  --ink: #20293a;            /* body text */
  --ink-soft: #5a6577;       /* muted */
  --on-navy: #eef2f8;        /* text on navy */
  --on-navy-dim: #9fb0c9;

  --line: rgba(21, 41, 75, 0.16);
  --line-soft: rgba(21, 41, 75, 0.08);
  --line-on-navy: rgba(255, 255, 255, 0.16);

  --grad-navy: linear-gradient(120deg, #1d3a64 0%, #15294b 50%, #24477c 100%);

  --ff-serif: "Shippori Mincho", "Cormorant Garamond", serif;
  --ff-display: "Cormorant Garamond", "Shippori Mincho", serif;
  --ff-deco: "Cinzel", serif;
  --ff-sans: "Zen Kaku Gothic New", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;

  /* ── fluid TYPE scale — clamp(min @360 · preferred(vw) · max @1440) ── */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.90rem);   /* meta / caption */
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);   /* body / lead */
  --step-1:  clamp(1.18rem, 1.06rem + 0.55vw, 1.45rem);   /* card titles */
  --step-2:  clamp(1.55rem, 1.30rem + 1.10vw, 2.10rem);   /* sub-display */
  --step-3:  clamp(1.85rem, 1.42rem + 2.05vw, 2.70rem);   /* section title-jp */
  --hero-jp: clamp(2.30rem, 1.55rem + 3.55vw, 4.40rem);   /* hero headline */
  --price:   clamp(2.80rem, 2.10rem + 3.20vw, 3.80rem);   /* count-up value */

  /* ── fluid SPACE scale — single source of section / grid rhythm ── */
  --space-2xs: clamp(0.50rem, 0.45rem + 0.25vw, 0.75rem);
  --space-xs:  clamp(0.85rem, 0.74rem + 0.50vw, 1.30rem);
  --space-s:   clamp(1.20rem, 1.00rem + 0.85vw, 1.90rem);
  --space-m:   clamp(1.90rem, 1.55rem + 1.55vw, 3.10rem);
  --space-l:   clamp(2.60rem, 2.00rem + 3.00vw, 4.40rem);
  --section-y: clamp(3.80rem, 2.60rem + 4.20vw, 6.80rem);

  /* container + fluid gutter (replaces fixed 2rem); safe-area aware */
  --gutter: clamp(1.25rem, 0.80rem + 2.20vw, 2rem);
  --gutter-safe: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  --maxw-text: 64ch;             /* prose measure cap (About / Contact intro) */

  /* ── photo-treatment tokens (navy / cream only) ── */
  --key-x: 68%; --key-y: 18%;             /* single key-light origin (top-right) */
  --keylight: rgba(244, 228, 200, 0.30);  /* cream key bloom */
  --keyrim:   rgba(244, 228, 200, 0.10);  /* 1px warm-cream hair-light edge */
  --cool-bloom: rgba(58, 96, 150, 0.42);  /* navy-cool radial bloom (price + panels) */
  --cast:   rgba(7, 16, 31, 0.60);        /* depth cast into the dark */
  --ground: rgba(5, 11, 22, 0.62);        /* contact shadow */
  --mat-keyline: rgba(238, 242, 248, 0.22);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  background: var(--cream-soft);
  color: var(--ink);
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--navy); color: var(--cream-soft); }

/* ═══ Loader ═══ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream-soft);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.loader__mark {
  font-family: var(--ff-deco); font-size: 2.6rem; letter-spacing: 0.3em;
  color: var(--navy); padding-left: 0.3em;
}
.loader__amp { color: var(--navy-mid); }
.loader__line {
  width: 0; height: 1px; background: var(--navy);
  animation: loaderLine 1.4s var(--ease) forwards;
}
@keyframes loaderLine { 0% { width: 0; opacity: 0; } 100% { width: 180px; opacity: 1; } }

/* ═══ Particle canvas (faint navy texture) ═══ */
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; }

/* ═══ Navigation ═══ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: padding 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  -webkit-user-select: none; user-select: none;
}
/* Scrolled background + blur live on a ::before layer — NOT on .nav itself —
   so .nav never becomes the containing block for the position:fixed mobile
   drawer (backdrop-filter would do that, collapsing the drawer to the bar's
   height once scrolled). */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 246, 236, 0.86); opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.nav.is-scrolled::before {
  opacity: 1;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(21, 41, 75, 0.5);
  padding: 0.85rem 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter-safe);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-main { font-family: var(--ff-deco); font-size: 1.35rem; letter-spacing: 0.18em; color: var(--navy); }
.nav__brand-sub { font-size: 0.62rem; letter-spacing: 0.4em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  font-size: 0.92rem; letter-spacing: 0.08em; color: var(--ink-soft);
  position: relative; transition: color 0.4s; padding: 0.3rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--navy); transition: width 0.45s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--navy); }
.nav__link--cta {
  border: 1px solid var(--navy); border-radius: 100px; padding: 0.5rem 1.3rem; color: var(--navy);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--navy); color: var(--cream-soft); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--navy); transition: 0.4s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__scrim { display: none; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 0.95rem; letter-spacing: 0.1em; padding: 1rem 2.2rem; border-radius: 100px;
  position: relative; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s, color 0.4s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy); color: var(--cream-soft); font-weight: 500;
  box-shadow: 0 12px 30px -14px rgba(21, 41, 75, 0.7);
}
.btn--primary:hover { background: var(--navy-mid); transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(21, 41, 75, 0.7); }
.btn--ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream-soft); transform: translateY(-3px); }
.btn--on-navy { background: var(--cream-soft); color: var(--navy); font-weight: 600; }
.btn--on-navy:hover { background: var(--paper); transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(0,0,0,0.5); }
.btn--block { width: 100%; }
.btn__spinner {
  width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; display: none; opacity: 0.7;
}
.btn.is-loading .btn__label { opacity: 0.4; }
.btn.is-loading .btn__spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ Hero ═══ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 4rem; overflow: hidden; }
.hero__arch-bg {
  position: absolute; top: -8%; right: -6%; width: 46vw; height: 92vh; max-width: 620px; z-index: 0;
  background: var(--cream); border-radius: 50% 50% 0 0 / 36% 36% 0 0; opacity: 0.7;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter-safe); width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 3vw, 3.4rem); align-items: center;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 1rem; font-family: var(--ff-deco);
  font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--navy-mid); margin-bottom: 1.6rem;
}
.hero__eyebrow-line { width: 48px; height: 1px; background: var(--navy-mid); display: inline-block; }
.hero__title { margin-bottom: 1.2rem; }
.hero__title-jp {
  font-family: var(--ff-serif); font-weight: 600; font-size: var(--hero-jp);
  line-height: 1.42; letter-spacing: 0.04em; color: var(--navy);
}
.hero__brand-jp { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.9rem; font-family: var(--ff-serif); letter-spacing: 0.08em; }
.hero__brand-jp b {
  position: relative; font-weight: 700; font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.1rem);
  color: var(--navy); letter-spacing: 0.05em; padding-bottom: 0.55rem;
}
.hero__brand-jp b::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--navy-mid) 0%, rgba(21, 41, 75, 0.12) 100%);
}
.hero__brand-jp span { font-size: 0.95rem; letter-spacing: 0.18em; color: var(--ink-soft); }
.hero__brand-jp span strong { color: var(--navy); font-weight: 700; letter-spacing: 0.1em; }
.hero__lead { font-size: var(--step-0); color: var(--ink-soft); line-height: 2.1; margin-bottom: 2.2rem; }
.hero__lead strong { color: var(--navy); font-weight: 600; }
.hero__meta { display: flex; align-items: center; gap: 1.8rem; margin-bottom: 2.4rem; }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-num { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.hero__meta-amp { color: var(--ink-soft); padding: 0 0.15em; font-weight: 300; }
.hero__meta-label { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.hero__meta-divider { width: 1px; height: 42px; background: var(--line); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero visual — arched navy portrait panel */
.hero__visual { display: flex; justify-content: center; }
.hero__frame { position: relative; width: min(400px, 82%); aspect-ratio: 1/1.22; }
.hero__frame-deco {
  position: absolute; border: 1px solid var(--line); pointer-events: none;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px;
}
.hero__frame-deco--1 { inset: -14px; }
.hero__frame-deco--2 { inset: -28px; border-color: var(--line-soft); animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes swayDeco { from { transform: translateY(-6px) rotate(-0.6deg); } to { transform: translateY(8px) rotate(0.6deg); } }
.hero__portrait-panel {
  position: relative; z-index: 2; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px;
  background: radial-gradient(120% 100% at 50% 20%, #16294a 0%, #0d1c34 60%, #07101f 100%);
  box-shadow: 0 40px 80px -30px rgba(13, 28, 52, 0.65), inset 0 0 0 1px var(--line-on-navy);
}
@keyframes floatPortrait { from { transform: translateY(-9px); } to { transform: translateY(11px); } }
.hero__portrait { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.hero__badge {
  position: absolute; bottom: 5%; left: -5%; z-index: 3;
  background: var(--cream-soft);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.7rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 18px 40px -18px rgba(21, 41, 75, 0.6);
}
.hero__badge-jp { font-family: var(--ff-serif); font-size: 1.25rem; letter-spacing: 0.3em; color: var(--navy); }
.hero__badge-en { font-family: var(--ff-deco); font-size: 0.6rem; letter-spacing: 0.36em; color: var(--ink-soft); }

.hero__scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; z-index: 2; }
.hero__scroll-text { font-family: var(--ff-deco); font-size: 0.65rem; letter-spacing: 0.4em; color: var(--ink-soft); text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 54px; background: linear-gradient(var(--navy-mid), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--navy);
  animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(240%); } }
/* the scroll cue is pinned to the hero's bottom — only show it where the hero
   is comfortably taller than its content, else it overlaps the buttons */
@media (max-width: 767px), (max-height: 860px) {
  .hero__scroll { display: none; }
}

/* ═══ Bands & section shell ═══ */
.band { position: relative; }
.band--white { background: var(--paper); }
.band--cream { background: var(--cream); }
.band--white + .band--white, .band--cream + .band--cream { border-top: 1px solid var(--line-soft); }
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--section-y) var(--gutter-safe); position: relative; }
.section__head { display: flex; align-items: flex-end; gap: 1.4rem; margin-bottom: 3.6rem; }
.section__num {
  font-family: var(--ff-deco); font-size: 1rem; letter-spacing: 0.2em; color: var(--navy-mid);
  border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px;
  display: grid; place-items: center; flex-shrink: 0;
}
.section__title { display: flex; flex-direction: column; line-height: 1.1; }
.section__title-en { font-family: var(--ff-deco); font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--navy-mid); }
.section__title-jp { font-family: var(--ff-serif); font-size: var(--step-3); font-weight: 600; color: var(--navy); margin-top: 0.3rem; }

/* ═══ Welcome ═══ */
.welcome { max-width: 64ch; margin: 0 auto; text-align: center; }
.welcome__eyebrow { font-family: var(--ff-deco); font-size: 0.82rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--navy-mid); display: inline-block; margin-bottom: 1rem; }
.welcome__greeting { font-family: var(--ff-serif); font-size: var(--step-2); font-weight: 600; color: var(--navy); letter-spacing: 0.08em; margin-bottom: 1.8rem; }
.welcome__greeting::after { content: ""; display: block; width: 40px; height: 1px; margin: 1.1rem auto 0; background: linear-gradient(90deg, transparent, var(--navy-mid), transparent); }
.welcome__text { color: var(--ink); line-height: 2.15; font-size: var(--step-0); max-width: 58ch; margin: 0 auto 1.3rem; text-align: left; }
.welcome__text:last-child { margin-bottom: 0; }
.welcome__text strong { color: var(--navy); font-weight: 600; }

/* ═══ About ═══ */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; }
.about__media { position: relative; }
.about__media-frame {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 15%, #16294a 0%, #0d1c34 70%, #07101f 100%);
  box-shadow: 0 40px 80px -34px rgba(21, 41, 75, 0.5);
}
.about__media-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-on-navy);
}
.about__img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; object-position: top center; }
.about__media-caption { display: block; text-align: center; margin-top: 1rem; font-family: var(--ff-deco); font-size: 0.78rem; letter-spacing: 0.24em; color: var(--ink-soft); text-transform: uppercase; }
.about__greeting { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.about__name-en { font-family: var(--ff-deco); font-size: 0.82rem; letter-spacing: 0.26em; color: var(--ink-soft); text-transform: uppercase; margin-left: 0.5rem; }
.about__role { font-size: 0.9rem; font-weight: 500; line-height: 1.7; letter-spacing: 0.05em; color: var(--navy-mid); margin-bottom: 1.6rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.about__text { color: var(--ink); margin-bottom: 1.4rem; line-height: 2.15; font-size: var(--step-0); max-width: var(--maxw-text); }
.about__text strong { color: var(--navy); font-weight: 600; }
.about__points { margin: 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.about__point { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.98rem; }
.about__point-icon { color: var(--navy-mid); font-size: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.08em; margin-top: 0.6rem; }
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(8px); }

/* ═══ Lesson cards ═══ */
.lesson__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  position: relative; padding: 2.4rem 2rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 40px -30px rgba(21, 41, 75, 0.4);
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--grad-navy); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: rgba(21, 41, 75, 0.32); box-shadow: 0 34px 60px -32px rgba(21, 41, 75, 0.5); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.5rem;
  border: 1px solid var(--line); color: var(--navy); background: var(--navy-tint);
  transition: transform 0.5s var(--ease), background 0.5s, color 0.5s;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: var(--cream-soft); }
.card__title { font-family: var(--ff-serif); font-size: var(--step-1); font-weight: 600; color: var(--navy); margin-bottom: 0.8rem; letter-spacing: 0.04em; }
.card__text { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.95; }

/* ═══ Price ═══ */
.price__choose {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: -0.4rem auto 2.4rem; text-align: center;
  font-family: var(--ff-serif); font-weight: 600; font-size: var(--step-1);
  color: var(--navy); letter-spacing: 0.18em;
}
.price__choose::before, .price__choose::after {
  content: ""; height: 1px; width: clamp(28px, 6vw, 60px);
  background: linear-gradient(90deg, transparent, var(--navy-mid));
}
.price__choose::after { transform: scaleX(-1); }
.price__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 860px; margin: 0 auto; }
.price__card {
  position: relative; padding: 3rem 2.4rem 2.6rem; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px -38px rgba(21, 41, 75, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.price__card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -38px rgba(21, 41, 75, 0.5); }
.price__card--featured {
  background: radial-gradient(130% 120% at 50% 0%, #1d3a64 0%, #15294b 55%, #0d1c34 100%);
  border-color: transparent; color: var(--on-navy);
}
.price__card-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.07), transparent 30%);
  animation: glowRotate 9s linear infinite; pointer-events: none; opacity: 0;
}
.price__card--featured .price__card-glow { opacity: 1; }
@keyframes glowRotate { to { transform: rotate(360deg); } }
.price__card > *:not(.price__card-glow) { position: relative; z-index: 1; }
.price__ribbon {
  display: inline-block; font-family: var(--ff-deco); font-size: 0.68rem; letter-spacing: 0.3em;
  color: var(--cream-soft); background: var(--navy); border-radius: 100px; padding: 0.4rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600;
}
.price__card--featured .price__ribbon { background: var(--cream-soft); color: var(--navy); }
.price__ribbon--plain { color: var(--navy); background: transparent; border: 1px solid var(--line); font-weight: 500; }
.price__label { font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 0.3rem; color: var(--ink); }
.price__card--featured .price__label { color: var(--on-navy); }
.price__freq { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.1em; margin-bottom: 1rem; }
.price__card--featured .price__freq { color: var(--on-navy-dim); }
.price__amount { display: flex; align-items: flex-end; justify-content: center; gap: 0.15rem; line-height: 1; }
.price__value { font-family: var(--ff-display); font-size: var(--price); font-weight: 600; color: var(--navy); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.price__card--featured .price__value { color: var(--cream-soft); }
.price__yen { font-family: var(--ff-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.55rem; }
.price__card--featured .price__yen { color: var(--on-navy); }
.price__unit { font-size: 0.85rem; letter-spacing: 0.04em; margin: 0.6rem 0 1.8rem; color: var(--ink-soft); }
.price__card--featured .price__unit { color: var(--on-navy-dim); }
.price__list { text-align: left; max-width: 280px; margin: 0 auto 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.price__list li { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); font-size: 0.9rem; }
.price__card--featured .price__list li { color: var(--on-navy); }
.price__check { color: var(--navy-mid); font-size: 0.9rem; }
.price__card--featured .price__check { color: var(--cream-soft); }
.price__note { margin: 2.4rem auto 0; text-align: center; font-size: 0.92rem; color: var(--navy); letter-spacing: 0.08em; font-weight: 500; }
.price__note-sub { display: block; margin-top: 0.6rem; font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.04em; font-weight: 400; }

/* ═══ Flow ═══ */
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.flow__step { position: relative; padding: 2rem 1.4rem; text-align: center; }
.flow__step-num {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.4rem;
  font-family: var(--ff-deco); font-size: 1.3rem; color: var(--navy);
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); position: relative;
  transition: transform 0.5s var(--ease), background 0.5s, color 0.5s, border-color 0.5s;
}
.flow__step-num::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid transparent; transition: border-color 0.5s; }
.flow__step:hover .flow__step-num { transform: translateY(-6px); background: var(--navy); color: var(--cream-soft); border-color: var(--navy); }
.flow__step:hover .flow__step-num::after { border-color: var(--line); }
.flow__step-title { font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.7rem; }
.flow__step-text { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.95; }

/* ═══ Contact ═══ */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.contact__intro-lead { font-family: var(--ff-serif); font-size: 1.8rem; color: var(--navy); margin-bottom: 1.2rem; letter-spacing: 0.06em; }
.contact__intro-text { color: var(--ink-soft); line-height: 2.1; margin-bottom: 2.2rem; font-size: var(--step-0); max-width: var(--maxw-text); }
.contact__facts { display: flex; flex-direction: column; gap: 1rem; }
.contact__facts li { display: flex; align-items: baseline; gap: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.95rem; }
.contact__facts span { font-family: var(--ff-deco); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--navy-mid); text-transform: uppercase; min-width: 48px; }

/* form */
.contact__form { display: flex; flex-direction: column; gap: 1.8rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 12px; padding: 2.4rem; box-shadow: 0 30px 60px -40px rgba(21,41,75,0.4); }
.field { position: relative; }
.field__input {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.15rem 1.1rem 0.5rem; color: var(--ink); font-size: 1rem; font-family: inherit;
  transition: border-color 0.4s, box-shadow 0.4s; outline: none;
}
.field__textarea { resize: vertical; min-height: 120px; padding-top: 1.5rem; }
.field__select { appearance: none; cursor: pointer; padding-top: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2315294b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.2rem center;
}
.field__select option { background: var(--paper); color: var(--ink); }
.field__input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21, 41, 75, 0.1); }
.field__label { position: absolute; left: 1.1rem; top: 1rem; color: var(--ink-soft); font-size: 1rem; letter-spacing: 0.04em; pointer-events: none; transition: 0.3s var(--ease); transform-origin: left; }
.field__label span { color: var(--navy-mid); }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-0.7rem) scale(0.72); color: var(--navy); }
.field__label--static { transform: translateY(-0.7rem) scale(0.72); color: var(--navy); }
.field__error { display: block; font-size: 0.74rem; color: #b4452f; margin-top: 0.4rem; min-height: 0; letter-spacing: 0.02em; }
.field__count { position: absolute; top: 0.55rem; right: 1.05rem; font-size: 0.7rem; letter-spacing: 0.03em; color: var(--ink-soft); font-variant-numeric: tabular-nums; pointer-events: none; transition: color 0.3s; }
.field__count.is-near { color: #b4452f; }
.field--captcha { display: flex; justify-content: center; }
.field--captcha .h-captcha { min-height: 78px; }
/* submit button hugs its text instead of stretching full-width */
#submitBtn { align-self: center; min-width: 11rem; padding-inline: 2.6rem; }
.field.has-error .field__input { border-color: #c2614f; }
.contact__form-note { font-size: 0.76rem; color: var(--ink-soft); text-align: center; letter-spacing: 0.04em; }

/* toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 200%); z-index: 2000;
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.6rem; border-radius: 100px;
  background: var(--navy); color: var(--cream-soft); font-weight: 500; letter-spacing: 0.04em;
  box-shadow: 0 20px 50px -15px rgba(21, 41, 75, 0.6); transition: transform 0.6s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast--error { background: #b4452f; }
.toast--error .toast__icon { color: #b4452f; }
.toast__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cream-soft); color: var(--navy); font-size: 0.8rem; }

/* ═══ Footer ═══ */
.footer { background: var(--navy-deep); color: var(--on-navy); padding: 3.6rem var(--gutter-safe); margin-top: 0; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.footer__brand { display: flex; flex-direction: column; }
.footer__brand-main { font-family: var(--ff-deco); font-size: 1.4rem; letter-spacing: 0.2em; color: var(--cream-soft); }
.footer__brand-sub { font-size: 0.66rem; letter-spacing: 0.28em; color: var(--on-navy-dim); text-transform: uppercase; margin-top: 4px; }
.footer__nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: 0.88rem; color: var(--on-navy-dim); transition: color 0.4s; }
.footer__nav a:hover { color: var(--cream-soft); }
.footer__social { display: flex; gap: 1.1rem; }
.footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  color: var(--on-navy-dim);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.4s, border-color 0.4s, background 0.4s, transform 0.4s;
}
.footer__social-link:hover {
  color: var(--cream-soft);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.footer__copy { font-size: 0.76rem; color: var(--on-navy-dim); letter-spacing: 0.06em; }

/* ═══ Back to top ═══ */
.totop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--navy); color: var(--cream-soft); background: var(--navy);
  font-size: 1.1rem; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: 0.5s var(--ease), background 0.4s; box-shadow: 0 14px 30px -14px rgba(21,41,75,0.6);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--navy-mid); transform: translateY(-4px); }

/* ═══ Reveal animation ═══ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }
[data-reveal-delay="5"] { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════
   PHOTO TREATMENT — Clair-Obscur · 弦の光
   The portrait is a transparent cutout. Heavy layers (grain,
   key-bloom, vignette) live on STATIC panel pseudo-elements;
   the JS-parallaxed .hero__portrait carries only a soft
   drop-shadow. The true contact shadow rides .hero__frame::after
   — outside the panel's overflow:hidden — so the figure stands
   on light instead of floating in a box.
   ═══════════════════════════════════════════════════════════ */

/* HERO frame — asymmetric gallery mat (more air bottom-left) + ground */
.hero__frame {
  padding: clamp(12px, 2.2vw, 22px) clamp(10px, 1.8vw, 18px) clamp(24px, 3.6vw, 40px) clamp(20px, 3vw, 32px);
  isolation: isolate;
}
.hero__frame::after {
  content: ""; position: absolute; z-index: 1; left: 50%; bottom: 4%;
  width: 62%; height: 5%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--ground), transparent 72%);
  filter: blur(9px); pointer-events: none;
}

/* panel becomes a lit stage: navy→black falloff anchored at the key origin */
.hero__portrait-panel {
  background:
    radial-gradient(120% 110% at var(--key-x) var(--key-y),
      #1b3258 0%, #102341 34%, #0a1830 64%, #060f1e 100%);
  isolation: isolate;
}
/* cream key-bloom — behind the figure */
.hero__portrait-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(58% 50% at var(--key-x) var(--key-y),
    var(--keylight) 0%, rgba(244, 228, 200, 0.08) 40%, rgba(244, 228, 200, 0) 70%);
  filter: blur(14px);
}
/* warm soft-light wash (corner-confined) + quiet vignette */
.hero__portrait-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(70% 60% at var(--key-x) var(--key-y),
      rgba(244, 228, 200, 0.12), rgba(244, 228, 200, 0) 64%),
    radial-gradient(140% 130% at 50% 42%, transparent 52%, rgba(5, 11, 22, 0.55) 100%);
  mix-blend-mode: soft-light;
  box-shadow: inset 0 0 110px 22px rgba(5, 11, 22, 0.50);
}
/* fine gallery keyline — own layer, never inherits the blend */
.hero__portrait-panel .keyline {
  position: absolute; inset: 14px; z-index: 5; pointer-events: none;
  border: 1px solid var(--mat-keyline);
  border-radius: 44% 44% 10px 10px / 26% 26% 10px 10px;
}
/* filmic grain — dark panels only; degrades to a faint overlay if soft-light absent */
.dark-grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0.05; mix-blend-mode: soft-light;
  background: var(--grain); background-size: 160px 160px; border-radius: inherit;
}
@supports not (mix-blend-mode: soft-light) { .dark-grain { opacity: 0.03; } }

/* the cutout — parallaxed by JS; one soft drop-shadow for depth */
.hero__portrait {
  position: relative; z-index: 2;
  filter: drop-shadow(0 26px 30px var(--cast));
  will-change: transform;
}
@media (min-width: 901px) {
  .hero__portrait { filter: drop-shadow(0 26px 30px var(--cast)) drop-shadow(0 2px 0 var(--keyrim)); }
}

/* ABOUT — same chiaroscuro recipe; contain (not cover) so the 11-string never clips */
.about__media-frame {
  isolation: isolate;
  background:
    radial-gradient(120% 110% at var(--key-x) var(--key-y),
      #1b3258 0%, #102341 36%, #0a1830 66%, #060f1e 100%);
}
.about__media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(56% 48% at var(--key-x) var(--key-y),
    var(--keylight) 0%, rgba(244, 228, 200, 0.08) 40%, rgba(244, 228, 200, 0) 70%);
  filter: blur(13px);
}
.about__img {
  position: relative; z-index: 2;
  aspect-ratio: 3 / 3.5; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 22px 30px rgba(7, 16, 31, 0.56)) drop-shadow(0 2px 0 var(--keyrim));
}
.about__media-frame .ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20%; z-index: 1; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, var(--ground), transparent 72%);
}
.about__media-frame .basefade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 28, 52, 0.55), transparent);
}
/* museum-placard caption */
.about__media-caption {
  position: relative; margin-top: 1.6rem; padding-top: 1.1rem;
  font-variant: small-caps; letter-spacing: 0.24em; font-size: var(--step--1); text-transform: none;
}
.about__media-caption::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 1px; background: var(--navy-mid); opacity: 0.55;
}

/* reduced motion: stop the float, soften (don't stack) the drop-shadow */
@media (prefers-reduced-motion: reduce) {
  .hero__portrait { filter: drop-shadow(0 16px 20px var(--cast)); }
  .about__img { filter: drop-shadow(0 16px 22px rgba(7, 16, 31, 0.5)); }
}

/* ═══ Cohesion polish ═══ */
/* Price: replace the always-on rotating conic glow with a static navy-cool bloom */
.price__card-glow {
  inset: 0; top: auto; left: 50%; bottom: 8%;
  width: 78%; height: 46%; transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 100%, var(--cool-bloom) 0%, rgba(58, 96, 150, 0) 70%);
  animation: none; filter: blur(6px); opacity: 0;
}
.price__card--featured .price__card-glow { opacity: 1; }
.price__grid { align-items: stretch; }
.price__card { display: flex; flex-direction: column; }
/* debossed letterpress numerals (navy on light) */
.section__num, .flow__step-num {
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.55), 0 -1px 0 rgba(21, 41, 75, 0.16);
}
.section__num, .flow__step-num, .hero__meta-num { font-variant-numeric: tabular-nums; }

/* equal-height lesson cards, baseline-aligned section heads */
.section__head { align-items: baseline; gap: var(--space-xs); margin-bottom: var(--space-m); }
.lesson__grid { grid-auto-rows: 1fr; gap: var(--space-s); }
.card { display: flex; flex-direction: column; }
.about__grid, .contact__grid { gap: var(--space-l); }
.flow__steps { gap: var(--space-s); }
.price__grid { max-width: min(860px, 100%); gap: var(--space-s); }
.hero__meta { align-items: center; }
.hero__meta-divider { height: clamp(34px, 2.6vw, 46px); }

/* safe-area for fixed UI */
.toast { bottom: calc(2rem + env(safe-area-inset-bottom)); }
.totop { bottom: calc(2rem + env(safe-area-inset-bottom)); right: calc(2rem + env(safe-area-inset-right)); }

/* ═══ Mobile ═══ */
/* Nav drawer — decoupled threshold so the links never crowd before they fold */
@media (max-width: 900px) {
  /* keep the bar (brand + hamburger) above the drawer so the X is clickable.
     nav__inner z-index lifts the bar above the scrim; the toggle needs its
     own z-index because the drawer is a positioned child of nav__inner and
     would otherwise paint over it. */
  .nav__inner { position: relative; z-index: 3; }
  .nav__toggle { display: flex; position: relative; z-index: 3; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 82vw); z-index: 2;
    flex-direction: column; justify-content: center;
    gap: var(--space-m); padding: max(6rem, 16vh) var(--space-m) var(--space-m);
    background: var(--cream-soft); border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px -34px rgba(13, 28, 52, 0.55);
    transform: translateX(101%); transition: transform 0.5s var(--ease);
    will-change: transform; backface-visibility: hidden;
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__link { font-size: 1.15rem; }

  /* click-catching scrim — static (opacity only), carries the blur so the
     moving drawer doesn't have to (no mid-slide smear) */
  .nav__scrim {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(10, 22, 42, 0.34);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav.is-open .nav__scrim { opacity: 1; visibility: visible; }
}

/* lock background scroll while the drawer is open */
body.is-menu-open { overflow: hidden; }

/* ── Tablet landscape (fills the 1200 ↔ 880 gap; stays multi-column) ── */
@media (max-width: 1199px) and (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 0.86fr; }
  .lesson__grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid, .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
  .hero__arch-bg { width: 42vw; max-width: 520px; opacity: 0.55; }
}

/* ── Tablet portrait — hero stays side-by-side, grids relax to two-up ── */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 0.8fr; }
  .hero__frame { width: min(360px, 46vw); }
  .hero__arch-bg { width: 40vw; opacity: 0.45; }
  .about__grid, .contact__grid { grid-template-columns: 0.92fr 1.08fr; }
  .lesson__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
  .hero__portrait, .about__img { object-position: 50% 100%; }
}

/* ── Phone / large — true single column ── */
@media (max-width: 767px) {
  .hero { padding-top: 7rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text > * { margin-inline: auto; }
  .hero__eyebrow, .hero__meta, .hero__actions { justify-content: center; }
  .hero__brand-jp { align-items: center; }
  .hero__visual { order: -1; align-self: center; }
  .hero__frame { width: min(300px, 74%); }
  .hero__arch-bg { opacity: 0; transition: opacity 0.6s; }
  .hero__lead br { display: none; }
  .hero__portrait, .about__img { object-position: 50% 100%; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: min(360px, 90%); margin: 0 auto; }
  .lesson__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
}

/* ── Phone ── */
@media (max-width: 540px) {
  .nav__brand-sub { display: none; }
  .hero__meta { flex-direction: column; gap: var(--space-xs); }
  .hero__meta-divider { display: none; }
  .lesson__grid, .flow__steps, .price__grid { grid-template-columns: 1fr; }
  .contact__form { padding: var(--space-s); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  #submitBtn { width: auto; }
  .section__head { gap: var(--space-xs); }
  .section__num { width: 40px; height: 40px; font-size: 0.85rem; }
  .hero__portrait-panel { --key-y: 14%; }
  .hero__portrait, .about__img { object-position: 52% 100%; }
}

/* ── Fine-phone guard — badge never clips offscreen ── */
@media (max-width: 380px) {
  .hero__badge { left: 4%; bottom: 4%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══ About portrait — framed studio photo (gen-2.jpg), not the navy cutout ═══ */
.about__media-frame--photo { background: #e7e1d4; }
.about__media-frame--photo::after { display: none; }          /* drop the cutout key-bloom */
.about__media-frame--photo .about__img {
  aspect-ratio: 3 / 3.7; object-fit: cover; object-position: 50% 24%; filter: none;
}
.about__media-frame--photo .dark-grain { opacity: 0.04; }
