/* SAKURA-NO-MA (V4 lang-house-jp) — 桜 + 縦書き + indigo
 * Distinct: PC top horizontal SAKURA bar (with indigo wave underline) + 桜 falling petals + 縦書き title
 */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700;800&family=Noto+Serif+JP:wght@400;500;700;900&family=Noto+Serif+KR:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Sans+KR:wght@300;400;500;700&family=Yuji+Boku&display=swap');

:root {
  --sakura: #f5b8c5;
  --sakura-deep: #d97a8e;
  --sakura-light: #fde4e9;
  --indigo: #1e3a5f;
  --indigo-deep: #0f1e35;
  --indigo-light: #4a6f9e;
  --paper: #fef9f0;
  --paper-deep: #f4ebd6;
  --ink: #2a2a2a;
  --gold: #c9a23b;
  --gray: #6b6055;
  --line: rgba(42,42,42,0.15);

  --display: 'Shippori Mincho', 'Noto Serif JP', 'Noto Serif KR', serif;
  --serif: 'Noto Serif JP', 'Noto Serif KR', serif;
  --sans: 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  --brush: 'Yuji Boku', cursive;

  --max-w: 1200px;
  --gutter: 32px;
  --radius: 4px;

  --z-banner: 120;
  --z-nav: 80;
  --z-burger: 100;
  --z-drawer: 110;
  --banner-h: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(245,184,197,0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(30,58,95,0.06) 0%, transparent 55%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper-deep);
  border: 1px solid var(--indigo); border-radius: var(--radius);
  padding: 14px 16px; font-size: 16px; width: 100%;
  transition: border-color .2s, background .2s; font-family: var(--serif);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sakura-deep); background: #fff; }

/* Demo Banner */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: var(--indigo); color: var(--paper);
  padding: 8px 16px; text-align: center; font-family: var(--serif);
  font-size: 12px; letter-spacing: 0.05em; border-bottom: 2px solid var(--sakura);
}
.demo-banner a { color: var(--sakura); border-bottom: 1px dotted currentColor; }
body.has-banner { padding-top: var(--banner-h); }

/* PC Top SAKURA bar (signature unique) */
.nav-bar {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: var(--z-nav);
  background: var(--paper);
  border-bottom: 4px double var(--indigo);
  padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
  box-shadow: 0 4px 20px rgba(30,58,95,0.08);
}
.nav-bar::after {
  content: '';
  position: absolute; bottom: -8px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sakura) 0%, var(--sakura-deep) 50%, var(--sakura) 100%);
  opacity: 0.6;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--indigo); letter-spacing: 0.02em; padding-right: 20px;
  border-right: 2px solid var(--sakura);
}
.nav-brand .petal {
  display: inline-block; width: 14px; height: 14px;
  background: var(--sakura);
  border-radius: 0 100% 0 100%;
  transform: rotate(-12deg);
}
.nav-brand-en { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.18em; color: var(--sakura-deep); margin-left: 8px; }
.nav-bar .nav-link {
  font-family: var(--serif); font-size: 14px; font-weight: 500;
  color: var(--ink); padding: 6px 4px;
  position: relative; transition: color .2s;
}
.nav-bar .nav-link::before {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--sakura-deep); transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.nav-bar .nav-link:hover::before, .nav-bar .nav-link.active::before { transform: scaleX(1); }
.nav-bar .nav-link:hover, .nav-bar .nav-link.active { color: var(--sakura-deep); }
.nav-bar .nav-cta {
  margin-left: auto;
  background: var(--indigo); color: var(--paper) !important;
  padding: 10px 20px; border-radius: 0;
  font-family: var(--display); font-size: 15px; font-weight: 700;
  border: 2px solid var(--indigo); transition: background .2s, transform .2s;
}
.nav-bar .nav-cta:hover { background: var(--sakura-deep); border-color: var(--sakura-deep); transform: translateY(-1px); }
.nav-bar .nav-user {
  display: inline-flex; gap: 12px; padding-left: 16px; border-left: 1px solid var(--line); align-items: center;
}
.nav-bar .nav-user-link {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.12em;
  color: var(--gray); text-transform: uppercase;
}
.nav-bar .nav-user-link:hover { color: var(--sakura-deep); }
.nav-bar .nav-user-cta { color: var(--sakura-deep); font-weight: 700; }
body.has-banner main { padding-top: calc(var(--banner-h) + 60px); } /* 60px = nav-bar height */

