/* ==========================================================================
   Yamazakura Japanese Academy — shared styles
   ========================================================================== */

:root {
  --cream: #FBF7F2;
  --cream-2: #F7F1EA;
  --cream-3: #F9F4ED;
  --sand: #F5EFE7;
  --line: #E6DED2;
  --line-soft: #EFE7DB;
  --line-strong: #D8CEBF;
  --navy: #101B3A;
  --navy-2: #2A3D6E;
  --red: #A81729;
  --red-hover: #C4213A;
  --pink: #F3B9C7;
  --pink-soft: #FBE7EC;
  --pink-border: #E8B9C1;
  --pink-mid: #E07A93;
  --gold: #C2A24B;
  --steel: #8DA0C0;
  --ink: #22252E;
  --text: #5C6070;
  --text-strong: #3A3E4B;
  --muted: #6B6E7A;
  --muted-2: #9A9EAC;
  --muted-3: #8A857D;
  --faint: #A9A6A1;
  --img-bg: #C3D0E2;
  --green: #1F7A5C;
  --green-hover: #186A50;
  --green-soft: #E4F4EC;

  --serif: 'Zen Old Mincho', serif;
  --sans: Manrope, system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 32px);
  --shadow-sm: 0 1px 2px rgba(16, 27, 58, 0.06);
  --shadow-md: 0 6px 18px rgba(16, 27, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 27, 58, 0.14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
button { font-family: var(--sans); }

.container { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section-md { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.relative { position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 16px;
}
.h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1; color: var(--navy); margin-bottom: 22px; max-width: 760px; text-wrap: pretty;
}
.h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.18; color: var(--navy); text-wrap: pretty;
}
.bg-navy .h2 { color: var(--cream); }
.lead { font-size: 16.5px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--text); max-width: 600px; text-wrap: pretty; }
.serif { font-family: var(--serif); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 + .lead { margin-top: 16px; }
.section-head-row {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head-row > div { max-width: 560px; }
.note { font-size: 13.5px; color: var(--muted-3); line-height: 1.6; max-width: 640px; margin-top: 22px; }

/* Content placeholders — replace with real copy */
.ph { background: var(--pink-soft); color: var(--red); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.ph-dark { background: rgba(243, 185, 199, 0.16); color: var(--pink); border-radius: 4px; padding: 2px 7px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 10px; padding: 16px 28px; font-size: 15.5px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: all .18s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-hover); color: #fff; box-shadow: 0 6px 18px rgba(168, 23, 41, 0.28); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--pink-soft); color: var(--red); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-sm { padding: 14px 24px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--red);
  font-size: 15px; font-weight: 700; transition: gap .18s ease;
}
.link-arrow:hover { gap: 15px; color: var(--red); }
.link-arrow.on-dark, .link-arrow.on-dark:hover { color: var(--pink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 242, 0.93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-name {
  display: block; font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em;
  color: var(--navy); text-transform: uppercase; line-height: 1.1;
}
.brand-sub { display: block; font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }

.nav-desktop { display: none; align-items: center; gap: clamp(14px, 1.9vw, 26px); }
.nav-link { font-size: 14.5px; font-weight: 600; color: var(--navy); padding: 6px 0; }
.nav-link:hover, .nav-link.is-active { color: var(--red); }
.nav-dropdown { position: relative; padding: 22px 0; }
.nav-dropdown > .nav-link { display: flex; align-items: center; gap: 6px; }
.caret { font-size: 10px; color: var(--steel); }
.dropdown-menu {
  position: absolute; top: 100%; left: -24px; width: 340px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 14px 16px; border-radius: 10px; transition: background .18s ease; }
.dropdown-menu a:hover { background: var(--pink-soft); }
.dropdown-menu strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.dropdown-menu span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.nav-cta { padding: 12px 20px; font-size: 14px; }

.menu-toggle {
  width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--cream); padding: 8px 20px 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-link {
  display: block; padding: 16px 4px; font-size: 19px; font-weight: 600;
  color: var(--navy); border-bottom: 1px solid var(--line-soft);
}
.mobile-link.is-active { color: var(--red); }
.mobile-services { border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.mobile-services-toggle {
  width: 100%; background: none; border: 0; padding: 10px 4px; font-size: 19px; font-weight: 600;
  color: var(--navy); display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left;
}
.mobile-services-toggle.is-active { color: var(--red); }
.mobile-services-toggle .sign { font-size: 15px; color: var(--steel); }
.mobile-sub { display: grid; gap: 8px; padding: 4px 0 12px; }
.mobile-sub[hidden] { display: none; }
.mobile-sub a {
  display: block; padding: 14px; font-size: 15px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
.mobile-actions .btn { padding: 16px; font-size: 16px; }

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.page-hero::before {
  content: ""; position: absolute; right: -6%; top: -18%;
  width: min(520px, 66vw); height: min(520px, 66vw); border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(243, 185, 199, 0.4), rgba(251, 247, 242, 0) 68%);
  pointer-events: none;
}
.page-hero .container { position: relative; padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 92px); }
.page-hero .eyebrow { margin-bottom: 18px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 240px), 100%), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: all .2s ease;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pink-border); }
.card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 9px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.card-dark { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.card-dark h3 { color: var(--cream); }
.card-dark p { color: rgba(251, 247, 242, 0.68); }

.kanji-badge {
  width: 42px; height: 42px; border-radius: 50%; background: var(--pink-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  font-family: var(--serif); font-size: 18px; color: var(--red);
}
.card-dark .kanji-badge { background: rgba(243, 185, 199, 0.18); color: var(--pink); }

.img-frame { border-radius: 24px; overflow: hidden; background: var(--img-bg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Service preview cards (home) */
.service-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pink-border); color: var(--navy); }
.service-card .thumb { aspect-ratio: 16 / 10; background: var(--img-bg); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.service-card .body { padding: 26px; }
.service-card .kanji { font-family: var(--serif); font-size: 24px; color: var(--red); margin-bottom: 12px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.service-card p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 20px; }
.service-card .more { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 14.5px; font-weight: 700; }

/* Learner tiles */
.learner-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.learner { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: all .2s ease; }
.learner.hoverable:hover { border-color: var(--pink-border); transform: translateY(-2px); }
.learner strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.learner span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }

/* JLPT levels */
.level-card { padding: 24px; }
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--pink-border); }
.level-card h3 { font-size: 18px; margin-bottom: 8px; }
.level-dot {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--red);
}
.level-dot.n5 { background: var(--pink-soft); }
.level-dot.n4 { background: #F7CBD5; }
.level-dot.n3 { background: #E9899E; color: #fff; }
.level-dot.n2 { background: var(--red); color: #fff; }
.levels { position: relative; }
.levels-line {
  position: absolute; left: 24px; right: 24px; top: 53px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-border), var(--red));
  transform-origin: left center; animation: draw .9s var(--ease-out) both;
}
.levels .grid { position: relative; z-index: 1; }

/* Stat grids with hairline dividers */
.stat-grid {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.stat-grid > div { background: #fff; padding: 22px; }
.stat-grid.dark { background: rgba(251, 247, 242, 0.14); border-color: rgba(251, 247, 242, 0.14); border-radius: 14px; }
.stat-grid.dark > div { background: var(--navy); padding: 20px; }
.stat-value { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.stat-grid.dark .stat-value { color: var(--cream); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 5px; }
.stat-grid.dark .stat-label { color: rgba(251, 247, 242, 0.6); }
.stat-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: min(100%, 300px); }

/* ---------- CTA band ---------- */
.cta-wrap { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.cta-wrap.pad-top { padding-top: clamp(56px, 7vw, 96px); }
.cta-band {
  max-width: 1180px; margin: 0 auto; background: var(--red); border-radius: 24px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px); color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -10%; top: -40%;
  width: min(520px, 60vw); height: min(520px, 60vw); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), rgba(168, 23, 41, 0) 70%);
}
.cta-inner { position: relative; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.cta-inner > div:first-child { max-width: 580px; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; margin-bottom: 16px; text-wrap: pretty; }
.cta-band p { font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
.cta-kicker { font-family: var(--serif); font-size: 16px; color: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }
.cta-actions { display: grid; gap: 12px; min-width: min(100%, 260px); }
.cta-actions .btn { padding: 17px 30px; font-size: 16px; }
.cta-phone { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px;
}
@media (min-width: 980px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }
.footer-brand .brand-name { color: var(--cream); font-size: 18px; }
.footer-brand .brand-sub { font-size: 10px; }
.footer-about { font-size: 14.5px; line-height: 1.7; color: rgba(251, 247, 242, 0.62); margin-bottom: 22px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid rgba(251, 247, 242, 0.2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  color: var(--cream); transition: all .18s ease;
}
.socials a:hover { background: rgba(251, 247, 242, 0.1); color: var(--cream); border-color: var(--pink); }
.footer-title { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: rgba(251, 247, 242, 0.72); }
.footer-links a:hover { color: var(--pink); }
.footer-contact { display: grid; gap: 13px; font-size: 14.5px; color: rgba(251, 247, 242, 0.72); line-height: 1.5; }
.footer-contact a { color: var(--cream); font-weight: 600; }
.footer-contact a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid rgba(251, 247, 242, 0.14); }
.footer-bottom .container {
  padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; font-size: 13px; color: rgba(251, 247, 242, 0.5);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(251, 247, 242, 0.5); }
.footer-bottom a:hover { color: var(--pink); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 80;
  background: var(--green); color: #fff; border-radius: 999px; padding: 14px 20px;
  font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 48px rgba(16, 27, 58, 0.24); transition: all .18s ease;
}
.wa-float:hover { background: var(--green-hover); color: #fff; transform: translateY(-2px); }
.wa-float .dot { width: 9px; height: 9px; border-radius: 50%; background: #8FE3C4; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero-glow {
  position: absolute; right: -8%; top: -12%; width: min(560px, 70vw); height: min(560px, 70vw); border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(243, 185, 199, 0.42), rgba(251, 247, 242, 0) 68%); pointer-events: none;
}
.hero-rule { position: absolute; left: 6%; top: 12%; width: 1px; height: 120px; background: linear-gradient(var(--gold), rgba(194, 162, 75, 0)); pointer-events: none; }
.petal { position: absolute; top: -4%; border-radius: 60% 0 60% 0; pointer-events: none; animation: petal linear infinite; }
.petal.p1 { left: 14%; width: 10px; height: 12px; background: var(--pink); animation-duration: 22s; }
.petal.p2 { left: 52%; width: 8px; height: 10px; background: #E8C3CE; animation-duration: 26s; animation-delay: 6s; }
.petal.p3 { left: 78%; width: 11px; height: 13px; background: var(--pink); animation-duration: 19s; animation-delay: 11s; }
.hero-inner {
  position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 104px);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { flex: 1 1 420px; min-width: min(100%, 340px); }
.pill {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px 7px 9px; margin-bottom: 26px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pill .dot.green { background: var(--green); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--navy); margin-bottom: 22px; text-wrap: pretty;
}
.hero-copy > p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text); margin-bottom: 34px; max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats .sep { width: 1px; background: var(--line); }
.hero-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); }
.hero-stats span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hero-media { flex: 1 1 380px; min-width: min(100%, 300px); position: relative; }
.hero-media .img-frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.hero-media img { object-position: 50% 42%; }
.hero-quote {
  position: absolute; left: -14px; bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow-md); max-width: 250px;
}
.hero-quote .serif { font-size: 15px; color: var(--red); margin-bottom: 6px; }
.hero-quote p { font-size: 13.5px; line-height: 1.55; color: var(--text-strong); }
@media (max-width: 480px) { .hero-quote { left: 12px; right: 12px; max-width: none; } }

