/* ===== Design tokens ===== */
:root {
  /* ===== Brand colors (logo: yellow / green / blue) ===== */
  --brand-yellow: #F4B223;  --brand-yellow-d: #d6960f;
  --brand-green:  #18A64E;  --brand-green-d:  #12863f;
  --brand-blue:   #1FB4D4;  --brand-blue-d:   #1593ad;

  /* Deep teal-blue base, harmonised with the blue ring */
  --navy: #0e3a47;        /* headings, nav, dark text */
  --navy-dark: #082c37;   /* hero / footer base */
  --navy-soft: #14596c;   /* mid teal */
  --accent: var(--brand-yellow);      /* primary CTA accent */
  --accent-dark: var(--brand-yellow-d);
  --ink: #1c2733;
  --muted: #5b6975;
  --line: #dde7e9;
  --bg: #ffffff;
  --bg-alt: #f2f8f9;
  --bg-tint: #e6f1f3;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(13, 42, 74, 0.08);
  --shadow-lg: 0 16px 44px rgba(13, 42, 74, 0.14);
  --max: 1140px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.4; margin: 0; }

.container { width: 90%; max-width: var(--max); margin-inline: auto; }

/* ===== Icons ===== */
.ic {
  width: 1.4em; height: 1.4em; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em; padding: .9em 1.8em; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(246,166,35,.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; padding: 1.1em; font-size: 1.05rem; }

/* ===== Keyboard focus (accessibility) ===== */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 300;
  background: var(--navy); color: #fff; padding: .6em 1.2em; border-radius: 0 0 10px 10px;
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ===== Fine grain overlay (breaks flatness, adds premium texture) ===== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo--footer { height: 56px; margin-bottom: .2rem; }
.brand-mark {
  font-weight: 900; font-size: 1.25rem; letter-spacing: .02em;
  color: var(--navy); line-height: 1;
}
.brand-mark span { color: var(--accent-dark); }
.brand-name { font-weight: 700; font-size: .95rem; color: var(--ink); }

.nav-list { display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: .9rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.brand-name { white-space: nowrap; }
.nav-list a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: .55em 1.2em; border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 8rem 0 7rem;
  background: var(--navy-dark);
}
/* cross-fading background slideshow */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
/* left-weighted dark overlay keeps white text legible over any slide */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(8,44,55,.90) 0%, rgba(8,44,55,.66) 30%,
    rgba(10,56,70,.32) 55%, rgba(12,70,88,.08) 78%, rgba(12,70,88,0) 100%);
}
.hero-scene {
  position: absolute; right: 0; bottom: 0; z-index: 0;
  width: min(70%, 900px); height: 100%; opacity: .9; pointer-events: none;
}
.hero.has-slides .hero-scene { opacity: 0; } /* hide illustration once slides load */
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  color: var(--accent); margin: 0 0 1.2rem; padding: .35em 1.1em;
  background: rgba(246,166,35,.12); border: 1px solid rgba(246,166,35,.5); border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.3rem); font-weight: 900; line-height: 1.18;
  letter-spacing: -.02em; margin: 0 0 1.5rem; text-shadow: 0 2px 22px rgba(4,24,30,.55);
}
.hero-title .hl { color: var(--brand-yellow); position: relative; white-space: nowrap; }
.hero-title .hl::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .04em; height: .14em;
  background: var(--brand-yellow); opacity: .35; border-radius: 2px; z-index: -1;
}
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 600px; color: #eef4f8; margin: 0 0 2.4rem; text-shadow: 0 1px 10px rgba(4,24,30,.5); }
.hero-lead strong { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0; }

/* asymmetric layout: copy left, glass fact-panel right */
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy { min-width: 0; }

