:root {
  color-scheme: light;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #ffffff;
  --ink: #172026;
  --muted: #5f6368;
  --line: #e5e7eb;
  --panel: #ffffff;
  --accent: #8b1118;
  --accent-dark: #6f0d13;
  --ink-strong: #0d171b;
  --soft: #f4f5f7;
  --amber: #b4232b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-strong);
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 96px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink-strong);
}

h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.proof-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 17, 24, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.proof-strip strong {
  color: var(--accent-dark);
  font-size: 20px;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% -5% 10%;
  border-radius: 24px;
  background: rgba(139, 17, 24, 0.1);
  filter: blur(28px);
}

.hero-visual img {
  position: relative;
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border: 1px solid rgba(13, 23, 27, 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(23, 32, 38, 0.18);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button.secondary {
  background: #ffffff;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.section.compact {
  padding-top: 0;
}

.section.muted {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.article-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

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

.metric-grid article {
  min-height: 172px;
  padding: 24px;
  border: 1px solid rgba(139, 17, 24, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(23, 32, 38, 0.07);
}

.metric-grid p {
  margin: 12px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: #f8e8ea;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-card,
.tool-card {
  min-height: 196px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(23, 32, 38, 0.06);
}

.article-card .tag {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

.article-card p,
.tool-card p {
  margin: 14px 0 24px;
  line-height: 1.7;
  color: var(--muted);
}

.tool-card a {
  font-weight: 700;
  color: var(--accent-dark);
}

.article-card a {
  font-weight: 700;
  color: var(--accent-dark);
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.policy-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.68);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  background: var(--accent);
}

.timeline p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.footer {
  width: 100%;
  min-height: 148px;
  margin: 0;
  padding: 48px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #09090b;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 0 72px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    min-height: 280px;
    border-radius: 16px;
  }

  h1 {
    font-size: 44px;
  }

  .section {
    padding: 56px 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

body.home {
  background: #ffffff;
}

.glass-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  padding: 10px 0;
}

.glass-header::before {
  content: "";
  position: absolute;
  inset: 8px -16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 22, 24, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.home .brand,
.home .nav a {
  color: #f8fbf9;
}

.immersive {
  width: 100%;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  margin: 0;
  padding: 120px max(24px, calc((100% - 1120px) / 2)) 88px;
  overflow: hidden;
}

.hero-bg,
.panel-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: none;
  background-size: cover;
  background-position: center;
}

.hero-bg::after,
.panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.3) 100%),
    linear-gradient(180deg, rgba(247, 247, 248, 0.08) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.immersive .hero-copy {
  max-width: 820px;
}

.immersive h1 {
  max-width: 880px;
  color: #ffffff;
  text-wrap: balance;
}

.immersive .lead {
  color: rgba(248, 251, 249, 0.82);
}

.immersive .eyebrow,
.scroll-panel .eyebrow {
  color: var(--accent);
}

.immersive .button.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.immersive .proof-strip span {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(248, 251, 249, 0.78);
  background: rgba(255, 255, 255, 0.12);
}

.immersive .proof-strip strong {
  color: #ffffff;
}

.scroll-panel {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 108px max(24px, calc((100% - 1120px) / 2));
  overflow: hidden;
}

.scroll-panel .panel-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.scroll-panel h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  text-wrap: balance;
}

.scroll-panel .panel-content > p {
  max-width: 680px;
  color: rgba(248, 251, 249, 0.8);
  font-size: 18px;
  line-height: 1.9;
}

.panel-a .panel-bg {
  background-image: none;
  transform: scale(1.08);
  filter: saturate(0.95) brightness(0.78);
  background-position: center right;
}

.panel-a .panel-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 247, 248, 0.72) 100%),
    radial-gradient(circle at 22% 26%, rgba(139, 17, 24, 0.08), transparent 30%);
}

.panel-b .panel-bg {
  background-image: none;
  transform: scale(1.16);
  filter: hue-rotate(14deg) saturate(1.08) brightness(0.72);
  background-position: center center;
}

