/* =========================================
   JAIDA — Japan AI Direction Association
   v0 stylesheet · light editorial · photo-rich
   inspired by drsp.cc (white-based)
   ========================================= */

:root {
  /* base palette */
  --bg: #FFFFFF;
  --bg-soft: #FAFAF7;        /* warm off-white */
  --bg-warm: #F2EFE7;         /* card warm */
  --bg-dark: #0E0E0E;         /* dark section */
  --bg-dark-2: #1A1A1E;

  /* text */
  --ink: #0F0F12;
  --ink-mute: #5C5B57;
  --ink-low: #9A9994;
  --ink-on-dark: #FAFAF7;
  --ink-mute-on-dark: #B5B4AC;

  /* lines */
  --line: #E8E6E0;
  --line-soft: #F0EEE8;
  --line-strong: #1F1F22;

  /* accents */
  --gold: #B98E2F;
  --gold-soft: #D6B66A;
  --navy: #1A2845;
  --warm: #DDD4BC;

  /* layout */
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --radius-lg: 14px;

  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { opacity: 0.65; }

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button { font-family: inherit; cursor: pointer; }

.accent { color: var(--gold); }
.muted { color: var(--ink-mute); font-size: 0.85em; }

/* =========================================
   Header
   ========================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-mark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-jp {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 70px 0 auto 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter) 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  gap: 4px;
}

.mobile-nav a {
  padding: 16px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav.open { display: flex; }

/* =========================================
   Hero — large photo + light overlay
   ========================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 35%, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(46px, 8vw, 116px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  color: var(--ink);
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.hero-title .accent {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 0.18em;
  background: var(--gold);
  opacity: 0.4;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.95;
  color: var(--ink-mute);
  max-width: 580px;
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-low);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 100px;
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-low);
}

.hero-scroll i {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--ink-low), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   Marquee（drsp.cc 風 流れるタグ）
   ========================================= */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.marquee-track span {
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: var(--ink-on-dark);
}

.btn-ghost-light:hover {
  background: var(--ink-on-dark);
  color: var(--bg-dark);
  opacity: 1;
}

/* =========================================
   Section base
   ========================================= */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  margin-bottom: 24px;
  padding-left: 28px;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink-mute);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}

.section-title .accent {
  position: relative;
}

/* =========================================
   Mission
   ========================================= */

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

.mission-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.12);
}

.mission-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
}

.mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mission-card:hover .mission-photo img {
  transform: scale(1.04);
}

.mission-body {
  padding: 32px 28px 36px;
}

.mission-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
}

.mission-card h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--ink);
}

.mission-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.85;
}

/* =========================================
   About
   ========================================= */

.section-about {
  background: var(--bg-soft);
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.section-about .section-head,
.section-about .about-grid,
.section-about .about-info,
.section-about .role-diagram {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.rep-photo {
  margin: 0;
}

.rep-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
}

.rep-photo figcaption {
  margin-top: 16px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.6;
}

.about-content {
  padding-top: 8px;
}

.message-head {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
}

.about-content .lead {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
}

.about-content p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-mute);
  margin: 0 0 20px;
}

.about-content strong {
  color: var(--ink);
  font-weight: 700;
}

.about-content .message-tagline {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.about-info {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.about-info h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 28px;
  letter-spacing: 0.08em;
}

.info-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-dl > div {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-dl dt {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-low);
  margin: 0 0 8px;
}

.info-dl dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.role-diagram {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.role-diagram h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 32px;
  letter-spacing: 0.08em;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.role-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.role-card.role-association {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-on-dark);
}

.role-card.role-association .role-detail,
.role-card.role-association p {
  color: var(--ink-mute-on-dark);
}

.role-card.role-association .role-eyebrow {
  color: var(--gold-soft);
}

.role-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}

.role-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.role-detail {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.role-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin: 0;
}

.role-arrow {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--ink-low);
  text-align: center;
}

/* =========================================
   Director
   ========================================= */

.director-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.director-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-text .director-lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.5;
  margin: 0 0 32px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.director-text p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-mute);
  margin: 0 0 18px;
}

.director-text strong {
  color: var(--ink);
}

.compare h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 24px;
  letter-spacing: 0.08em;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  background: var(--bg-soft);
}

.compare-table thead th.highlight {
  color: var(--ink);
  background: var(--bg-warm);
}

.compare-table tbody th {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--bg-soft);
  width: 160px;
}

.compare-table td {
  color: var(--ink-mute);
}

.compare-table td.highlight {
  color: var(--ink);
  font-weight: 600;
  background: rgba(185, 142, 47, 0.06);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.85;
}

/* =========================================
   8 Skills
   ========================================= */

.skills-lead {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin: -40px 0 56px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skill-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg);
  transition: background 0.3s ease;
}

.skill-card:hover {
  background: var(--bg-soft);
}

.skill-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
}

.skill-card h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.skill-en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-low);
  margin-bottom: 20px;
}

.skill-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-mute);
  margin: 0;
}

