@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #F4F3F0;
  --panel-deep: #0F2236;
  --panel-deep-2: #17304A;
  --ink: #1B2430;
  --steel: #5B6169;
  --steel-light: #8D95A0;
  --accent: #2F5578;
  --accent-bright: #3E6D95;
  --accent-light: #A9CBE4;
  --accent-soft: #E7EEF4;
  --line: #DDE1E4;
  --line-deep: rgba(255,255,255,0.12);
  --white: #FFFFFF;

  --font-display: 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(32, 34, 38, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-deep);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links { display: flex; gap: 38px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-light);
}
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-bright); }

/* Deep sections */
.deep-section {
  background: linear-gradient(180deg, var(--panel-deep) 0%, var(--panel-deep-2) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero { padding: 168px 0 72px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: block;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.4;
  max-width: 720px;
}
.page-hero .lead {
  margin-top: 20px;
  max-width: 600px;
  color: rgba(255,255,255,0.66);
  font-size: 16px;
}

section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-head .eyebrow.dark { color: var(--accent); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.4;
  color: var(--ink);
}
.section-head p { margin-top: 14px; color: var(--steel); font-size: 15.5px; }

.divider { border: none; border-top: 1px solid var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 2px; font-size: 14.5px; font-weight: 500;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline.on-light { border-color: var(--line); color: var(--ink); }
.btn-outline.on-light:hover { border-color: var(--ink); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 32px; }

.site-footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; font-size: 14.5px; }
.footer-grid a { color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--line-deep); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-right: 8px;
}
.lang-switch a { color: rgba(255,255,255,0.55); padding: 4px 2px; }
.lang-switch a.active { color: var(--white); font-weight: 500; }
.lang-switch a:hover { color: var(--white); }
.lang-switch .sep { color: rgba(255,255,255,0.25); }
.mobile-lang-switch {
  display: flex;
  gap: 14px;
  padding: 16px 0 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.mobile-lang-switch a { color: rgba(255,255,255,0.55); padding: 0; border-bottom: none !important; }
.mobile-lang-switch a.active { color: var(--accent-light); font-weight: 500; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(15, 34, 54, 0.98);
  backdrop-filter: blur(8px);
  padding: 8px 32px 20px;
  border-bottom: 1px solid var(--line-deep);
  z-index: 99;
}
.mobile-nav a {
  color: rgba(255,255,255,0.82);
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-deep);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--accent-light); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  text-align: center;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 2px;
  padding: 13px 0;
  font-weight: 500;
  border-bottom: none !important;
}
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section.block { padding: 64px 0; }
}