.panel-b .panel-bg::after {
  background:
    linear-gradient(120deg, rgba(247, 247, 248, 0.94) 0%, rgba(255, 255, 255, 0.82) 100%),
    radial-gradient(circle at 75% 20%, rgba(139, 17, 24, 0.08), transparent 28%);
}

.panel-c .panel-bg {
  background-image: none;
  transform: scale(1.12);
  filter: sepia(0.15) saturate(0.92) brightness(0.76);
  background-position: center left;
}

.panel-c .panel-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 247, 248, 0.76) 100%),
    radial-gradient(circle at 70% 72%, rgba(139, 17, 24, 0.08), transparent 32%);
}

.scroll-panel .metric-grid,
.scroll-panel .tool-grid,
.scroll-panel .article-grid {
  margin-top: 40px;
}

.elevated,
.scroll-panel .metric-grid article {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.final-section {
  width: 100%;
  padding: 110px max(24px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 12% 20%, rgba(139, 17, 24, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
}

.final-section .section-heading {
  width: min(1120px, 100%);
}

.final-section h2 {
  max-width: 760px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.1;
}

.final-section .timeline,
.final-section .policy-list {
  width: min(1120px, 100%);
}

.final-section .policy-list {
  margin-top: 16px;
}

@media (min-width: 900px) {
  .hero-bg,
  .panel-bg {
    background-attachment: fixed;
  }
}

@media (max-width: 760px) {
  .glass-header {
    width: calc(100% - 32px);
    align-items: center;
    flex-direction: row;
    padding: 12px 0;
  }

  .glass-header::before {
    inset: 6px -8px;
  }

  .home .nav {
    gap: 10px;
    font-size: 12px;
  }

  .immersive,
  .scroll-panel {
    min-height: auto;
    padding: 112px 20px 72px;
  }

  .scroll-panel h2 {
    font-size: 38px;
  }

  .scroll-panel .metric-grid,
  .scroll-panel .tool-grid,
  .scroll-panel .article-grid {
    margin-top: 28px;
  }
}

/* REBOOT SHIFT visual refresh */
body.home {
  background: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  letter-spacing: 0.04em;
}

.brand::before {
  display: none;
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: url("./assets/favicon.svg") center / contain no-repeat;
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 32px;
  border-radius: 8px;
}

.brand span {
  display: inline-block;
  line-height: 1;
}

.glass-header::before {
  border-color: rgba(139, 17, 24, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.1);
}

.home .brand,
.home .nav a {
  color: var(--ink-strong);
}

.home .nav a:hover,
.nav a:hover {
  color: var(--accent);
}

.message-intro {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 17, 24, 0.1), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(95, 99, 104, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
}

.message-intro-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(139, 17, 24, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 17, 24, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.star-message-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.message-intro-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  text-align: center;
  align-self: start;
  padding-top: 118px;
  pointer-events: none;
}

.message-intro-copy .eyebrow {
  color: var(--accent);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-cue-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    translate: 0 -2px;
  }

  50% {
    translate: 0 5px;
  }
}

.immersive {
  min-height: 100svh;
  align-items: center;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
}

.hero-bg {
  background:
    radial-gradient(circle at 78% 18%, rgba(139, 17, 24, 0.13), transparent 25%),
    radial-gradient(circle at 18% 80%, rgba(139, 17, 24, 0.07), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7f7f8 64%, #ffffff 100%);
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 45%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.ai-hero-art {
  position: absolute;
  inset: 72px 0 0 auto;
  z-index: 0;
  width: min(58vw, 880px);
  min-width: 520px;
  opacity: 0.94;
  transform:
    translateX(calc(var(--mx, 0) * -24px))
    translateY(calc(var(--my, 0) * -18px));
  transition: transform 120ms linear;
  pointer-events: none;
  animation: ai-field-float 9s ease-in-out infinite alternate;
}

.ai-network {
  width: 100%;
  height: auto;
}

.network-layer {
  transform-box: fill-box;
  transform-origin: center;
}

.layer-back {
  transform: translate(calc(var(--mx, 0) * 24px), calc(var(--my, 0) * 20px));
  animation: network-drift-a 12s ease-in-out infinite alternate;
}

.layer-mid {
  transform: translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -14px));
  animation: network-drift-b 10s ease-in-out infinite alternate;
}

.layer-front {
  transform: translate(calc(var(--mx, 0) * 34px), calc(var(--my, 0) * 26px));
  animation: network-drift-c 8s ease-in-out infinite alternate;
}

.flow-line {
  fill: none;
  stroke: rgba(139, 17, 24, 0.24);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 16;
  animation: dash-flow 16s linear infinite;
}

.flow-line.muted {
  stroke: rgba(95, 99, 104, 0.2);
  animation-duration: 20s;
}

.layer-mid line {
  stroke: rgba(139, 17, 24, 0.22);
  stroke-width: 2;
}

.layer-front circle {
  fill: #ffffff;
  stroke: #8b1118;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3.8s ease-in-out infinite;
}

.layer-front circle:nth-of-type(2n) {
  animation-delay: 0.8s;
}

.layer-front circle:nth-of-type(3n) {
  animation-delay: 1.4s;
}

.layer-front .core,
.layer-front .chip {
  fill: url("#ai-red");
  stroke: #ffffff;
}

.chip-lines {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes ai-field-float {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -16px;
  }
}

@keyframes network-drift-a {
  from {
    translate: -8px 4px;
  }

  to {
    translate: 10px -8px;
  }
}

@keyframes network-drift-b {
  from {
    translate: 8px -6px;
  }

  to {
    translate: -10px 8px;
  }
}

@keyframes network-drift-c {
  from {
    translate: -6px -4px;
  }

  to {
    translate: 8px 6px;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.immersive .hero-copy {
  position: relative;
  z-index: 2;
}

.immersive h1 {
  color: var(--ink-strong);
}

.immersive .lead {
  color: var(--muted);
}

.immersive .eyebrow,
.scroll-panel .eyebrow {
  color: var(--accent);
}

.immersive .button.secondary {
  border-color: var(--line);
  color: var(--ink-strong);
  background: #ffffff;
  backdrop-filter: none;
}

.immersive .proof-strip span {
  border-color: #e5e7eb;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.06);
}

.immersive .proof-strip strong {
  color: var(--accent);
}

.scroll-panel {
  min-height: auto;
  padding-block: 104px;
  background: #ffffff;
}

.scroll-panel:nth-of-type(even) {
  background: #f7f7f8;
}

.panel-bg {
  background: transparent;
}

.panel-a .panel-bg,
.panel-b .panel-bg,
.panel-c .panel-bg {
  background-image: none;
  filter: none;
  transform: none;
}

.panel-bg::after,
.panel-a .panel-bg::after,
.panel-b .panel-bg::after,
.panel-c .panel-bg::after {
  background:
    radial-gradient(circle at 82% 16%, rgba(139, 17, 24, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(247, 247, 248, 0.72), rgba(255, 255, 255, 0.92));
}

.scroll-panel h2 {
  color: var(--ink-strong);
}

.scroll-panel .panel-content > p {
  color: var(--muted);
}

.elevated,
.scroll-panel .metric-grid article {
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.08);
}

.metric-grid article,
.article-card,
.tool-card,
.policy-list p,
.timeline article {
  border-color: #e5e7eb;
}

.icon {
  color: var(--accent);
  background: #f8e8ea;
}

.final-section {
  background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
}

.final-section h2 {
  color: var(--ink-strong);
}

@media (max-width: 900px) {
  .ai-hero-art {
    inset: 86px -180px auto auto;
    width: 780px;
    min-width: 0;
    opacity: 0.42;
  }
}

@media (max-width: 640px) {
  .message-intro-copy {
    padding-top: 104px;
    text-align: center;
  }

  .brand::before {
    display: none;
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .ai-hero-art {
    inset: 92px -260px auto auto;
    width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after {
    animation: none;
  }
}
