/* =========================================================
   Hirameki Blocks — design system
   Every rule is scoped under .hk so nothing leaks into the
   theme or other Elementor widgets. Colours follow the brand:
   Hirameki Red #E61E25 and the logo's blue #17519B, used as a
   deeper surface blue (#0D2E59). No black surfaces; --hk-ink is
   only the text colour on light sections.
   ========================================================= */

.hk {
  --hk-ink: #0b0c0f;
  /* Deep blue surfaces: hero, journey, closing section, footer. */
  --hk-surface: #0d2e59;
  --hk-surface-2: #173f73;
  --hk-surface-3: #09203e;
  --hk-surface-rgb: 13, 46, 89;
  --hk-blue: #17519b; /* the logo's blue: accent cards */
  --hk-paper: #f4f2ed;
  --hk-white: #ffffff;
  --hk-red: #e61e25;
  --hk-red-hot: #ff3a40;
  --hk-red-deep: #b8121a;
  --hk-red-text: #ff5a60; /* brand red is too dim for small text on deep blue; this lighter red passes 4.5:1 */
  --hk-navy: #1b3661;
  --hk-navy-deep: #0e1d36;
  --hk-text: #16181c;
  --hk-muted: #62666e;
  --hk-muted-dark: rgba(255, 255, 255, 0.64);
  --hk-line: rgba(11, 12, 15, 0.1);
  --hk-line-dark: rgba(255, 255, 255, 0.14);

  --hk-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hk-jp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --hk-radius: 28px;
  --hk-radius-sm: 18px;
  --hk-gutter: clamp(20px, 5vw, 56px);
  --hk-nav-h: 68px;
  --hk-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  font-family: var(--hk-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--hk-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- scoped reset (beats theme + Elementor kit defaults) ---------- */
.hk, .hk *, .hk *::before, .hk *::after { box-sizing: border-box; }
body .hk :is(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ol, ul, li, address, figcaption, nav, dl, dt, dd) {
  margin: 0; padding: 0;
  font: inherit; color: inherit;
  letter-spacing: inherit; line-height: inherit; text-transform: none;
}
body .hk :is(ol, ul) { list-style: none; }
/* Colour and underline are reset in both states. The font is reset only at rest: doing it on :hover too outranked every
   component's own font rules (.hk-btn, .hk-tile-link, ...), so buttons and links lost their weight and grew when hovered. */
body .hk a, body .hk a:hover { color: inherit; text-decoration: none; }
body .hk a { font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; }
body .hk img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
/* Hello Elementor styles [type=button]:hover/:focus in pink; :is([type=button]) outranks it. */
body .hk :is(button, [type="button"]) {
  font: inherit; color: inherit; background: none;
  border: 0; border-radius: 0; padding: 0; margin: 0;
  cursor: pointer; text-transform: none; letter-spacing: inherit;
}
body .hk :is(button, [type="button"]):is(:hover, :focus) { background: none; color: inherit; }
.hk :focus-visible { outline: 2px solid var(--hk-red); outline-offset: 3px; border-radius: 6px; }
.hk [hidden] { display: none !important; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Elementor wrappers around Hirameki widgets: full width, no extra gaps. */
.elementor-widget[class*="elementor-widget-hk-"] { width: 100%; max-width: 100%; align-self: stretch; }
.e-con:has(> .elementor-widget[class*="elementor-widget-hk-"]) { padding: 0; }
body:has(.hk-hero, .hk-journey) { overflow-x: clip; }

/* ---------- shared pieces ---------- */
.hk .hk-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--hk-gutter); }
.hk .hk-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1.4rem; color: var(--hk-muted);
}
.hk .hk-eyebrow-red { color: var(--hk-red); }
.hk :is(.hk-journey, .hk-page-hero, .hk-cta, .hk-bg-ink) .hk-eyebrow-red { color: var(--hk-red-text); }
.hk .hk-display { font-size: clamp(2.6rem, 6.4vw, 6.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.hk .hk-display-sm { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.hk .hk-lede { margin-top: 1.6rem; max-width: 42ch; font-size: clamp(1.08rem, 1.45vw, 1.32rem); line-height: 1.5; color: var(--hk-muted); }
.hk .hk-head { margin-bottom: clamp(48px, 7vw, 96px); }

.hk .hk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.55em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: background-color .3s var(--hk-ease), color .3s var(--hk-ease), transform .3s var(--hk-ease), border-color .3s var(--hk-ease);
}
.hk .hk-btn:hover { transform: translateY(-1px); }
.hk .hk-btn-red { background: var(--hk-red); color: #fff; }
.hk .hk-btn-red:hover { background: var(--hk-red-hot); color: #fff; }
.hk .hk-btn-light { background: #fff; color: var(--hk-ink); }
.hk .hk-btn-light:hover { background: var(--hk-paper); color: var(--hk-ink); }
.hk .hk-btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.hk .hk-btn-ghost:hover { border-color: #fff; color: #fff; }
.hk .hk-btn-sm { padding: .7em 1.15em; font-size: .88rem; }
.hk .hk-btn-lg { padding: 1.1em 1.8em; font-size: 1.04rem; }

/* =========================================================
   HEADER
   ========================================================= */
.hk-header-root { position: relative; z-index: 60; height: 0; }
.hk .hk-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hk-nav-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--hk-gutter);
  color: #fff;
  transition: background-color .5s var(--hk-ease), color .5s var(--hk-ease), box-shadow .5s var(--hk-ease);
}
body.admin-bar .hk .hk-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hk .hk-nav { top: 46px; } }
.hk .hk-nav.is-scrolled { background: rgba(var(--hk-surface-rgb), 0.62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.hk .hk-nav[data-theme="light"] { color: var(--hk-ink); }
.hk .hk-nav[data-theme="light"].is-scrolled { background: rgba(255, 255, 255, 0.74); box-shadow: 0 1px 0 var(--hk-line); }
.hk .hk-nav-logo { position: relative; display: block; height: 28px; flex: none; }
.hk .hk-nav-logo img { height: 28px; width: auto; max-width: none; transition: opacity .4s var(--hk-ease); }
.hk .hk-nav-logo .hk-logo-dark { position: absolute; inset: 0 auto auto 0; opacity: 0; }
.hk .hk-nav[data-theme="light"] .hk-logo-light { opacity: 0; }
.hk .hk-nav[data-theme="light"] .hk-logo-dark { opacity: 1; }
.hk .hk-nav-links { margin-left: auto; }
.hk .hk-nav-links > ul { display: flex; gap: 28px; font-size: .92rem; font-weight: 500; }
.hk .hk-nav-links li { position: relative; }
.hk .hk-nav-links > ul > li > a { display: block; padding: 22px 0; opacity: .78; transition: opacity .25s; }
.hk .hk-nav-links > ul > li > a:hover, .hk .hk-nav-links > ul > li > a.is-current { opacity: 1; }
.hk .hk-nav-links .has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.hk .hk-sub {
  position: absolute; top: calc(100% - 6px); left: -18px; min-width: 230px;
  padding: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); color: var(--hk-ink);
  box-shadow: 0 24px 60px -24px rgba(11,12,15,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--hk-ease), transform .25s var(--hk-ease), visibility .25s;
}
.hk .has-sub:hover > .hk-sub, .hk .has-sub:focus-within > .hk-sub { opacity: 1; visibility: visible; transform: none; }
.hk .hk-sub a { display: block; padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.hk .hk-sub a:hover, .hk .hk-sub a.is-current { background: var(--hk-paper); }
.hk .hk-nav-empty { margin-left: auto; font-size: .85rem; opacity: .7; }
.hk .hk-nav-toggle { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.hk .hk-nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--hk-ease); }
.hk .hk-nav-toggle span:first-child { top: 16px; }
.hk .hk-nav-toggle span:last-child { top: 23px; }
.hk .hk-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hk .hk-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hk .hk-mobile-menu {
  position: fixed; inset: 0; z-index: 59;
  overflow-y: auto;
  background: var(--hk-surface); color: #fff;
  padding: calc(var(--hk-nav-h) + 28px) var(--hk-gutter) 40px;
  display: flex; flex-direction: column;
}
.hk .hk-mobile-menu .hk-mm-top { font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; padding: 12px 0 8px; border-top: 1px solid var(--hk-line-dark); }
.hk .hk-mobile-menu .hk-mm-top:first-child { border-top: 0; }
.hk .hk-mobile-menu .hk-mm-sub { font-size: 1.05rem; color: var(--hk-muted-dark); padding: 6px 0 6px 2px; }
.hk .hk-mobile-menu .hk-btn { margin-top: 28px; align-self: flex-start; }
body.hk-menu-open .hk .hk-nav.hk-nav { color: #fff; background: transparent; box-shadow: none; }
body.hk-menu-open .hk .hk-nav .hk-logo-light { opacity: 1; }
body.hk-menu-open .hk .hk-nav .hk-logo-dark { opacity: 0; }

/* =========================================================
   SUN HERO
   ========================================================= */
.hk.hk-hero {
  --hk-sun: min(19vw, 27vh);
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--hk-surface); color: #fff; overflow: hidden;
}
.hk .hk-hero-stage { position: absolute; inset: 0; }
.hk .hk-hero-kanji {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--hk-jp); font-weight: 800; font-size: 46vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hk .hk-hero-kanji span { display: inline-block; }
.hk .hk-kanji-trace { display: block; height: 1em; overflow: visible; opacity: .16; fill: none; stroke: #fff; stroke-width: 1.5; }
.hk .hk-hero-media { position: absolute; inset: 0; clip-path: circle(var(--hk-sun) at 50% 50%); will-change: clip-path; }
.hk .hk-hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.18); }
.hk .hk-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--hk-surface-rgb),.2) 30%, rgba(var(--hk-surface-rgb),.78)); opacity: 0; }
.hk .hk-hero-sun {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--hk-sun) * 2); aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle at 36% 30%, var(--hk-red-hot), var(--hk-red) 52%, var(--hk-red-deep));
  box-shadow: 0 0 140px rgba(230, 30, 37, 0.38);
}
.hk .hk-hero-copy {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-inline: var(--hk-gutter);
}
.hk .hk-hero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--hk-muted-dark); margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.hk .hk-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--hk-red); }
.hk .hk-hero-title { font-size: clamp(3.1rem, 9.4vw, 10rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.96; color: #fff; }
.hk .hk-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hk .hk-line > span { display: inline-block; }
.hk .hk-hero-sub { margin-top: clamp(1.5rem, 4vh, 3rem); color: var(--hk-muted-dark); font-size: clamp(1rem, 1.3vw, 1.18rem); }
.hk .hk-hero-actions { margin-top: clamp(1.25rem, 3vh, 2rem); }
.hk .hk-hero-caption {
  position: absolute; z-index: 3; left: var(--hk-gutter); right: var(--hk-gutter); bottom: 12vh;
  max-width: 1280px; margin-inline: auto; opacity: 0; visibility: hidden;
}
.hk .hk-kicker { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.hk .hk-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hk-red); }
.hk .hk-hero-caption-big { font-size: clamp(2rem, 4.6vw, 4.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }
.hk .hk-scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hk-muted-dark);
}
.hk .hk-scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--hk-muted-dark), transparent); animation: hk-cue 2.2s var(--hk-ease) infinite; transform-origin: top; }
@keyframes hk-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Sunrise intro (see heroIntro in the JS). Until it starts, the hero's moving parts wait out of sight; the class
   is only set on pages with a Sun Hero, and only when motion is allowed. The sun hides with visibility, not opacity,
   because the scroll animation reads the sun's opacity as its starting value. */