.trust { background: var(--navy); color: var(--cream); }
.trust .container {
  padding-top: clamp(28px, 3vw, 40px); padding-bottom: clamp(28px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 32px);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .serif { font-size: 22px; color: var(--pink); line-height: 1; flex: 0 0 auto; }
.trust-item strong { display: block; font-size: 15px; font-weight: 700; }
.trust-item span span { display: block; font-size: 13px; color: rgba(251, 247, 242, 0.62); margin-top: 4px; }

.about-media { flex: 1 1 340px; position: relative; }
.about-media .img-frame { aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.about-media img { object-position: 50% 62%; }
.seal {
  position: absolute; right: -10px; top: -10px; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; color: var(--red);
}
.about-copy { flex: 1 1 400px; }
.about-copy .h2 { margin-bottom: 22px; }
.about-copy p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-bottom: 18px; max-width: 560px; text-wrap: pretty; }
.about-copy p:last-of-type { margin-bottom: 30px; }

.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(251, 247, 242, 0.1); pointer-events: none; }
.trainer-media { flex: 0 1 380px; }
.trainer-media .img-frame { aspect-ratio: 4 / 5; background: var(--navy-2); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3); }
.trainer-media img { object-position: 78% 40%; }
.trainer-copy { flex: 1 1 420px; }
.trainer-copy .h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin-bottom: 10px; }
.sensei-name { font-family: var(--serif); font-size: 22px; color: var(--pink); margin-bottom: 6px; }
.sensei-role { font-size: 13.5px; color: rgba(251, 247, 242, 0.6); margin-bottom: 26px; }
.trainer-copy > p { font-size: 16px; line-height: 1.75; color: rgba(251, 247, 242, 0.72); margin-bottom: 28px; max-width: 560px; text-wrap: pretty; }
.trainer-copy .link-arrow { margin-top: 28px; }

