/* ============================================================
   Sonic Ready — Cryptographic Precision
   ダーク単一テーマ / システムフォント / 依存ライブラリなし
   ============================================================ */

:root {
  --bg: #070B12;
  --surface: #0D141F;
  --surface-2: #101926;
  --line: #1C2634;
  --ink: #E6EDF5;
  --dim: #8A97A8;
  --accent: #3FD0F0;
  --accent-2: #5B8CFF;
  --glow: rgba(63, 208, 240, 0.14);
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 300;
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ───── header ───── */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.05em; font-size: 15px;
  text-decoration: none;
}
.brand-mark {
  width: 14px; height: 14px; flex: none;
  border: 1.5px solid var(--accent); border-radius: 3px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3.5px;
  background: var(--accent); border-radius: 1px;
  box-shadow: 0 0 8px var(--accent);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 13px; color: var(--dim);
  letter-spacing: 0.06em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ───── hero (top) ───── */
.hero {
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 420px at 78% 18%, var(--glow), transparent 68%),
    radial-gradient(520px 380px at 8% 92%, rgba(91, 140, 255, 0.08), transparent 70%),
    repeating-linear-gradient(to right, rgba(138, 151, 168, 0.055) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(138, 151, 168, 0.055) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
}
.hero .wrap, .page-hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent);
  text-transform: uppercase; margin: 0 0 20px;
}
h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 700; line-height: 1.42;
  letter-spacing: -0.005em; margin: 0 0 22px;
  text-wrap: balance;
}
.hero-lede {
  color: var(--dim); max-width: 34em; margin: 0 0 34px;
}
.link-more {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.1em; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.link-more:hover { border-bottom-color: var(--accent); }

/* ───── page hero (下層ページ) ───── */
.page-hero {
  padding: 72px 0 60px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .sec-lede { margin-top: 16px; }

/* ───── ceremony terminal ───── */
.term {
  background: linear-gradient(180deg, #0B1220, #080E18);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 26px 28px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: #AEBDD1; line-height: 2.15;
  box-shadow:
    0 0 0 1px rgba(63, 208, 240, 0.05),
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 60px -20px var(--glow);
  position: relative; min-height: 250px;
}
.term-title {
  color: #55647A; font-size: 11px; letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 16px;
  display: flex; justify-content: space-between;
}
.term-line { opacity: 0; }
.term-line.on { opacity: 1; transition: opacity 0.35s ease; }
.term-line .k { color: #55647A; }
.term-line .v { color: #8FB8E8; }
.term-line .ok { color: var(--accent); font-weight: 700; }
.caret {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.verified {
  position: absolute; right: 24px; bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid rgba(63, 208, 240, 0.45);
  border-radius: 3px; padding: 5px 12px;
  background: rgba(63, 208, 240, 0.07);
  opacity: 0;
}
.verified.on { animation: lock-in 0.4s ease forwards; }
@keyframes lock-in {
  from { opacity: 0; transform: translateY(6px); box-shadow: none; }
  to   { opacity: 1; transform: none; box-shadow: 0 0 22px -4px var(--glow); }
}

/* ───── trust strip ───── */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(63, 208, 240, 0.035), transparent);
}
.trust .wrap {
  display: flex; gap: 12px 34px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px;
  justify-content: space-between;
}
.chip {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; color: var(--dim);
}
.chip b { color: var(--ink); font-weight: 600; }

/* ───── sections ───── */
section.block { padding: 92px 0 0; }
main > section.block:last-of-type, .site-main > section.block:last-of-type { padding-bottom: 96px; }
.sec-head { margin-bottom: 44px; }
h2 {
  font-size: clamp(24px, 3vw, 31px); font-weight: 700;
  line-height: 1.5; margin: 0; letter-spacing: 0.01em;
  text-wrap: balance;
}
.sec-lede { color: var(--dim); max-width: 40em; margin: 14px 0 0; }
.text p { color: var(--dim); max-width: 44em; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.step {
  background: var(--surface); padding: 30px 28px 34px;
  position: relative;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.65;
}
.step-no {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--accent);
  margin: 0 0 14px;
}
.step h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 10px; }
.step p { color: var(--dim); font-size: 13.5px; margin: 0; }
.step .mono-note {
  font-family: var(--font-mono); font-size: 11px;
  color: #66748A; border-top: 1px dashed var(--line);
  margin-top: 18px; padding-top: 12px; letter-spacing: 0.03em;
}

.merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.merit {
  border-top: 1px solid var(--line); padding-top: 20px;
  position: relative;
}
.merit::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 44px; height: 1px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.merit h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.merit p { color: var(--dim); font-size: 13.5px; margin: 0; }

/* ───── 定義リスト行（MVV / 会社情報） ───── */
.def-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.def-row:last-child { border-bottom: 1px solid var(--line); }
.def-label .en {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent);
  text-transform: uppercase; display: block; margin-bottom: 6px;
}
.def-label .ja { font-size: 19px; font-weight: 700; }
.def-body { color: var(--dim); align-self: center; }
.def-body p { margin: 0; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values-list li { padding-left: 24px; position: relative; font-size: 14px; }
.values-list li::before {
  content: ""; position: absolute; left: 0; top: 0.78em;
  width: 10px; height: 1.5px; background: var(--accent);
}

/* ───── services ───── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 32px 30px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.svc:hover {
  border-color: rgba(63, 208, 240, 0.4);
  box-shadow: 0 0 40px -14px var(--glow);
}
.svc h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.svc p { color: var(--dim); font-size: 13.5px; margin: 0; }
.svc .svc-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; color: var(--accent); margin: 0 0 14px;
}

/* ───── 404 ───── */
.notfound { padding: 130px 0 150px; text-align: left; }
.notfound .code {
  font-family: var(--font-mono); font-size: clamp(64px, 12vw, 120px);
  font-weight: 700; color: var(--accent); line-height: 1;
  letter-spacing: 0.04em; margin: 0 0 18px;
  text-shadow: 0 0 40px var(--glow);
}
.notfound p { color: var(--dim); margin: 0 0 30px; }

/* ───── footer ───── */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot-brand { font-weight: 600; letter-spacing: 0.04em; margin: 0 0 6px; }
.foot-meta { color: var(--dim); font-size: 12.5px; line-height: 2; margin: 0; }
.foot-nav { display: flex; gap: 24px; font-size: 12.5px; margin-bottom: 14px; }
.foot-nav a { color: var(--dim); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
.copyright {
  font-family: var(--font-mono); font-size: 11px;
  color: #55647A; letter-spacing: 0.08em; margin: 0;
}

/* ───── reveal ───── */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .term-line { opacity: 1; }
  .verified { opacity: 1; animation: none; }
  .caret { display: none; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .merits, .services { grid-template-columns: 1fr; }
  .def-row { grid-template-columns: 1fr; gap: 12px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
}
