/* nuspace.net: the public site. Nuspace's own colours, from the logo: blue and coral on white. */
:root {
  --ink: #14213d;
  --ink-soft: #4a5672;
  --blue: #1f6fb8;
  --blue-dark: #17558f;
  --blue-pale: #e6f0fa;
  --coral: #f2545b;
  --coral-pale: #fde8e9;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #dde4ee;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { padding: 18px 0; position: relative; z-index: 5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav .nav-link { display: none; } }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: transparent; font: 700 0.8rem/1 var(--font); color: var(--ink-soft); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { background: var(--blue-pale); }
.lang-switch button.on { background: var(--ink); color: var(--white); }
.lang-switch button:focus-visible { outline: 3px solid rgba(31, 111, 184, 0.5); outline-offset: 1px; }

/* Hero */
.hero { position: relative; padding: 40px 0 80px; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--coral); background: var(--coral-pale); padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.2; margin: 16px 0; letter-spacing: -0.01em; }
h1 span { color: var(--blue); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; }
html[lang="ja"] h1 { font-size: clamp(1.8rem, 4.2vw, 2.75rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 12px; }
.button.primary { background: var(--blue); color: var(--white); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--white); border: 1px solid var(--line); }
.hero-media { justify-self: center; width: 100%; max-width: 420px; padding: 0 36px; }
.hero-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: 0 30px 60px -24px rgba(20, 33, 61, 0.3); max-width: 280px; margin: 0 auto; }
.hero-mark img { width: 45%; height: auto; }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; margin: 0 0 6px; }
.sub { color: var(--ink-soft); margin: 0 0 32px; max-width: 40em; }
.services { background: var(--white); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(20, 33, 61, 0.35); border-color: rgba(31, 111, 184, 0.35); }
.card h3 { margin: 12px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-pale); color: var(--blue); font-size: 1.3rem; font-weight: 700; }
.card:nth-child(even) .icon { background: var(--coral-pale); color: var(--coral); }

.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.step-number { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.step:nth-child(odd) .step-number { background: var(--coral); }
.step span:last-child { color: var(--ink-soft); font-size: 0.95rem; }

.cta .box { background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta .section-title { color: var(--white); }
.cta p { color: #c9d3e6; margin: 8px auto 24px; max-width: 34em; }
.cta .button.primary { background: var(--coral); font-size: 1.05rem; }
.cta .button.primary:hover { background: #d9434a; }
.company { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; text-align: left; max-width: 34em; margin: 32px auto 0; font-size: 0.92rem; color: #c9d3e6; }
.company dt { font-weight: 700; color: var(--white); }
.company dd { margin: 0; }

footer { padding: 28px 0 40px; font-size: 0.88rem; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Legal page */
.legal { padding: 24px 0 72px; }
.legal h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.legal dl { display: grid; grid-template-columns: minmax(8em, 12em) 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 24px 0 0; }
.legal dt, .legal dd { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); }
.legal dt { font-weight: 700; background: var(--paper); }
.legal dt:first-of-type, .legal dd:first-of-type { border-top: 0; }
.legal dd p { margin: 0 0 8px; }
.legal dd p:last-child { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { border-top: 0; padding-top: 0; } }
.notfound { text-align: center; padding: 96px 0; }
