:root {
  --primary: #0017c1;
  --primary-hover: #000082;
  --primary-active: #000060;
  --primary-light: #e8f1fe;
  --primary-pale: #f5f8ff;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --surface: #fff;
  --surface-subtle: #f5f5f5;
  --surface-dark: #1a1a1a;
  --border: #949494;
  --border-light: #d8d8d8;
  --success: #197a3b;
  --focus-yellow: #ffd43b;
  --max-width: 1200px;
  --radius-small: 8px;
  --radius-medium: 12px;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #ffe5a0; color: var(--text); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  padding: 12px 16px;
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(255, 255, 255, .97);
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border-light);
}
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: var(--radius-small); font-size: 17px; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a, .site-footer > a:last-child { color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.desktop-nav a:hover, .site-footer > a:last-child:hover { text-decoration-thickness: 3px; }
.header-cta { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: var(--radius-small); font-size: 14px; font-weight: 700; text-decoration: none; }
.header-cta:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(48px, 7vw, 96px); min-height: 700px; max-width: var(--max-width); margin: 0 auto; padding: 96px 24px 112px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px; padding: 8px 14px; background: #edf7f0; color: #0f5b2b; border: 1px solid #78b98b; border-radius: var(--radius-small); font-size: 14px; font-weight: 600; }
.status-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; }
.hero h1 { margin: 0; font-size: clamp(56px, 7.2vw, 88px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.hero h1 > span { display: block; }
.accent-line { color: var(--primary); }
.title-dot { display: none; }
.hero-mission { max-width: 640px; margin: 40px 0 16px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.6; }
.hero-description { max-width: 620px; margin: 0; color: var(--text-secondary); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 180px; min-height: 56px; padding: 12px 20px; border: 2px solid var(--primary); border-radius: var(--radius-small); font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-primary:active { background: var(--primary-active); border-color: var(--primary-active); }
.button-secondary { background: var(--surface); color: var(--primary); }
.button-secondary:hover { background: var(--primary-light); }

.hero-visual { position: relative; display: grid; gap: 0; padding: 32px; background: var(--primary-pale); border: 1px solid var(--border-light); border-top: 6px solid var(--primary); border-radius: var(--radius-medium); }
.hero-visual::before { content: "IDEA TO PRODUCT"; display: block; margin-bottom: 24px; color: var(--primary); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.orbit, .flow-line { display: none; }
.visual-card { position: static; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; width: auto; height: auto; padding: 24px 0; background: transparent; color: var(--text); border: 0; border-top: 1px solid var(--border-light); border-radius: 0; box-shadow: none; transform: none; }
.visual-card:last-of-type { border-bottom: 1px solid var(--border-light); }
.visual-number, .spark { grid-row: 1 / 3; display: grid; place-items: center; align-self: start; width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: var(--radius-small); font-family: var(--mono); font-size: 14px; }
.spark { font-size: 20px; }
.visual-card strong { align-self: auto; font-size: 20px; font-style: normal; font-weight: 700; }
.visual-card small { align-self: auto; color: var(--text-secondary); font-size: 14px; font-weight: 400; }
.card-idea, .card-ai, .card-product { inset: auto; width: auto; height: auto; background: transparent; color: var(--text); transform: none; }
.card-ai strong { font-size: 20px; }
.visual-caption { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; writing-mode: initial; }
.visual-caption span { padding: 5px 10px; background: var(--primary-light); color: var(--primary); border-radius: 999px; font-size: 12px; font-weight: 700; }

.capability-band { background: var(--surface-dark); color: #fff; border: 0; }
.marquee-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; width: auto; max-width: var(--max-width); margin: 0 auto; padding: 18px 24px; animation: none; }
.marquee span { margin: 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.marquee i { color: #b8c7ff; font-style: normal; }

.section { max-width: var(--max-width); margin: 0 auto; padding: 104px 24px; }
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 64px; color: var(--text-secondary); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }
.section-label span { display: grid; place-items: center; width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-small); }
.about-grid, .achievements-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 8vw, 112px); }
.kicker { margin: 0 0 16px; color: var(--primary); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.section h2 { position: relative; margin: 0; padding-left: 24px; font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
.section h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; background: var(--primary); border-radius: 3px; }
.about-content { font-size: 16px; }
.about-content [data-bio] p { margin: 0 0 20px; }
.about-content [data-bio] p:first-child { font-size: 20px; font-weight: 700; }
.profile-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 40px 0 0; border-top: 1px solid var(--border-light); }
.profile-facts > div { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--border-light); }
.profile-facts dt { color: var(--text-secondary); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.profile-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; }
.stack-block { margin-top: 80px; padding: 32px; background: var(--surface-subtle); border-radius: var(--radius-medium); }
.stack-list { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-list span { padding: 8px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; }

.projects-section { max-width: none; background: var(--surface-subtle); color: var(--text); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.projects-section > * { max-width: calc(var(--max-width) - 48px); margin-left: auto; margin-right: auto; }
.projects-section .section-label { color: var(--text-secondary); }
.projects-section .section-label::after { background: var(--border-light); }
.projects-section .section-label span { border: 0; color: var(--primary); }
.section-intro { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 64px; margin-bottom: 56px; }
.section-intro > p { max-width: 520px; margin: 0; color: var(--text-secondary); }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border: 0; }
.project-card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 28px; background: var(--surface); color: var(--text); border: 1px solid var(--border-light); border-top: 5px solid var(--primary); border-radius: var(--radius-medium); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.project-card:hover { padding: 28px; background: var(--surface); border-color: var(--primary); box-shadow: 0 4px 12px rgba(0, 23, 193, .12); }
.project-header { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; }
.project-index { color: var(--primary); font-family: var(--mono); font-size: 14px; font-weight: 700; }
.project-title h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; }
.project-title p { margin: 4px 0 0; color: var(--text-secondary); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.project-value { margin: 0; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.65; }
.project-outcomes, .project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project-outcomes li { padding: 5px 10px; background: #edf7f0; color: #0f5b2b; border: 1px solid #78b98b; border-radius: 999px; font-size: 12px; font-weight: 700; }
.project-story { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.project-story > div { padding: 16px; background: var(--surface-subtle); border-left: 3px solid var(--border); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.project-story dt, .project-meta-label { color: var(--primary); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.project-story dd { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: auto; }
.project-meta-label { margin: 0 0 8px; }
.project-tags li { padding: 4px 9px; background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; }
.project-tags-ai li { background: var(--primary-light); color: var(--primary); border-color: #9caeff; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.project-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-small); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.project-link:hover { background: var(--primary-light); text-decoration-thickness: 2px; }

.achievements { padding-bottom: 120px; }
.achievement-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-light); }
.achievement-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.achievement-item time { color: var(--primary); font-family: var(--mono); font-size: 14px; font-weight: 700; }
.achievement-item h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
.achievement-item p { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; }

.journal { position: relative; overflow: hidden; background: var(--primary); color: #fff; padding: 104px max(24px, calc((100vw - var(--max-width)) / 2)) 32px; }
.journal-content { position: relative; z-index: 1; max-width: 900px; }
.journal .kicker { color: #c9d5ff; }
.journal h2 { margin: 0; font-size: clamp(44px, 6vw, 72px); font-weight: 700; line-height: 1.3; letter-spacing: -.04em; }
.journal h2 span { font-style: normal; }
.journal-content > p:not(.kicker) { max-width: 660px; margin: 32px 0; color: #eef1ff; }
.button-light { background: var(--surface); color: var(--primary); border-color: var(--surface); }
.button-light:hover { background: var(--primary-light); border-color: var(--primary-light); }
.journal-orb { position: absolute; right: -120px; top: -120px; width: 440px; height: 440px; border: 72px solid rgba(255,255,255,.06); border-radius: 50%; }
.social-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 88px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.45); }
.social-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: #fff; border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-small); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.social-link:hover { background: #fff; color: var(--primary); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: var(--max-width); margin: 0 auto; padding: 32px 24px; }
.site-footer p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.footer-brand .brand-mark { width: 36px; height: 36px; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus-yellow); outline-offset: 3px; box-shadow: 0 0 0 5px #000; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 72px 24px 80px; }
  .hero-visual { max-width: 680px; }
  .about-grid, .achievements-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-intro { grid-template-columns: 1fr; gap: 32px; }
  .project-list { grid-template-columns: 1fr; }
  .section { padding: 80px 24px; }
  .projects-section > * { max-width: none; }
}

@media (max-width: 600px) {
  body { line-height: 1.75; }
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-cta { min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .hero { gap: 48px; padding: 56px 20px 64px; }
  .eyebrow { margin-bottom: 24px; font-size: 13px; }
  .hero h1 { font-size: clamp(48px, 16vw, 64px); }
  .hero-mission { margin-top: 32px; font-size: 21px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { padding: 24px 20px; }
  .visual-card { grid-template-columns: 48px 1fr; padding: 20px 0; }
  .visual-number, .spark { width: 44px; height: 44px; }
  .marquee-track { justify-content: flex-start; padding: 16px 20px; }
  .marquee span { margin: 4px 10px 4px 0; font-size: 13px; }
  .marquee i { margin-right: 10px; }
  .section { padding: 72px 20px; }
  .section-label { margin-bottom: 48px; }
  .section h2 { padding-left: 18px; font-size: 36px; }
  .section h2::before { width: 5px; }
  .profile-facts { grid-template-columns: 1fr; }
  .stack-block { margin-top: 56px; padding: 24px 20px; }
  .project-card, .project-card:hover { padding: 24px 20px; }
  .project-story, .project-meta { grid-template-columns: 1fr; }
  .project-story { gap: 12px; }
  .project-value { font-size: 18px; }
  .achievement-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .journal { padding: 72px 20px 24px; }
  .journal h2 { font-size: 40px; }
  .social-links { margin-top: 64px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 28px 20px; }
  .site-footer > a:last-child { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
