@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
  --ink: #0f141c;
  --muted: #5b6575;
  --line: #d8e0eb;
  --paper: #ffffff;
  --soft: #f3f6fb;
  --band: #eaf0f8;
  --accent: #1d4f91;
  --accent-deep: #163e73;
  --accent-soft: #d7e5f6;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --wrap: min(1180px, calc(100% - 48px));
  --header-h: 72px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* —— Header (full width) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.site-header-inner {
  width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 24px;
  height: 24px;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-en {
  color: var(--muted);
  font-weight: 500;
}

.brand-former {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}

.lang-btn.is-on,
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* —— Hero full bleed —— */
.hero-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 8% 0%, #d5e5f8 0%, transparent 55%),
    radial-gradient(700px 480px at 92% 20%, #c9dbf0 0%, transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  border-bottom: 1px solid var(--line);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 79, 145, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 79, 145, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 9vh, 96px) 0 clamp(56px, 10vh, 108px);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-copy .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero-copy .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 79, 145, 0.14);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-copy .lede {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

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

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, #fff);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(243, 246, 251, 0.7)),
    radial-gradient(circle at 30% 25%, #d9e8fa, transparent 45%);
  box-shadow: 0 24px 60px rgba(16, 28, 48, 0.08);
  overflow: hidden;
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: end;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 79, 145, 0.22), transparent 70%);
  pointer-events: none;
}

.visual-chip {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.visual-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.visual-body {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
}

/* —— Full-width bands —— */
.band {
  padding: clamp(56px, 9vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.band-soft {
  background: var(--soft);
}

.band-ink {
  background: linear-gradient(180deg, #13233a 0%, #0f1b2d 100%);
  color: #e8eef8;
  border-bottom: 0;
}

.band-ink .muted,
.band-ink .section-lede,
.band-ink .project-desc,
.band-ink .project-link {
  color: #a9b7cc;
}

.band-ink .project {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.band-ink .project:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.band-ink .project-name,
.band-ink a {
  color: #9ec0ef;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.band-ink .section-kicker {
  color: #8eb4ea;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.02rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 180px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 18px 40px rgba(29, 79, 145, 0.1);
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--accent);
}

.project-desc {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.project-link {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.split-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.split-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.split-card p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* —— Inner pages —— */
.page-band {
  background: linear-gradient(180deg, #f7f9fc 0%, var(--paper) 42%);
  border-bottom: 1px solid var(--line);
}

.page-band .wrap {
  padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 8vw, 88px);
  max-width: var(--wrap);
}

.page-band h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-band .lede,
.page-band p {
  margin: 0 0 1rem;
  max-width: 58ch;
}

.page-band .lede {
  color: var(--muted);
  font-size: 1.12rem;
}

.page-band p {
  color: var(--ink);
  font-size: 1.05rem;
}

.note {
  margin-top: 1.25rem;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  max-width: 58ch;
}

/* —— Footer full width —— */
.site-footer {
  background: #0f141c;
  color: #c5cedb;
  padding: 48px 0 calc(36px + env(safe-area-inset-bottom));
}

.footer-grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  margin: 0 0 8px;
}

.footer-blurb {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  color: #9aa6b8;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f8ca0;
}

.footer-col a {
  display: block;
  color: #d5dde8;
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: var(--wrap);
  margin-inline: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #7f8ca0;
}

@media (prefers-reduced-motion: reduce) {
  .project,
  .btn {
    transition: none;
  }
}


.legal-doc {
  max-width: 760px;
}

.legal-doc .meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-doc h2 {
  margin: 1.75rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal-doc p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin: 0.4rem 0;
  color: var(--ink);
}

.legal-doc .note {
  margin-top: 1.5rem;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}


.legal-entity {
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  max-width: 58ch;
}

.legal-entity h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.entity-name,
.footer-entity-name {
  margin: 0 0 8px;
  font-weight: 650;
  color: var(--ink);
}

.entity-addr,
.footer-entity-addr {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-entity-name {
  margin-top: 14px;
  color: #e8eef8;
  font-size: 0.92rem;
}

.footer-entity-addr {
  color: #9aa6b8;
  font-size: 0.85rem;
  max-width: 36ch;
}


.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 650;
  text-decoration: none;
}

.contact-mail:hover {
  text-decoration: underline;
}
