/* ============================================
   樹データ - スタイルシート v5
   Design system: "Ledger & Grid"
   ロゴのティール × データグリッドの精密さ
   ============================================ */

/* ===== Tokens ===== */
:root {
  --paper: #FAFAF8;
  --surface: #FFFFFF;
  --tint: #EEF4F4;
  --line: #E2E8E8;
  --line-strong: #C9D4D5;

  --ink: #16262B;
  --ink-2: #46585D;
  --ink-3: #5E7176;

  --brand: #0E5462;
  --brand-strong: #0A4350;

  --chart-1: #0D8DA3;
  --chart-2: #BE6A00;

  --dark: #10272C;
  --dark-2: #0B1D21;
  --on-dark: #E9F0F0;
  --on-dark-2: #9FB6BA;
  --on-dark-accent: #7FCBD9;

  --font-sans: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --maxw: 1120px;
  --shadow-card: 0 12px 40px rgba(16, 39, 44, 0.07);
  --shadow-lift: 0 18px 44px rgba(16, 39, 44, 0.11);
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.015em;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 1;
  /* 日本語の折返しを文節単位に（Chromium 119+。非対応ブラウザは従来挙動） */
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 見出しは行長のバランスも取る */
.hero-title,
.section-title,
.cta-copy h2,
.work-title,
.error-message {
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(13, 141, 163, 0.18); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Reveal on scroll ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 38px; width: auto; }
.brand-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav .btn { white-space: nowrap; flex: none; }
.nav a:not(.btn) { white-space: nowrap; }
.nav a:not(.btn) {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a.active {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-color: var(--brand);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 15px 30px;
}
.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 84, 98, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(14, 84, 98, 0.35);
  padding: 14px 26px;
}
.btn-ghost:hover { background: var(--tint); border-color: var(--brand); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 17px 36px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); padding: 15px 30px; }
.btn-light:hover { background: #F0F8F9; transform: translateY(-1px); }
.btn .arr { transition: transform 0.25s ease; font-weight: 500; }
.btn:hover .arr { transform: translateX(3px); }

/* ===== Section scaffolding ===== */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head { margin-bottom: 52px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.section-lead {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 42em;
}

/* ===== Page head (subpages) ===== */
.page-head { padding: 72px 0 12px; }
.page-head .section-title { font-size: clamp(30px, 4vw, 40px); margin-top: 18px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 100px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.015em;
}
.hero-title .em { color: var(--brand); }
.hero-title .nb { display: inline-block; }

.hero-sub {
  margin-top: 26px;
  font-size: 16px;
  line-height: 2.15;
  color: var(--ink-2);
  max-width: 32em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ===== Chart card ===== */
.chart-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 22px 22px 14px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.chart-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.chart-name {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chart-legend { display: flex; gap: 16px; }
.chart-legend .key {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.chart-legend .key::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.chart-legend .key-fixed::before { background: var(--chart-1); }
.chart-legend .key-var::before { background: var(--chart-2); }

.sim-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.sim-chart:focus-visible { outline-offset: 6px; }

.sim-chart .grid { stroke: #E7ECEC; stroke-width: 1; }
.sim-chart .tick { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
.sim-chart .tick-y { text-anchor: end; }
.sim-chart .tick-x { text-anchor: middle; }
.sim-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sim-chart .line-fixed { stroke: var(--chart-1); }
.sim-chart .line-var { stroke: var(--chart-2); }
.sim-chart .gap-fill { fill: rgba(190, 106, 0, 0.08); }
.sim-chart .dot { stroke: var(--surface); stroke-width: 2; }
.sim-chart .dot-fixed { fill: var(--chart-1); }
.sim-chart .dot-var { fill: var(--chart-2); }
.sim-chart .endlabel { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; fill: var(--ink); }
.sim-chart .endunit { font-size: 9px; fill: var(--ink-3); }
.sim-chart .serieslabel { font-size: 10.5px; font-weight: 500; fill: var(--ink-2); }
.sim-chart .gaplabel { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--ink-2); }
.sim-chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.sim-chart .cursor { stroke: var(--surface); stroke-width: 2; }
.sim-chart .cursor-fixed { fill: var(--chart-1); }
.sim-chart .cursor-var { fill: var(--chart-2); }

/* draw-in animation (pathLength="1" on polylines) */
.sim-chart .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chart-draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}
.sim-chart .line-var { animation-delay: 0.45s; }
.sim-chart .gap-fill,
.sim-chart .dot,
.sim-chart .endlabel,
.sim-chart .serieslabel,
.sim-chart .gaplabel {
  opacity: 0;
  animation: chart-fade 0.6s ease 1.5s forwards;
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .sim-chart .line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .sim-chart .gap-fill, .sim-chart .dot, .sim-chart .endlabel,
  .sim-chart .serieslabel, .sim-chart .gaplabel { opacity: 1; animation: none; }
}

.sim-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 39, 44, 0.14);
  padding: 10px 13px;
  font-size: 11.5px;
  line-height: 1.7;
  white-space: nowrap;
  display: none;
}
.sim-tip .tip-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.sim-tip .tip-row { display: flex; align-items: center; gap: 7px; }
.sim-tip .tip-row .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sim-tip .tip-row .sw-fixed { background: var(--chart-1); }
.sim-tip .tip-row .sw-var { background: var(--chart-2); }
.sim-tip .tip-row .v {
  font-family: var(--font-mono);
  font-weight: 500;
  margin-left: auto;
  padding-left: 14px;
  font-variant-numeric: tabular-nums;
}

.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 11px;
}
.chart-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.chart-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.chart-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.chart-data { margin-top: 2px; }
.chart-data summary {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}
.chart-data summary::-webkit-details-marker { display: none; }
.chart-data summary::before { content: "+ "; color: var(--brand); }
.chart-data[open] summary::before { content: "− "; }
.chart-data table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 6px 0 8px;
}
.chart-data th, .chart-data td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--ink-2);
}
.chart-data th { color: var(--ink-3); font-weight: 500; }
.chart-data th:first-child, .chart-data td:first-child { text-align: left; }

