/* THE NIGHT GAUGE / 夜間計器室 — PumpSelf Voyage */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500&family=Noto+Sans+JP:wght@400;500&family=Zen+Kaku+Gothic+New:wght@500;700&display=swap');

:root {
  --ink: #0B0F14;
  --indigo: #14213A;
  --bone: #F1EBDF;
  --amber: #FFA23A;
  --mist: #8A93A6;
  --font-heading: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --max-width: 1120px;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: normal;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }

a { color: currentColor; text-decoration: underline; text-underline-offset: 0.2em; transition: opacity 0.2s; }
a:hover { opacity: 0.82; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Surfaces — paired bg + text only */
.surface-ink { background: var(--ink); color: var(--bone); }
.surface-bone { background: var(--indigo); color: var(--bone); }
.surface-indigo { background: var(--indigo); color: var(--bone); }
.surface-amber { background: var(--amber); color: var(--ink); }

.surface-ink a:not(.btn), .surface-indigo a:not(.btn), .surface-bone a:not(.btn) { color: var(--amber); }
.surface-amber a:not(.btn) { color: var(--indigo); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.text-mist { color: var(--mist); }
.text-amber { color: var(--amber); }

.prose { max-width: 40em; }
.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.96);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(241, 235, 223, 0.08);
}

.site-header.is-scrolled .logo-main { color: var(--bone); }
.site-header.is-scrolled .logo-sub { color: var(--mist); }
.site-header.is-scrolled .main-nav a { color: var(--bone); }
.site-header.is-scrolled .nav-toggle { border-color: var(--bone); color: var(--bone); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo { display: flex; flex-direction: column; gap: 0.125rem; text-decoration: none; }
.logo-main { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.logo-sub { font-size: 0.6875rem; color: var(--mist); letter-spacing: 0.06em; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--bone);
  color: var(--bone);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  border-radius: 2px;
}

.main-nav ul { display: flex; gap: 1.5rem; list-style: none; }
.main-nav a { font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.main-nav a.active { color: var(--amber); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn:hover { filter: brightness(1.06); opacity: 1; }
a.btn { text-decoration: none; }
a.btn:hover { opacity: 1; }
.btn-primary { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-secondary { background: transparent; color: var(--bone); border-color: var(--bone); }
.surface-bone .btn-secondary { color: var(--bone); border-color: var(--bone); }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* Hero — THE GAUGE */
.hero-gauge {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-gauge__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/pumpself-01-hero-night-office.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-gauge__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.72) 0%, rgba(11, 15, 20, 0.45) 45%, rgba(11, 15, 20, 0.88) 100%);
  z-index: 1;
}

.hero-gauge__glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(255, 162, 58, 0.06);
  pointer-events: none;
  z-index: 2;
}

.hero-gauge__route {
  position: absolute;
  bottom: 28%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
  opacity: 0.35;
  z-index: 3;
}

.hero-gauge__route::before {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: repeating-linear-gradient(90deg, var(--amber) 0, var(--amber) 4px, transparent 4px, transparent 24px);
  opacity: 0.5;
}

.hero-gauge__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 2rem;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(241, 235, 223, 0.25);
  margin-bottom: 3rem;
  font-size: 0.8125rem;
}

.hero-topbar__right { color: var(--amber); font-weight: 500; }

.hero-content { max-width: 640px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.hero-gauge h1 { margin-bottom: 1.5rem; }
.hero-gauge h1 em { font-style: normal; color: var(--amber); }

.hero-lead {
  font-size: 1rem;
  line-height: 1.95;
  color: rgba(241, 235, 223, 0.88);
  max-width: 560px;
  margin-bottom: 0.5rem;
}

.hero-trust {
  margin-top: 3rem;
  padding: 0.875rem 0;
  border-top: 1px solid rgba(138, 147, 166, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 7.5rem 0 var(--section-pad);
  border-bottom: 1px solid rgba(241, 235, 223, 0.12);
}

.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* Sections */
.section { padding: var(--section-pad) 0; }

.section-header { margin-bottom: 2.5rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; display: block; }

.hairline { border: none; border-top: 1px solid rgba(241, 235, 223, 0.15); margin: 2rem 0; }
.surface-bone .hairline { border-color: rgba(241, 235, 223, 0.12); }

/* Stats trio */
.stats-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 162, 58, 0.2);
  border: 1px solid rgba(255, 162, 58, 0.25);
}

