/* zhongyuan.tokyo — a landing page that sends visitors on to three companies,
   drawn as three blue lines. Blues differ in lightness so they stay distinct. */
:root {
  --ink: #0f1b3d; --mute: #4a5672; --line: #dce3ef; --soft: #eef3fb;
  --l1: #1e3a8a; --l2: #2563eb; --l3: #0e7490;
  --sans: "Noto Sans SC", "Noto Sans JP", "Noto Sans", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --gro: "Space Grotesk", "Noto Sans SC", "Noto Sans JP", "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.8; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--l2); }
:focus-visible { outline: 3px solid var(--l2); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 5; padding: 10px 16px; background: #fff; font-weight: 700; }
.skip:focus { top: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.rails { display: flex; height: 10px; }
.rails span { flex: 1; }
.rails span:nth-child(1) { background: var(--l1); }
.rails span:nth-child(2) { background: var(--l2); }
.rails span:nth-child(3) { background: var(--l3); }

.site-header { max-width: 1160px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { font-family: var(--gro); font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang { display: flex; gap: 20px; font-family: var(--gro); }
.lang a { padding: 12px 2px; font-size: 14px; color: var(--mute); text-decoration: none; border-bottom: 3px solid transparent; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.hero { max-width: 1160px; margin: 0 auto; padding: 64px 40px 72px; display: flex; flex-direction: column; gap: 24px; }
.tag { align-self: flex-start; padding: 6px 16px; font-family: var(--gro); font-size: 14px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6.6vw, 84px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
:lang(en) .hero h1 { font-size: clamp(32px, 5.6vw, 72px); line-height: 1.15; }
.sub { max-width: 720px; font-size: 20px; line-height: 1.9; color: var(--mute); }

/* three lines, three stops */
.lines { padding-bottom: 88px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; --c: var(--l1); }
.line:last-child { border-bottom: 1px solid var(--line); }
.line-2 { --c: var(--l2); }
.line-3 { --c: var(--l3); }
.line-no { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--c); font-family: var(--gro); font-size: 22px; font-weight: 700; }
.line-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.line-title { font-size: 26px; font-weight: 900; line-height: 1.4; }
.line-desc { font-size: 15px; line-height: 1.8; color: var(--mute); }
.line-rail { flex: 1 1 80px; height: 8px; border-radius: 4px; background: var(--c); }
.line-stop { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; min-width: 232px; justify-content: space-between; padding: 14px 20px; color: var(--ink); border: 3px solid var(--c); border-radius: 999px; transition: background 0.2s, color 0.2s; }
.line-stop > span { display: flex; flex-direction: column; }
.line-co { font-family: var(--gro); font-size: 18px; font-weight: 700; line-height: 1.3; }
.line-domain { font-family: var(--gro); font-size: 13px; color: var(--mute); }
.line:hover .line-stop, .line:focus-visible .line-stop { color: #fff; background: var(--c); }
.line:hover .line-domain, .line:focus-visible .line-domain { color: #fff; }

.band { background: var(--soft); }
.two { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px 72px; }
.col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-wide { flex: 1.4 1 440px; gap: 10px; }
.band h2, .contact h2 { font-size: 34px; font-weight: 900; line-height: 1.3; }
.col p { font-size: 16px; line-height: 2; }
.col .small { font-size: 14px; line-height: 1.8; color: var(--mute); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; color: #fff; background: var(--ink); border-radius: 999px; text-decoration: none; }
.btn-pill:hover { color: #fff; background: var(--l2); }
.roles { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); font-size: 15px; }
.roles li { display: flex; flex-wrap: wrap; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roles .when { flex: 0 0 160px; font-family: var(--gro); font-size: 14px; color: var(--mute); }
.roles .what { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.roles .desc { font-size: 14px; line-height: 1.8; color: var(--mute); }
.edu { display: flex; gap: 16px; font-size: 15px; line-height: 1.8; }
.edu strong { flex: none; }

.contact { max-width: 760px; margin: 0 auto; padding: 96px 40px; display: flex; flex-direction: column; gap: 22px; }
.muted { font-size: 16px; color: var(--mute); }
form { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row .field { flex: 1 1 220px; }
label { font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
textarea { resize: vertical; line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { align-self: flex-start; min-height: 48px; padding: 0 28px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }
.btn-send:hover { background: var(--l2); }
.btn-send[disabled] { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.8em; font-size: 15px; font-weight: 500; }
.form-status.is-error { color: #a4161a; }
.form-status.is-ok { color: var(--l3); }

.site-footer { padding: 28px 40px 40px; border-top: 1px solid var(--line); text-align: center; font-family: var(--gro); font-size: 13px; color: var(--mute); }

@media (max-width: 720px) {
  .wrap, .site-header, .hero, .contact { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .lang { gap: 14px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .sub { font-size: 17px; }
  .line { gap: 12px 16px; padding: 22px 0; }
  .line-no { width: 48px; height: 48px; font-size: 18px; }
  .line-text { flex-basis: 200px; }
  .line-title { font-size: 21px; }
  .line-rail { display: none; }
  .line-stop { flex: 1 1 100%; }
  .two { padding-top: 56px; padding-bottom: 56px; }
  .roles .when { flex-basis: 100%; }
  .contact { padding-top: 64px; padding-bottom: 64px; }
  .band h2, .contact h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .line-stop { transition: none; } }
