:root {
  --paper: #f4f3ee;
  --white: #ffffff;
  --ink: #11130f;
  --muted: #656860;
  --line: #c9cac3;
  --acid: #c7f36b;
  --coral: #ff735d;
  --blue: #5a7dff;
  --dark: #1c211d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, summary { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 15px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 238, 0.94);
  backdrop-filter: blur(12px);
}
.brand {
  display: grid;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.brand span { font-size: 10px; }
.brand strong { font-family: Georgia, "Yu Mincho", serif; font-size: 15px; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.nav-cta { background: var(--ink); color: var(--white); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.menu-button { display: none; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.hero {
  position: relative;
  min-height: min(850px, calc(100svh - 132px));
  max-height: 850px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 140px) max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 243, 238, 0.48);
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: -8% -5% -15% 42%;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  align-items: center;
  gap: 18px;
  transform: rotate(-5deg);
}
.hero-art img {
  width: 100%;
  border: 1px solid rgba(17,19,15,.18);
  box-shadow: 0 24px 70px rgba(17,19,15,.12);
}
.hero-art img:nth-child(2) { transform: translateY(-7%); }
.hero-art img:nth-child(3) { transform: translateY(8%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, 70%); }
.kicker, .section-index, .kit-number, .function-name {
  margin: 0 0 24px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .closing h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  line-height: 1.05;
}
.hero h1 { font-size: 112px; }
.hero-lead { margin: 38px 0 18px; font-family: Georgia, "Yu Mincho", serif; font-size: 28px; line-height: 1.55; }
.hero-detail { max-width: 660px; margin: 0; color: #343830; font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button-primary { background: var(--acid); }
.text-link { text-underline-offset: 5px; }
.hero-note { position: absolute; z-index: 2; right: 24px; bottom: 18px; margin: 0; color: var(--muted); font-size: 11px; }

.section-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
#kits, #evidence, #license, #pricing { scroll-margin-top: 88px; }
.principles, .contents, .pricing, .faq { padding-block: clamp(90px, 12vw, 170px); }
.principles { padding-top: 80px; }
.section-heading { max-width: 660px; margin-bottom: 70px; }
.section-heading-wide { max-width: 900px; }
.section-heading h2, .closing h2 { font-size: 76px; }
.section-heading > p:last-child:not(.section-index) { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: 18px; }
.function-list { border-top: 1px solid var(--ink); }
.function-list article {
  display: grid;
  grid-template-columns: 1.25fr 1fr 2fr;
  gap: 30px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.function-list p, .function-list h3 { margin: 0; }
.function-list h3 { font-family: Georgia, "Yu Mincho", serif; font-size: 24px; font-weight: 400; }
.function-list article > p:last-child { color: var(--muted); }
.function-list article:nth-child(1) .function-name { color: #517a08; }
.function-list article:nth-child(2) .function-name { color: #d6402b; }
.function-list article:nth-child(3) .function-name { color: #3157d5; }

.kits-section { padding-block: clamp(90px, 12vw, 170px); background: var(--white); }
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.kit-item { min-width: 0; padding: 34px 28px 0; border-right: 1px solid var(--line); }
.kit-item:first-child { border-left: 1px solid var(--line); }
.kit-item figure { margin: 0 0 34px; aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--paper); }
.kit-item figure img { width: 100%; height: 100%; object-fit: contain; }
.kit-copy h3 { min-height: 2.3em; margin: 0 0 20px; font-family: Georgia, "Yu Mincho", serif; font-size: 34px; font-weight: 400; line-height: 1.15; }
.kit-copy > p:not(.kit-number):not(.price-inline), .kit-copy li { color: var(--muted); }
.kit-copy ul { min-height: 150px; margin: 28px 0; padding: 22px 0 0 20px; border-top: 1px solid var(--line); }
.price-inline { margin: 0 -28px; padding: 22px 28px; border-top: 1px solid var(--ink); }
.price-inline strong { font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.kit-item-data .price-inline { background: color-mix(in srgb, var(--acid) 50%, white); }
.kit-item-rag .price-inline { background: color-mix(in srgb, var(--coral) 27%, white); }
.kit-item-agent .price-inline { background: color-mix(in srgb, var(--blue) 20%, white); }

.evidence { padding-block: clamp(90px, 12vw, 170px); color: var(--white); background: var(--dark); }
.section-heading-light .section-index, .evidence-note { color: #b9bdb6; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #596059; }
.metric-grid article { padding: 38px 30px 40px 0; border-right: 1px solid #596059; }
.metric-grid article + article { padding-left: 30px; }
.metric-grid article:last-child { border-right: 0; }
.metric { margin: 0 0 70px; font-family: Georgia, serif; font-size: 92px; line-height: 1; }
.metric span { margin-left: 8px; font-family: Arial, "Yu Gothic", sans-serif; font-size: 16px; }
.metric-grid h3 { font-size: 17px; }
.metric-grid article > p:last-child { color: #c4c8c2; }
.evidence-note { max-width: 850px; margin: 52px 0 0; font-size: 12px; }

.contents-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10vw; align-items: start; }
.contents-lead { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: 35px; line-height: 1.55; }
.contents-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.contents-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contents-list span { color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }

.license-section { padding-block: clamp(90px, 12vw, 170px); background: #e8e7df; }
.license-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.license-grid > div { padding: 34px 40px 40px 0; }
.license-grid > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.license-grid h3 { margin: 0 0 28px; font-family: Georgia, "Yu Mincho", serif; font-size: 27px; font-weight: 400; }
.license-grid ul { margin: 0; padding: 0; list-style: none; }
.license-grid li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "+"; position: absolute; left: 2px; color: #4d7705; }
.dash-list li::before { content: "−"; position: absolute; left: 2px; color: #bd3825; }
.license-note { margin: 38px 0 0; color: var(--muted); font-size: 13px; }

.estimate-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.estimate-flow li { min-height: 270px; padding: 28px 30px 34px 0; border-right: 1px solid var(--line); }
.estimate-flow li + li { padding-left: 30px; }
.estimate-flow li:last-child { border-right: 0; }
.estimate-flow span { font-family: Consolas, monospace; font-size: 12px; }
.estimate-flow h3 { margin: 68px 0 16px; font-family: Georgia, "Yu Mincho", serif; font-size: 27px; font-weight: 400; }
.estimate-flow p { margin: 0; color: var(--muted); }
.estimate-action { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.estimate-action p { margin: 0; }

.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 920px; margin-left: auto; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 50px 24px 0; cursor: pointer; list-style: none; font-family: Georgia, "Yu Mincho", serif; font-size: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; font-family: Arial, sans-serif; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 740px; margin: 0 0 28px; color: var(--muted); }

.closing { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; background: var(--acid); }
.closing-inner { position: relative; z-index: 2; padding-block: 100px; }
.closing-inner > p:not(.section-index) { max-width: 620px; font-size: 19px; }
.button-dark { margin-top: 28px; background: var(--ink); color: var(--white); }
.closing-art { position: absolute; right: -6vw; bottom: -18vw; width: 60vw; aspect-ratio: 1; }
.closing-art span { position: absolute; inset: calc(var(--i, 0) * 9%); border: 1px solid rgba(17,19,15,.35); border-radius: 50%; }
.closing-art span:nth-child(1) { --i: 0; }
.closing-art span:nth-child(2) { --i: 1; }
.closing-art span:nth-child(3) { --i: 2; }
.closing-art span:nth-child(4) { --i: 3; }
.closing-art span:nth-child(5) { --i: 4; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: end; min-height: 220px; padding: 55px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--white); }
.site-footer > div { display: grid; }
.site-footer strong { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.site-footer span, .site-footer small { color: #aeb3ac; font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; }

@media (max-width: 900px) {
  .site-header { min-height: 68px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; grid-template-columns: 1fr 1fr; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 4px; }
  .nav-cta { grid-column: 1 / -1; margin-top: 8px; }
  .hero { min-height: calc(100svh - 68px); align-items: flex-end; }
  .hero-copy { width: 100%; }
  .hero-art { inset: -8% -25% 28% 30%; opacity: .72; }
  .hero::after { background: rgba(244, 243, 238, 0.58); }
  .function-list article { grid-template-columns: 1fr 1fr; }
  .function-list article > p:last-child { grid-column: 1 / -1; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit-item { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; gap: 28px; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .kit-item:first-child { border-left: 0; }
  .kit-item figure { margin: 0; }
  .price-inline { margin: 0; padding-inline: 18px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article, .metric-grid article + article { padding: 32px 0; border-right: 0; border-bottom: 1px solid #596059; }
  .metric { margin-bottom: 25px; }
  .contents-layout { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-header { padding-inline: 16px; }
  .brand strong { font-size: 12px; }
  .hero { min-height: 680px; max-height: none; padding: 250px 18px 52px; }
  .hero-art { inset: -42px -110px auto 42px; height: 300px; grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .hero h1 { font-size: 54px; overflow-wrap: anywhere; }
  .hero-lead { margin-top: 26px; font-size: 19px; }
  .hero-detail { font-size: 14px; }
  .hero-lead, .hero-detail { max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
  .hero-lead br { display: none; }
  .hero-actions { align-items: center; flex-direction: row; gap: 18px; margin-top: 24px; }
  .hero-actions .button { width: auto; padding-inline: 13px; font-size: 13px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-note { display: none; }
  .section-shell { width: min(100% - 32px, var(--max)); }
  .principles, .contents, .pricing, .faq, .kits-section, .evidence, .license-section { padding-block: 82px; }
  .principles { padding-top: 32px; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2, .closing h2 { font-size: 48px; }
  .function-list article { grid-template-columns: 1fr; gap: 8px; }
  .function-list article > p:last-child { grid-column: auto; margin-top: 14px; }
  .kit-item { display: block; padding: 30px 0; }
  .kit-item figure { max-width: 390px; margin: 0 auto 30px; }
  .kit-copy h3 { min-height: 0; font-size: 35px; }
  .kit-copy ul { min-height: 0; }
  .license-grid { grid-template-columns: 1fr; }
  .license-grid > div, .license-grid > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .estimate-flow { grid-template-columns: 1fr; }
  .estimate-flow li, .estimate-flow li + li { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .estimate-flow h3 { margin: 26px 0 10px; }
  .estimate-action { align-items: stretch; flex-direction: column; }
  .faq summary { font-size: 19px; }
  .closing { min-height: 600px; }
  .closing-art { width: 120vw; right: -50vw; bottom: -30vw; }
  .site-footer { grid-template-columns: 1fr; gap: 25px; min-height: 260px; padding-inline: 18px; }
}

@media (min-width: 621px) and (max-width: 900px) {
  .hero h1 { font-size: 84px; }
  .section-heading h2, .closing h2 { font-size: 62px; }
  .metric { font-size: 76px; }
  .contents-lead { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