/* Lang Toggle */
.lang-toggle {
  position: fixed; top: calc(var(--banner-h) + 14px); right: 16px; z-index: 95;
  background: var(--sakura); color: var(--indigo);
  padding: 8px 16px; font-family: var(--display); font-weight: 700; font-size: 13px;
  border: 2px solid var(--indigo); border-radius: 0;
  box-shadow: 3px 3px 0 var(--indigo); transition: transform .15s;
}
.lang-toggle:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--indigo); }

/* Mobile burger */
.nav-burger {
  display: none;
  position: fixed; top: calc(var(--banner-h) + 14px); right: 16px; z-index: var(--z-burger);
  width: 48px; height: 48px;
  background: var(--indigo); color: var(--paper);
  border: 2px solid var(--sakura);
  font-family: var(--display); font-size: 22px;
  align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--sakura);
}

/* Drawer */
.drawer {
  position: fixed; top: 0; right: 0;
  width: min(320px, 88vw); height: 100vh; height: 100dvh;
  background: var(--paper);
  border-left: 4px solid var(--sakura);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  padding: 80px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(30,58,95,0.45); z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--sakura); color: var(--indigo);
  border: 2px solid var(--indigo);
  font-family: var(--display); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--indigo);
  transition: transform .2s; z-index: 2;
}
body.has-banner .drawer-close { top: calc(var(--banner-h) + 24px); }  /* banner clearance — dynamic */
.drawer-close:hover { transform: rotate(90deg); }
.drawer a { font-family: var(--display); font-size: 22px; color: var(--indigo); padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--sakura-deep); }
.drawer .drawer-divider { width: 60%; height: 2px; background: var(--sakura); margin: 16px auto; opacity: 0.6; border: 0; }
.drawer .drawer-user-link { font-family: 'Inter'; font-size: 13px; letter-spacing: 0.12em; color: var(--sakura-deep) !important; text-transform: uppercase; }

body.drawer-open .nav-bar, body.drawer-open .nav-burger, body.drawer-open .lang-toggle { display: none !important; }
body.drawer-open { overflow: hidden; }

/* Section base */
main { padding-top: 0; }
.section {
  padding: 90px var(--gutter) 70px;
  border-bottom: 1px solid var(--line); position: relative;
}
.section:last-of-type { border-bottom: 0; }
.container { max-width: var(--max-w); margin: 0 auto; }
.sec-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.24em;
  color: var(--sakura-deep); text-transform: uppercase; margin-bottom: 12px;
}
.sec-title {
  font-family: var(--display); font-size: clamp(34px, 4.6vw, 54px);
  color: var(--indigo); line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -0.01em; font-weight: 700;
}
.sec-title-jp { color: var(--sakura-deep); margin-right: 8px; }
.sec-sub {
  font-family: var(--serif); font-size: 17px; color: var(--gray);
  margin-bottom: 36px; max-width: 720px; line-height: 1.7;
}