html.hk-intro .hk-hero .hk-hero-sun { visibility: hidden; }
html.hk-intro .hk-hero :is(.hk-hero-media, .hk-hero-kanji span, .hk-hero-copy > *, .hk-scroll-cue > *),
html.hk-intro .hk-nav { opacity: 0; }
/* Layers the intro adds and removes: the dark horizon strip and the flash when the sun clears it. */
.hk .hk-hero-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none; background: var(--hk-surface-3); border-top: 1px solid rgba(255,255,255,.14); }
.hk .hk-hero-flash { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,236,228,.95) 0, rgba(255,90,90,.55) 12%, rgba(230,30,37,0) 38%); }
/* The title is split into letters only while the intro plays. */
.hk .hk-hero-title .hk-wd { display: inline-block; white-space: nowrap; }
.hk .hk-hero-title .hk-ch { display: inline-block; transform-origin: 0 100%; will-change: transform; }

/* In the Elementor editor: show the photo through the sun, and the caption. */
.elementor-editor-active .hk .hk-hero-sun { opacity: .35; }
.elementor-editor-active .hk .hk-hero-caption { opacity: 1; visibility: visible; bottom: 4vh; }
.elementor-editor-active .hk .hk-scroll-cue { display: none; }

/* =========================================================
   BIG STATEMENT
   ========================================================= */
.hk.hk-statement { padding: clamp(120px, 22vh, 240px) 0 clamp(80px, 14vh, 160px); background: var(--hk-white); }
.hk .hk-statement-text { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 4.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; color: var(--hk-ink); }
.hk .hk-statement-text .hk-w { display: inline-block; }
.hk .hk-statement-sub { margin-top: clamp(24px, 3vw, 40px); max-width: 38ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--hk-muted); }
.hk .hk-statement-text.is-ja .hk-w { display: inline; } /* keeps Japanese line-break rules, such as no 。 at the start of a line */

/* =========================================================
   BIG NUMBERS
   ========================================================= */
.hk.hk-stats { padding-bottom: clamp(100px, 18vh, 200px); background: var(--hk-white); }
.hk .hk-stats-grid { display: grid; grid-template-columns: repeat(var(--hk-cols, 4), minmax(0, 1fr)); gap: 24px; }
.hk .hk-stat { border-top: 1px solid var(--hk-line); padding-top: 28px; }
.hk .hk-stat-num { font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--hk-ink); }
.hk .hk-stat-num em { font-style: normal; color: var(--hk-red); }
.hk .hk-stat-label { margin-top: 14px; max-width: 18ch; color: var(--hk-muted); font-size: 1rem; }

/* =========================================================
   JOURNEY
   ========================================================= */
.hk.hk-journey { background: var(--hk-surface); color: #fff; }
.hk .hk-journey-intro { padding-top: clamp(120px, 20vh, 220px); padding-bottom: clamp(40px, 8vh, 100px); }
.hk.hk-journey .hk-lede { color: var(--hk-muted-dark); }
.hk .hk-journey-body { position: relative; }

/* The big word beside the chapters: each chapter's word fades in over the last. */
.hk .hk-journey-now { display: none; font-family: var(--hk-jp); font-weight: 700; font-size: min(10vw, 20vh); line-height: 1.1; letter-spacing: .02em; }
.hk .hk-journey-now span { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--hk-ease); }
.hk .hk-journey-now span.is-on { opacity: 1; transform: none; }
.hk .hk-journey-now span:last-child { color: var(--hk-red-text); }

