:root {
  --navy: #191c29;
  --paper: #f6f6f2;
  --red: #e83828;
  --white: #ffffff;
  --ink: #171717;
  --muted: #5f5f5a;
  --line: #dfdfd7;
  --max: 1280px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.global-nav {
  display: flex;
  gap: 25px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-nav a {
  position: relative;
  padding: 8px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.18s ease;
}

.global-nav a:hover::after { width: 100%; }

.hero {
  padding: 46px 20px 72px;
  background: var(--paper);
}

.hero--page { padding-bottom: 40px; }

.hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 84px;
  align-items: start;
  margin-bottom: 58px;
}

.hero--page .hero-copy { margin-bottom: 0; }

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero h1 .underline {
  text-decoration-line: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
  text-decoration-color: var(--ink);
}

.hero-lead {
  margin: 12px 0 0;
  max-width: 560px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.32;
  color: #1e1e1e;
  letter-spacing: -0.015em;
}

.movie-wrap {
  width: 100%;
}

.service-movie {
  position: relative;
  width: calc(100vw - 40px);
  height: 760px;
  min-height: 760px;
  margin-left: calc(50% - 50vw + 20px);
  margin-right: calc(50% - 50vw + 20px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(232,56,40,0.18), transparent 24%),
    radial-gradient(circle at 79% 26%, rgba(255,255,255,0.11), transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 28%),
    linear-gradient(135deg, #1f2436 0%, #191c29 48%, #11161f 100%);
  isolation: isolate;
}

/* Hero network canvas — fills the .service-movie container, behind the overlay */
.hero-network__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.service-movie::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.05), transparent 28%),
    linear-gradient(290deg, rgba(232,56,40,0.10), transparent 36%);
  z-index: 0;
  pointer-events: none;
}

.movie-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-circle,
.decor-ring,
.decor-square,
.decor-line {
  position: absolute;
  opacity: 0.75;
}

.decor-circle {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
  animation: floatY 11s ease-in-out infinite;
}

.circle-a { width: 120px; height: 120px; left: 18%; top: 62%; animation-delay: -1s; }
.circle-b { width: 18px; height: 18px; right: 14%; top: 18%; background: var(--red); opacity: 0.85; animation-delay: -5s; }
.circle-c { width: 22px; height: 22px; left: 62%; bottom: 20%; background: rgba(255,255,255,0.8); animation-delay: -8s; }

.decor-ring {
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  animation: spinSlow 18s linear infinite;
}

.ring-a { width: 320px; height: 320px; right: 8%; top: 14%; }
.ring-b { width: 180px; height: 180px; left: 38%; bottom: 8%; animation-direction: reverse; animation-duration: 14s; }

.decor-square {
  width: 260px;
  height: 260px;
  right: 16%;
  top: 22%;
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotate(18deg);
  animation: spinSlow 20s linear infinite;
}

.decor-square::before,
.decor-square::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.10);
  transform: translateX(-50%);
}

.decor-square::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.decor-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  animation: sweepX 9s ease-in-out infinite;
}

.line-a { width: 360px; right: 10%; top: 48%; transform: rotate(-28deg); animation-delay: -2s; }
.line-b { width: 300px; left: 10%; top: 34%; transform: rotate(10deg); animation-delay: -6s; }

.movie-header {
  position: absolute;
  left: 56px;
  top: 52px;
  z-index: 3;
  color: var(--white);
}

.movie-kicker {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.movie-header h2 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.movie-header::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  background: var(--red);
}

.movie-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.service-slide {
  position: absolute;
  inset: 0;
  padding: 182px 58px 106px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    visibility 0.7s ease;
}

.service-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.service-slide.is-exit { opacity: 0; visibility: hidden; transform: translateX(-70px); }

.slide-index {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.service-slide.is-active .slide-index {
  animation: popIn 0.9s cubic-bezier(.2,.8,.2,1);
}

.slide-body {
  position: relative;
  padding-left: 26px;
  max-width: 780px;
}

.slide-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: calc(100% - 12px);
  background: var(--red);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.8s ease 0.15s;
}