/* Hero — 桜 falling + 縦書き */
#hero {
  padding: 120px var(--gutter) 100px;
  position: relative; min-height: 720px;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sakura-light) 100%);
}
.hero-petals {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-petals::before, .hero-petals::after {
  content: '';
  position: absolute; top: -50px; left: 0; right: 0; bottom: -50px;
  background-image:
    radial-gradient(ellipse 6px 8px at 10% 20%, var(--sakura) 50%, transparent 51%),
    radial-gradient(ellipse 5px 7px at 30% 60%, var(--sakura-deep) 50%, transparent 51%),
    radial-gradient(ellipse 7px 9px at 50% 30%, var(--sakura) 50%, transparent 51%),
    radial-gradient(ellipse 5px 6px at 70% 70%, var(--sakura-light) 50%, transparent 51%),
    radial-gradient(ellipse 6px 8px at 90% 40%, var(--sakura-deep) 50%, transparent 51%),
    radial-gradient(ellipse 5px 7px at 20% 85%, var(--sakura) 50%, transparent 51%),
    radial-gradient(ellipse 6px 8px at 60% 90%, var(--sakura-light) 50%, transparent 51%),
    radial-gradient(ellipse 5px 7px at 80% 10%, var(--sakura) 50%, transparent 51%);
  animation: petal-fall 18s linear infinite;
  opacity: 0.7;
}
.hero-petals::after { animation-delay: -9s; opacity: 0.5; }
@keyframes petal-fall {
  0% { transform: translateY(-100px) translateX(0); }
  100% { transform: translateY(120vh) translateX(40px); }
}
.hero-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; max-width: var(--max-w); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero-text { position: relative; }
.hero-eyebrow { font-family: var(--display); color: var(--sakura-deep); font-size: 18px; margin-bottom: 16px; }
.hero-title {
  font-family: var(--display); font-size: clamp(48px, 7vw, 88px);
  color: var(--indigo); line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.01em; white-space: pre-line; font-weight: 700;
}
.hero-title .accent { color: var(--sakura-deep); }
/* 縦書き sub-title — signature 1 */
.hero-vertical {
  position: absolute; top: 0; right: -20px;
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl;
  font-family: var(--display); font-size: 14px; color: var(--indigo);
  letter-spacing: 0.5em; opacity: 0.5;
  text-orientation: mixed;
}
.hero-sub { font-family: var(--serif); font-size: 18px; color: var(--gray); margin-bottom: 32px; max-width: 480px; line-height: 1.7; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: 'Inter'; font-size: 12px; letter-spacing: 0.18em;
  color: var(--indigo); border-top: 2px solid var(--indigo); padding-top: 16px; max-width: 480px;
}
.hero-img-wrap {
  position: relative;
  border: 4px solid var(--indigo); padding: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--sakura);
}
.hero-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-stamp {
  position: absolute; top: -28px; right: -28px;
  width: 80px; height: 80px;
  background: var(--sakura-deep); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 34px; font-weight: 700;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  transform: rotate(-15deg);
  box-shadow: 4px 4px 0 var(--indigo);
}

/* About — 4 indigo column */
#about .about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.about-pillar {
  background: var(--paper); border: 2px solid var(--indigo); padding: 28px 22px;
  position: relative; box-shadow: 4px 4px 0 var(--sakura);
  transition: transform .2s;
}
.about-pillar:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--sakura); }
.about-pillar-num {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px; background: var(--sakura);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--indigo);
  border: 2px solid var(--indigo);
}
.about-pillar h3 { font-family: var(--display); font-size: 22px; color: var(--indigo); margin-bottom: 10px; }
.about-pillar p { font-family: var(--serif); font-size: 14px; color: var(--gray); }