/* ===== Stats band ===== */
.stats-band {
  background: var(--dark);
  color: var(--on-dark);
  padding: 68px 0 56px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 6px 36px; border-left: 1px solid rgba(233, 240, 240, 0.12); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.stat-num .unit {
  font-size: 17px;
  font-weight: 500;
  color: var(--on-dark-2);
  margin-left: 3px;
}
.stat-label {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--on-dark-2);
}
.stats-note {
  margin-top: 34px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark-2);
}
.stats-note a { color: var(--on-dark-accent); text-decoration: underline; text-underline-offset: 3px; }
.stats-note a:hover { color: #fff; }

/* ===== Work cards ===== */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 84, 98, 0.4);
  box-shadow: var(--shadow-lift);
}

.shot { background: var(--tint); border-bottom: 1px solid var(--line); }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
}
.shot-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CFDADB;
}
.shot-url {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-left: 8px;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
  flex: 1;
}
.work-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.work-title { font-size: 19px; font-weight: 600; letter-spacing: 0.02em; }
.work-desc { font-size: 14px; line-height: 1.95; color: var(--ink-2); flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.work-cta .arr { transition: transform 0.25s ease; }
.work-card:hover .work-cta .arr { transform: translateX(3px); }

/* wide variant (works page featured) */
.work-card.wide { display: grid; grid-template-columns: 1.15fr 1fr; }
.work-card.wide .shot { border-bottom: none; border-right: 1px solid var(--line); }
.work-card.wide .shot img { aspect-ratio: auto; height: 100%; min-height: 280px; object-position: left top; }
.work-card.wide .work-body { justify-content: center; padding: 34px 38px; }
.stack-40 { display: flex; flex-direction: column; gap: 36px; }

/* ===== Service summary (top) ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.svc { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.svc-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.12em;
}
.svc-name { margin-top: 12px; font-size: 17.5px; font-weight: 600; }
.svc-desc { margin-top: 10px; font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.svc-link .arr { transition: transform 0.25s ease; }
.svc-link:hover .arr { transform: translateX(3px); }

/* ===== Profile ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: start;
}
.profile-lead { font-size: 16px; line-height: 2.2; color: var(--ink-2); }
.profile-lead strong { color: var(--ink); font-weight: 600; }

.spec { margin-top: 36px; }
.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row:first-child { border-top: 1px solid var(--line); }
.spec-row dt { font-size: 13.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.spec-row dd { font-size: 14.5px; }

.skills-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.skills-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.skills-sub { margin-top: 6px; font-size: 14.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--tint);
  border-radius: 5px;
  padding: 6px 13px;
  letter-spacing: 0.03em;
}

/* ===== CTA band ===== */
.cta-band { background: var(--dark); padding: 80px 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-copy h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.02em;
}
.cta-copy p { margin-top: 14px; font-size: 14.5px; color: var(--on-dark-2); }

/* ===== Footer ===== */
.site-footer { background: var(--dark-2); color: var(--on-dark-2); padding: 64px 0 32px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.f-name { font-size: 16px; font-weight: 600; color: var(--on-dark); letter-spacing: 0.04em; }
.f-domain {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  margin-top: 7px;
}
.f-desc { margin-top: 16px; font-size: 12.5px; line-height: 2; max-width: 30em; }

.f-cols { display: flex; gap: 72px; }
.f-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}
.f-col a {
  display: block;
  font-size: 13px;
  margin-top: 13px;
  transition: color 0.25s ease;
}
.f-col a:hover { color: var(--on-dark); }
.f-col .ext::after { content: " ↗"; font-size: 11px; }

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 240, 240, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

/* ===== Works page ===== */
.cat-group { border-top: 1px solid var(--line-strong); padding: 34px 0 44px; }
.cat-group:last-child { padding-bottom: 8px; }
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.cat-name { font-size: 17.5px; font-weight: 600; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.cat-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.pj {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}
.pj-title { font-size: 15px; font-weight: 600; }
.pj-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 940px; }

.section-more { margin-top: 30px; }
.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}
.section-more .arr { transition: transform 0.25s ease; }
.section-more a:hover .arr { transform: translateX(3px); }
.review {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px 22px 30px;
  overflow: hidden;
  margin: 0;
}
.review::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
}
.review-text { font-size: 15.5px; line-height: 2.05; }
.review-src {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.review-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ===== Services page ===== */
.service-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 44px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-of-type { padding-top: 20px; }
.sv-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.12em;
}
.sv-idx::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--line-strong);
  margin-top: 16px;
}
.sv-title { font-size: 21px; font-weight: 600; }
.sv-body p { margin-top: 16px; font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.sv-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin-top: 26px;
}
.sv-items li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.sv-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 11px;
  height: 1.5px;
  background: var(--brand);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step-no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.16em;
}
.step-name { margin-top: 12px; font-size: 16px; font-weight: 600; }
.step-desc { margin-top: 8px; font-size: 13px; line-height: 1.95; color: var(--ink-2); }

