/* ─── Variables ───────────────────────────────── */
:root {
  --ink: #0f172a;
  --sub: #64748b;
  --mut: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-warm: #fff7ed;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-bg: #fff1e6;
  --card: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-warm); }

/* ─── Section helpers ─────────────────────────── */
.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--sub);
  font-size: 15px;
  margin: 12px auto 0;
  max-width: 560px;
}

section { padding: 72px 0; scroll-margin-top: 88px; }

/* ─── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-mark { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.logo-sub { font-size: 11px; color: var(--sub); }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a:not(.btn) { color: var(--sub); }
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── Hero ────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--bg-warm), #fff 70%); padding: 64px 0 80px; }

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-bg);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.hero .lead {
  margin-top: 18px;
  color: var(--sub);
  font-size: 15px;
}

.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.shot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.shot:hover { opacity: 0.92; }
.shot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shot-hero { aspect-ratio: 6 / 5; box-shadow: 0 20px 60px -20px rgba(15,23,42,.25); }

/* ─── Problems ────────────────────────────────── */
.problems { background: var(--card); }

.problem-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink);
}
.problem-list li::before {
  content: "！";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Features ────────────────────────────────── */
.features { background: var(--bg-warm); }

.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-card .shot { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--sub); }

/* ─── Flow ────────────────────────────────────── */
.flow-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
}
.flow-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
}
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.flow-list h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-list p { font-size: 13px; color: var(--sub); }

/* ─── Audience ────────────────────────────────── */
.audience { background: var(--card); }

.audience-list {
  max-width: 640px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.audience-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

/* ─── Pricing ─────────────────────────────────── */
.pricing { background: var(--bg-warm); }

.price-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
}
.price-toggle button.on { background: var(--ink); color: #fff; }

.price-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 720px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card--featured { border: 2px solid var(--brand); }

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 { font-size: 17px; font-weight: 800; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; }
.price-card .amount { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .unit { font-size: 13px; color: var(--sub); }

.price-spec { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-spec li { font-size: 13.5px; color: var(--sub); padding-left: 18px; position: relative; }
.price-spec li::before { content: "・"; position: absolute; left: 0; }

/* ─── コストシミュレーター（モーダル） ─────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .4);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--bg-warm);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--sub);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-panel h3 { font-size: 20px; font-weight: 800; padding-right: 32px; }
.modal-lead { margin-top: 8px; font-size: 13px; color: var(--sub); }

/* ─── 画像ライトボックス ──────────────────────── */
.modal-lightbox .modal-overlay { background: rgba(8, 11, 20, .85); }
.lightbox-panel {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 40px);
}
.lightbox-image {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 40px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.lightbox-panel .modal-close {
  top: -14px;
  right: -14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.sim-field { margin-top: 20px; }
.sim-field label,
.sim-field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }

.sim-stepper { display: flex; align-items: center; gap: 10px; }
.sim-step {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.sim-step:hover { background: var(--bg-warm); }
.sim-stepper input[type="number"] {
  width: 72px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}
.sim-stepper input[type="number"]::-webkit-outer-spin-button,
.sim-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sim-options { display: flex; flex-direction: column; gap: 8px; }
.sim-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  cursor: pointer;
}
.sim-option input { width: 16px; height: 16px; accent-color: var(--brand); }
.sim-option span:nth-child(2) { flex: 1; }
.sim-option-price { color: var(--sub); font-weight: 700; }

.sim-banner {
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.sim-result { margin-top: 24px; background: var(--bg-warm); border-radius: 12px; padding: 16px; }
.sim-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 5px 0;
  color: var(--sub);
}
.sim-subtotal {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--ink);
  font-weight: 700;
}
.sim-discount { color: var(--brand-dark); font-weight: 700; }
.sim-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.sim-cta { margin-top: 20px; }

/* ─── 申込みフォーム ──────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-field { margin-top: 16px; }
.form-row .form-field { margin-top: 0; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field .req {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.form-field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-field input:invalid:not(:placeholder-shown) { border-color: #ef4444; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-message {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.form-message.is-success { background: #dcfce7; color: #15803d; }
.form-message.is-error { background: #fee2e2; color: #b91c1c; }

#leadForm .btn { margin-top: 20px; }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .modal-panel { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox-panel .modal-close { top: 4px; right: 4px; }
}
#consultSubmitBtn {
  margin-top: 2vh;
}

/* ─── FAQ ─────────────────────────────────────── */
.faq { background: var(--card); }

.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; float: right; color: var(--sub); }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { margin-top: 10px; font-size: 13.5px; color: var(--sub); }

.faq-link {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}
.faq-link a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; }
.faq-link a:hover { color: var(--brand); }

/* ─── Final CTA ───────────────────────────────── */
.final-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.final-cta h2 { font-size: 26px; font-weight: 800; }
.final-cta p { margin-top: 12px; color: #cbd5e1; font-size: 14px; }
.final-cta .cta-row { justify-content: center; margin-top: 28px; }
.final-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ─── Footer ──────────────────────────────────── */
.site-footer { background: #0b1220; color: #94a3b8; padding: 48px 0 24px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-mark { color: #fff; }
.footer-brand p { font-size: 12px; margin-top: 6px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 12px; margin-top: 20px; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 980px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 22px; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}