/* The map: land as dots (no borders), with the route drawn on top. */
.hk .hk-route-map { position: relative; aspect-ratio: 1000 / 556; max-width: 440px; margin: 0 var(--hk-gutter) 16px; }
.hk .hk-route-map img, .hk .hk-route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hk .hk-route-map svg { overflow: visible; }
.hk .hk-route-map path { fill: none; stroke-linecap: round; }
.hk .hk-map-arc-bg { stroke: rgba(255,255,255,.28); stroke-width: 3; stroke-dasharray: 2 12; }
.hk .hk-map-arc { stroke: var(--hk-red); stroke-width: 5; }
.hk .hk-map-stop { fill: var(--hk-surface); stroke: rgba(255,255,255,.5); stroke-width: 3; transition: fill .3s, stroke .3s; }
.hk .hk-map-stop.is-on { fill: var(--hk-red); stroke: var(--hk-red); }
.hk .hk-map-sun { fill: var(--hk-red); filter: drop-shadow(0 0 14px rgba(230,30,37,.95)); }
.hk .hk-route-map text { fill: rgba(255,255,255,.85); font-size: 28px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html:not(.hk-motion) .hk :is(.hk-map-stop, .hk-map-sun) { display: none; }

/* Base layout: chapters stack under a sticky route bar. With motion on
   desktop they become a pinned horizontal ride (see media query below). */
.hk .hk-route {
  position: sticky; z-index: 4; top: var(--hk-nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 16px var(--hk-gutter);
  background: rgba(var(--hk-surface-rgb), 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hk-muted-dark);
}
.hk .hk-route-line { position: relative; flex: 1; height: 2px; background: var(--hk-line-dark); border-radius: 2px; }
.hk .hk-route-fill { position: absolute; inset: 0; background: var(--hk-red); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.hk .hk-route-stop {
  position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--hk-surface); border: 2px solid rgba(255,255,255,.32);
  translate: -50% -50%; transition: background-color .4s, border-color .4s;
}
.hk .hk-route-stop.is-on { background: var(--hk-red); border-color: var(--hk-red); }
.hk .hk-route-sun {
  position: absolute; top: 50%; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--hk-red); box-shadow: 0 0 0 6px rgba(230,30,37,.22), 0 0 34px rgba(230,30,37,.75);
  translate: -50% -50%;
}
.hk .hk-chapter {
  max-width: 1280px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 6vw; align-items: center;
  padding: clamp(64px, 12vh, 140px) var(--hk-gutter);
}
.hk .hk-chapter-num { color: var(--hk-red-text); font-size: .82rem; font-weight: 600; letter-spacing: .2em; margin-bottom: 1.2rem; }
.hk .hk-chapter-kanji { font-family: var(--hk-jp); font-weight: 700; font-size: clamp(4.2rem, 9vw, 9.5rem); line-height: 1; letter-spacing: .02em; }
.hk .hk-chapter-romaji { margin: .9rem 0 2.2rem; color: var(--hk-muted-dark); font-size: .95rem; letter-spacing: .06em; }
.hk .hk-chapter-title { font-size: clamp(1.8rem, 3vw, 3.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.1rem; }
.hk .hk-chapter-body { max-width: 36ch; color: var(--hk-muted-dark); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hk .hk-chapter-text .hk-btn { margin-top: 2rem; }
.hk .hk-chapter-media { aspect-ratio: 4 / 3; border-radius: var(--hk-radius); overflow: hidden; background: var(--hk-surface-2); }
.hk .hk-chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.hk .hk-chapter-media-tall { aspect-ratio: 3 / 4; width: min(100%, 460px); justify-self: center; }
.hk .hk-chapter-final .hk-chapter-kanji { color: var(--hk-red-text); }

@media (min-width: 901px) {
  .hk .hk-journey-intro { padding-top: clamp(88px, 14vh, 150px); padding-bottom: clamp(32px, 5vh, 64px); }
  .hk-motion .hk .hk-journey-body {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 5vw; max-width: 1280px; margin-inline: auto;
    padding: 0 var(--hk-gutter) clamp(72px, 12vh, 130px);
  }
  .hk-motion .hk .hk-route { display: none; }
  .hk-motion .hk .hk-journey-side { position: sticky; top: calc(var(--hk-nav-h) + 5vh); align-self: start; }
  .hk-motion .hk .hk-journey-now { display: grid; margin-bottom: 4vh; }
  .hk-motion .hk .hk-route-map { width: min(100%, 76vh); max-width: none; margin: 0; }
  .hk-motion .hk .hk-journey-track { display: grid; gap: clamp(56px, 10vh, 100px); }
  .hk-motion .hk .hk-chapter { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 3.5vw; max-width: none; margin: 0; padding: 0; }
  .hk-motion .hk .hk-chapter-kanji { display: none; }
  .hk-motion .hk .hk-chapter-romaji { margin: 0 0 .8rem; }
  .hk-motion .hk .hk-chapter-title { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
  .hk-motion .hk .hk-chapter-text { transition: opacity .5s; }
  .hk-motion .hk .hk-chapter:not(.is-on) .hk-chapter-text { opacity: .4; }
  .hk-motion .hk .hk-chapter-media, .hk-motion .hk .hk-chapter-media-tall { width: 100%; aspect-ratio: 5 / 4; }
  .hk-motion .hk .hk-chapter-media-tall img { object-position: 50% 25%; }
}

/* =========================================================
   LEVEL STAIRCASE
   ========================================================= */
.hk.hk-levels { background: var(--hk-paper); padding: clamp(120px, 20vh, 220px) 0 clamp(80px, 12vh, 140px); }
/* Subgrid keeps every bar's base on one line even when descriptions differ in length. */
.hk .hk-steps { display: grid; grid-template-columns: repeat(var(--hk-cols, 5), minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(10px, 1.4vw, 20px); row-gap: 0; }
.hk .hk-step { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.hk .hk-step-bar { align-self: end; }
.hk .hk-step-bar {
  height: calc(var(--h) * 4.2px); min-height: 110px;
  background: var(--hk-white); border: 1px solid var(--hk-line);
  border-radius: 22px 22px 8px 8px; padding: 18px 20px; transform-origin: bottom;
}
.hk .hk-step-top .hk-step-bar { background: var(--hk-red); border-color: var(--hk-red); color: #fff; }
.hk .hk-step-level { font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.hk .hk-step-info { padding: 20px 4px 0; }
.hk .hk-step-name { font-size: 1.06rem; font-weight: 600; margin-bottom: .35rem; }
.hk .hk-step-text { color: var(--hk-muted); font-size: .93rem; line-height: 1.45; }
.hk .hk-term-strip {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(var(--hk-cols, 4), minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--hk-line); padding-top: 28px; color: var(--hk-muted); font-size: .95rem;
}
.hk .hk-term-strip strong { display: block; color: var(--hk-ink); font-weight: 600; margin-bottom: 2px; }

/* =========================================================
   PROGRAM CARDS
   ========================================================= */
.hk.hk-programs { background: var(--hk-paper); padding: clamp(60px, 10vh, 120px) 0 clamp(120px, 20vh, 220px); }
.hk .hk-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.hk .hk-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--hk-radius);
  background: var(--hk-white); color: var(--hk-ink);
  transition: transform .6s var(--hk-ease), box-shadow .6s var(--hk-ease);
}
.hk a.hk-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11,12,15,.28); }
.hk .hk-tile-xl { grid-column: span 2; grid-row: span 2; }
.hk .hk-tile.is-wide { grid-column: span 2; }
.hk .hk-tile.is-full { grid-column: 1 / -1; }
.hk .hk-tile.is-side-tall { grid-row: span 2; }
.hk .hk-tile-kanji {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--hk-jp); font-weight: 700; font-size: clamp(3.6rem, 6vw, 5.5rem); line-height: 1;
  color: rgba(11, 12, 15, 0.07);
  transition: color .6s var(--hk-ease), transform .8s var(--hk-ease);
}
.hk .hk-tile-xl .hk-tile-kanji { font-size: clamp(6rem, 15vw, 14rem); top: 28px; right: 32px; }
.hk .hk-tile:hover .hk-tile-kanji { color: var(--hk-red); transform: translateY(6px); }
.hk .hk-tile-body { position: relative; max-width: 44ch; }
.hk .hk-tile-tag { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hk-red); margin-bottom: .8rem; }
.hk .hk-tile-title { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: .6rem; }
.hk .hk-tile-xl .hk-tile-title { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.hk .hk-tile-text { color: var(--hk-muted); font-size: .98rem; }
.hk .hk-tile-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.2rem; font-weight: 600; font-size: .95rem; }
.hk .hk-tile-link::after { content: "→"; transition: transform .4s var(--hk-ease); }
.hk .hk-tile:hover .hk-tile-link::after { transform: translateX(4px); }
.hk .hk-tile-dark { background: var(--hk-blue); color: #fff; }
.hk .hk-tile-dark .hk-tile-text { color: rgba(255,255,255,.84); }
.hk .hk-tile-dark .hk-tile-tag { color: rgba(255,255,255,.88); }
.hk .hk-tile-dark .hk-tile-kanji { color: rgba(255,255,255,.08); }
.hk .hk-tile-red { background: var(--hk-red); color: #fff; }
.hk .hk-tile-red .hk-tile-tag, .hk .hk-tile-red .hk-tile-text { color: rgba(255,255,255,.82); }
.hk .hk-tile-red .hk-tile-kanji { color: rgba(255,255,255,.18); }
.hk .hk-tile-red:hover .hk-tile-kanji, .hk .hk-tile-dark:hover .hk-tile-kanji { color: #fff; }

/* =========================================================
   TIMELINE (NAVY)
   ========================================================= */
.hk.hk-interview {
  overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, var(--hk-navy) 0%, var(--hk-navy-deep) 60%, #081325 100%);
  color: #fff; padding: clamp(120px, 20vh, 220px) 0;
}
.hk .hk-interview-bg { position: absolute; inset: 0; opacity: .12; }
.hk .hk-interview-bg img { width: 100%; height: 120%; max-width: none; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.hk .hk-interview-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--hk-navy-deep) 0%, transparent 40%, var(--hk-navy-deep) 100%); }
.hk .hk-interview-inner { position: relative; }
.hk.hk-interview .hk-lede { color: var(--hk-muted-dark); max-width: 48ch; }
.hk .hk-days { position: relative; display: grid; grid-template-columns: repeat(var(--hk-cols, 4), minmax(0, 1fr)); gap: 24px; }
.hk .hk-days-line { position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--hk-line-dark); }
.hk .hk-days-fill { position: absolute; inset: 0; background: var(--hk-red); transform-origin: left; transform: scaleX(0); }
.hk .hk-day { position: relative; padding-right: 12px; }
.hk .hk-day-dot {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--hk-navy-deep); border: 2px solid rgba(255,255,255,.38); margin-bottom: 28px;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.hk .hk-day.is-on .hk-day-dot { background: var(--hk-red); border-color: var(--hk-red); box-shadow: 0 0 0 6px rgba(230,30,37,.2); }
.hk .hk-day-num { color: var(--hk-red); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; }
.hk .hk-day-title { font-size: clamp(1.1rem, calc(9.2vw / var(--hk-cols, 4)), 2.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.hk .hk-day-note { margin-top: .4rem; color: var(--hk-muted-dark); font-size: .95rem; }
.hk .hk-interview-foot {
  margin-top: clamp(56px, 8vw, 100px); padding-top: 28px; border-top: 1px solid var(--hk-line-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--hk-muted-dark);
}
.hk .hk-interview-foot strong { color: #fff; font-weight: 600; }

/* =========================================================
   PHOTO STRIP
   ========================================================= */
.hk.hk-photos { background: var(--hk-white); padding: clamp(120px, 20vh, 220px) 0 clamp(100px, 16vh, 180px); overflow: hidden; }
.hk.hk-photos .hk-head { margin-bottom: clamp(40px, 6vw, 72px); }
.hk .hk-marquee { display: grid; gap: 16px; }
.hk .hk-marquee-row { display: flex; width: max-content; }
.hk .hk-marquee-set { display: flex; gap: 16px; padding-right: 16px; }
.hk-motion .hk .hk-marquee-row { animation: hk-marquee var(--hk-marquee-time, 60s) linear infinite; }
.hk-motion .hk .hk-marquee-row.hk-row-b { animation-direction: reverse; }
.hk-motion .hk .hk-marquee:hover .hk-marquee-row { animation-play-state: paused; }
html:not(.hk-motion) .hk .hk-marquee { overflow-x: auto; }
html:not(.hk-motion) .hk .hk-marquee-set[aria-hidden] { display: none; }
@keyframes hk-marquee { to { transform: translateX(-50%); } }
.hk .hk-marquee figure {
  position: relative; flex: none; width: clamp(260px, 30vw, 500px); aspect-ratio: 4 / 3;
  border-radius: var(--hk-radius-sm); overflow: hidden; background: var(--hk-paper);
}
.hk .hk-row-b figure { aspect-ratio: 3 / 2; }
.hk .hk-marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hk-ease); }
.hk .hk-marquee figure:hover img { transform: scale(1.04); }
.hk .hk-marquee figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.92); color: var(--hk-ink); font-size: .78rem; font-weight: 600;
}

/* =========================================================
   STUDENT STORIES
   ========================================================= */
.hk.hk-stories { background: var(--hk-paper); padding: clamp(120px, 20vh, 220px) 0 clamp(100px, 16vh, 180px); }
.hk .hk-stories-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hk .hk-stories-nav { display: flex; gap: 10px; margin-bottom: clamp(48px, 7vw, 96px); }
body .hk .hk-round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--hk-white); border: 1px solid var(--hk-line); color: var(--hk-ink); font-size: 1.15rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
body .hk .hk-round-btn:hover { background: var(--hk-surface); color: #fff; border-color: var(--hk-surface); }
.hk .hk-stories-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(var(--hk-gutter), calc((100vw - 1280px) / 2 + var(--hk-gutter))) 24px;
  scroll-padding-inline: max(var(--hk-gutter), calc((100vw - 1280px) / 2 + var(--hk-gutter)));
  scrollbar-width: none;
}
.hk .hk-stories-track::-webkit-scrollbar { display: none; }
.hk .hk-story {
  flex: 0 0 min(420px, 84vw); scroll-snap-align: start;
  display: flex; flex-direction: column; min-height: 480px;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--hk-radius); background: var(--hk-white);
}
.hk .hk-story-feature { flex-basis: min(820px, 90vw); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); padding: 0; overflow: hidden; }
.hk .hk-story-feature > img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 20%; }
.hk .hk-story-body { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); }
.hk .hk-story-title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.2rem; }
.hk .hk-story-quote { margin: 0 0 auto; color: var(--hk-muted); font-size: 1.04rem; line-height: 1.6; border: 0; font-style: normal; }
.hk .hk-story-by { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--hk-line); font-size: .92rem; color: var(--hk-muted); }
.hk .hk-story-by strong { display: block; color: var(--hk-ink); font-weight: 600; font-size: 1rem; }
.hk .hk-story-red { background: var(--hk-red); color: #fff; }
.hk .hk-story-dark { background: var(--hk-blue); color: #fff; }
.hk :is(.hk-story-red, .hk-story-dark) :is(.hk-story-quote, .hk-story-by) { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.2); }
.hk :is(.hk-story-red, .hk-story-dark) .hk-story-by strong { color: #fff; }
.hk .hk-empty { padding: 32px; border: 1px dashed var(--hk-line); border-radius: var(--hk-radius-sm); color: var(--hk-muted); }

/* =========================================================
   STEPS + FAQ
   ========================================================= */
.hk.hk-start { background: var(--hk-white); padding: clamp(120px, 18vh, 200px) 0; }
.hk .hk-start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
.hk .hk-start-steps { margin-top: 48px; display: grid; gap: 28px; }
.hk .hk-start-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.hk .hk-start-steps span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hk-line); font-weight: 600; }
.hk .hk-start-steps li:first-child span { background: var(--hk-red); border-color: var(--hk-red); color: #fff; }
.hk .hk-start-steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .2rem; padding-top: 9px; }
.hk .hk-start-steps p { color: var(--hk-muted); }
.hk .hk-faq { padding-top: 6px; }
.hk .hk-faq details { border-bottom: 1px solid var(--hk-line); }
.hk .hk-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
}
.hk .hk-faq summary::-webkit-details-marker { display: none; }
.hk .hk-faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--hk-red); transition: transform .4s var(--hk-ease); }
.hk .hk-faq details[open] summary::after { transform: rotate(45deg); }
.hk .hk-faq details p { padding: 0 40px 24px 0; color: var(--hk-muted); }

