:root {
  --brand-900: #0b241c;
  --brand-800: #123829;
  --brand-700: #184a35;
  --brand-600: #1f5c40;
  --brand-500: #2a7350;
  --brand-400: #3c8c66;
  --brand-050: #eef4f0;
  --brand-025: #f5f8f6;
  --gold-700: #935f0f;
  --gold-600: #c98a1a;
  --gold-500: #e8a828;
  --gold-400: #f0bc51;
  --gold-300: #f3c877;
  --ink: #1a1f1c;
  --ink-muted: #5c655f;
  --ink-faint: #6c766f;
  --paper: #ffffff;
  --paper-soft: #f6f8f6;
  --paper-soft2: #eef1ee;
  --line: #dfe5e0;
  --line-strong: #c7d0c9;
  --danger: #b3432f;
  --danger-soft: #fbe9e5;
  --radius: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
h1, h2, h3, h4 { font-weight: 800; color: var(--brand-900); line-height: 1.45; margin: 0; text-wrap: balance; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }
.tag-font { font-family: "Barlow Condensed", "Noto Sans JP", sans-serif; }

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--gold-700); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--gold-500); display: inline-block; border-radius: 2px; flex-shrink: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; min-height: 48px; line-height: 1.3;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--brand-900); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-line { border-color: var(--line-strong); color: var(--brand-800); background: #fff; }
.btn-line:hover { border-color: var(--brand-600); background: var(--brand-050); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- top nav (matches kaburaya-site pattern, simplified) ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .bar { max-width: 980px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; }
.brand-word strong { font-size: 16px; font-weight: 800; color: var(--brand-900); letter-spacing: 0.01em; }
.brand-word span { font-family: "Barlow Condensed", sans-serif; font-size: 10.5px; letter-spacing: 0.16em; color: var(--gold-700); font-weight: 600; }
.topbar nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a.nav-link { display: none; }
.topbar .nav-tel { display: none; font-family: "Barlow Condensed", sans-serif; font-size: 16px; color: var(--brand-800); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---- hero ---- */
.tool-hero { padding: 48px 0 40px; background: linear-gradient(160deg, var(--brand-800), var(--brand-700) 60%, var(--brand-600)); color: #fff; }
.tool-hero .eyebrow { color: var(--gold-300); }
.tool-hero .eyebrow::before { background: var(--gold-400); }
.tool-hero h1 { color: #fff; font-size: clamp(26px, 5.5vw, 38px); margin: 14px 0 12px; }
.tool-hero p { color: rgba(255, 255, 255, 0.82); font-size: 16px; max-width: 62ch; margin: 0; }

/* ---- section shell ---- */
.section { padding: 44px 0; }
.section-soft { background: var(--paper-soft); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(20px, 4vw, 25px); margin: 10px 0 8px; }
.section-head p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* ---- cards (landing) ---- */
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover { border-color: var(--brand-500); box-shadow: 0 18px 40px -24px rgba(11, 36, 28, 0.35); }
.tool-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-050); display: flex; align-items: center; justify-content: center; color: var(--brand-600); }
.tool-card h3 { font-size: 19px; }
.tool-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; flex: 1; }
.tool-card .cta { font-weight: 700; color: var(--brand-700); font-size: 14.5px; display: flex; align-items: center; gap: 6px; }

/* ---- form components ---- */
.field { margin-bottom: 22px; }
.field label.field-label { display: block; font-size: 14.5px; font-weight: 700; color: var(--brand-900); margin-bottom: 8px; }
.field .hint { font-size: 13.5px; color: var(--ink-faint); margin-top: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 13px 14px; min-height: 48px; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(31, 92, 64, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required-mark { color: var(--danger); margin-left: 3px; }
.error-text { color: var(--danger); font-size: 13.5px; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-text { display: block; }

/* choice chips (checkbox/radio styled as buttons) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-chip {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  min-height: 48px; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-chip .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.choice-chip input:checked ~ .box { background: var(--brand-600); border-color: var(--brand-600); }
.choice-chip input:checked ~ .box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 900; }
.choice-chip.radio .box { border-radius: 50%; }
.choice-chip:has(input:checked) { border-color: var(--brand-600); background: var(--brand-050); }
.choice-chip .txt { flex: 1; }
.choice-chip .txt small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* ---- step indicator ---- */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 30px; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.steps .step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-soft2); color: var(--ink-faint); display: flex; align-items: center; justify-content: center; font-size: 12.5px; flex-shrink: 0; }
.steps .step.active { color: var(--brand-800); }
.steps .step.active .n { background: var(--brand-600); color: #fff; }
.steps .step.done .n { background: var(--brand-600); color: #fff; }
.steps .sep { width: 18px; height: 1.5px; background: var(--line-strong); flex-shrink: 0; }

/* ---- product select cards ---- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-card {
  display: block; position: relative;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 16px;
  cursor: pointer; background: #fff; -webkit-tap-highlight-color: transparent;
}
.product-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.product-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-050); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.product-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.product-card h4 { font-size: 15px; color: var(--brand-900); }
.product-card p { font-size: 13px; color: var(--ink-muted); margin: 0; }
.product-card .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.product-card:has(input:checked) .box { background: var(--brand-600); border-color: var(--brand-600); }
.product-card:has(input:checked) .box::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; }

/* ---- summary / result panel ---- */
.panel { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.summary-block + .summary-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.summary-block .k { font-size: 12.5px; font-weight: 700; color: var(--gold-700); text-transform: uppercase; letter-spacing: 0.08em; font-family: "Barlow Condensed", sans-serif; margin-bottom: 6px; }
.summary-block .v { font-size: 15px; color: var(--ink); }
.summary-block .v.empty { color: var(--ink-faint); font-style: normal; }
.summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.summary-list li { font-size: 14.5px; }

.notice {
  border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.7;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-info { background: var(--brand-050); color: var(--brand-800); }
.notice-warn { background: #fdf3e3; color: #8a5a10; }
.notice .ic { flex-shrink: 0; font-size: 15px; line-height: 1.5; }

footer.site-footer { padding: 36px 20px 44px; background: var(--brand-900); color: rgba(255, 255, 255, 0.72); text-align: center; font-size: 13.5px; }
footer.site-footer .fname { color: #fff; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
footer.site-footer a { text-decoration: none; }
footer.site-footer .foot-tel { color: var(--gold-400); font-weight: 700; }
footer.site-footer .foot-links { margin-top: 10px; }
footer.site-footer .foot-links a { margin: 0 8px; }

/* ---- utility ---- */
.stack-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ================= RESPONSIVE ================= */
@media (min-width: 720px) {
  .topbar nav a.nav-link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--brand-800); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
  .topbar nav a.nav-link:hover { background: var(--brand-050); }
  .topbar .nav-tel { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 720px) {
  .tool-cards, .product-grid, .choice-grid, .field-row { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .container, .container-narrow { padding: 0 16px; }
  .topbar .bar { padding: 12px 16px; }
  .brand-word strong { font-size: 14.5px; }
  .tool-hero { padding: 36px 0 30px; }
  .panel { padding: 18px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .steps { gap: 4px; }
  .steps .step span.label { display: none; }
  .steps .sep { width: 10px; }
}

/* ---- print (used by the quote-request tool) ---- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 12.5px; }
  .print-only { display: block !important; }
  a { text-decoration: none; color: inherit; }
  .panel { border: none; padding: 0; background: none; }
}
.print-only { display: none; }