/* Sensei — fusuma sliding cards */
#sensei .sensei-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sensei-card {
  background: var(--paper); border: 2px solid var(--indigo); position: relative;
  overflow: hidden;
  transition: transform .25s;
}
.sensei-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 50%;
  background: var(--paper-deep);
  border-right: 2px solid var(--indigo);
  transform: translateX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); z-index: 2;
}
.sensei-card::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: var(--paper-deep);
  border-left: 2px solid var(--indigo);
  transform: translateX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); z-index: 2;
}
.sensei-card:hover::before { transform: translateX(-100%); }
.sensei-card:hover::after { transform: translateX(100%); }
.sensei-card:hover { box-shadow: 6px 6px 0 var(--sakura); }
.sensei-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: sepia(0.1); }
.sensei-body { padding: 20px; background: var(--paper); position: relative; z-index: 1; }
.sensei-name-jp { font-family: var(--display); font-size: 22px; color: var(--indigo); margin-bottom: 4px; }
.sensei-name-ko { font-family: var(--serif); font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.sensei-role { display: inline-block; font-family: 'Inter'; font-size: 10px; letter-spacing: 0.15em; color: var(--sakura-deep); padding: 2px 8px; border: 1px solid var(--sakura-deep); margin-bottom: 10px; text-transform: uppercase; }
.sensei-qual { font-family: var(--serif); font-size: 13px; color: var(--ink); }

/* Programs — JLPT N5~N1 stamp progression bar (signature 3) */
#programs .jlpt-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 24px; position: relative;
}
.jlpt-bar::before {
  content: ''; position: absolute; top: 78px; left: 8%; right: 8%; height: 4px;
  background: linear-gradient(90deg, var(--sakura-light) 0%, var(--sakura-deep) 100%);
  z-index: 0;
}
.jlpt-card {
  background: var(--paper); border: 2px solid var(--indigo); padding: 24px 18px;
  text-align: center; position: relative; z-index: 1;
  transition: transform .25s, box-shadow .25s;
}
.jlpt-card:hover { transform: translateY(-6px); box-shadow: 6px 6px 0 var(--sakura); }
.jlpt-stamp {
  width: 76px; height: 76px; margin: 0 auto 16px;
  background: var(--sakura); color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; font-weight: 800;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 var(--indigo);
}
.jlpt-card:nth-child(2n) .jlpt-stamp { transform: rotate(8deg); }
.jlpt-stamp-text {
  display: block;
  font-family: var(--display); font-size: 9px; letter-spacing: 0.06em;
  margin-top: -4px;
}
.jlpt-name { font-family: var(--display); font-size: 26px; color: var(--indigo); margin-bottom: 8px; font-weight: 700; }
.jlpt-desc { font-family: var(--serif); font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.jlpt-meta { display: flex; justify-content: space-around; padding-top: 12px; border-top: 1px dashed var(--line); font-family: 'Inter'; font-size: 10px; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }
.jlpt-meta strong { display: block; color: var(--indigo); font-size: 13px; margin-top: 2px; }

/* Kana Lab — signature 2: 50자 grid */
#kana { background: linear-gradient(180deg, var(--sakura-light) 0%, var(--paper) 100%); }
.kana-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  max-width: 580px; margin: 32px auto 0;
}
.kana-cell {
  aspect-ratio: 1/1;
  background: var(--paper); border: 2px solid var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 32px; color: var(--indigo);
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.kana-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.kana-cell:not(.empty):hover { background: var(--sakura); color: var(--indigo); transform: scale(1.05); box-shadow: 3px 3px 0 var(--indigo); z-index: 2; }
.kana-cell.revealed {
  background: var(--indigo); color: var(--paper);
}
.kana-cell .pinyin {
  display: none;
  position: absolute; bottom: 4px; left: 0; right: 0;
  font-family: 'Inter'; font-size: 11px; letter-spacing: 0.05em;
}
.kana-cell.revealed .pinyin, .kana-cell:hover .pinyin { display: block; }
.kana-cell.revealed .char { font-size: 22px; }
.kana-info {
  text-align: center; max-width: 480px; margin: 24px auto 0;
  font-family: var(--serif); font-size: 14px; color: var(--gray);
  padding: 16px; background: var(--paper); border: 1px dashed var(--sakura-deep);
}

/* Schedule */
#schedule .schedule-table {
  width: 100%; border: 2px solid var(--indigo); background: var(--paper);
  font-family: 'Inter'; font-size: 12px;
}
.schedule-table th { background: var(--indigo); color: var(--paper); padding: 12px; text-align: left; font-weight: 600; letter-spacing: 0.1em; }
.schedule-table td { padding: 12px; border-top: 1px solid var(--line); border-right: 1px dashed var(--line); }
.schedule-table tr:hover { background: var(--sakura-light); }
.schedule-pill { display: inline-block; padding: 3px 10px; background: var(--sakura); color: var(--indigo); font-size: 10px; letter-spacing: 0.1em; border-radius: 999px; font-weight: 700; }

/* Alumni — uchikake kimono cards */
#alumni .alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.alumni-card {
  background: var(--paper); border-top: 6px solid var(--sakura);
  border-bottom: 6px solid var(--indigo);
  padding: 0; position: relative;
  box-shadow: 4px 4px 0 var(--indigo);
}
.alumni-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: sepia(0.12); }
.alumni-body { padding: 20px 18px; }
.alumni-name { font-family: var(--display); font-size: 20px; color: var(--indigo); margin-bottom: 4px; }
.alumni-name-jp { font-family: var(--display); font-size: 14px; color: var(--sakura-deep); margin-bottom: 12px; }
.alumni-career { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.alumni-quote { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--gray); border-left: 3px solid var(--sakura-deep); padding-left: 12px; }
.alumni-year { position: absolute; top: 12px; right: 12px; background: var(--indigo); color: var(--paper); font-family: 'Inter'; font-size: 10px; padding: 4px 8px; letter-spacing: 0.1em; }

