/* ============================================================
   cost-audit.humbulls.com — 外注コスト診断
   V3「Ink & Gas」準拠。トークンは site/theme-v3/css/core.css の
   :root からコピー同梱（site/ への参照依存を作らない）。
   ============================================================ */
:root {
  --ink: #17191E;
  --ink-2: #383C45;
  --ink-3: #63666F;
  --paper: #FFFFFF;
  --surface: #F5F5F4;
  --line: #E7E7E4;
  --line-strong: #C9C9C6;
  --on-dark: #FFFFFF;
  --on-dark-2: #C7CAD1;
  --on-dark-3: #9BA0AA;
  --gas-1: #5FA8FF;
  --gas-2: #9B7CFF;
  --gas-4: #BFE8FF;
  --gas-5: #FFB06B;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo UI", "Meiryo",
    "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;
  --radius-card: 14px;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  font-feature-settings: "palt" 1, "tnum" 0, "onum" 0, "ss01" 0, "zero" 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible { outline-color: #fff; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 3vw, 28px); }

/* HubSpot chat をこのサブブランドでは出さない（analytics は維持） */
#hubspot-messages-iframe-container { display: none !important; }

/* ---------- buttons ---------- */
.btn-fill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); padding: 17px 30px; cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-fill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23,25,30,0.22); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); padding: 17px 30px;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-header {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 11px 18px;
  transition: opacity 240ms var(--ease);
}
.btn-header:hover { opacity: 0.82; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-brand img { height: 20px; width: auto; }
.header-service {
  font-size: 13px; font-weight: 700; line-height: 1; color: var(--ink-2);
  border-left: 1px solid var(--line-strong); padding-left: 12px;
}
.header-cta { margin-left: auto; }
@media (max-width: 560px) {
  .header-service { display: none; }
  .btn-header { font-size: 12px; padding: 10px 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero-gas {
  position: absolute; right: -12%; top: -18%; width: 58vw; max-width: 760px; aspect-ratio: 1;
  background:
    radial-gradient(closest-side at 62% 40%, rgba(95,168,255,0.34), transparent 68%),
    radial-gradient(closest-side at 34% 66%, rgba(155,124,255,0.22), transparent 66%),
    radial-gradient(closest-side at 74% 72%, rgba(255,176,107,0.20), transparent 62%);
  filter: blur(22px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-lead-label {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 6px 14px; line-height: 1; margin-bottom: 22px; background: var(--paper);
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px); font-weight: 900; line-height: 1.32;
  letter-spacing: 0.015em;
}
.hero-sub { margin-top: 22px; font-size: clamp(15px, 1.6vw, 17px); line-height: 2.0; color: var(--ink-2); max-width: 640px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-points li {
  list-style: none; font-size: 13px; font-weight: 700; line-height: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- section 共通 ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec--surface { background: var(--surface); }
.sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; line-height: 1.4; letter-spacing: 0.02em; }
.sec-en { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); }
.sec-desc { margin-top: 16px; max-width: 640px; color: var(--ink-2); font-size: 15px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 26px 30px; }
.step-num {
  font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1.2px var(--line-strong);
}
.step-card h3 { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.step-card p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- わかること ---------- */
.learn-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.learn-list { display: grid; gap: 14px; }
.learn-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 24px; }
.learn-item h3 { font-size: 16px; font-weight: 700; line-height: 1.6; display: flex; gap: 12px; align-items: baseline; }
.learn-item h3 .tag { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.learn-item p { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }

/* レポートサンプル（CSS モック） */
.report-mock {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  padding: 26px 26px 28px; box-shadow: 0 18px 48px rgba(23,25,30,0.10);
}
.report-mock-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.report-mock-head strong { font-size: 14px; font-weight: 900; letter-spacing: 0.03em; }
.report-mock-head span { font-size: 11px; color: var(--ink-3); }
.report-mock-label { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); }
.judge-bar { position: relative; margin-top: 10px; height: 10px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gas-4), var(--gas-1) 55%, var(--gas-2)); }
.judge-bar i {
  position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(23,25,30,0.35);
}
.judge-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--ink-3); }
.report-mock table { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
.report-mock th, .report-mock td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.report-mock th { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-3); }
.report-mock td b { font-weight: 700; }
.verdict { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); }
.verdict--over { background: var(--ink); color: #fff; border-color: var(--ink); }
.report-mock-note { margin-top: 14px; font-size: 11px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 限定枠 ---------- */
.limit-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.limit-num { font-size: clamp(56px, 8vw, 84px); font-weight: 900; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.limit-num small { font-size: 0.38em; font-weight: 700; margin-left: 4px; }
.limit-body h3 { font-size: 18px; font-weight: 700; line-height: 1.6; }
.limit-body p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); max-width: 560px; }
@media (max-width: 700px) { .limit-panel { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- form ---------- */
.form-wrap { max-width: 760px; margin: 0 auto; }
.notice-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px 26px; margin-bottom: 36px;
}
.notice-box h3 { font-size: 14px; font-weight: 700; line-height: 1.6; }
.notice-box ul { margin: 12px 0 0 1.2em; display: grid; gap: 8px; }
.notice-box li { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
/* 申込フォーム（自前実装 → /api/submit） */
.audit-form { font-family: var(--font-sans); }
.audit-form .af-field { margin-bottom: 28px; border: none; }
.audit-form .af-label {
  display: block; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink); margin-bottom: 8px;
}
.audit-form .af-label-note { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.audit-form .af-req { color: #C0362C; margin-left: 4px; }
.audit-form .af-help { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: -4px 0 10px; }
.audit-form input[type="text"],
.audit-form input[type="email"],
.audit-form select,
.audit-form textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 13px 14px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.audit-form ::placeholder { color: var(--line-strong); }
.audit-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317191E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.audit-form textarea { min-height: 140px; resize: vertical; }
.audit-form input:focus, .audit-form select:focus, .audit-form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,25,30,0.12);
}
.audit-form input[type="file"] {
  width: 100%; font-size: 13px; color: var(--ink-2);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
  padding: 16px 14px; background: var(--paper); cursor: pointer;
}
.audit-form input[type="file"]::file-selector-button {
  font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; margin-right: 12px; cursor: pointer;
}
.audit-form .af-choices { display: grid; gap: 10px; }
.audit-form .af-choices label {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400;
  line-height: 1.7; color: var(--ink-2); margin: 0; cursor: pointer;
}
.audit-form input[type="checkbox"], .audit-form input[type="radio"] {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink);
}
.audit-form .af-choice-error, .audit-form .af-error {
  font-size: 13px; line-height: 1.7; color: #C0362C; margin-top: 10px;
}
.audit-form .af-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.audit-form .af-submit { margin-top: 36px; }
.audit-form .af-button {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; line-height: 1;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); padding: 18px 38px; cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms var(--ease);
}
.audit-form .af-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23,25,30,0.22); }
.audit-form .af-button:disabled { opacity: 0.55; cursor: default; }
.af-success {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 30px;
}
.af-success h3 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.af-success p { margin-top: 10px; font-size: 14px; line-height: 2.0; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px;
  padding: 22px 8px; font-size: 16px; font-weight: 700; line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { flex-shrink: 0; font-size: 13px; font-weight: 900; color: var(--ink-3); letter-spacing: 0.04em; }
.faq-item summary .toggle { margin-left: auto; flex-shrink: 0; font-size: 18px; font-weight: 400; color: var(--ink-3); transition: transform 240ms var(--ease); }
.faq-item[open] summary .toggle { transform: rotate(45deg); }
.faq-a { padding: 0 8px 24px 45px; font-size: 14px; line-height: 2.0; color: var(--ink-2); max-width: 720px; }
@media (max-width: 560px) { .faq-a { padding-left: 8px; } }

/* ---------- CTA 帯（墨面） ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .inner { display: grid; gap: 22px; justify-items: start; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.5; }
.cta-band p { font-size: 14px; line-height: 1.9; color: var(--on-dark-2); max-width: 620px; }
.btn-invert {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper);
  border-radius: var(--radius-pill); padding: 17px 34px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-3); border-top: 1px solid rgba(255,255,255,0.08); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-inner img { height: 16px; width: auto; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.footer-links a { text-decoration: none; color: var(--on-dark-2); }
.footer-links a:hover { color: var(--on-dark); }
.footer-copy { margin-left: auto; font-size: 12px; }
@media (max-width: 640px) { .footer-copy { margin-left: 0; } }