.price-ledger { max-width: 660px; }
.pr-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
}
.pr-row:first-child { border-top: 1px solid var(--line); }
.pr-label { font-size: 14.5px; }
.pr-leader { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.pr-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pr-price .yen { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.price-note { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.price-intro { font-size: 15px; color: var(--ink-2); max-width: 40em; margin-bottom: 36px; }

/* ===== Contact page ===== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 46px 48px;
  max-width: 720px;
}
.contact-card .lead { font-size: 15.5px; line-height: 2.1; color: var(--ink-2); }
.contact-card .btn { margin-top: 30px; }
.assure { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.assure li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--ink-2);
}
.assure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 600;
}

.alt-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.alt-channel a {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.alt-channel a:hover { text-decoration: underline; text-underline-offset: 4px; }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 21px 40px 21px 2px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq-body { padding: 0 2px 24px; font-size: 14.5px; line-height: 2.05; color: var(--ink-2); max-width: 46em; }

/* ===== Utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 404 ===== */
.error-section { padding: 110px 0 130px; text-align: center; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 10vw, 110px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.error-message { margin-top: 28px; font-size: 19px; font-weight: 600; }
.error-sub { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.error-section .btn { margin-top: 40px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { gap: 44px; }
  .f-cols { gap: 48px; }
}

@media (max-width: 960px) {
  .section { padding: 76px 0; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid .chart-card { max-width: 640px; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-2 { grid-template-columns: 1fr; }
  .work-card.wide { grid-template-columns: 1fr; }
  .work-card.wide .shot { border-right: none; border-bottom: 1px solid var(--line); }
  .work-card.wide .shot img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .work-card.wide .work-body { padding: 26px 28px; }
  .review-grid, .review-grid.cols-2 { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .nav { width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .nav-cta { margin-left: auto; }

  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .page-head { padding: 48px 0 8px; }
  .hero { padding: 40px 0 64px; }
  .hero-title { line-height: 1.7; }
  .hero-ctas .btn { width: 100%; }

  .svc-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat { padding: 0 24px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { padding-right: 0; }
  .stat-num { font-size: 36px; }

  .service-block { grid-template-columns: 1fr; gap: 18px; padding: 44px 0; }
  .sv-items { grid-template-columns: 1fr; }
  .cat-items { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { padding: 32px 26px; }
  .contact-card .btn { width: 100%; padding-left: 16px; padding-right: 16px; white-space: nowrap; }
  .cta-band { padding: 64px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn { width: 100%; }
  .footer-grid { flex-direction: column; gap: 36px; }
  .f-cols { flex-direction: column; gap: 32px; }
  .chart-card { padding: 16px 14px 10px; }
}

@media (max-width: 480px) {
  .sim-chart .tick { font-size: 13px; }
  .sim-chart .endlabel { font-size: 15px; }
  .sim-chart .endunit { font-size: 12px; }
  .sim-chart .serieslabel { font-size: 14px; }
  .sim-chart .gaplabel { font-size: 14px; }
}
