:root {
  --ink: #07131f;
  --navy: #0b1b2b;
  --blue: #164c73;
  --amber: #d9a441;
  --paper: #f5f7f8;
  --white: #ffffff;
  --muted: #60707f;
  --line: #dbe2e7;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,226,231,.75);
}
.header-inner { width: min(var(--max), calc(100% - 48px)); height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .78rem; font-weight: 800; letter-spacing: .01em; font-size: 1.15rem; }
.brand-mark { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 9px; height: 9px; right: -3px; top: -3px; border-radius: 50%; background: var(--amber); }
.nav { display: flex; align-items: center; gap: 1.7rem; font-size: .88rem; font-weight: 700; letter-spacing: .05em; }
.nav a { transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .nav-cta { color: white; background: var(--ink); padding: .65rem 1rem; border-radius: 2px; }
.menu-btn { display: none; border: 0; background: transparent; padding: .6rem; color: var(--ink); }
.menu-btn span { width: 24px; height: 2px; background: currentColor; display: block; margin: 5px 0; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-dark { color: white; background: var(--ink); }
.section-paper { background: var(--paper); }
.eyebrow { margin: 0 0 1.2rem; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-dark .eyebrow { color: #87b7d5; }
h1, h2, h3 { margin-top: 0; line-height: 1.32; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 2; }
.muted { color: var(--muted); }
.section-dark .muted { color: #a9b7c3; }
.kicker-line { width: 52px; height: 3px; background: var(--amber); margin: 1.5rem 0; }
.button { display: inline-flex; align-items: center; gap: .8rem; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 800; transition: .2s ease; }
.button::after { content: "→"; }
.button:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.button-light { border-color: rgba(255,255,255,.5); color: white; }
.button-light:hover { background: white; color: var(--ink); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; color: var(--blue); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(5px); }

.hero { min-height: calc(100svh - 78px); position: relative; display: flex; align-items: center; overflow: hidden; color: white; background: #07131f; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,11,18,.96) 0%, rgba(3,11,18,.78) 43%, rgba(3,11,18,.18) 78%), url("./densetu-hero.png") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .7; }
.hero-content { position: relative; z-index: 1; width: min(900px, 88%); padding: 100px 0; }
.hero h1 { margin-bottom: 1.7rem; max-width: 900px; }
.hero-copy { max-width: 690px; color: #d9e2e9; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-note { margin-top: 3rem; display: flex; align-items: center; gap: 1rem; font-size: .78rem; letter-spacing: .11em; color: #b8c7d2; }
.hero-note::before { content: ""; width: 42px; height: 1px; background: var(--amber); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.statement-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.statement-grid h2 { position: sticky; top: 120px; }
.big-statement { font-size: clamp(1.55rem, 3vw, 2.65rem); line-height: 1.65; font-weight: 700; margin-top: 0; }
.definition { border-left: 3px solid var(--amber); padding-left: 1.5rem; margin-top: 2.4rem; color: #33495b; }
.value-chain { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-step { min-height: 180px; padding: 26px 18px; border-right: 1px solid var(--line); position: relative; }
.value-step:last-child { border-right: 0; }
.value-step small { display: block; color: var(--amber); font-weight: 800; letter-spacing: .12em; }
.value-step strong { display: block; font-size: 1.08rem; margin-top: 2.4rem; }
.value-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; color: var(--blue); background: white; padding: 0 3px; z-index: 2; }

.section-head { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 48px; }
.section-head > div:first-child { max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: white; border: 1px solid var(--line); padding: 32px; min-height: 330px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(7,19,31,.08); }
.card-index { color: var(--amber); font: 800 .76rem/1 sans-serif; letter-spacing: .12em; }
.card h3 { margin: 2.8rem 0 1rem; }
.card p { color: var(--muted); }
.card .text-link { margin-top: auto; }
.card.is-featured { background: var(--navy); color: white; border-color: var(--navy); }
.card.is-featured p { color: #b9c7d1; }
.card.is-featured .text-link { color: #8bc0df; }
.status { display: inline-block; align-self: flex-start; margin-top: 1rem; border: 1px solid currentColor; padding: .18rem .55rem; font-size: .68rem; letter-spacing: .08em; opacity: .75; }

.lagnax-panel { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 580px; background: var(--navy); color: white; }
.lagnax-copy { padding: clamp(42px, 7vw, 90px); }
.lagnax-copy h2 { margin-bottom: 1.5rem; }
.lagnax-copy p { color: #c0ced8; }
.lagnax-values { padding: 52px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 1px; background: rgba(255,255,255,.08); }
.value-tile { padding: 25px 18px; border: 1px solid rgba(255,255,255,.15); font-weight: 700; }
.value-tile small { display: block; color: #8bbbd7; margin-bottom: .5rem; letter-spacing: .1em; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.principle { border-top: 2px solid var(--ink); padding-top: 25px; }
.principle strong { display: block; color: var(--amber); font-size: 2.2rem; }
.principle p { color: var(--muted); }
.quote-block { max-width: 1000px; margin: auto; text-align: center; }
.quote-block blockquote { font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.6; margin: 0; font-weight: 700; }

.contact-band { padding: 85px 0; background: #e9eff2; }
.contact-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.contact-band h2 { margin-bottom: .6rem; }
.contact-options { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-options span { border: 1px solid #b9c7d1; background: rgba(255,255,255,.55); padding: .35rem .65rem; font-size: .78rem; }

.page-hero { padding: 118px 0 78px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 1rem; }
.page-hero .lead { max-width: 780px; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.two-col-balanced { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.sticky-title { position: sticky; top: 120px; }
.content-block + .content-block { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--line); }
.numbered-list { list-style: none; padding: 0; margin: 0; }
.numbered-list li { display: grid; grid-template-columns: 52px 1fr; padding: 28px 0; border-top: 1px solid var(--line); }
.numbered-list li:last-child { border-bottom: 1px solid var(--line); }
.numbered-list span { color: var(--amber); font-weight: 800; }
.numbered-list h3 { margin-bottom: .45rem; }
.numbered-list p { margin: 0; color: var(--muted); }

.business-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.business-row { display: grid; grid-template-columns: 160px 1fr 180px; align-items: center; gap: 2rem; padding: 32px; background: white; }
.business-row .num { color: var(--amber); font-weight: 800; letter-spacing: .1em; }
.business-row h3 { margin-bottom: .4rem; }
.business-row p { margin: 0; color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric { background: white; padding: 30px; min-height: 180px; }
.metric small { color: var(--blue); font-weight: 800; letter-spacing: .1em; }
.metric h3 { margin: 1.2rem 0 .5rem; }
.metric p { margin: 0; color: var(--muted); }
.caution { border: 1px solid #d8c49e; background: #fffaf0; padding: 18px 22px; font-size: .9rem; color: #654d1d; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 22px 18px; border-bottom: 1px solid var(--line); }
.company-table th { width: 210px; font-size: .82rem; letter-spacing: .08em; color: var(--muted); }
.pending { color: #8a6530; font-size: .88rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; }
.inquiry-types { display: grid; gap: 10px; }
.inquiry-type { border: 1px solid var(--line); padding: 18px; }
.inquiry-type strong { display: block; }
.inquiry-type span { color: var(--muted); font-size: .86rem; }
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #bdc8d0; background: white; padding: .85rem; border-radius: 0; }
.field textarea { min-height: 160px; resize: vertical; }
.prototype-note { font-size: .82rem; color: #7a5a25; background: #fff8e8; padding: 12px 14px; border-left: 3px solid var(--amber); }
.disabled-button { min-height: 50px; border: 0; background: #a9b5bd; color: white; font-weight: 800; cursor: not-allowed; }

.site-footer { background: #05101a; color: white; padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; padding-bottom: 50px; }
.footer-brand { font-size: 1.5rem; font-weight: 800; }
.footer-copy { max-width: 430px; color: #9fb0bd; }
.footer-nav { display: grid; gap: .65rem; color: #c8d3da; font-size: .9rem; }
.footer-title { color: #708796; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; color: #708796; font-size: .72rem; display: flex; justify-content: space-between; gap: 2rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header-inner { width: min(100% - 32px, var(--max)); height: 68px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; display: none; background: white; padding: 24px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: .6rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .55rem 0; }
  .container { width: min(100% - 32px, var(--max)); }
  .section { padding: 82px 0; }
  .statement-grid, .two-col, .two-col-balanced, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .statement-grid h2, .sticky-title { position: static; }
  .value-chain { grid-template-columns: 1fr; }
  .value-step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 12px; }
  .value-step strong { margin-top: .8rem; }
  .value-step:not(:last-child)::after { content: "↓"; right: 16px; top: auto; bottom: -14px; }
  .cards, .principles { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .lagnax-panel { grid-template-columns: 1fr; }
  .business-row { grid-template-columns: 1fr; gap: .5rem; }
  .contact-band-inner { align-items: start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(180deg, rgba(3,11,18,.84) 0%, rgba(3,11,18,.94) 72%), url("./densetu-hero.png") 64% center/cover no-repeat; }
  .hero-content { width: 100%; padding: 76px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: space-between; }
  .lagnax-values, .metric-grid { grid-template-columns: 1fr; }
  .lagnax-values { padding: 22px; }
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 0; border-bottom: 0; }
  .company-table td { padding-top: 7px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