/* Press — quote cards */
#press .press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.press-card { background: var(--paper); border-left: 6px solid var(--sakura-deep); padding: 24px 28px; box-shadow: 4px 4px 0 var(--indigo); }
.press-quote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); line-height: 1.55; margin-bottom: 14px; }
.press-quote::before { content: '「'; font-family: var(--display); font-size: 36px; color: var(--sakura-deep); line-height: 0; position: relative; top: 8px; margin-right: 4px; }
.press-source { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.18em; color: var(--gray); text-transform: uppercase; }

/* Studio */
#studio .studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.studio-card { border: 2px solid var(--indigo); position: relative; overflow: hidden; }
.studio-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.studio-card:hover img { transform: scale(1.05); }
.studio-label { position: absolute; bottom: 0; left: 0; right: 0; background: var(--indigo); color: var(--paper); padding: 10px 14px; font-family: var(--display); font-size: 16px; font-weight: 700; }

/* Process */
#process .process-list { display: grid; gap: 0; max-width: 720px; }
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.process-step:last-child { border-bottom: 0; }
.process-num {
  width: 64px; height: 64px;
  background: var(--sakura); color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 38px; font-weight: 800;
  border: 3px solid var(--indigo);
  box-shadow: 4px 4px 0 var(--indigo);
}
.process-content h4 { font-family: var(--display); font-size: 24px; color: var(--indigo); margin-bottom: 6px; font-weight: 700; }
.process-content p { font-family: var(--serif); font-size: 15px; color: var(--gray); }

/* Stats */
#stats { background: var(--indigo); color: var(--paper); }
#stats .sec-eyebrow { color: var(--sakura); }
#stats .sec-title { color: var(--paper); }
#stats .sec-title-jp { color: var(--sakura); }
#stats .sec-sub { color: rgba(254,249,240,0.7); }
#stats .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.stat-cell { text-align: center; padding: 28px; border: 2px solid var(--paper); background: rgba(254,249,240,0.04); }
.stat-num { font-family: var(--display); font-size: 80px; color: var(--sakura); line-height: 1; font-weight: 800; }
.stat-suffix { font-size: 36px; color: var(--paper); margin-left: 4px; }
.stat-label { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.2em; color: var(--paper); margin-top: 12px; text-transform: uppercase; }

/* CTA */
#cta { background: var(--sakura-light); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.cta-form { display: grid; gap: 14px; }
.cta-form label { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.18em; color: var(--sakura-deep); text-transform: uppercase; margin-bottom: 4px; display: block; }
.cta-form button {
  background: var(--indigo); color: var(--paper);
  padding: 16px 32px; font-family: var(--display); font-size: 22px; font-weight: 700;
  border: 2px solid var(--indigo);
  box-shadow: 4px 4px 0 var(--sakura);
  margin-top: 8px; transition: transform .15s;
}
.cta-form button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sakura); background: var(--sakura-deep); border-color: var(--sakura-deep); }
.cta-info { background: var(--paper); border: 2px solid var(--indigo); padding: 24px; font-family: var(--serif); font-size: 14px; color: var(--ink); }
.cta-info-line { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; }
.cta-info-line:last-child { border-bottom: 0; }
.cta-info-line strong { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.15em; color: var(--sakura-deep); text-transform: uppercase; }