/* =========================================================
   SUN CALL TO ACTION
   ========================================================= */
.hk.hk-cta { overflow: hidden; background: var(--hk-surface); color: #fff; padding: clamp(140px, 24vh, 260px) 0 clamp(120px, 18vh, 200px); text-align: center; }
.hk .hk-cta-sun {
  --hk-sun: min(64vmin, 620px);
  position: absolute; left: calc(50% - var(--hk-sun) / 2); top: calc(50% - var(--hk-sun) / 2); width: var(--hk-sun); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--hk-red-hot), var(--hk-red) 52%, var(--hk-red-deep));
  box-shadow: 0 0 160px rgba(230,30,37,.4);
}
.hk .hk-cta-inner { position: relative; }
.hk .hk-cta-word { font-family: var(--hk-jp); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.hk .hk-cta-meaning { margin: .9rem 0 2.2rem; font-size: .95rem; color: rgba(255,255,255,.78); font-style: italic; }
.hk.hk-cta .hk-display { font-size: clamp(3rem, 8vw, 8rem); }
.hk .hk-cta-actions { margin-top: clamp(2.4rem, 6vh, 4rem); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hk .hk-cta-contact { margin-top: 2.8rem; display: grid; gap: 6px; color: rgba(255,255,255,.7); font-size: .95rem; font-style: normal; }
.hk .hk-cta-contact a:hover { color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.hk.hk-footer { background: var(--hk-surface-3); color: var(--hk-muted-dark); padding: 80px 0 32px; font-size: .95rem; }
.hk .hk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.hk .hk-footer-logo { height: 26px; width: auto; margin-bottom: 18px; }
.hk.hk-footer nav { display: grid; gap: 10px; align-content: start; }
.hk.hk-footer nav a:hover { color: #fff; }
.hk .hk-footer-h { color: #fff; font-weight: 600; margin-bottom: 6px; }
.hk .hk-footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hk-line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.hk .hk-footer-base [lang="ja"] { font-family: var(--hk-jp); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hk .hk-nav-links, .hk .hk-nav-cta { display: none; }
  .hk .hk-nav-toggle { display: block; }
}

@media (max-width: 1024px) {
  .hk .hk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk .hk-tile-xl { grid-column: span 2; grid-row: span 1; min-height: 420px; }
  .hk .hk-tile.is-wide, .hk .hk-tile.is-full { grid-column: 1 / -1; }
  .hk .hk-tile.is-side-tall { grid-row: auto; }
}

@media (max-width: 900px) {
  .hk { --hk-nav-h: 60px; }
  .hk.hk-hero { --hk-sun: min(34vw, 24vh); }
  .hk .hk-hero-title { font-size: clamp(2.9rem, 13.5vw, 5rem); }

  .hk .hk-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }

  .hk .hk-route { padding: 14px var(--hk-gutter); gap: 12px; font-size: .7rem; }
  .hk .hk-journey-intro { padding-top: 72px; padding-bottom: 28px; }
  .hk .hk-chapter { grid-template-columns: 1fr; gap: 20px; padding: 32px var(--hk-gutter) 24px; }
  .hk .hk-chapter-kanji { font-size: 3.4rem; }
  .hk .hk-kanji-trace { stroke-width: 5; }
  .hk .hk-chapter-media, .hk .hk-chapter-media-tall { width: 100%; aspect-ratio: 16 / 10; }
  .hk .hk-chapter-romaji { margin-bottom: .9rem; }

  /* Levels become horizontal bars that grow with the level. */
  .hk .hk-steps { grid-template-columns: 1fr; grid-template-rows: none; gap: 6px; }
  .hk .hk-step { display: block; grid-row: auto; }
  .hk .hk-step-bar {
    height: 60px; min-height: 0; width: calc(34% + var(--h) * 0.66%);
    border-radius: 8px 18px 18px 8px; display: flex; align-items: center; transform-origin: left;
  }
  .hk .hk-step-level { font-size: 1.6rem; }
  .hk .hk-step-info { min-height: 0; padding: 10px 4px 22px; }
  .hk .hk-term-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hk .hk-days { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .hk .hk-days-line { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .hk .hk-days-fill { transform-origin: top; transform: scaleY(0); }
  .hk .hk-day { padding: 0 0 36px; }
  .hk .hk-day-title { font-size: 1.5rem; }
  .hk .hk-day-dot { position: absolute; left: -40px; top: 2px; margin: 0; }

  .hk .hk-start-grid { grid-template-columns: 1fr; }
  .hk .hk-stories-head { flex-direction: column; align-items: flex-start; }
  .hk .hk-stories-nav { margin-bottom: 32px; margin-top: -24px; }
  .hk .hk-story-feature { grid-template-columns: 1fr; }
  .hk .hk-story-feature > img { height: 300px; }
  .hk .hk-footer-grid { grid-template-columns: 1fr 1fr; }
  .hk .hk-footer-grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  .hk { font-size: 16px; }
  .hk .hk-bento { grid-template-columns: 1fr; }
  .hk .hk-tile-xl, .hk .hk-tile.is-wide, .hk .hk-tile.is-full { grid-column: auto; }
  .hk .hk-tile { min-height: 280px; }
  .hk .hk-stat-label { font-size: .92rem; }
  .hk .hk-marquee figure { width: 72vw; }
  .hk .hk-cta-actions .hk-btn { width: 100%; white-space: normal; }
}

/* Compact spacing: the homepage uses it so levels, programs and photos read as short stops, not full screens. */
.hk.hk-statement.is-compact { padding: clamp(80px, 13vh, 130px) 0 clamp(48px, 8vh, 80px); }
/* Tight: least blank space between sections. */
.hk.hk-statement.is-compact.is-tight { padding: clamp(44px, 6vh, 64px) 0 clamp(16px, 3vh, 32px); }
.hk.hk-features.is-compact.is-tight { padding: clamp(44px, 6vh, 64px) 0; }
.hk.hk-features.is-compact.is-tight .hk-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.hk.hk-contact.is-tight { padding: clamp(48px, 7vh, 72px) 0; }
.hk.hk-stats.is-compact { padding-bottom: clamp(64px, 10vh, 100px); }
.hk.hk-stories.is-compact { padding: clamp(72px, 11vh, 110px) 0; }
.hk.hk-cta.is-compact { padding: clamp(96px, 15vh, 150px) 0 clamp(80px, 12vh, 120px); }
.hk.hk-programs.is-compact { padding: clamp(48px, 7vh, 72px) 0 clamp(72px, 11vh, 110px); }
.hk.hk-photos.is-compact { padding: clamp(72px, 11vh, 110px) 0; }
.hk.hk-split.is-compact, .hk.hk-features.is-compact { padding: clamp(64px, 9vh, 100px) 0; }
.hk.hk-start.is-row { padding: clamp(72px, 11vh, 110px) 0; }
.hk.hk-programs.is-compact .hk-head, .hk.hk-photos.is-compact .hk-head { margin-bottom: clamp(24px, 3vw, 40px); }
.hk.hk-stories.is-compact .hk-head, .hk.hk-stories.is-compact .hk-stories-nav { margin-bottom: 28px; }
.hk.hk-stories.is-compact .hk-story { flex-basis: min(500px, 84vw); min-height: 300px; }
.hk.hk-stories.is-compact .hk-story-feature { flex-basis: min(860px, 90vw); }
.hk.hk-stories.is-compact .hk-story-by { margin-top: 1.2rem; padding-top: .9rem; }
/* The Japanese word sits in its own corner, clear of the words on the card. */
.hk.hk-programs.is-compact .hk-tile-kanji { top: 16px; right: 18px; font-size: clamp(2.2rem, 3.2vw, 3rem); }
.hk.hk-programs.is-compact .hk-tile-body { padding-top: 52px; }
.hk.hk-programs.is-compact .hk-tile:hover .hk-tile-kanji { transform: none; }
.hk.hk-programs.is-compact .hk-tile-red:hover .hk-tile-kanji, .hk.hk-programs.is-compact .hk-tile-dark:hover .hk-tile-kanji { color: rgba(255,255,255,.5); }
.hk.hk-photos.is-compact .hk-marquee figure { width: clamp(220px, 22vw, 340px); }
.hk.hk-start.is-row .hk-start-grid { grid-template-columns: 1fr; gap: 0; }
.hk.hk-start.is-row .hk-start-steps { margin-top: 32px; }
@media (min-width: 901px) {
  .hk.hk-stories.is-compact .hk-story-feature { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); }
  .hk.hk-stories.is-compact .hk-story-feature > img { height: 0; min-height: 100%; }
  .hk.hk-start.is-row .hk-start-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .hk.hk-start.is-row .hk-start-steps li { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 1025px) {
  .hk.hk-programs.is-compact .hk-bento { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: minmax(220px, auto); }
}
@media (max-width: 600px) {
  .hk.hk-programs.is-compact .hk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .hk.hk-programs.is-compact .hk-tile { min-height: 0; padding: 18px 16px; }
  .hk.hk-programs.is-compact .hk-tile-text { display: none; }
  .hk.hk-programs.is-compact .hk-tile-title { font-size: 1.2rem; }
  .hk.hk-stories.is-compact .hk-story-feature > img { height: 200px; }
  .hk.hk-programs.is-compact .hk-tile-kanji { font-size: 1.9rem; top: 12px; right: 12px; }
  .hk.hk-programs.is-compact .hk-tile-body { padding-top: 30px; }
  .hk.hk-photos.is-compact .hk-marquee figure { width: 60vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hk *, .hk *::before, .hk *::after { animation: none !important; transition-duration: .01ms !important; }
  .hk .hk-hero-media { clip-path: none; }
  .hk .hk-hero-media img { transform: none; }
  .hk .hk-hero-shade { opacity: 1; }
  .hk .hk-hero-sun, .hk .hk-hero-kanji, .hk .hk-scroll-cue, .hk .hk-hero-caption { display: none; }
}


/* =========================================================
   PHASE 2 BLOCKS — page hero, photo + text, feature grid,
   batch schedule — and shared section backgrounds
   ========================================================= */
.hk.hk-bg-white { background: var(--hk-white); }
.hk.hk-bg-paper { background: var(--hk-paper); }
.hk.hk-bg-ink { background: var(--hk-surface); color: #fff; }
.hk.hk-bg-navy { background: radial-gradient(120% 80% at 80% 0%, var(--hk-navy) 0%, var(--hk-navy-deep) 60%, #081325 100%); color: #fff; }
.hk:is(.hk-bg-ink, .hk-bg-navy) .hk-lede { color: var(--hk-muted-dark); }

/* ---------- Page Hero ---------- */
.hk.hk-page-hero {
  overflow: hidden; background: var(--hk-surface); color: #fff;
  padding: calc(var(--hk-nav-h) + clamp(48px, 9vh, 110px)) 0 clamp(40px, 6vh, 72px);
}
.hk .hk-ph-bgkanji {
  position: absolute; right: -4vw; top: 46%; translate: 0 -50%;
  font-family: var(--hk-jp); font-weight: 800; font-size: 34vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hk .hk-ph-bgkanji span { display: inline-block; }
.hk .hk-ph-bgkanji .hk-kanji-trace { stroke-width: 2; }
/* Stays hidden until the script is ready to draw it, so it never flashes in fully drawn. */
.hk-motion .hk .hk-ph-bgkanji .hk-kanji-trace:not(.is-ready) { visibility: hidden; }
.hk .hk-ph-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px); align-items: center; min-height: min(60vh, 620px);
}
.hk .hk-ph-kanji { font-family: var(--hk-jp); font-weight: 700; color: var(--hk-red-text); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; margin-bottom: 1.2rem; }
.hk .hk-ph-title { font-size: clamp(2.8rem, 6.2vw, 6.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.98; }
.hk.hk-page-hero .hk-lede { color: var(--hk-muted-dark); max-width: 46ch; }
.hk .hk-ph-actions { margin-top: 2.2rem; display: flex; gap: 12px; flex-wrap: wrap; }
.hk .hk-ph-media { position: relative; justify-self: center; width: min(100%, 520px); }
.hk .hk-ph-sun {
  position: absolute; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--hk-red-hot), var(--hk-red) 52%, var(--hk-red-deep));
  box-shadow: 0 0 120px rgba(230, 30, 37, 0.35);
}
.hk .hk-ph-photo { position: relative; overflow: hidden; background: var(--hk-surface-2); }
.hk .hk-ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.hk .hk-ph-media.is-sun .hk-ph-photo { aspect-ratio: 1; border-radius: 50%; }
.hk .hk-ph-media.is-sun .hk-ph-sun { width: 58%; top: -9%; right: -13%; }
.hk .hk-ph-media.is-frame .hk-ph-photo { aspect-ratio: 5 / 4; border-radius: var(--hk-radius); }
.hk .hk-ph-media.is-frame .hk-ph-sun { width: 44%; left: -12%; bottom: -14%; }
/* Wide: the whole 16:9 photo shows, nothing cropped into a circle. */
.hk .hk-ph-media.is-wide { width: min(100%, 680px); }
.hk .hk-ph-media.is-wide .hk-ph-photo { aspect-ratio: 16 / 9; border-radius: var(--hk-radius); }
.hk .hk-ph-media.is-wide .hk-ph-sun { width: 26%; left: -7%; bottom: -12%; }
@media (min-width: 901px) { .hk .hk-ph-grid:has(.is-wide) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hk .hk-ph-facts { position: relative; margin-top: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: repeat(var(--hk-cols, 4), minmax(0, 1fr)); gap: 24px; }
.hk .hk-ph-fact { border-top: 1px solid var(--hk-line-dark); padding-top: 18px; }
.hk .hk-ph-fact dt { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hk-muted-dark); margin-bottom: .45rem; }
.hk .hk-ph-fact dd { font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.35; }

/* ---------- Photo + Text ---------- */
.hk.hk-split { padding: clamp(100px, 16vh, 180px) 0; }
.hk .hk-split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hk .hk-split-grid.is-right .hk-split-media { order: 2; }
.hk .hk-split-grid.is-text-only { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.hk .hk-split-media { overflow: hidden; border-radius: var(--hk-radius); background: var(--hk-paper); }
.hk .hk-split-media.is-landscape { aspect-ratio: 4 / 3; }
.hk .hk-split-media.is-portrait { aspect-ratio: 4 / 5; max-height: 80vh; }
.hk .hk-split-media.is-square { aspect-ratio: 1; }
.hk .hk-split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Embedded form or booking ---------- */
.hk.hk-embed { padding: clamp(80px, 14vh, 160px) 0; }
.hk .hk-embed-frame { margin-top: clamp(28px, 4vw, 48px); background: var(--hk-white); border-radius: var(--hk-radius); overflow: hidden; box-shadow: 0 30px 80px -50px rgba(11,12,15,.35); }
.hk .hk-embed-frame iframe { display: block; width: 100%; border: 0; }

/* Newsletter sign-up form (Newsletter plugin shortcode inside a text block) */
.hk .hk-split-body .tnp :is(input[type=text], input[type=email]) { width: 100%; border: 1px solid transparent; border-radius: 12px; background: var(--hk-paper); padding: 14px 16px; font-family: var(--hk-sans); font-size: 1rem; color: var(--hk-ink); height: auto; }
.hk .hk-split-body .tnp :is(input, select):focus { border-color: var(--hk-red); background: #fff; outline: none; }
.hk .hk-split-body .tnp label { font-weight: 600; font-size: .85rem; color: var(--hk-ink); }
.hk .hk-split-body .tnp :is(input[type=submit], button) { border: 0; border-radius: 999px; background: var(--hk-red); color: #fff; font-family: var(--hk-sans); font-weight: 600; padding: 15px 32px; cursor: pointer; height: auto; }
.hk .hk-split-body .tnp :is(input[type=submit], button):hover { background: var(--hk-red-hot); }
.hk .hk-split-head .hk-display { margin-bottom: 1.4rem; }
.hk .hk-split-body { color: var(--hk-muted); font-size: 1.08rem; }
.hk .hk-split-body p + p { margin-top: 1em; }
.hk .hk-split-body ul { list-style: disc; padding-left: 1.2em; margin-top: 1em; }
.hk .hk-split-body h3 { color: var(--hk-ink); font-size: 1.15rem; font-weight: 600; margin: 1.6em 0 .4em; }
.hk .hk-split-body a { color: var(--hk-red); text-decoration: underline; }
.hk:is(.hk-bg-ink, .hk-bg-navy) .hk-split-body { color: var(--hk-muted-dark); }
.hk .hk-checklist { margin-top: 1.6rem; display: grid; gap: 12px; }
.hk .hk-checklist li { position: relative; padding-left: 30px; font-weight: 500; }
.hk .hk-checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--hk-red); box-shadow: 0 0 0 4px rgba(230, 30, 37, .15);
}
.hk .hk-split-text .hk-btn { margin-top: 2rem; }

/* ---------- Feature Grid ---------- */
.hk.hk-features { padding: clamp(100px, 16vh, 180px) 0; }
.hk .hk-feature-list { display: grid; grid-template-columns: repeat(var(--hk-cols, 3), minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.hk .hk-feature { border-top: 1px solid var(--hk-line); padding-top: 24px; }
.hk:is(.hk-bg-ink, .hk-bg-navy) .hk-feature { border-color: var(--hk-line-dark); }
.hk .hk-feature-mark { display: block; color: var(--hk-red); font-weight: 600; font-size: .85rem; letter-spacing: .16em; margin-bottom: 1.4rem; }
.hk .hk-feature-mark.is-kanji { font-family: var(--hk-jp); font-size: 2.2rem; letter-spacing: 0; line-height: 1; font-weight: 700; }
.hk .hk-feature-title { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .6rem; }
.hk .hk-feature-text { color: var(--hk-muted); }
.hk:is(.hk-bg-ink, .hk-bg-navy) .hk-feature-text { color: var(--hk-muted-dark); }

/* ---------- Batch Schedule ---------- */
.hk.hk-batches { background: var(--hk-paper); padding: clamp(72px, 11vh, 120px) 0; }
.hk .hk-batch-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--hk-line); align-items: start; }
/* Level tabs: only with motion on; otherwise every level shows, one under the other. */
.hk .hk-batch-tabs { display: none; }
.hk-motion .hk .hk-batch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
body .hk .hk-batch-tab {
  min-width: 68px; padding: 10px 20px; border: 1px solid var(--hk-line); border-radius: 99px; background: transparent;
  color: var(--hk-ink); font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
body .hk .hk-batch-tab:hover { border-color: var(--hk-ink); background: transparent; color: var(--hk-ink); }
body .hk .hk-batch-tab[aria-pressed="true"] { background: var(--hk-surface); border-color: var(--hk-surface); color: #fff; }
@media (max-width: 600px) {
  .hk-motion .hk .hk-batch-tabs { flex-wrap: nowrap; gap: 6px; }
  body .hk .hk-batch-tab { flex: 1; min-width: 0; padding: 10px 0; }
}
.hk-motion .hk .has-tabs .hk-batch-group { display: block; padding: 0; border: 0; }
.hk-motion .hk .has-tabs .hk-batch-group:not(.is-on), .hk-motion .hk .has-tabs .hk-batch-level { display: none; }
.hk .hk-batch-note { grid-column: 2; margin-top: 14px; font-size: .92rem; color: var(--hk-muted); }
.hk .hk-batch-level { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.hk .hk-batch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hk .hk-batch { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--hk-radius-sm); background: var(--hk-white); }
.hk .hk-batch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hk .hk-batch-name { font-weight: 600; font-size: 1.05rem; }
.hk .hk-batch-track { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: var(--hk-paper); font-size: .72rem; font-weight: 600; letter-spacing: .03em; vertical-align: 2px; }
.hk .hk-batch-status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #1a7f4b; }
.hk .hk-batch-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hk .hk-batch.is-few .hk-batch-status { color: #b55f00; }
.hk .hk-batch.is-soon .hk-batch-status { color: var(--hk-navy); }
.hk .hk-batch.is-full { opacity: .55; }
.hk .hk-batch.is-full .hk-batch-status { color: var(--hk-muted); }
.hk .hk-batch-schedule { font-size: .98rem; line-height: 1.5; }
.hk .hk-batch-meta { font-size: .85rem; color: var(--hk-muted); }
.hk .hk-batches-foot { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hk-line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--hk-muted); }

@media (max-width: 900px) {
  .hk .hk-ph-grid { grid-template-columns: 1fr; min-height: 0; }
  .hk .hk-ph-media { width: min(82%, 420px); margin-top: 8px; }
  .hk .hk-ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .hk .hk-ph-bgkanji { font-size: 62vw; top: 28%; }
  .hk .hk-ph-bgkanji .hk-kanji-trace { stroke-width: 4; }
  .hk .hk-split-grid { grid-template-columns: 1fr; }
  .hk .hk-split-grid.is-right .hk-split-media { order: 0; }
  .hk .hk-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk .hk-batch-group { grid-template-columns: 1fr; gap: 14px; }
  .hk .hk-batch-note { grid-column: 1; }
}
@media (max-width: 600px) {
  .hk .hk-ph-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hk .hk-ph-actions .hk-btn { width: 100%; }
  .hk .hk-feature-list { grid-template-columns: 1fr; }
}


/* =========================================================
   PHASE 3 BLOCKS — team, contact, news; text-only page hero;
   compact FAQ groups
   ========================================================= */
.hk .hk-ph-grid.is-text-only { grid-template-columns: 1fr; min-height: 0; }
.hk .hk-ph-grid.is-text-only .hk-ph-text { max-width: 920px; }

.hk.hk-start.is-compact { padding: clamp(48px, 7vh, 80px) 0; }
.hk.hk-start.is-compact + .hk-start, .elementor-element:has(.hk-start.is-compact) + .elementor-element .hk-start.is-compact { border-top: 1px solid var(--hk-line); }

/* ---------- Team Grid ---------- */
.hk.hk-team { padding: clamp(100px, 16vh, 180px) 0; }
.hk .hk-team-list { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.hk .hk-team-list.is-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hk .hk-team-list.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hk .hk-member-photo { position: relative; overflow: hidden; border-radius: var(--hk-radius-sm); background: var(--hk-paper); aspect-ratio: 1; }
.hk .hk-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1s var(--hk-ease); }
.hk .hk-member:hover .hk-member-photo img { transform: scale(1.04); }
.hk .hk-member-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 600; color: var(--hk-muted); }
.hk .is-profile .hk-member { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; border-top: 1px solid var(--hk-line); }
.hk .is-compact .hk-member-photo { margin-bottom: 18px; }
.hk .hk-member-role { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hk-red); margin-bottom: .5rem; }
.hk .hk-member-name { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .6rem; }
.hk .hk-member-bio { color: var(--hk-muted); font-size: .98rem; }
.hk:is(.hk-bg-ink, .hk-bg-navy) .hk-member-bio { color: var(--hk-muted-dark); }
.hk:is(.hk-bg-ink, .hk-bg-navy) .is-profile .hk-member { border-color: var(--hk-line-dark); }

/* ---------- Contact ---------- */
.hk.hk-contact { padding: clamp(80px, 14vh, 160px) 0; }
.hk .hk-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hk .hk-locations { display: grid; gap: 22px; margin-top: 8px; }
.hk .hk-location { padding-top: 18px; border-top: 1px solid var(--hk-line); }
.hk .hk-location-name { font-weight: 600; font-size: 1.1rem; margin-bottom: .4rem; }
.hk .hk-location address { font-style: normal; color: var(--hk-muted); line-height: 1.6; }
.hk .hk-location .hk-tile-link { margin-top: .7rem; font-size: .9rem; color: var(--hk-red); }
.hk .hk-channels { margin-top: 32px; display: grid; gap: 16px; justify-items: start; }
.hk .hk-channel-lines { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.hk .hk-channel-lines a:hover { color: var(--hk-red); }
.hk .hk-map { margin-top: 32px; border-radius: var(--hk-radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--hk-white); }
.hk .hk-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }
.hk .hk-contact-grid.is-no-form { align-items: stretch; }
.hk .hk-contact-map .hk-map { margin-top: 0; height: 100%; min-height: 360px; aspect-ratio: auto; }
.hk .hk-contact-form { scroll-margin-top: 100px; background: var(--hk-white); border-radius: var(--hk-radius); padding: clamp(28px, 3.5vw, 48px); box-shadow: 0 30px 80px -50px rgba(11,12,15,.35); }
.hk .hk-contact-form-title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 1.4rem; }
/* The embedded Elementor form, restyled to match. */
.hk .hk-contact-form .e-con, .hk .hk-contact-form .elementor-section { padding: 0 !important; }
.hk .hk-contact-form .elementor-form .elementor-field-group { margin-bottom: 14px; }
.hk .hk-contact-form .elementor-field-type-html h4 { font-family: var(--hk-sans) !important; color: var(--hk-ink) !important; font-size: 1.1rem; font-weight: 600 !important; letter-spacing: -.02em; margin: 26px 0 2px !important; } /* section headings some saved forms carry inline serif styles */
.hk .hk-contact-form .elementor-form label { font-family: var(--hk-sans) !important; font-size: .85rem !important; font-weight: 600 !important; color: var(--hk-ink) !important; margin-bottom: 6px; }
.hk .hk-contact-form .elementor-form :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea) {
  font-family: var(--hk-sans) !important; font-size: 1rem !important; color: var(--hk-ink) !important;
  background: var(--hk-paper) !important; border: 1px solid transparent !important; border-radius: 12px !important;
  padding: 12px 14px !important; min-height: 48px; box-shadow: none !important;
}
.hk .hk-contact-form .elementor-form :is(input, select, textarea):focus { border-color: var(--hk-red) !important; background: #fff !important; outline: none; }
.hk .hk-contact-form .elementor-form .elementor-button {
  font-family: var(--hk-sans) !important; font-weight: 600 !important; font-size: 1rem !important;
  background: var(--hk-red) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  padding: 1em 1.8em !important; min-height: 52px;
}
.hk .hk-contact-form .elementor-form .elementor-button:hover { background: var(--hk-red-hot) !important; }

/* ---------- News Grid ---------- */
.hk.hk-news { background: var(--hk-white); padding: clamp(80px, 14vh, 160px) 0; }
.hk .hk-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.hk .hk-news-card.is-feature { grid-column: 1 / -1; }
.hk .hk-news-link { display: flex; flex-direction: column; height: 100%; }
.hk .is-feature .hk-news-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hk .hk-news-img { aspect-ratio: 3 / 2; border-radius: var(--hk-radius-sm); overflow: hidden; background: var(--hk-paper); margin-bottom: 20px; }
.hk .is-feature .hk-news-img { margin-bottom: 0; aspect-ratio: 16 / 10; border-radius: var(--hk-radius); }
.hk .hk-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hk-ease); }
.hk .hk-news-link:hover .hk-news-img img { transform: scale(1.04); }
.hk .hk-news-meta { font-size: .8rem; font-weight: 600; color: var(--hk-muted); margin-bottom: .6rem; }
.hk .hk-news-meta span { color: var(--hk-red); letter-spacing: .06em; text-transform: uppercase; }
.hk .hk-news-title { font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .6rem; }
.hk .is-feature .hk-news-title { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.08; }
.hk .hk-news-excerpt { color: var(--hk-muted); font-size: .96rem; }
.hk .hk-news-link .hk-tile-link { margin-top: auto; padding-top: 1rem; }
.hk .is-feature .hk-news-link .hk-tile-link { margin-top: 1rem; }
.hk .hk-pagination { margin-top: 56px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hk .hk-pagination :is(a, span) { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--hk-line); font-weight: 600; }
.hk .hk-pagination .current { background: var(--hk-surface); border-color: var(--hk-surface); color: #fff; }
.hk .hk-pagination a:hover { border-color: var(--hk-surface); }

@media (max-width: 900px) {
  .hk .hk-team-list.is-profile { grid-template-columns: 1fr; }
  .hk .hk-team-list.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk .hk-contact-grid { grid-template-columns: 1fr; }
  .hk .hk-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk .is-feature .hk-news-link { display: flex; }
  .hk .is-feature .hk-news-img { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .hk .is-profile .hk-member { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .hk .hk-news-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   JAPANESE TEXT
   Pages in the Japanese section get lang="ja" on <html> (includes/language.php).
   The Latin display type is set tight and measured in ch, which squeezes kanji,
   so here tracking goes back to normal, lines get taller, and widths use em.
   ========================================================= */
.hk { --hk-sans: "Instrument Sans", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.hk:lang(ja) { line-height: 1.85; line-break: strict; }
.hk :lang(ja) { line-break: strict; }
.hk p:lang(ja) { line-height: 1.85; }
.hk:lang(ja) :is(.hk-display, .hk-ph-title, .hk-statement-text, .hk-chapter-title, .hk-tile-title, .hk-day-title, .hk-story-title, .hk-feature-title, .hk-member-name, .hk-contact-form-title, .hk-news-title, .hk-mobile-menu .hk-mm-top, .hk-cta-head) {
  letter-spacing: 0; line-height: 1.35; font-weight: 700; text-wrap: balance;
}
.hk:lang(ja) .hk-eyebrow { letter-spacing: .08em; }
.hk:lang(ja) .hk-display { font-size: clamp(2rem, 4.8vw, 4.4rem); }
.hk:lang(ja) .hk-display-sm { font-size: clamp(1.7rem, 3.3vw, 3rem); }
.hk.hk-cta:lang(ja) .hk-display { font-size: clamp(2.1rem, 5.4vw, 5.2rem); }
.hk:lang(ja) .hk-ph-title { font-size: clamp(2.1rem, 4.7vw, 4.4rem); }
.hk:lang(ja) .hk-statement-text { max-width: 24em; font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.6; letter-spacing: 0; }
.hk:lang(ja) .hk-lede { max-width: 34em; line-height: 1.9; }
.hk.hk-page-hero:lang(ja) .hk-lede { max-width: 34em; }
.hk.hk-interview:lang(ja) .hk-lede { max-width: 34em; }
.hk:lang(ja) .hk-stat-label { max-width: 14em; }
.hk:lang(ja) .hk-chapter-body { max-width: 24em; }
.hk:lang(ja) .hk-tile-body { max-width: 28em; }
.hk:lang(ja) .hk-feature-title { font-size: 1.25rem; }
.hk:lang(ja) .hk-feature-text, .hk:lang(ja) .hk-split-body { line-height: 1.9; }
.hk:lang(ja) .hk-split-body h3 { letter-spacing: 0; line-height: 1.5; }
.hk:lang(ja) .hk-btn { letter-spacing: 0; }
.hk :is(.hk-split-body, .hk-feature-text, .hk-lede) :lang(en) { letter-spacing: 0; }

/* WPForms (the Japanese contact form) styled like the Elementor form beside it */
.hk .hk-contact-form .wpforms-container { margin: 0; }
.hk .hk-contact-form .wpforms-field { padding: 0 0 14px; }
.hk .hk-contact-form .wpforms-field-label { font-family: var(--hk-sans); font-size: .85rem; font-weight: 600; color: var(--hk-ink); margin: 0 0 6px; }
.hk .hk-contact-form .wpforms-required-label { color: var(--hk-red); }
.hk .hk-contact-form .wpforms-form :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea) {
  width: 100%; max-width: 100%; border: 1px solid transparent; border-radius: 12px; background: var(--hk-paper);
  padding: 14px 16px; font-family: var(--hk-sans); font-size: 1rem; color: var(--hk-ink); height: auto;
}
.hk .hk-contact-form .wpforms-form :is(input, select, textarea):focus { border-color: var(--hk-red); background: #fff; outline: none; box-shadow: none; }
.hk .hk-contact-form .wpforms-form .wpforms-submit {
  border: 0; border-radius: 999px; background: var(--hk-red); color: #fff; font-family: var(--hk-sans);
  font-size: 1rem; font-weight: 600; padding: 15px 32px; cursor: pointer; height: auto;
}
.hk .hk-contact-form .wpforms-form .wpforms-submit:hover { background: var(--hk-red-hot); }

/* Phone fixes (2026-11-13, from Docs/06 Part 3). */
/* The button reset (margin: 0) outranked the menu button's "push right"; this selector is stronger. */
body .hk .hk-nav-toggle { margin-left: auto; }
@media (max-width: 900px) {
  /* Plain deep blue behind the Day 1 to 7 timeline: a wide photo cut to a tall box is just huge blurry faces. */
  .hk .hk-interview-bg { display: none; }
  /* Footer links: about 44px tall to tap. */
  .hk.hk-footer nav { gap: 0; }
  .hk.hk-footer nav a { display: flex; align-items: center; min-height: 44px; }
  /* Small text up to 12 to 13px. */
  .hk .hk-route { font-size: .8rem; }
  .hk .hk-batch-track { font-size: .8rem; }
  .hk .hk-route-map text { font-size: 36px; }
}

/* Phone: Home hero (Docs/06 Part 3, items 2 and 4). */
@media (max-width: 900px) {
  /* The wide photo fills a tall screen, so show it at its own size, centred on the faces, and keep the grey line readable over the sun. */
  .hk .hk-hero-media img { transform: none; object-position: 52% 50%; }
  .hk .hk-hero-sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 14px rgba(11,12,15,.55); }
  /* Page openings: tighter, smaller photo, buttons side by side. */
  .hk.hk-page-hero { padding: calc(var(--hk-nav-h) + 28px) 0 32px; }
  .hk .hk-ph-kanji { margin-bottom: .6rem; }
  .hk .hk-ph-actions { margin-top: 1.2rem; gap: 8px; }
  .hk .hk-ph-actions .hk-btn { width: auto; flex: 1 1 auto; justify-content: center; }
  .hk .hk-ph-media { width: min(46%, 200px); margin-top: 12px; }
  .hk .hk-ph-facts { margin-top: 32px; }
}

/* Phone: shorter long pages (Docs/06 Part 3, item 5). Journey chapters become compact cards; level bars and days are tighter. */
@media (max-width: 900px) {
  .hk .hk-chapter { gap: 14px; padding: 22px var(--hk-gutter) 14px; }
  .hk .hk-chapter-kanji { font-size: 2.6rem; }
  .hk .hk-chapter-num { margin-bottom: .6rem; }
  .hk .hk-chapter-romaji { margin: .4rem 0 .6rem; }
  .hk .hk-chapter-title { margin-bottom: .6rem; }
  .hk .hk-chapter-text .hk-btn { margin-top: 1.2rem; }
  .hk .hk-chapter-media, .hk .hk-chapter-media-tall { aspect-ratio: 2 / 1; }
  .hk .hk-chapter-media-tall img { object-position: 50% 25%; }
  .hk .hk-step-bar { height: 88px; padding-inline: 22px; }
  .hk .hk-step-level { font-size: 2.4rem; }
  .hk .hk-step-info { padding: 6px 4px 12px; }
  .hk .hk-day { padding-bottom: 22px; }
}

/* Phone: a bigger sun, so the circle of photo (the same size) shows the faces and not just shoulders. */
@media (max-width: 900px) {
  .hk.hk-hero { --hk-sun: min(40vw, 29vh); }
}

/* Phone: levels as a compact list (a level badge on the left, its words on the right), Docs/06 Part 3 item 5. */
@media (max-width: 900px) {
  .hk.hk-levels { padding: 72px 0 56px; }
  .hk .hk-steps { gap: 10px; }
  .hk .hk-step { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; gap: 16px; }
  .hk .hk-step-bar { width: auto; height: auto; min-height: 76px; border-radius: 16px; justify-content: center; padding: 0 12px; transform-origin: left; }
  .hk .hk-step-level { font-size: 2rem; }
  .hk .hk-step-info { align-self: center; padding: 0; }
  .hk .hk-step-name { margin-bottom: .15rem; }
  .hk .hk-step-text { font-size: .9rem; line-height: 1.4; }
  .hk .hk-term-strip { margin-top: 32px; padding-top: 20px; gap: 16px; }
  /* Day 1 to 7 timeline */
  .hk.hk-interview { padding: 72px 0; }
  .hk .hk-interview-foot { margin-top: 32px; padding-top: 20px; }
}

/* Phone: page openings with a photo put the photo behind the title (dimmed), instead of a small circle at the bottom.
   The text and the key facts sit on top, so the opening is about one screen. Laptops unchanged. */
@media (max-width: 900px) {
  .hk.hk-page-hero { position: relative; }
  .hk .hk-ph-grid { position: static; }
  .hk .hk-ph-text, .hk .hk-ph-facts { position: relative; z-index: 2; }
  .hk .hk-ph-media { position: absolute; inset: 0; width: auto; margin: 0; justify-self: auto; z-index: 0; }
  .hk .hk-ph-media .hk-ph-sun { display: none; }
  .hk .hk-ph-media .hk-ph-photo, .hk .hk-ph-media.is-sun .hk-ph-photo, .hk .hk-ph-media.is-frame .hk-ph-photo, .hk .hk-ph-media.is-wide .hk-ph-photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .hk .hk-ph-media .hk-ph-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(var(--hk-surface-rgb), .9) 0%, rgba(var(--hk-surface-rgb), .78) 45%, rgba(var(--hk-surface-rgb), .95) 100%);
  }
  .hk .hk-ph-bgkanji { z-index: 1; }
  .hk .hk-ph-actions { flex-wrap: nowrap; }
  .hk .hk-ph-actions .hk-btn { flex: 1 1 0; padding-inline: 12px; font-size: .9rem; white-space: normal; text-align: center; }
  .hk .hk-ph-facts { margin-top: 28px; row-gap: 14px; column-gap: 16px; }
  .hk .hk-ph-fact { padding-top: 12px; }
  .hk .hk-ph-fact dd { font-size: .95rem; }
}

/* Phone: "Four steps" become swipeable cards instead of a tall list. */
@media (max-width: 900px) {
  .hk .hk-start-steps {
    display: flex; gap: 12px; margin: 28px calc(var(--hk-gutter) * -1) 0; padding: 0 var(--hk-gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--hk-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hk .hk-start-steps::-webkit-scrollbar { display: none; }
  .hk .hk-start-steps li {
    flex: 0 0 72%; scroll-snap-align: start; display: block;
    background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 18px; padding: 20px;
  }
  .hk .hk-start-steps span { margin-bottom: 14px; }
  .hk .hk-start-steps h3 { padding-top: 0; }
  .hk.hk-start.is-row .hk-start-steps li { display: block; }
}
@media (max-width: 900px) {
  .hk .hk-start-grid, .hk.hk-start.is-row .hk-start-grid { grid-template-columns: minmax(0, 1fr); }
  .hk .hk-start-grid > * { min-width: 0; }
}

/* Contact, stacked: venue and map in a row, the long form full width underneath in two columns. */
.hk.hk-contact.is-stacked .hk-contact-grid { align-items: stretch; row-gap: clamp(28px, 4vw, 48px); }
.hk.hk-contact.is-stacked .hk-contact-map .hk-map { height: 100%; min-height: 300px; aspect-ratio: auto; margin-top: 0; }
.hk.hk-contact.is-stacked .hk-contact-form { grid-column: 1 / -1; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-form-fields-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 28px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group { grid-column: 1 / -1; width: auto; max-width: none; margin-bottom: 26px; }
.hk.hk-contact.is-stacked .hk-contact-form :is(.elementor-field-group-name, .elementor-field-group-email, .elementor-field-group-field_cc8a587, .elementor-field-group-company) { grid-column: span 3; }
.hk.hk-contact.is-stacked .hk-contact-form :is(.elementor-field-group-field_17b6016, .elementor-field-group-field_bda251e, .elementor-field-group-field_under20) { grid-column: span 2; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_3e7a9e0 textarea { min-height: 90px; height: 90px; }
@media (max-width: 900px) {
  .hk.hk-contact.is-stacked .hk-contact-form :is(.elementor-field-group-name, .elementor-field-group-email, .elementor-field-group-field_cc8a587, .elementor-field-group-company, .elementor-field-group-field_17b6016, .elementor-field-group-field_bda251e, .elementor-field-group-field_under20) { grid-column: 1 / -1; }
}
.hk.hk-contact.is-stacked .hk-contact-form .elementor-form label { line-height: 1.35; }
.hk.hk-contact.is-stacked .hk-contact-form :is(.elementor-field-group-field_17b6016, .elementor-field-group-field_bda251e, .elementor-field-group-field_under20) { align-self: end; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_07e24df .elementor-field-subgroup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_07e24df .elementor-field-option label { font-weight: 400 !important; font-size: .85rem !important; line-height: 1.35; }
@media (max-width: 700px) { .hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_07e24df .elementor-field-subgroup { grid-template-columns: 1fr; } }
.hk.hk-contact.is-formonly .hk-contact-grid { grid-template-columns: 1fr; row-gap: clamp(20px, 3vw, 32px); }
.hk.hk-contact.is-formonly .hk-head { margin-bottom: 0; }
/* Form labels: English on one line, the Japanese lighter beneath it (the script splits "English / 日本語"). */
.hk.hk-contact.is-stacked .hk-contact-form .elementor-form label .hk-lbl-en { display: block; font-size: .9rem; font-weight: 600; color: var(--hk-ink); }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-form label .hk-lbl-ja { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: var(--hk-muted); }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-option label .hk-lbl-en { font-size: .85rem; font-weight: 500; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-option label .hk-lbl-ja { font-size: .75rem; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group > label { margin-bottom: 10px; }
.hk.hk-split.is-compact.is-tight { padding: clamp(44px, 6vh, 64px) 0; }
.hk.hk-split.is-tight .hk-split-grid.is-text-only { max-width: none; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-option { display: flex; align-items: flex-start; gap: 10px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-option input { margin-top: 3px; flex: none; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-option label { margin: 0; }
.hk .hk-feature-action { margin-top: clamp(28px, 3.5vw, 44px); }

/* Page Hero, "Big photo": the Japanese word is the headline, then one large full-width photo (about 2:1),
   then the title and intro under it, then the facts. */
.hk .hk-ph-grid:has(.is-banner) { grid-template-columns: 1fr; min-height: 0; gap: 0; }
.hk .hk-ph-grid:has(.is-banner) .hk-ph-text { display: contents; }
.hk .hk-ph-grid:has(.is-banner) .hk-eyebrow { order: 1; margin-bottom: .6rem; }
.hk .hk-ph-grid:has(.is-banner) .hk-ph-kanji { order: 2; font-size: clamp(4.2rem, 12vw, 10.5rem); letter-spacing: .04em; margin-bottom: clamp(20px, 3vw, 36px); }
.hk .hk-ph-media.is-banner { order: 3; width: 100%; justify-self: stretch; }
.hk .hk-ph-grid:has(.is-banner) .hk-ph-title { order: 4; margin-top: clamp(28px, 4vw, 48px); font-size: clamp(1.9rem, 4vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; }
.hk .hk-ph-grid:has(.is-banner) .hk-lede { order: 5; margin-top: 1rem; }
.hk .hk-ph-media.is-banner .hk-ph-sun { display: none; }
.hk .hk-ph-media.is-banner .hk-ph-photo { aspect-ratio: 2 / 1; border-radius: var(--hk-radius); }
.hk .hk-ph-media.is-banner .hk-ph-photo img { object-position: 50% 42%; }
@media (min-width: 901px) {
  .hk .hk-ph-grid:has(.is-banner) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); }
  .hk .hk-ph-grid:has(.is-banner) :is(.hk-eyebrow, .hk-ph-kanji, .hk-ph-media) { grid-column: 1 / -1; }
  .hk .hk-ph-grid:has(.is-banner) .hk-ph-title { grid-column: 1; align-self: start; }
  .hk .hk-ph-grid:has(.is-banner) .hk-lede { grid-column: 2; align-self: start; margin-top: clamp(30px, 4.2vw, 52px); }
}
@media (max-width: 900px) {
  .hk .hk-ph-grid:has(.is-banner) { position: relative; }
  .hk .hk-ph-media.is-banner { position: relative; inset: auto; z-index: 2; margin-top: 4px; }
  .hk .hk-ph-media.is-banner .hk-ph-photo, .hk .hk-ph-media.is-banner .hk-ph-photo img { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: var(--hk-radius-sm); }
  .hk .hk-ph-media.is-banner .hk-ph-photo::after { display: none; }
  .hk .hk-ph-grid:has(.is-banner) .hk-ph-text > * { position: relative; z-index: 2; }
}
.hk.hk-contact.is-stacked .hk-contact-form { padding: clamp(32px, 4.5vw, 64px); }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_3e7a9e0 textarea { min-height: 110px; height: 110px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_07e24df .elementor-field-subgroup { gap: 14px 32px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_0f56baa, .hk.hk-contact.is-stacked .hk-contact-form .elementor-field-group-field_2586a2c { margin-bottom: 16px; }
.hk.hk-contact.is-stacked .hk-contact-form .elementor-field-type-submit { margin-top: 12px; margin-bottom: 0; }
.hk .hk-ph-actions-below { margin-top: clamp(28px, 4vw, 44px); justify-content: center; }
@media (max-width: 600px) { .hk .hk-cta-sun { --hk-sun: min(84vw, 360px); } }
/* Closing sun section, tight: about half the normal blank space. */
.hk.hk-cta.is-compact.is-tight { padding: clamp(70px, 12vh, 130px) 0 clamp(60px, 9vh, 100px); }
.hk.hk-cta.is-tight .hk-cta-meaning { margin-bottom: 1.4rem; }
.hk.hk-cta.is-tight .hk-cta-actions { margin-top: clamp(1.4rem, 3vh, 2rem); }
.hk.hk-cta.is-tight .hk-cta-contact { margin-top: 1.6rem; }
/* Pages that keep the old site header (it is not floating over the page): no room reserved for the new one. */
body:not(:has(.hk-header-root)) .hk.hk-page-hero { padding-top: clamp(40px, 7vh, 72px); }
/* Pages that keep the old white site header: the deep-blue opening and closing sections sit as rounded panels
   inset from the page edges, so the white header and the blue hero feel like one design. */
body:not(:has(.hk-header-root)) .hk.hk-page-hero { margin: 12px clamp(10px, 2vw, 24px) 0; border-radius: var(--hk-radius); }
body:not(:has(.hk-header-root)) .hk.hk-cta { margin: 0 clamp(10px, 2vw, 24px) 12px; border-radius: var(--hk-radius); }
@media (max-width: 600px) {
  body:not(:has(.hk-header-root)) :is(.hk.hk-page-hero, .hk.hk-cta) { border-radius: var(--hk-radius-sm); }
}
/* Page Hero, "Big headline": plain large text in the main font instead of the red Japanese word. */
.hk .hk-ph-kanji.is-headline { font-family: var(--hk-sans); font-weight: 600; color: #fff; letter-spacing: -0.045em; line-height: 1; font-size: clamp(2.8rem, 8vw, 6.8rem); }
.hk .hk-ph-grid:has(.is-banner) .hk-ph-kanji.is-headline { font-size: clamp(2.4rem, 8.6vw, 7.8rem); letter-spacing: -0.045em; margin-bottom: clamp(20px, 3vw, 36px); }
/* Hero with a big headline: the background Japanese word is only a faint texture, fainter still (and thinner) on phones. */
.hk.hk-page-hero:has(.hk-ph-kanji.is-headline) .hk-ph-bgkanji .hk-kanji-trace { opacity: .08; }
@media (max-width: 900px) {
  .hk.hk-page-hero:has(.hk-ph-kanji.is-headline) .hk-ph-bgkanji .hk-kanji-trace { opacity: .05; stroke-width: 2; }
}

/* Registration form (form-only layout): after a successful submit the fields grey out and blur,
   and a clear thank-you card appears in front of them (the old Night 4 page did the same). Pure CSS; the script only scrolls it into view. */
.hk.hk-contact.is-formonly .hk-contact-form .elementor-form { position: relative; } /* no overflow:hidden here: its rounded corner clipped the first letter of the Name label */
.hk.hk-contact.is-formonly .hk-contact-form .elementor-form-fields-wrapper:has(~ .elementor-message-success) {
  filter: blur(5px); opacity: .28; pointer-events: none; user-select: none; transition: filter .4s ease, opacity .4s ease;
}
.hk.hk-contact.is-formonly .hk-contact-form .elementor-message.elementor-message-success {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 10; width: min(86%, 460px); margin: 0 !important;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 34px 28px 30px !important; border-radius: 20px !important; border: 0 !important;
  background: var(--hk-white) !important; color: var(--hk-ink) !important;
  box-shadow: 0 30px 80px -30px rgba(11,12,15,.5), 0 0 0 1px rgba(11,12,15,.06);
  font-family: var(--hk-sans); font-size: 1.15rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  animation: hk-form-done .55s var(--hk-ease, ease) .1s both;
}
.hk.hk-contact.is-formonly .hk-contact-form .elementor-message-success::before {
  content: "✓"; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%;
  background: var(--hk-red); color: #fff; font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.hk.hk-contact.is-formonly .hk-contact-form .elementor-message-success::after {
  content: "ご登録ありがとうございます。\A確認メールをお送りしました。"; white-space: pre-line; font-family: var(--hk-sans); font-size: .9rem; line-height: 1.7; font-weight: 500; color: var(--hk-muted);
}
@keyframes hk-form-done { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hk.hk-contact.is-formonly .hk-contact-form .elementor-message.elementor-message-success { animation: none; } }