.service-slide.is-active .slide-body::before {
  transform: scaleY(1);
}

.slide-body h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.slide-body p {
  margin: 18px 0 0;
  max-width: 700px;
  color: rgba(255,255,255,0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.95vw, 30px);
  line-height: 1.37;
  letter-spacing: -0.015em;
}

.movie-progress {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 44px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.progress-track {
  position: relative;
  display: block;
  height: 4px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(0);
}

.progress-track.is-animating::after {
  animation: progressFill 4.6s linear forwards;
}

.movie-controls {
  position: absolute;
  right: 56px;
  bottom: 70px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.movie-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
  transition: transform 0.25s ease, background 0.25s ease;
}

.movie-dot.is-active {
  background: var(--red);
  transform: scale(1.25);
}

.section {
  padding: 88px 20px;
  background: var(--white);
}

.section:nth-of-type(odd) { background: var(--paper); }

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  margin: 0 auto 56px;
  text-align: center;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head::after,
.contact-panel::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 24px auto 0;
  background: var(--red);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card { text-align: center; }

.service-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

.service-card p {
  margin: 0 auto;
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.about-grid,
.role-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.copy-block h3 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
}

.copy-block p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.image-card {
  min-height: 310px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 74% 34%, rgba(25, 28, 41, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(232, 56, 40, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #ecece6);
  position: relative;
  overflow: hidden;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 44px 44px 44px 44px;
  border: 1px solid rgba(25, 28, 41, 0.15);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(25,28,41,0.16) 49% 51%, transparent 51% 100%),
    linear-gradient(0deg, transparent 0 49%, rgba(232,56,40,0.16) 49% 51%, transparent 51% 100%);
}

.image-card::after {
  content: "SH";
  position: absolute;
  right: 42px;
  bottom: 18px;
  color: rgba(25, 28, 41, 0.12);
  font-size: 104px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.image-card--photo { background: none; }
.image-card--photo::before,
.image-card--photo::after { content: none; }
.image-card--photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.role-card {
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
}

.role-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.mini-list { display: grid; gap: 0; }

.mini-list span {
  display: block;
  padding: 16px 0 16px 25px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  position: relative;
}

.mini-list span:last-child { border-bottom: 1px solid var(--line); }

.mini-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

.contact-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 58px 42px;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    repeating-linear-gradient(45deg, #f0f0ea 0 8px, #ffffff 8px 16px);
  border: 1px solid var(--line);
}

.contact-panel::before { margin-top: 18px; order: 3; }

.contact-panel h2 { margin-top: 8px; }

.contact-panel p:not(.section-label) {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  margin-top: 28px;
  padding: 12px 22px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--red);
}

/* Forms */
.form-section {
  padding: 40px 20px 96px;
  background: var(--paper);
}

.form-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
}

.form-row { display: grid; gap: 8px; }

.form-row label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-row label .req { color: var(--red); margin-left: 4px; }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
}