.home-gallery { display: grid; grid-template-columns: 1fr; grid-auto-rows: clamp(160px, 15vw, 230px); gap: 14px; }
.home-gallery > div { border-radius: 16px; overflow: hidden; background: var(--img-bg); }
.home-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .4s ease; }
.home-gallery img:hover { transform: scale(1.04); }
@media (min-width: 980px) {
  .home-gallery { grid-template-columns: repeat(4, 1fr); }
  .home-gallery .span2 { grid-column: span 2; }
}
@media (min-width: 600px) and (max-width: 979px) {
  .home-gallery { grid-template-columns: repeat(2, 1fr); }
  .home-gallery .span2 { grid-column: span 2; }
}

.logo-grid {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.logo-grid > div {
  background: #fff; height: 104px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--faint); letter-spacing: 0.04em; transition: background .18s ease;
}
.logo-grid > div:hover { background: var(--cream); }
.logo-grid.fixed { grid-template-columns: repeat(2, 1fr); }
.logo-grid.fixed > div { height: 120px; }
.logo-grid.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .logo-grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .logo-grid.fixed { grid-template-columns: repeat(5, 1fr); } }
.center-head { text-align: center; max-width: 600px; margin: 0 auto clamp(28px, 4vw, 44px); }
.center-head .h2 { margin-bottom: 14px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero-title { font-size: clamp(34px, 4.8vw, 58px); max-width: 820px; margin-bottom: 26px; }
.about-hero .hero-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; max-width: 620px; }
.story { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); }
.story-head { flex: 0 0 auto; width: min(100%, 230px); }
.story-head .h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; }
.story-body { flex: 1 1 420px; min-width: min(100%, 320px); max-width: 640px; }
.story-body p { font-size: 17px; line-height: 1.8; color: var(--text-strong); margin-bottom: 20px; text-wrap: pretty; }
.story-body p:last-child { margin-bottom: 0; }
.mission { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.35; max-width: 900px; text-wrap: pretty; }
.mission .ph-dark { border-radius: 6px; padding: 2px 10px; }
.step-num { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font-family: var(--serif); }
.step-num b { font-weight: 400; font-size: 34px; color: var(--pink); line-height: 1; }
.step-num i { font-style: normal; font-size: 18px; color: var(--red); }
.card-dark .step-num b { color: var(--pink-mid); }
.card-dark .step-num i { color: var(--pink); }
.step-card h3 { font-size: 19px; }
.step-card p { line-height: 1.65; }
.feature-list {
  display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.feature-list > div { background: var(--cream); padding: 20px 22px; }
.feature-list strong { display: block; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.feature-list span { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.mosaic { flex: 1 1 320px; display: grid; gap: 14px; }
.mosaic .img-frame { border-radius: 20px; }
.mosaic .wide { aspect-ratio: 4 / 3; }
.mosaic .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic .pair .img-frame { aspect-ratio: 1 / 1; }
.caption { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.profile-copy { flex: 1 1 420px; }
.profile-copy .h2 { margin-bottom: 8px; }
.profile-role { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.profile-copy > p { font-size: 16.5px; line-height: 1.8; color: var(--text-strong); margin-bottom: 18px; max-width: 600px; text-wrap: pretty; }
.profile-copy > p:last-of-type { margin-bottom: 32px; }
.profile .split { align-items: flex-start; gap: clamp(32px, 5vw, 64px); }
.profile .stat-value { font-size: 26px; }
.profile .stat-label { font-size: 13.5px; }
.stat-strong { font-size: 17px; font-weight: 700; color: var(--navy); }

/* ==========================================================================
   Services
   ========================================================================== */
.service-row {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-wrap: wrap; transition: all .2s ease; scroll-margin-top: 96px;
}
.service-row:hover { box-shadow: var(--shadow-md); border-color: var(--pink-border); }
.service-row.reverse { flex-wrap: wrap-reverse; }
.service-row .media { flex: 1 1 340px; min-width: min(100%, 280px); background: var(--img-bg); min-height: 280px; }
.service-row .media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.service-row .content {
  flex: 1 1 420px; min-width: min(100%, 300px); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.service-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.service-tag .kanji-badge { width: 40px; height: 40px; margin: 0; }
.service-tag span:last-child { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.service-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
.service-row p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 22px; max-width: 520px; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.service-row .btn { align-self: flex-start; }
.process-grid { background: rgba(251, 247, 242, 0.14); border-color: rgba(251, 247, 242, 0.14); }
.process-grid > div { background: var(--navy); padding: 28px; }
.process-grid .num { font-family: var(--serif); font-size: 30px; color: var(--pink-mid); margin-bottom: 14px; }
.process-grid h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process-grid p { font-size: 14.5px; line-height: 1.6; color: rgba(251, 247, 242, 0.65); }
.batch { display: flex; flex-direction: column; padding: 26px; }
.batch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.batch-top .serif { font-size: 17px; font-weight: 700; color: var(--red); }
.batch-tag { background: var(--pink-soft); color: var(--red); border-radius: 999px; padding: 5px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; }
.batch h3 { font-size: 19px; margin-bottom: 20px; line-height: 1.3; }
.batch dl { display: grid; gap: 11px; margin: 0 0 24px; }
.batch dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.batch dt { color: var(--muted); }
.batch dd { margin: 0; }
.batch .btn { margin-top: auto; padding: 13px; font-size: 14.5px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq .h2 { margin-bottom: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.45;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; color: var(--red); line-height: 1; flex: 0 0 auto; padding-top: 2px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 24px; max-width: 640px; text-wrap: pretty; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.chip-btn {
  cursor: pointer; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: all .18s ease;
}
.chip-btn:hover { border-color: var(--navy); }
.chip-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.chip-btn.red.is-active { background: var(--red); border-color: var(--red); color: #fff; }
/* Masonry: tiles stack in columns so mixed portrait/landscape photos leave no gaps */
.gallery-grid {
  columns: 3 280px; column-gap: 16px;
  padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(56px, 7vw, 96px);
}
.g-item {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--img-bg); cursor: zoom-in;
  box-shadow: var(--shadow-sm); padding: 0; border: 0; display: block; width: 100%; text-align: left;
  margin: 0 0 16px; break-inside: avoid; -webkit-column-break-inside: avoid;
}
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.g-item:hover img { transform: scale(1.045); }
.g-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 27, 58, 0), rgba(16, 27, 58, 0.72));
}
.g-item .cat, .lightbox .cat { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink); font-weight: 700; margin-bottom: 4px; }
.g-item .alt { display: block; font-size: 14px; color: #fff; font-weight: 600; line-height: 1.4; font-family: var(--sans); }
.r-43 { aspect-ratio: 4 / 3; } .r-34 { aspect-ratio: 3 / 4; } .r-169 { aspect-ratio: 16 / 9; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(16, 27, 58, 0.92);
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px);
  animation: fadein .22s ease;
}
.lightbox[hidden] { display: none; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(251, 247, 242, 0.3);
  background: rgba(16, 27, 58, 0.5); color: var(--cream); font-size: 20px; cursor: pointer;
}
.lb-btn:hover { background: rgba(251, 247, 242, 0.12); }
.lb-close { top: 20px; right: 20px; background: transparent; }
.lb-prev { left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-body { max-width: 1100px; width: 100%; text-align: center; }
.lb-body img { max-width: 100%; max-height: 74vh; border-radius: 14px; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4); margin: 0 auto; }
.lb-meta { margin-top: 20px; }
.lb-alt { font-size: 16px; color: rgba(251, 247, 242, 0.85); }
.lb-count { font-size: 13px; color: rgba(251, 247, 242, 0.45); margin-top: 8px; }
.navy-cta {
  max-width: 1180px; margin: 0 auto; background: var(--navy); border-radius: 24px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px); color: var(--cream);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.navy-cta > div { max-width: 520px; }
.navy-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin-bottom: 14px; }
.navy-cta p { font-size: 16px; line-height: 1.7; color: rgba(251, 247, 242, 0.7); }
.navy-cta .btn { padding: 16px 30px; font-size: 16px; }

/* ==========================================================================
   Clients
   ========================================================================== */
.numbered { display: grid; gap: 14px; }
.numbered div { display: flex; gap: 14px; align-items: flex-start; }
.numbered .serif { font-size: 17px; color: var(--pink); flex: 0 0 auto; }
.numbered span:last-child { font-size: 15px; line-height: 1.6; color: rgba(251, 247, 242, 0.82); }
.dark-copy { font-size: 16.5px; line-height: 1.75; color: rgba(251, 247, 242, 0.7); margin: 22px 0 30px; max-width: 520px; text-wrap: pretty; }
.quote-card { display: flex; flex-direction: column; padding: 30px; }
.quote-card .mark { font-family: var(--serif); font-size: 36px; color: var(--pink); line-height: 0.6; margin-bottom: 20px; }
.quote-card > p { font-size: 16px; line-height: 1.75; color: var(--text-strong); margin-bottom: 28px; flex: 1 1 auto; }
.quote-by { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.avatar-ph {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sand); border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--faint); flex: 0 0 auto;
}
.quote-by strong { display: block; font-size: 15px; color: var(--navy); }
.quote-by span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-card { display: block; padding: 26px; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pink-border); color: var(--navy); }
.contact-card .kanji-badge { width: 40px; height: 40px; font-size: 16px; margin-bottom: 16px; }
.contact-card .kanji-badge.green { background: var(--green-soft); color: var(--green); }
.contact-card .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: 8px; }
.contact-card .value { font-size: 17px; font-weight: 700; color: var(--navy); }
.contact-card .sub { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.contact-layout { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: flex-start; }
.form-card {
  flex: 1 1 480px; min-width: min(100%, 320px); background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.form-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--navy); margin-bottom: 8px; }
.form-card > p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 30px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.field label, .field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--sans); width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; padding: 14px;
  font-size: 15px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(243, 185, 199, 0.55); }
