/* RENDZE — dark, mobile-first, 16px gutters, no frameworks */
:root {
  --bg: #0b0d14;
  --bg2: #10131d;
  --card: #141826;
  --line: #222842;
  --text: #ffffff;
  --muted: #a9b0c6;
  --blue: #2F6BFF;
  --blue2: #6f9bff;
  --radius: 14px;
  --gut: 16px;
  --max: 1160px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.lang-th { --font: Inter, "Noto Sans Thai", system-ui, sans-serif; }
.lang-ja { --font: Inter, "Noto Sans JP", system-ui, sans-serif; }
.lang-ko { --font: Inter, "Noto Sans KR", system-ui, sans-serif; }
.lang-zh { --font: Inter, "Noto Sans TC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65; overflow-x: hidden; min-height: 100vh;
}
.lang-th body, body.lang-th { line-height: 1.8; }
/* subtle holographic grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 80% -5%, rgba(47, 107, 255, .22), transparent 70%),
    radial-gradient(40% 35% at 0% 30%, rgba(160, 90, 255, .10), transparent 70%),
    radial-gradient(35% 30% at 100% 70%, rgba(40, 220, 200, .07), transparent 70%),
    linear-gradient(rgba(111, 155, 255, .07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(111, 155, 255, .07) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 12px; min-height: 60px; position: relative; }
.brand { display: block; margin-right: auto; }
.brand img { width: 132px; height: 44px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; background: rgba(47, 107, 255, .14); }
.menu-btn { display: none; }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.lang-switch a { display: block; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; }
.lang-switch a:hover, .lang-switch a[aria-current] { background: rgba(47, 107, 255, .18); }

@media (max-width: 860px) {
  .js .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; order: 3;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; cursor: pointer;
  }
  .js .menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .js .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 14px; }
  .js .main-nav.open { display: block; }
  .js .main-nav ul { flex-direction: column; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 10px 8px; }
  html:not(.js) .hdr { flex-wrap: wrap; padding-bottom: 6px; }
  html:not(.js) .main-nav { order: 4; width: 100%; }
}

.lang-suggest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 10px var(--gut); background: rgba(47, 107, 255, .15); border-bottom: 1px solid var(--line); font-size: .92rem;
}
.lang-suggest[hidden] { display: none; }
.lang-suggest a { font-weight: 700; }
.lang-suggest button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 14px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; overflow-wrap: anywhere; }

/* ---------- sections ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(1.8rem, 5.2vw, 3rem); max-width: 22ch; }
.lang-ja .page-head h1, .lang-zh .page-head h1, .lang-ko .page-head h1, .lang-th .page-head h1 { max-width: 28ch; }
.eyebrow { color: var(--blue2); font-weight: 800; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; margin-bottom: 10px; }
.answer { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #dfe4f3; max-width: 70ch; }
.lead { color: var(--muted); max-width: 70ch; }
.note { color: var(--muted); font-size: .9rem; }
.strong { font-weight: 700; font-size: 1.1rem; }
.more { margin-top: 18px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.panel {
  background: linear-gradient(160deg, rgba(47,107,255,.14), rgba(20,24,38,.9) 45%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px var(--gut);
}
@media (min-width: 700px) { .panel { padding: 32px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 20px; text-align: center; overflow: hidden; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(640px, 92%); height: auto; margin: 0 auto 4px; filter: drop-shadow(0 0 28px rgba(47,107,255,.45)); }
.hero h1 { max-width: 20ch; margin: 6px auto 14px; background: linear-gradient(90deg, #fff 30%, #9fbaff 70%, #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-ja .hero h1, .lang-zh .hero h1, .lang-ko .hero h1, .lang-th .hero h1 { max-width: 24ch; }
.hero .answer { margin: 0 auto 22px; }

/* countdown */
.countdown { width: 100%; max-width: 560px; margin: 4px auto 22px; }
.cd-h { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell { background: rgba(20,24,38,.85); border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; box-shadow: inset 0 0 24px rgba(47,107,255,.12); }
.cd-cell b { display: block; font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-cell span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cd-text { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.countdown.live .cd-grid { display: none; }

/* CTA */
.cta-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 4px; }
.page-head .cta-box, .panel .cta-box, .article .cta-box { align-items: flex-start; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1.02rem; }
.btn-line { background: #06C755; color: #fff; box-shadow: 0 8px 30px rgba(6,199,85,.35); }
.btn-line:hover { background: #05b34c; color: #fff; transform: translateY(-1px); }
.cta-note { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- trainee cards ---------- */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .t-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t-card {
  background: var(--card); border: 1px solid color-mix(in srgb, var(--g) 45%, var(--line)); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 10px 30px -14px var(--g); transition: transform .2s, box-shadow .2s; scroll-margin-top: 80px;
}
.t-card:hover, .t-card:target { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--g), 0 14px 40px -12px var(--g); }
.t-img { position: relative; aspect-ratio: 2 / 3; background: radial-gradient(70% 50% at 50% 60%, color-mix(in srgb, var(--g) 22%, transparent), transparent), #0a0c13; }
.t-img img { width: 100%; height: 100%; object-fit: cover; }
.t-lock {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(11,13,20,.75); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 700;
}
.t-lock svg { fill: none; stroke: currentColor; stroke-width: 2; }
.t-no { position: absolute; right: 10px; bottom: 6px; font-size: 2.2rem; font-weight: 800; color: var(--g); opacity: .9; text-shadow: 0 0 18px var(--g); line-height: 1; }
.t-body { padding: 12px; }
.t-body h3 { font-size: 1rem; margin-bottom: 8px; }
.t-hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; }
.t-hints li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 4px; }
.t-hints span { color: var(--muted); flex-shrink: 0; }
.t-hints b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.sw { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 8px var(--g); margin-right: 6px; vertical-align: -1px; }
.t-reveal { margin: 10px 0 0; font-size: .78rem; color: var(--blue2); font-weight: 600; }

/* ---------- steps / timeline ---------- */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); font-weight: 800; margin-bottom: 10px; box-shadow: 0 0 20px rgba(47,107,255,.6); }

.timeline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; gap: 2px 16px; padding: 0 0 18px 20px; }
@media (min-width: 640px) { .timeline li { grid-template-columns: 130px 1fr; } }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.timeline li:last-child::before { background: #fff; box-shadow: 0 0 16px #fff; }
.tl-w { color: var(--blue2); font-weight: 800; font-size: .9rem; }
.timeline h3 { margin: 0; font-size: 1rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: rgba(47,107,255,.12); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 700; }
.tbl a { text-decoration: none; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.facts th { width: 40%; color: var(--muted); font-weight: 600; }
.weekbar { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 14px; }
.wk { text-align: center; font-size: .7rem; font-weight: 700; padding: 6px 0; border-radius: 4px; background: var(--card); color: var(--muted); }
.wk.rv { background: rgba(47,107,255,.25); color: #fff; }
.wk.gs { background: rgba(160,90,255,.35); color: #fff; }
.wk.el { background: rgba(255,80,110,.22); color: #fff; }
.wk.fi { background: rgba(255,190,60,.35); color: #fff; }
.wk.db { background: #fff; color: var(--bg); }

/* ---------- lists ---------- */
.rules { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.rules li::marker { color: var(--blue2); font-weight: 800; }
.checks { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cards4 { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.meter { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 10px; }
.meter li { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 640px) { .meter li { grid-template-columns: 220px 56px 1fr; align-items: center; gap: 14px; } }
.meter-bar { display: block; height: 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--blue), #9fbaff, #fff); box-shadow: 0 0 12px var(--blue); }
.meter b { color: var(--blue2); }
.mix { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.mix li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.mix-bar { display: block; height: 10px; border-radius: 99px; background: var(--card); overflow: hidden; }
.mix-bar i { display: block; height: 100%; width: calc(var(--n) * 25%); background: var(--blue); }
.toc { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: #fff; font-size: .9rem; }
.toc a:hover { border-color: var(--blue); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq-item[open] { border-color: rgba(47,107,255,.55); }
.faq-item summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--blue2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* ---------- about ---------- */
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; gap: 40px; } }
.two-col p { color: #d5daea; }
.staff { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .staff { grid-template-columns: repeat(3, 1fr); } }
.staff-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.staff-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.staff-ph { aspect-ratio: 2 / 3; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--blue2); background: #0a0c13; }
.staff-body { padding: 16px; }
.staff-body h3 { margin-bottom: 2px; font-size: 1.3rem; }
.staff-role { color: var(--blue2); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.staff-body p:last-child { color: var(--muted); margin: 0; }

/* ---------- news / article / legal ---------- */
.news-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.news-card a { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; }
@media (min-width: 760px) { .news-card a { grid-template-columns: 1fr 1.2fr; } }
.news-card a:hover { border-color: var(--blue); }
.news-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.news-card div { padding: 18px; }
.news-card time { color: var(--muted); font-size: .85rem; }
.news-card p { color: var(--muted); }
.empty h2 { margin-bottom: 8px; }
.article, .legal { max-width: 820px; padding-top: 24px; }
.article-head { padding: 0; }
.article h1, .legal h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.article section, .legal section { margin-top: 32px; }
.article section p, .legal section p, .legal li { color: #d5daea; }
.article-img { border-radius: var(--radius); border: 1px solid var(--line); margin-top: 18px; width: 100%; }
.byline { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.3rem; scroll-margin-top: 80px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.toc-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 16px; }
.toc-box ol { margin: 0; padding-left: 1.3em; columns: 2 220px; }
.toc-box a { text-decoration: none; }
.nf { padding-bottom: 60px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: rgba(10, 12, 19, .9); padding: 40px 0 24px; font-size: .92rem; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.foot-logo img { width: 48px; height: 48px; border-radius: 12px; }
.foot-logo small { display: block; font-size: .65rem; letter-spacing: .2em; color: var(--blue2); }
.foot-brand p { color: var(--muted); }
.ai-note { font-size: .85rem; border-left: 2px solid var(--blue); padding-left: 10px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); overflow-wrap: anywhere; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--blue2); }
.social span { color: var(--muted); font-size: .85em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-bottom p { margin: 0; }
.foot-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-langs a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