/* Footer */
.footer { background: var(--indigo); color: var(--paper); padding: 60px var(--gutter) 24px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { font-family: var(--display); font-size: 32px; color: var(--sakura); margin-bottom: 12px; font-weight: 700; }
.footer-brand p { font-family: var(--serif); font-size: 14px; color: rgba(254,249,240,0.7); }
.footer-col h5 { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.2em; color: var(--sakura); margin-bottom: 12px; text-transform: uppercase; }
.footer-col a { display: block; font-family: var(--serif); font-size: 14px; color: var(--paper); padding: 4px 0; }
.footer-col a:hover { color: var(--sakura); }
.footer-meta { max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(254,249,240,0.2); font-family: 'Inter'; font-size: 11px; color: rgba(254,249,240,0.5); display: flex; justify-content: space-between; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .nav-bar .nav-link, .nav-bar .nav-cta, .nav-bar .nav-user { display: none; }
  .nav-burger { display: flex; }
  .lang-toggle { right: 76px; }
  body.has-banner main { padding-top: 36px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-img-wrap { max-width: 480px; margin: 0 auto; }
  #about .about-grid { grid-template-columns: repeat(2, 1fr); }
  #sensei .sensei-grid { grid-template-columns: repeat(2, 1fr); }
  #programs .jlpt-bar { grid-template-columns: 1fr 1fr; }
  #programs .jlpt-bar::before { display: none; }
  #alumni .alumni-grid { grid-template-columns: 1fr 1fr; }
  #press .press-grid { grid-template-columns: 1fr; }
  #studio .studio-grid { grid-template-columns: 1fr 1fr; }
  #stats .stats-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 768px) {
  .section { padding: 60px 20px 50px; }
  #hero { padding: 80px 20px 80px; min-height: 600px; }
  .hero-title { font-size: clamp(36px, 9vw, 56px); }
  #sensei .sensei-grid, #programs .jlpt-bar, #alumni .alumni-grid, #studio .studio-grid { grid-template-columns: 1fr; }
  .kana-grid { gap: 4px; }
  .kana-cell { font-size: 22px; }
  .schedule-table { font-size: 11px; }
  .schedule-table th, .schedule-table td { padding: 6px 8px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 1D 강화 — universal cursor follower v2 */
.cursor-follower{position:fixed; top:0; left:0; width:32px; height:32px; border:2px solid currentColor; border-radius:50%; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); transition:transform .15s ease-out, width .25s, height .25s, background .25s; mix-blend-mode:difference; opacity:.85}
.cursor-follower.cursor-grow{width:60px; height:60px; background:rgba(255,255,255,.1)}
.cursor-follower.cursor-shrink{width:8px; height:8px}
.nav-cta, .nav-signup, [class*="-form-submit"], [class*="-cta"] a{transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s !important}
[class*="-card"]{transition:transform .35s cubic-bezier(.2,.85,.4,1.275), box-shadow .35s, border-color .25s !important}
@media (max-width:768px){.cursor-follower{display:none !important}}

/* 1D-2 cursor diversify — Japanese 藍 和 */
.cursor-follower{border-color:#2c4a7c; mix-blend-mode:normal; box-shadow:0 0 16px rgba(44,74,124,.5)}
.cursor-follower::before{content:"和"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#2c4a7c; font-size:12px; font-family:"Noto Serif JP",serif; font-weight:600}

/* 1D-4 mobile interaction — touch ripple + particle (universal) */
@media (max-width:768px){
  .touch-ripple{position:fixed; pointer-events:none; z-index:9998; border-radius:50%; transform:translate(-50%,-50%); animation:touch-ripple-anim .6s ease-out forwards; mix-blend-mode:multiply}
  @keyframes touch-ripple-anim{
    0%{width:10px; height:10px; opacity:.7; border:2px solid currentColor; background:transparent}
    100%{width:80px; height:80px; opacity:0; border:1px solid currentColor; background:transparent}
  }
  .touch-particle{position:fixed; pointer-events:none; z-index:9998; transform:translate(-50%,-50%); transition:all 1.2s ease-out; opacity:.9; font-size:14px}
  /* iOS smooth scroll + active feedback */
  a, button, [class*="-card"]{-webkit-tap-highlight-color:transparent}
  a:active, button:active, [class*="-card"]:active{transform:scale(.97); transition:transform .1s}
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: lang-house-jp
   effects: Q, U
   =========================================== */
/* === retrofit v1.27 motionsites marquee (MIT) === */
.marquee, .ticker, .scroll-x { overflow: hidden; }
.marquee > *:first-child, .ticker > *:first-child {
  display: flex; gap: 60px; width: max-content;
  animation: rt-marquee 30s linear infinite;
}
@keyframes rt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee > *, .ticker > * { animation: none; } }/* === retrofit v1.27 motionsites scroll-driven-reveal (MIT) === */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section, [class*="-section"], .card, [class*="-card"], article {
      animation: rt-reveal-up linear forwards;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes rt-reveal-up {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}