.stat-item {
  background: var(--indigo);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label { font-size: 0.875rem; color: var(--mist); }

/* Route rail — 4 steps */
.route-rail { position: relative; padding-left: 3rem; }

.route-rail::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(255, 162, 58, 0.2));
}

.route-step {
  position: relative;
  padding: 2rem 0 2rem 1.5rem;
  border-bottom: 1px solid rgba(241, 235, 223, 0.08);
}

.route-step:last-child { border-bottom: none; }

.route-step::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 2.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 162, 58, 0.5);
}

.route-step__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mist);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(241, 235, 223, 0.04);
  border: 1px solid rgba(255, 162, 58, 0.2);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.card__ghost-num {
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 500;
  color: rgba(255, 162, 58, 0.08);
  line-height: 1;
  pointer-events: none;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 6;
  max-height: 180px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 162, 58, 0.15);
}

/* Case cards */
.case-card {
  border: 1px solid rgba(255, 162, 58, 0.2);
  background: rgba(241, 235, 223, 0.04);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.case-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mist);
  margin-bottom: 0.75rem;
}

/* Image grid */
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.img-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid rgba(255, 162, 58, 0.15); }

/* FAQ */
.faq-list { list-style: none; }

.faq-item { border-bottom: 1px solid rgba(241, 235, 223, 0.12); }
.surface-bone .faq-item { border-color: rgba(241, 235, 223, 0.12); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--amber);
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 0 1.25rem;
  display: none;
  line-height: 1.9;
}

.faq-item.open .faq-answer { display: block; }

/* Forms — bone surface only */
.form-section { padding: var(--section-pad) 0; }

.form-grid { display: grid; gap: 1.25rem; max-width: 560px; }

.form-group label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: 0.9375rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(241, 235, 223, 0.2);
  background: rgba(11, 15, 20, 0.35);
  color: var(--bone);
  border-radius: 2px;
}

.form-group textarea { min-height: 160px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkbox-label input { width: auto; margin-top: 0.25rem; flex-shrink: 0; }

.form-note { font-size: 0.8125rem; color: var(--mist); margin-top: 1rem; max-width: 560px; }

.alert-success {
  background: rgba(255, 162, 58, 0.08);
  border: 1px solid rgba(255, 162, 58, 0.25);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 2px;
}

/* Legal tables */
.legal-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.legal-table th, .legal-table td {
  border: 1px solid rgba(241, 235, 223, 0.12);
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: rgba(241, 235, 223, 0.06); width: 28%; font-weight: 500; }

.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 { font-size: 1.25rem; margin-top: 2rem; }

/* CTA band */
.cta-band { padding: 4rem 0; text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 520px; margin: 0 auto 1.5rem; color: rgba(241, 235, 223, 0.85); }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  font-size: 0.8125rem;
  line-height: 1.85;
  border-top: 1px solid rgba(241, 235, 223, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { text-decoration: none; font-size: 0.8125rem; }

.footer-disclaimer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 235, 223, 0.1);
  color: var(--mist);
  font-size: 0.75rem;
}

.footer-copy { margin-top: 1.5rem; color: var(--mist); font-size: 0.75rem; }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--indigo);
  color: var(--bone);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text { flex: 1; min-width: 240px; font-size: 0.8125rem; line-height: 1.7; }
.cookie-text a { color: var(--amber); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.cookie-actions button {
  padding: 0.625rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--bone);
}

.cookie-actions .btn-accept { background: var(--amber); color: #fff; border-color: var(--amber); }

#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(11, 15, 20, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#cookie-modal.visible { display: flex; }

.cookie-modal-box {
  background: var(--indigo);
  color: var(--bone);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 162, 58, 0.2);
}

.cookie-modal-box h3 { margin-bottom: 1rem; }
.cookie-option { margin: 1rem 0; }
.cookie-option label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* Gauge motif */
.gauge-motif {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.gauge-motif svg { width: 100%; height: 100%; }

/* Reveal animation */
.js .reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }

/* 404 */
.error-page { min-height: 70vh; display: flex; align-items: center; padding: 8rem 0 4rem; }
.error-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.error-links a { text-decoration: none; padding: 0.5rem 1rem; border: 1px solid rgba(241, 235, 223, 0.3); border-radius: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-gauge { min-height: 84vh; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--indigo);
    color: var(--bone);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .main-nav a { color: var(--bone); font-size: 1rem; }
  .stats-trio { grid-template-columns: 1fr; }
  .img-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

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

@media (max-width: 480px) {
  .mobile-br { display: block; }
}