.form-row textarea { min-height: 160px; resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.form-agree input { margin-top: 4px; }
.form-agree a { color: var(--red); text-decoration: underline; }

/* Honeypot — hidden from sighted users and assistive tech */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-errors {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: #fde8e6;
  border: 1px solid var(--red);
  color: var(--ink);
  font-size: 13px;
}

.form-errors ul { margin: 8px 0 0; padding-left: 20px; }

.form-actions { display: flex; justify-content: flex-end; }

.form-actions .button { margin-top: 0; }

.form-turnstile {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.form-turnstile .cf-turnstile { min-height: 65px; }

/* Privacy / generic article */
.article {
  padding: 16px 20px 88px;
  background: var(--paper);
}

.article-inner {
  width: min(820px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 48px 44px;
}

.article-inner h2 {
  margin: 36px 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.article-inner h2:first-child { margin-top: 0; }

.article-inner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Thanks page */
.thanks {
  padding: 40px 20px 96px;
  background: var(--paper);
  text-align: center;
}

.thanks-inner {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 56px 36px;
  background: var(--white);
  border: 1px solid var(--line);
}

.thanks-inner h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
}

.thanks-inner p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.site-footer {
  padding: 52px 20px;
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-info { max-width: 520px; }

.footer-brand {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.footer-meta {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-meta > div { margin: 0; }

.copyright {
  margin-top: 4px;
  color: rgba(255,255,255,0.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.94);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hamburger toggle — hidden on desktop, shown ≤1024px */
.nav-toggle { display: none; }
.site-header { position: relative; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid rgba(23, 23, 23, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.lang-switch a {
  display: inline-block;
  padding: 2px 2px;
  color: var(--muted);
}

.lang-switch a.is-current {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}

.lang-switch a:hover { color: var(--red); }

.lang-sep { color: var(--muted); opacity: 0.5; }

.lang-switch--footer {
  margin-left: 6px;
  padding-left: 18px;
  border-left-color: rgba(255, 255, 255, 0.22);
}

.lang-switch--footer a { color: rgba(255, 255, 255, 0.7); }
.lang-switch--footer a.is-current {
  color: var(--white);
  text-decoration-color: var(--red);
}
.lang-switch--footer a:hover { color: var(--white); }
.lang-switch--footer .lang-sep { color: rgba(255, 255, 255, 0.4); }

/* ---------- Japanese typography overrides ---------- */

html[lang="ja"] body,
.lang-ja {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "YuGothic", "Yu Gothic", Meiryo,
               "Noto Sans JP", Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

/* Hero title — JP characters are much wider, so scale down */
.lang-ja .hero h1 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* The English company-name lines inside the JP hero get their own sizing */
.lang-ja .hero h1 [lang="en"] {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.045em;
}

.lang-ja .hero-lead {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
               "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.lang-ja .movie-header h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lang-ja .slide-body h3 {
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lang-ja .slide-body p {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
               "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.lang-ja .section h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.lang-ja .copy-block h3,
.lang-ja .role-card h3 { font-size: 17px; line-height: 1.6; }

.lang-ja .copy-block p,
.lang-ja .role-card p,
.lang-ja .article-inner p,
.lang-ja .contact-panel p:not(.section-label) {
  font-size: 14px;
  line-height: 1.95;
}

.lang-ja .service-card h3 { font-size: 15px; line-height: 1.6; }
.lang-ja .service-card p  { font-size: 13px; line-height: 1.95; max-width: 320px; }

.lang-ja .mini-list span { font-size: 13px; }

.lang-ja .contact-panel h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.lang-ja .article-inner h2 { font-size: 16px; line-height: 1.6; }

.lang-ja .button { letter-spacing: 0.06em; }

.lang-ja .thanks-inner h2 { font-size: 24px; line-height: 1.5; }
.lang-ja .thanks-inner p  { font-size: 14px; line-height: 1.95; }

/* Section labels (English uppercase) stay in EN font even in JP context */
.lang-ja .section-label,
.lang-ja .movie-kicker,
.lang-ja .footer-brand,
.lang-ja .copyright,
.lang-ja .lang-switch {
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 560px) {
  .lang-ja .hero h1 { font-size: clamp(26px, 8.4vw, 40px); }
  .lang-ja .hero-lead { font-size: 15px; line-height: 1.75; }
  .lang-ja .movie-header h2 { font-size: 28px; }
  .lang-ja .slide-body h3 { font-size: 22px; }
  .lang-ja .slide-body p  { font-size: 14px; line-height: 1.7; }
  .lang-ja .section h2    { font-size: 18px; }
  .lang-switch { margin-left: 0; padding-left: 14px; }
}

/* ---------- Thai typography overrides ---------- */

html[lang="th"] body,
.lang-th {
  font-family: "Sukhumvit Set", "IBM Plex Sans Thai", "Noto Sans Thai",
               "Leelawadee UI", "Thonburi", Tahoma, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.8;
}

/* Thai script needs extra vertical room for tone marks / vowels above + below.
   Sizes are a bit smaller than EN, but not as compressed as JP. */
.lang-th .hero h1 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lang-th .hero h1 [lang="en"] {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.045em;
}

.lang-th .hero-lead {
  font-family: "Sukhumvit Set", "IBM Plex Sans Thai", "Noto Sans Thai",
               "Leelawadee UI", Tahoma, Georgia, serif;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.7;
  letter-spacing: 0;
}

.lang-th .movie-header h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lang-th .slide-body h3 {
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lang-th .slide-body p {
  font-family: "Sukhumvit Set", "IBM Plex Sans Thai", "Noto Sans Thai",
               "Leelawadee UI", Tahoma, Georgia, serif;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.7;
  letter-spacing: 0;
}

.lang-th .section h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  letter-spacing: 0;
}

.lang-th .copy-block h3,
.lang-th .role-card h3 { font-size: 18px; line-height: 1.6; }

.lang-th .copy-block p,
.lang-th .role-card p,
.lang-th .article-inner p,
.lang-th .contact-panel p:not(.section-label) {
  font-size: 15px;
  line-height: 1.9;
}

.lang-th .service-card h3 { font-size: 16px; line-height: 1.55; }
.lang-th .service-card p  { font-size: 14px; line-height: 1.9; max-width: 320px; }

.lang-th .mini-list span { font-size: 14px; padding-top: 18px; padding-bottom: 18px; }
.lang-th .mini-list span::before { top: 28px; }

.lang-th .contact-panel h2 { font-size: clamp(24px, 2.6vw, 32px); }

.lang-th .article-inner h2 { font-size: 17px; line-height: 1.55; }

.lang-th .thanks-inner h2 { font-size: 26px; line-height: 1.45; }
.lang-th .thanks-inner p  { font-size: 15px; line-height: 1.9; }

.lang-th .section-label,
.lang-th .movie-kicker,
.lang-th .footer-brand,
.lang-th .copyright,
.lang-th .lang-switch {
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 560px) {
  .lang-th .hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .lang-th .hero-lead { font-size: 16px; line-height: 1.7; }
  .lang-th .movie-header h2 { font-size: 30px; }
  .lang-th .slide-body h3 { font-size: 24px; }
  .lang-th .slide-body p  { font-size: 15px; line-height: 1.65; }
  .lang-th .section h2    { font-size: 20px; }
}

@keyframes progressFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes popIn {
  0% { transform: scale(0.72) rotate(-14deg); opacity: 0; }
  60% { transform: scale(1.06) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes floatY { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-12px,0); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sweepX {
  0%,100% { transform: translateX(0) rotate(-28deg); opacity: 0.25; }
  50% { transform: translateX(18px) rotate(-28deg); opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
  .decor-circle,
  .decor-ring,
  .decor-square,
  .decor-line,
  .progress-track::after,
  .service-slide,
  .service-slide.is-active .slide-index {
    animation: none !important;
    transition: none !important;
  }

  .service-slide { display: none; }
  .service-slide:first-child {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .progress-track::after { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .hero--page .hero-copy { margin-bottom: 0; }
  .hero-lead { max-width: 700px; }

  .service-movie {
    width: 100%;
    height: 560px;
    min-height: 560px;
    margin-left: 0;
    margin-right: 0;
  }

  .movie-header { left: 34px; top: 34px; }
  .movie-header h2 { font-size: clamp(36px, 7vw, 62px); }
  .movie-header::after { margin-top: 14px; width: 58px; }

  .service-slide {
    padding: 152px 34px 92px;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
  }

  .slide-index { width: 84px; height: 84px; font-size: 32px; }
  .slide-body h3 { font-size: clamp(34px, 5vw, 54px); }
  .slide-body p { font-size: clamp(18px, 2.2vw, 22px); }

  .movie-progress { left: 34px; right: 34px; bottom: 30px; }
  .movie-controls { right: 34px; bottom: 52px; }

  .service-grid,
  .about-grid,
  .role-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner { flex-direction: column; }

  .contact-form { padding: 28px; }
  .article-inner { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .site-header { position: static; }

  .header-inner {
    width: min(100% - 24px, var(--max));
    height: auto;
    min-height: 60px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
    gap: 10px;
  }

  .global-nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero { padding: 24px 16px 52px; }
  .hero h1 { font-size: clamp(36px, 12vw, 58px); }
  .hero h1 .underline { text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .hero-lead { margin-top: 0; font-size: 18px; line-height: 1.4; }

  .service-movie { height: 540px; min-height: 540px; border-radius: 10px; }
  .movie-header { left: 22px; top: 24px; }
  .movie-kicker { font-size: 9px; letter-spacing: 0.22em; }
  .movie-header h2 { margin-top: 10px; font-size: 34px; }

  .service-slide {
    padding: 120px 22px 74px;
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
  }

  .slide-index { width: 72px; height: 72px; font-size: 26px; }
  .slide-body { padding-left: 0; padding-top: 18px; }

  .slide-body::before {
    left: 0;
    top: 0;
    width: 56px;
    height: 4px;
    transform-origin: left center;
    transform: scaleX(0);
  }

  .service-slide.is-active .slide-body::before { transform: scaleX(1); }

  .slide-body h3 { font-size: 28px; line-height: 1.02; }
  .slide-body p { margin-top: 14px; font-size: 16px; line-height: 1.45; }

  .movie-progress { left: 22px; right: 22px; bottom: 22px; gap: 8px; }
  .movie-controls { right: 22px; bottom: 40px; gap: 8px; font-size: 10px; }

  .ring-a { width: 180px; height: 180px; right: -12%; top: 16%; }
  .decor-square { width: 150px; height: 150px; right: 10%; top: 28%; }
  .line-a { width: 180px; right: -4%; top: 50%; }
  .line-b { width: 140px; left: -4%; top: 26%; }

  .section { padding: 60px 16px; }

  .copy-block p,
  .role-card p,
  .contact-panel p:not(.section-label) { font-size: 13px; }

  .role-card,
  .contact-panel { padding: 34px 22px; }
  .image-card { min-height: 220px; }
  .footer-nav { gap: 14px; }

  .contact-form { padding: 22px; }
  .article-inner { padding: 28px 22px; }
  .thanks-inner { padding: 40px 22px; }
}

/* ---------- Mobile / tablet: hamburger menu (≤1024px) ---------- */
@media (max-width: 1024px) {
  /* Override the existing 560 block so header stays a single row */
  .site-header { position: relative; }

  .header-inner {
    height: 62px;
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 16px;
    width: min(var(--max), calc(100% - 32px));
  }

  /* Hamburger button */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.22s ease, top 0.22s ease, background 0.22s ease;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after  { top:  7px; }

  .site-header.is-open .nav-toggle-bar { background: transparent; }
  .site-header.is-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

  /* Nav becomes a dropdown panel */
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-top: 1px solid rgba(23, 23, 23, 0.06);
    border-bottom: 1px solid rgba(23, 23, 23, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    overflow: visible;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 13px;
  }

  .site-header.is-open .global-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .global-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .global-nav a::after { display: none; }

  /* Language switcher inside the open panel */
  .lang-switch {
    margin-left: 0;
    margin-top: 6px;
    padding: 14px 0 4px;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: center;
    gap: 14px;
  }
  .lang-switch a { padding: 4px 6px; }
}

/* Lock body scroll while the mobile menu is open */
@media (max-width: 1024px) {
  body:has(.site-header.is-open) { overflow: hidden; }
}