.hero-card {
  position: relative; align-self: center; animation: heroFloat 7s ease-in-out infinite;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px; padding: 1.7rem 1.7rem 1.4rem;
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 50px rgba(4,24,30,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }
.hero-card-label {
  font-weight: 800; font-size: .76rem; letter-spacing: .16em; color: var(--brand-yellow);
  margin: 0 0 1.1rem; text-transform: uppercase;
}
.hero-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hero-card-list li { display: flex; gap: .9rem; align-items: flex-start; }
.hc-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--navy-dark);
}
.hc-ic .ic { width: 22px; height: 22px; }
.hc-ic.c1 { background: var(--brand-yellow); }
.hc-ic.c2 { background: var(--brand-green); color: #fff; }
.hc-ic.c3 { background: var(--brand-blue); color: #fff; }
.hc-txt { font-size: .9rem; color: #e8f0f4; line-height: 1.45; }
.hc-txt strong { display: block; color: #fff; font-size: .98rem; margin-bottom: .1rem; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ===== Strengths band ===== */
.strengths { background: #fff; padding: 3rem 0 1rem; }
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.strength {
  text-align: center; padding: 1.8rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.strength-ic {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--bg-tint); color: var(--navy);
}
.strength-ic .ic { width: 32px; height: 32px; }
/* three pillars in the three brand colors */
.strength:nth-child(1) .strength-ic { background: #fdf0d6; color: var(--brand-yellow-d); }
.strength:nth-child(2) .strength-ic { background: #ddf3e6; color: var(--brand-green-d); }
.strength:nth-child(3) .strength-ic { background: #d8f1f8; color: var(--brand-blue-d); }
.strength:nth-child(1) { border-top: 3px solid var(--brand-yellow); }
.strength:nth-child(2) { border-top: 3px solid var(--brand-green); }
.strength:nth-child(3) { border-top: 3px solid var(--brand-blue); }
.strength h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem; }
.strength p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== Impact numbers band (bold statement) ===== */
.impact {
  color: #fff; padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(8,44,55,.95), rgba(14,58,71,.9) 60%, rgba(15,80,99,.82)),
    url("assets/arrows.svg") right center / cover no-repeat,
    var(--navy-dark);
}
.impact-lead {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  text-align: center; font-size: clamp(1.25rem, 2.8vw, 1.9rem); font-weight: 900;
  letter-spacing: -.01em; margin: 0 0 2.6rem; line-height: 1.5;
}
.impact-lead span { color: var(--brand-yellow); }
.impact-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.impact-grid li {
  position: relative; padding: 0 .5rem;
}
.impact-grid li + li::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: rgba(255,255,255,.16);
}
.impact-grid strong {
  display: block; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.impact-grid li:nth-child(1) strong { color: var(--brand-yellow); }
.impact-grid li:nth-child(2) strong { color: var(--brand-green); }
.impact-grid li:nth-child(3) strong { color: var(--brand-blue); }
.impact-grid li:nth-child(4) strong { color: var(--brand-yellow); }
.impact-grid span { display: block; margin-top: .6rem; font-size: .9rem; color: #cfe0e7; font-weight: 500; }

/* ===== Text selection ===== */
::selection { background: var(--brand-yellow); color: var(--navy-dark); }

/* ===== Marquee (editorial scrolling strip) ===== */
.marquee {
  overflow: hidden; white-space: nowrap; background: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .95rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.6rem;
  animation: marquee 42s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 800; font-size: 1.05rem; color: var(--navy); letter-spacing: .01em;
}
.mq-dot { width: 8px; height: 8px; transform: rotate(45deg); flex: 0 0 auto; border-radius: 1px; }
.mq-dot.c1 { background: var(--brand-yellow); }
.mq-dot.c2 { background: var(--brand-green); }
.mq-dot.c3 { background: var(--brand-blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== Cursor spotlight on cards ===== */
.course-card, .dx-card, .cert-card { --mx: 50%; --my: 0%; }
.course-card::after, .dx-card::after, .cert-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(31,180,212,.12), transparent 60%);
}
.course-card:hover::after, .dx-card:hover::after, .cert-card:hover::after { opacity: 1; }
.course-card > *, .dx-card > *, .cert-card > * { position: relative; z-index: 1; }

/* ===== Header shrink on scroll ===== */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(8,44,55,.10); background: rgba(255,255,255,.96);
}
.site-header.scrolled .header-inner { height: 58px; }
.header-inner { transition: height .25s ease; }
.site-header.scrolled .brand-logo { height: 36px; }
.brand-logo { transition: height .25s ease; }

/* ===== Section base ===== */
.section { padding: 6.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 3.4rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-weight: 800; letter-spacing: .2em; font-size: .8rem; color: var(--accent-dark); margin: 0 0 .9rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ""; width: 26px; height: 2px; background: currentColor; opacity: .5; border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; color: var(--navy);
  letter-spacing: -.015em; position: relative; display: inline-block; padding-bottom: .7rem;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 72px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg,
    var(--brand-yellow) 0 33.3%,
    var(--brand-green) 33.3% 66.6%,
    var(--brand-blue) 66.6% 100%);
}
.section-desc { color: var(--muted); margin-top: 1.2rem; font-size: .98rem; }

/* ===== Courses ===== */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.course-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease; overflow: hidden;
}
/* colored top cap, cycling the three brand colors across the cards */
.course-card { border-top: 4px solid var(--brand-blue); }
.course-card:nth-child(3n+2) { border-top-color: var(--brand-green); }
.course-card:nth-child(3n)   { border-top-color: var(--brand-blue); }
.course-card:nth-child(3n+1) { border-top-color: var(--brand-yellow); }
/* big editorial index number 01–08 */
.course-grid { counter-reset: course; }
.course-card { counter-increment: course; }
.course-card::before {
  content: counter(course, decimal-leading-zero);
  position: absolute; top: .9rem; right: 1.2rem; z-index: 1;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -.02em;
  color: var(--navy); opacity: .09; font-variant-numeric: tabular-nums;
  transition: opacity .25s ease, color .25s ease;
}
.course-card:hover::before { opacity: .18; }
.course-card--feature::before { font-size: 3.4rem; top: 1.4rem; right: 1.8rem; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 14px; background: var(--bg-tint); color: var(--navy); flex: 0 0 auto;
}
.course-ic .ic { width: 30px; height: 30px; }
.course-card:hover .course-ic { background: var(--accent); color: var(--navy-dark); }

.course-card--feature {
  grid-column: 1 / -1; border: 2px solid var(--accent);
  background: linear-gradient(115deg, #fffdf6 0%, #fff 55%);
  flex-direction: row; gap: 1.6rem; align-items: flex-start;
}
.course-card--feature .course-ic { width: 72px; height: 72px; background: var(--accent); color: var(--navy-dark); }
.course-card--feature .course-ic .ic { width: 40px; height: 40px; }
.course-card--feature .course-body { flex: 1; }

.course-tag {
  align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; color: var(--navy);
  background: var(--bg-tint); padding: .25em 1em; border-radius: 999px; margin-bottom: .9rem;
}
.course-name { font-size: 1.15rem; color: var(--navy); margin-bottom: .8rem; }
.course-text { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; flex: 1; }
.course-meta { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .45rem; }
.course-meta li { font-size: .88rem; display: flex; gap: .6rem; align-items: baseline; }
.course-meta span {
  flex: 0 0 56px; font-weight: 700; font-size: .76rem; color: #fff; background: var(--navy-soft);
  border-radius: 6px; text-align: center; height: fit-content; padding: .15em 0;
}
.course-meta em { color: var(--accent-dark); font-style: normal; font-weight: 700; }

.course-note {
  margin-top: 2rem; background: var(--bg-tint); border-left: 5px solid var(--accent);
  border-radius: 10px; padding: 1.2rem 1.5rem;
}
.course-note p { margin: 0; font-size: .95rem; }

/* ===== Qualification ===== */
.qual-wrap {
  max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.qual-photo {
  position: relative; min-height: 280px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  background-size: cover; background-position: center;
}
.qual-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.qual-photo.bg-loaded .qual-art { display: none; } /* hide art when real photo loads */
.qual-box { padding: 2.4rem; border-top: 4px solid var(--accent); }
.qual-box p { margin: 0 0 1.2rem; }
.qual-box p:last-child { margin-bottom: 0; }
.qual-box strong { color: var(--navy); }

/* ===== Flow ===== */
.flow-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 1.2rem; }
.flow-step { position: relative; display: flex; gap: 1.4rem; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.flow-num {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 900; font-size: 1.3rem; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(8,44,55,.3);
}
.flow-step:nth-child(4n+1) .flow-num { background: var(--brand-yellow); color: var(--navy-dark); }
.flow-step:nth-child(4n+2) .flow-num { background: var(--brand-green); }
.flow-step:nth-child(4n+3) .flow-num { background: var(--brand-blue); }
.flow-step:nth-child(4n)   .flow-num { background: var(--navy-soft); }
.flow-body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .35rem; }
.flow-body p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ===== Certificate ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 880px; margin: 0 auto; }
.cert-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cert-ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem;
  border-radius: 14px; background: var(--accent); color: var(--navy-dark);
}
.cert-ic .ic { width: 30px; height: 30px; }
.cert-card:nth-child(1) .cert-ic { background: var(--brand-green); color: #fff; }
.cert-card:nth-child(2) .cert-ic { background: var(--brand-blue); color: #fff; }
.cert-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: .7rem; }
.cert-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.cert-card strong { color: var(--accent-dark); }

/* ===== CTA band ===== */
.cta-band {
  position: relative; color: #fff; text-align: center; padding: 5.5rem 0;
  background:
    linear-gradient(rgba(8,44,55,.92), rgba(14,58,71,.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M-10 10 L10 -10 M0 40 L40 0 M30 50 L50 30' stroke='%23f6a623' stroke-width='6' stroke-opacity='0.25'/%3E%3C/svg%3E"),
    var(--navy);
  background-size: cover, 40px 40px, cover; background-position: center;
}
.cta-band.bg-loaded {
  background:
    linear-gradient(rgba(8,44,55,.88), rgba(14,58,71,.82)),
    var(--cta-img) center / cover no-repeat,
    var(--navy);
}
.cta-inner h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta-inner p { color: #dbe5ef; margin: 0 0 2.1rem; font-size: 1.05rem; }

/* ===== About ===== */
.about-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.about-table th, .about-table td { text-align: left; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: 0; }
.about-table th { width: 30%; background: var(--bg-tint); color: var(--navy); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 3rem; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-dark); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* ===== Apply form ===== */
.apply-form { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.apply-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .5rem; color: var(--ink); }
.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="email"],
.apply-form input[type="number"],
.apply-form input[type="date"],
.apply-form textarea {
  width: 100%; padding: .85em 1em; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fcfdfe; transition: border .15s, box-shadow .15s;
}
.apply-form input:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(246,166,35,.18);
}
.apply-form textarea { resize: vertical; }
.req { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; background: #d9534f; border-radius: 5px; padding: .1em .6em; margin-left: .3em; vertical-align: middle; }

fieldset.form-row { border: 1.5px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; }
fieldset.form-row legend { font-weight: 700; font-size: .9rem; padding: 0 .5em; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400 !important; font-size: .9rem !important; cursor: pointer; margin-bottom: 0 !important; }
.check input { margin-top: .3em; flex: 0 0 auto; accent-color: var(--accent-dark); }
.form-consent .check a { font-weight: 700; }

.form-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
.form-feedback { text-align: center; font-weight: 700; margin: 1rem 0 0; min-height: 1.4em; }
.form-feedback.ok { color: #1e8a4c; }
.form-feedback.err { color: #d9534f; }
.input-error { border-color: #d9534f !important; }
.tel-inline { font-weight: 700; color: var(--accent-dark); }

/* ===== Cancellation ===== */
.cancel-box { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cancel-box > p { margin-top: 0; }
.cancel-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.cancel-table th, .cancel-table td { padding: .9rem 1.1rem; border: 1px solid var(--line); text-align: left; font-size: .93rem; }
.cancel-table thead th { background: var(--navy); color: #fff; }
.cancel-table tbody tr:nth-child(odd) { background: var(--bg-alt); }
.cancel-notes { margin: 1.2rem 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; display: grid; gap: .4rem; }
.cancel-caution { font-size: .85rem; color: var(--muted); margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #cdd8e4; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding: 3rem 0; }
.footer-brand .brand-mark { color: #fff; font-size: 1.4rem; }
.footer-brand .brand-mark span { color: var(--accent); }
.footer-brand p { margin: .6rem 0 0; font-weight: 700; color: #fff; }
.footer-small { font-weight: 400 !important; color: #9fb2c6 !important; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-content: flex-start; }
.footer-nav a { color: #cdd8e4; font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; }
.footer-bottom small { color: #8ca0b6; }

/* ===== DX / Tools ===== */
.dx-feature {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: center;
  border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8,44,55,.96) 0%, rgba(14,58,71,.9) 55%, rgba(15,80,99,.78) 100%),
    url("assets/arrows.svg") center / cover no-repeat,
    var(--navy-dark);
  color: #fff; padding: 2.6rem; box-shadow: var(--shadow-lg);
}
.dx-tag { background: var(--brand-yellow); color: var(--navy-dark); }
.dx-name { font-size: 1.55rem; font-weight: 900; margin: .3rem 0 1rem; line-height: 1.35; }
.dx-sub { display: block; font-size: 1rem; font-weight: 700; color: var(--brand-yellow); margin-top: .3rem; }
.dx-text { color: #d9e8ee; margin: 0 0 1.3rem; font-size: .97rem; }
.dx-points { list-style: none; margin: 0 0 1.7rem; padding: 0; display: grid; gap: .65rem; }
.dx-points li { padding-left: 1.7em; position: relative; font-size: .93rem; }
.dx-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900;
}
.dx-points li:nth-child(1)::before { color: var(--brand-yellow); }
.dx-points li:nth-child(2)::before { color: var(--brand-green); }
.dx-points li:nth-child(3)::before { color: var(--brand-blue); }

.dx-flow { display: grid; gap: .4rem; justify-items: center; }
.dx-step {
  display: flex; align-items: center; gap: .9rem; width: 100%; max-width: 300px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: .95rem 1.3rem; backdrop-filter: blur(2px);
}
.dx-step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; }
.dx-step-ic .ic { width: 26px; height: 26px; }
.dx-step:nth-of-type(1) .dx-step-ic { background: var(--brand-yellow); color: var(--navy-dark); }
.dx-step:nth-of-type(2) .dx-step-ic { background: var(--brand-green); color: #fff; }
.dx-step:nth-of-type(3) .dx-step-ic { background: var(--brand-blue); color: #fff; }
.dx-step p { margin: 0; font-weight: 700; line-height: 1.4; }
.dx-step small { display: block; color: #b8d3dd; font-weight: 400; font-size: .8rem; }
.dx-flow-arrow { color: var(--brand-yellow); font-size: .8rem; opacity: .85; }

.dx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
/* 格安ホームページ作成カード：上部オレンジライン（他カードと同じ::before方式に統一） */
.dx-card--hp::before { background: #F5832B; }
.dx-card--hp .dx-ic { background: #fce6d2; color: #d56a16; }
.dx-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dx-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.dx-card:nth-child(1)::before { background: var(--brand-green); }
.dx-card:nth-child(2)::before { background: var(--brand-blue); }
.dx-ic {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: .9rem;
  border-radius: 14px; background: var(--bg-tint); color: var(--navy);
}
.dx-ic .ic { width: 28px; height: 28px; }
.dx-card:nth-child(1) .dx-ic { background: #ddf3e6; color: var(--brand-green-d); }
.dx-card:nth-child(2) .dx-ic { background: #d8f1f8; color: var(--brand-blue-d); }
.dx-card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: .6rem; }
.dx-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.dx-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.8rem 0 0; padding: 0; text-align: center; }
.dx-stats li { background: var(--bg-tint); border-radius: var(--radius); padding: 1.3rem 1rem; }
.dx-stats strong { display: block; font-size: 1.65rem; font-weight: 900; line-height: 1.3; }
.dx-stats li:nth-child(1) strong { color: var(--brand-yellow-d); }
.dx-stats li:nth-child(2) strong { color: var(--brand-green-d); }
.dx-stats li:nth-child(3) strong { color: var(--brand-blue-d); }
.dx-stats span { color: var(--muted); font-size: .86rem; }

.check--dx { font-weight: 700 !important; color: var(--navy-soft); }

/* ===== Headings font ===== */
.hero-title, .section-title, .dx-name, .cta-inner h2 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}
.hero-title, .section-title, .dx-name, .cta-inner h2, .course-name, .strength h3 {
  text-wrap: balance; /* avoid orphaned single words on the last line */
}
/* tabular figures for stats & tables so numbers line up */
.dx-stats strong, .cancel-table td, .about-table td { font-variant-numeric: tabular-nums; }

/* active section in nav (set by scroll-spy in JS) */
.nav-list a.is-current { color: var(--accent-dark); }
.nav-list a.is-current::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--accent); margin-top: 2px;
}
@media (max-width: 980px) {
  .nav-list a.is-current::after { display: none; }
  .nav-list a.is-current { color: var(--accent-dark); background: var(--bg-tint); }
}

/* ===== Scroll progress bar ===== */
#progressBar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green), var(--brand-blue));
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
}

/* ===== Legal pages (privacy) ===== */
.legal { max-width: 820px; }
.legal h2 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 1.2rem; color: var(--navy); margin: 2rem 0 .6rem;
  padding-left: .7rem; border-left: 4px solid var(--brand-green);
}
.legal p { color: var(--ink); margin: 0 0 1rem; }
.legal-list { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .45rem; color: var(--ink); }
.legal-date { color: var(--muted); font-size: .9rem; }

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  background: var(--accent); color: var(--navy-dark); font-weight: 700;
  padding: .9em 1.5em; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: none;
}
.floating-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ===== Back-to-top ===== */
#toTop {
  position: fixed; right: 1.3rem; bottom: 5rem; z-index: 91;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(8,44,55,.28);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { background: var(--navy-soft); transform: translateY(-2px); }
@media (max-width: 980px) { #toTop { bottom: 5.2rem; right: 1rem; } }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: var(--navy-dark);
  animation: preFailsafe .5s ease 2.4s forwards; /* CSS fallback: hides even if JS never runs */
}
#preloader.done { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.pre-inner { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.pre-logo { animation: prePop .8s cubic-bezier(.2,.8,.2,1) both; }
.pre-name {
  margin: 0; color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 1rem;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  opacity: 0; animation: preFade .6s ease .35s forwards;
}
.pre-bar {
  width: 120px; height: 3px; border-radius: 3px; overflow: hidden; position: relative;
  background: rgba(255,255,255,.16);
}
.pre-bar::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green), var(--brand-blue));
  animation: preBar 1.6s ease forwards;
}
@keyframes prePop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes preFade { to { opacity: 1; } }
@keyframes preBar { to { transform: scaleX(1); } }
@keyframes preFailsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #preloader { animation: preFailsafe .3s ease .4s forwards; }
  .pre-logo, .pre-name, .pre-bar::after { animation: none; opacity: 1; }
}

/* ===== Section underline draw-in on scroll ===== */
.section-title::after { transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .7s cubic-bezier(.2,.7,.2,1) .15s; }
.section-head.is-visible .section-title::after { transform: translateX(-50%) scaleX(1); }
.section-head:not(.reveal) .section-title::after { transform: translateX(-50%) scaleX(1); } /* fallback if JS off */

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .qual-wrap { grid-template-columns: 1fr; }
  .qual-photo { min-height: 200px; }
  .dx-feature { grid-template-columns: 1fr; padding: 1.8rem; }
  .dx-grid { grid-template-columns: 1fr; }
  .dx-stats { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-list.open { max-height: 600px; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 1rem 1.2rem; }
  .nav-cta { border-radius: 0; text-align: center; }
  .floating-cta { display: inline-block; }
  .strengths-grid { grid-template-columns: 1fr; }
  .course-card--feature { flex-direction: column; gap: 1rem; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { animation: none; max-width: 460px; }
}
@media (max-width: 880px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .impact-grid li:nth-child(3)::before { display: none; }
  .section { padding: 4.8rem 0; }
}
@media (max-width: 560px) {
  .form-grid, .check-grid { grid-template-columns: 1fr; }
  .hero { padding: 5.5rem 0 4.5rem; }
  .apply-form, .qual-box, .cancel-box { padding: 1.5rem; }
  .about-table th { width: 38%; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   MODERN DARK THEME  (appended — wins by source order)
   Deep cool base, vivid 3-color accents, glass surfaces, ambient glow
   ===================================================================== */
:root {
  --bg: #0b1014;
  --bg-alt: #0e151b;
  --bg-tint: #18232b;
  --ink: #e7eef3;
  --muted: #9aabb5;
  --line: rgba(255,255,255,.10);
  --navy: #ecf4f8;          /* now used as light heading/text colour */
  --surface: #121a21;       /* card surface */
  --surface-2: #161f27;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(0,0,0,.45);
  --shadow-lg: 0 26px 64px rgba(0,0,0,.58);
}

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

/* ambient colour glows behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -5%, rgba(31,180,212,.12), transparent 60%),
    radial-gradient(50vw 50vw at 100% 8%, rgba(24,166,78,.10), transparent 60%),
    radial-gradient(55vw 55vw at 50% 115%, rgba(244,178,35,.08), transparent 60%);
}

/* ---- header ---- */
.site-header { background: rgba(11,16,20,.72); border-bottom-color: var(--line); }
.site-header.scrolled { background: rgba(11,16,20,.9); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.brand-name { color: var(--ink); }
.nav-list a { color: var(--ink); }
.nav-cta { background: var(--brand-yellow); color: var(--navy-dark) !important; }
.nav-cta:hover { background: var(--brand-yellow-d); }
.nav-toggle span { background: var(--ink); }
@media (max-width: 980px) {
  .nav-list { background: #0d141a; border-bottom-color: var(--line); }
  .nav-list li { border-top-color: var(--line); }
  .nav-list a.is-current { background: var(--surface-2); }
}

/* ---- surfaces become dark glass ---- */
.strengths { background: transparent; }
.strength { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line); }
.marquee { background: var(--surface); border-color: var(--line); }
.marquee span { color: var(--ink); }
.course-card, .cert-card, .flow-step, .faq-item, .apply-form, .cancel-box, .dx-card,
.qual-wrap, .about-table {
  background: var(--surface); border-color: var(--line);
}
.course-card--feature {
  background: linear-gradient(115deg, rgba(244,178,35,.10) 0%, var(--surface) 55%);
  border-color: rgba(244,178,35,.55);
}
.course-card::before { color: #fff; }                 /* big index number ghost */
.qual-box { background: transparent; }
.about-table th { background: var(--bg-tint); color: var(--navy); }
.about-table th, .about-table td { border-bottom-color: var(--line); }
.cancel-table th, .cancel-table td { border-color: var(--line); }
.cancel-table thead th { background: var(--navy-soft); }
.cancel-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); }
.course-note { background: var(--bg-tint); }
.dx-stats li { background: var(--bg-tint); }
.faq-item summary { color: var(--ink); }
.course-tag { background: var(--bg-tint); color: var(--ink); }

/* headings stay light via --navy; ensure key ones */
.section-title, .course-name, .cert-card h3, .dx-card h3, .flow-body h3, .qual-box strong, .legal h2 { color: var(--navy); }

/* ---- form fields dark ---- */
.apply-form input[type="text"], .apply-form input[type="tel"], .apply-form input[type="email"],
.apply-form input[type="number"], .apply-form input[type="date"], .apply-form textarea {
  background: #0e161c; color: var(--ink); border-color: var(--line);
}
.apply-form input::placeholder, .apply-form textarea::placeholder { color: #6f8089; }
.apply-form input[type="date"] { color-scheme: dark; }
.apply-form label { color: var(--ink); }
fieldset.form-row { border-color: var(--line); }

/* ---- dark-bg utility elements kept dark ---- */
#toTop { background: var(--surface-2); border: 1px solid var(--line); }
#toTop:hover { background: #1d2a33; }

/* ---- modern surface polish ---- */
.course-card, .cert-card, .dx-card, .strength, .flow-step { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-card:hover, .dx-card:hover, .cert-card:hover { border-color: rgba(31,180,212,.5); }
.course-card::after, .dx-card::after, .cert-card::after {
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(31,180,212,.18), transparent 60%);
}

/* gradient text accent on the impact lead */
.impact-lead span {
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green), var(--brand-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* qualification box text on dark */
.qual-box p { color: var(--ink); }
.qual-box strong { color: var(--brand-blue); }

/* =====================================================================
   EDGE  —  dark-tech sharpening layer
   ===================================================================== */

/* blueprint grid woven into the ambient glow layer (construction × tech) */
body::before {
  background:
    radial-gradient(60vw 60vw at 8% -5%, rgba(31,180,212,.14), transparent 60%),
    radial-gradient(50vw 50vw at 100% 8%, rgba(24,166,78,.11), transparent 60%),
    radial-gradient(55vw 55vw at 50% 118%, rgba(244,178,35,.09), transparent 60%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 46px 46px;
}

/* rotating gradient glow-border on the flagship 日報OCR card */
.dx-feature { position: relative; z-index: 0; }
.dx-feature::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(var(--brand-yellow), var(--brand-green), var(--brand-blue), var(--brand-yellow));
  filter: blur(7px); opacity: .5; animation: edgeSpin 7s linear infinite;
}
@keyframes edgeSpin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .dx-feature::before { animation: none; } }

/* static accent glow on the RST feature card */
.course-card--feature { box-shadow: var(--shadow-lg), 0 0 40px rgba(244,178,35,.16); }

/* neon glow on accent numbers + primary buttons */
.impact-grid strong { text-shadow: 0 0 26px currentColor; }
.btn-primary { box-shadow: 0 10px 32px rgba(244,178,35,.42); }
.btn-primary:hover { box-shadow: 0 14px 42px rgba(244,178,35,.55); }
.floating-cta { box-shadow: 0 10px 30px rgba(244,178,35,.45); }

/* animated gradient on the hero emphasis word */
.hero-title .hl {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--brand-yellow), var(--brand-blue) 45%, var(--brand-green) 70%, var(--brand-yellow));
  background-size: 280% 100%; animation: hlShift 6s linear infinite;
  filter: drop-shadow(0 1px 14px rgba(31,180,212,.35));
}
.hero-title .hl::after { display: none; }
@keyframes hlShift { to { background-position: 280% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-title .hl { animation: none; } }

/* section titles get a faint glow so they read as "lit" */
.section-title { text-shadow: 0 0 30px rgba(31,180,212,.12); }

/* cursor-follow ambient light */
#cursorGlow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; z-index: 1; pointer-events: none;
  margin: -230px 0 0 -230px; border-radius: 50%; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(circle, rgba(31,180,212,.10), transparent 60%);
  mix-blend-mode: screen;
}
#cursorGlow.on { opacity: 1; }

/* tighten the marquee + glass edges for a sharper look */
.hero-card { border-color: rgba(255,255,255,.32); box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.course-card--feature { border-width: 1.5px; }

/* kinetic hero headline — lines rise in with stagger */
.hero-title .line { display: block; opacity: 0; transform: translateY(28px); animation: lineUp .95s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .line:nth-child(1) { animation-delay: .45s; }
.hero-title .line:nth-child(2) { animation-delay: .62s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title .line { opacity: 1; transform: none; animation: none; } }

/* 3D tilt cards (JS sets transform; this provides smoothing + GPU hints) */
.course-card, .dx-card, .cert-card { transform-style: preserve-3d; will-change: transform; }
.course-card.tilt, .dx-card.tilt, .cert-card.tilt { transition: transform .12s ease-out, border-color .2s ease, box-shadow .2s ease; }
.course-card.tilt:not(:hover), .dx-card.tilt:not(:hover), .cert-card.tilt:not(:hover) { transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .2s ease; }

/* OCR-style scan line sweeping the 日報OCR flow */
.dx-flow { position: relative; overflow: hidden; }
.dx-flow::after {
  content: ""; position: absolute; left: -10%; right: -10%; height: 42%; top: -42%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(31,180,212,.16) 60%, rgba(31,180,212,.45));
  border-bottom: 2px solid rgba(120,225,255,.7);
  filter: blur(1px); animation: ocrScan 3.4s ease-in-out infinite;
}
@keyframes ocrScan {
  0% { top: -42%; opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dx-flow::after { display: none; } }

/* =====================================================================
   MULTI-PAGE  (sub-page headers, home overview cards)
   ===================================================================== */
/* sub-page header band */
.page-hero{position:relative;overflow:hidden;text-align:center;padding:7.5rem 0 3.2rem;
  background:linear-gradient(120deg,rgba(8,44,55,.96),rgba(14,58,71,.92) 60%,rgba(15,80,99,.85)),var(--navy-dark);}
.page-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:linear-gradient(90deg,var(--brand-yellow),var(--brand-green),var(--brand-blue));}
.page-hero .section-eyebrow{justify-content:center;color:var(--brand-yellow);}
.page-hero h1{font-family:"Zen Kaku Gothic New","Noto Sans JP",sans-serif;font-size:clamp(1.9rem,4.6vw,3rem);font-weight:900;color:#fff;letter-spacing:-.01em;margin:.2rem 0 1rem;}
.page-hero p{color:#cfe0e7;max-width:680px;margin:0 auto;font-size:.98rem;}
.breadcrumb{display:flex;justify-content:center;gap:.5em;font-size:.82rem;color:#9fb2bc;margin-bottom:1rem;}
.breadcrumb a{color:#cfe0e7;}
.breadcrumb a:hover{color:var(--brand-yellow);text-decoration:none;}

/* compact overview cards (home → links out) */
.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;margin-top:.5rem;}
.mini-card{display:flex;align-items:center;gap:.85rem;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand-blue);border-radius:12px;padding:1rem 1.15rem;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.mini-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-left-color:var(--brand-yellow);text-decoration:none;}
.mini-card:nth-child(3n+2){border-left-color:var(--brand-green);}
.mini-card:nth-child(3n){border-left-color:var(--brand-yellow);}
.mini-card .ic{width:26px;height:26px;color:var(--brand-blue);flex:0 0 auto;}
.mini-card span{font-family:"Zen Kaku Gothic New","Noto Sans JP",sans-serif;font-weight:700;font-size:.9rem;color:var(--navy);line-height:1.35;}
.overview-cta{text-align:center;margin-top:2.6rem;}
.overview-note{text-align:center;color:var(--muted);font-size:.86rem;margin-top:1.2rem;}

/* a soft link card for the DX teaser on home */
.teaser{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center;background:linear-gradient(115deg,rgba(8,44,55,.96),rgba(14,58,71,.9) 60%,rgba(15,80,99,.82)),var(--navy-dark);border-radius:var(--radius);padding:2.6rem;box-shadow:var(--shadow-lg);color:#fff;}
.teaser h3{font-family:"Zen Kaku Gothic New","Noto Sans JP",sans-serif;font-size:1.5rem;font-weight:900;margin:.4rem 0 .9rem;}
.teaser h3 .accent{background:linear-gradient(90deg,var(--brand-yellow),var(--brand-green),var(--brand-blue));-webkit-background-clip:text;background-clip:text;color:transparent;}
.teaser p{color:#d9e8ee;font-size:.95rem;margin:0 0 1.4rem;}
.teaser .dx-tag{margin-bottom:.4rem;}
.teaser-points{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.55rem;}
.teaser-points li{padding-left:1.6em;position:relative;font-size:.92rem;}
.teaser-points li::before{content:"✓";position:absolute;left:0;color:var(--brand-green);font-weight:900;}
.teaser-visual{display:grid;gap:.5rem;justify-items:center;}
@media (max-width:880px){ .teaser{grid-template-columns:1fr;padding:1.8rem;} }