/* =========================================
   Certification
   ========================================= */

.section-cert {
  background: var(--bg-soft);
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.section-cert .section-head,
.section-cert .cert-lead,
.section-cert .cert-levels,
.section-cert .cert-meta,
.section-cert .cert-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.cert-lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.6;
  margin: -32px auto 56px;
  color: var(--ink);
}

.cert-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.cert-level {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-level:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.12);
}

.cert-level.featured {
  border-color: var(--ink);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.18);
}

.cert-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm);
}

.cert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-body {
  padding: 32px 28px;
}

.cert-level-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--ink);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.cert-level.featured .cert-level-tag {
  background: var(--gold);
}

.cert-level h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--ink);
}

.cert-rate {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

.cert-rate strong {
  color: var(--ink);
  font-weight: 700;
  margin-left: 4px;
  font-size: 16px;
}

.cert-target {
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cert-detail {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
  margin: 0 0 28px;
}

.cert-price {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.cert-meta-item {
  background: var(--bg);
  padding: 24px 22px;
}

.cert-meta-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-low);
  margin-bottom: 8px;
}

.cert-meta-val {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.cert-note {
  font-size: 13px;
  color: var(--ink-low);
  line-height: 1.7;
}

/* =========================================
   Dispatch — dark contrast section
   ========================================= */

.section-dispatch {
  position: relative;
  padding: clamp(100px, 12vw, 160px) var(--gutter);
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.dispatch-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dispatch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.3);
}

.dispatch-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.65) 0%, rgba(14, 14, 14, 0.9) 100%);
}

.dispatch-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.dispatch-label {
  color: var(--gold-soft) !important;
}

.dispatch-label::before {
  background: var(--gold-soft) !important;
}

.dispatch-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.4;
  margin: 0 0 32px;
  color: var(--ink-on-dark);
}

.dispatch-title .accent {
  color: var(--gold-soft);
}

.dispatch-body {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-mute-on-dark);
  max-width: 640px;
  margin: 0 auto 40px;
}

.dispatch-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.section-dispatch .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.section-dispatch .btn-primary:hover {
  background: var(--ink-on-dark);
  color: var(--bg-dark);
}

/* =========================================
   Contact
   ========================================= */

.contact-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-mute);
  margin: -40px 0 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.req {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: var(--ink);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-soft);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-check label {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.btn-submit {
  justify-self: start;
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: var(--ink-low);
  line-height: 1.8;
}

.form-note a {
  color: var(--ink);
  text-decoration: underline;
}

.contact-direct {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.contact-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-direct-body {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.contact-block {
  display: grid;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-low);
}

.contact-block > div:last-child {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  margin-top: 0;
  padding: 56px var(--gutter) 32px;
  background: var(--ink);
  color: var(--ink-on-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold-soft);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-mute-on-dark);
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--ink-on-dark);
  opacity: 1;
}

.footer-name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ink-low);
  text-underline-offset: 3px;
}

.footer-mark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-name {
  font-size: 14px;
  color: var(--ink-mute-on-dark);
  line-height: 1.7;
}

.footer-name .muted {
  color: var(--ink-low);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-low);
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-jp { display: none; }

  .mission-grid { grid-template-columns: 1fr; }

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

  .info-dl { grid-template-columns: 1fr 1fr; }

  .role-cards {
    grid-template-columns: 1fr;
  }
  .role-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .director-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .director-photo {
    aspect-ratio: 16 / 9;
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .cert-levels { grid-template-columns: 1fr; }
  .cert-meta { grid-template-columns: 1fr 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-direct {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }
}

/* =========================================
   Sub-page (terms / privacy / exam)
   ========================================= */

.subpage-hero {
  padding: 160px var(--gutter) 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.subpage-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.subpage-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.subpage-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.3;
  margin: 0 0 16px;
}

.subpage-sub {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 720px;
  line-height: 1.85;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px var(--gutter) 100px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-mute);
}

.legal-body h2 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-body h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 28px 0 12px;
}

.legal-body p {
  margin: 0 0 18px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-meta {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-low);
}

/* Exam page */

.exam-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 100px;
}

.exam-intro {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 820px;
}

.apply-notice {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.apply-notice h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--ink);
}

.apply-notice p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.85;
}

.apply-notice strong {
  color: var(--ink);
}

.gform-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}

.gform-wrap iframe {
  display: block;
  border: 0;
  width: 100%;
  background: var(--bg);
  border-radius: 8px;
}

.exam-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .cert-meta { grid-template-columns: 1fr; }
  .info-dl { grid-template-columns: 1fr; }
  .hero {
    padding: 120px var(--gutter) 60px;
    min-height: 80vh;
  }
  .hero-tag {
    font-size: 10px;
    letter-spacing: 0.3em;
  }
  .compare-table tbody th { width: 110px; }
  .marquee-track { font-size: 14px; gap: 32px; }
}

/* =========================================
   Accessibility
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}

::selection {
  background: var(--ink);
  color: var(--bg);
}