.interest-group { display: flex; flex-wrap: wrap; gap: 9px; }
.interest-group .chip-btn { padding: 11px 18px; }
.subform {
  display: grid; gap: 18px; background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 20px; animation: slidein .24s ease; margin: 0; min-width: 0;
}
.subform[hidden] { display: none; }
.subform legend { float: left; width: 100%; padding: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.subform .form-row { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.form-success {
  background: #F2FAF6; border: 1px solid #BEE0D0; border-radius: 8px; padding: 14px 16px;
  font-size: 14.5px; color: var(--green); display: flex; gap: 10px; align-items: center;
}
.form-success[hidden] { display: none; }
.submit-btn { border: 0; padding: 17px 28px; font-size: 16px; }
.submit-btn[disabled] { opacity: .75; cursor: progress; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner[hidden] { display: none; }
.contact-aside { flex: 1 1 300px; min-width: min(100%, 280px); display: grid; gap: 20px; }
.wa-card { background: var(--green); border-radius: 20px; padding: 32px; color: #fff; }
.wa-card .serif { font-size: 22px; margin-bottom: 12px; }
.wa-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.wa-card p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); margin-bottom: 24px; }
.wa-card a { display: block; text-align: center; background: #fff; color: var(--green); border-radius: 10px; padding: 15px; font-size: 15.5px; font-weight: 700; transition: all .18s ease; }
.wa-card a:hover { background: var(--green-soft); color: var(--green-hover); transform: translateY(-1px); }
.follow-links { display: grid; gap: 10px; }
.follow-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--navy); transition: all .18s ease;
}
.follow-links a:hover { background: var(--pink-soft); border-color: var(--pink-border); color: var(--navy); }
.follow-links a span { color: var(--red); }

/* ---------- Scroll reveal ---------- */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity .52s var(--ease-out), transform .52s var(--ease-out); }
.reveal-in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes petal {
  0% { transform: translate3d(0, -8%, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .5; }
  88% { opacity: .45; }
  100% { transform: translate3d(-70px, 115vh, 0) rotate(280deg); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1; transform: none; }
}
