:root {
  --ink: #1f2933;
  --body: #3a4550;
  --mute: #6b7681;
  --blue: #1d64c2;
  --yellow: #fed93f;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.wrap--mid > * { max-width: 880px; }

/* ボタン */
.btn {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 700; text-decoration: none; text-align: center;
  padding: 14px 32px; border-radius: 6px; border-bottom: 3px solid #e0b814;
}
.btn:hover { background: #ffe25e; }
.btn--sm { padding: 7px 18px; font-size: 14px; border-bottom-width: 2px; }
.btn--lg { padding: 16px 48px; font-size: 17px; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.header__logo { height: 24px; width: auto; }
.header__nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.header__nav a { color: var(--body); text-decoration: none; }
.header__nav a:hover { color: var(--blue); }

/* FV */
.hero { position: relative; overflow: hidden; background: #f2f5f8; display: flex; align-items: center; min-height: clamp(560px, 46vw, 880px); }
.hero__inner { width: 100%; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% top; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 38%, rgba(255, 255, 255, 0) 62%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero__title { font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 32px; }
.hero__lead { font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.7; margin: 20px 0 28px; }
.hero__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 680px; margin: 0 0 28px; padding: 0; list-style: none; }
.hero__checks li { position: relative; display: flex; align-items: center; min-height: 60px; padding: 12px 16px 12px 46px; background: var(--bg); border: 2px solid var(--blue); border-radius: 6px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.hero__checks li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 7px; height: 13px; margin-top: -9px; border: solid var(--blue); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.hero__price { font-size: 18px; margin-bottom: 20px; color: var(--ink); }
.hero__price b { font-size: 34px; }

/* セクション */
.sec { padding: 88px 0; }
.sec--soft { background: var(--bg-soft); }
.sec-title { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 28px; padding-left: 16px; border-left: 5px solid var(--yellow); }
.sec-lead { margin: -8px 0 32px; }
.sec p + p { margin-top: 1em; }
.note { font-size: 14px; color: var(--mute); margin-top: 20px; }
.source { font-size: 12px; color: var(--mute); line-height: 1.7; margin-top: 16px; }

/* 背景 */
.news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.news__fig { border: 1px solid var(--line); padding: 24px 28px; }
.news__fig figcaption { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 12px; }
.bars th { width: 96px; white-space: nowrap; text-align: left; font-weight: 500; font-size: 14px; padding: 10px 16px 10px 0; line-height: 1.3; vertical-align: middle; }
.bars th small { display: block; font-size: 11px; color: var(--mute); }
.bars td { width: 100%; padding: 10px 0; font-size: 14px; white-space: nowrap; }
.bar { display: inline-block; vertical-align: middle; height: 20px; width: calc(var(--w) * .75); margin-right: 8px; background: #c3ccd6; }
.bars .is-now .bar { background: #d9534f; }
.bars .is-now td { font-weight: 700; color: #c0392b; }

/* 表（診断の内容） */
.spec { background: #fff; border-top: 2px solid var(--ink); }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 16px 20px; text-align: left; vertical-align: top; font-size: 15px; }
.spec thead th { font-size: 13px; color: var(--mute); font-weight: 500; padding-top: 12px; padding-bottom: 12px; }
.spec tbody th { width: 200px; color: var(--ink); font-weight: 700; white-space: nowrap; }

/* チェック */
.checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 9px;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg);
}

/* 会社 */
.company { display: grid; grid-template-columns: 440px 1fr; gap: 56px; align-items: center; }
.company__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* 料金 */
.price-table { border-top: 2px solid var(--ink); }
.price-table th, .price-table td { border-bottom: 1px solid var(--line); padding: 16px 18px; text-align: left; vertical-align: top; font-size: 15px; }
.price-table thead th { font-size: 17px; color: var(--ink); }
.price-table tbody th { width: 150px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.price-table .is-main { background: #fffbe8; }
.price-table b { font-size: 24px; color: var(--ink); }

/* 流れ */
.flow { counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 0 28px 64px; }
.flow li::before {
  content: counter(f); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-weight: 700; display: grid; place-items: center;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.flow b { display: block; color: var(--ink); font-size: 17px; }

/* FAQ */
.faq dt { font-weight: 700; color: var(--ink); padding: 20px 0 6px 32px; position: relative; border-top: 1px solid var(--line); }
.faq dt::before { content: "Q."; position: absolute; left: 0; color: var(--blue); }
.faq dd { padding: 0 0 20px 32px; position: relative; }
.faq dd::before { content: "A."; position: absolute; left: 0; color: var(--mute); font-weight: 700; }
.faq dd:last-child { border-bottom: 1px solid var(--line); }

/* フォーム */
.contact__form { background: #fff; border: 1px solid var(--line); padding: 32px; }

/* フッター */
.footer { border-top: 1px solid var(--line); font-size: 13px; padding: 28px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; }
.footer__logo { height: 22px; width: auto; }

.fixed-cta { display: none; }
.sp { display: none; }

@media (max-width: 860px) {
  .pc { display: none; }
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 56px; }
  .header__inner { height: 56px; }
  .header__logo { height: 20px; }
  .header__nav { display: none; }
  .header .btn { margin-left: auto; }

  .hero { background: #fff; display: block; min-height: 0; }
  .hero__bg { position: relative; display: block; aspect-ratio: 1 / .66; overflow: hidden; }
  .hero__bg img { object-position: center top; }
  .hero__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, #fff); }
  .hero::before { display: none; }
  .hero__inner { padding-top: 4px; padding-bottom: 40px; }
  .hero__title { font-size: 28px; margin-bottom: 20px; }
  .hero__lead { font-size: 17px; margin: 12px 0 18px; }
  .hero__checks { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  .hero__checks li { min-height: 0; padding: 10px 14px 10px 42px; font-size: 15px; }
  .hero__checks li::before { left: 17px; }
  .hero__price { font-size: 16px; }
  .hero__price b { font-size: 28px; }
  .hero .btn--lg { display: block; }

  .sec { padding: 56px 0; }
  .sec-title { font-size: 22px; margin-bottom: 20px; }
  .news, .company { grid-template-columns: 1fr; gap: 28px; }
  .news__fig { padding: 18px 16px; }
  .spec thead { display: none; }
  .spec tbody th, .spec td { display: block; width: auto; padding: 0 4px; border: 0; }
  .spec tbody th { padding-top: 16px; white-space: normal; }
  .spec td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 12px 8px; font-size: 14px; }
  .price-table tbody th { width: 64px; white-space: nowrap; }
  .price-table b { font-size: 20px; }
  .flow li { padding-left: 56px; }
  .contact__form { padding: 20px 14px; }
  .footer { padding-bottom: 88px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .fixed-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 60;
    background: var(--yellow); color: var(--ink); text-align: center; font-weight: 700; padding: 14px;
    border-radius: 6px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .fixed-cta.is-show { opacity: 1; pointer-events: auto; }
}

/* 詳細セクション（2026-10-12追加） */
.sub-title { font-size: 19px; font-weight: 700; color: var(--ink); margin: 48px 0 12px; }
.route__detail .sub-title, .case + p { margin-top: 0; }
.news__sub { margin-top: 24px; }
.mini th, .mini td { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.mini td { text-align: right; white-space: nowrap; }
.mini tr:last-child th, .mini tr:last-child td { font-weight: 700; color: var(--ink); }
.spec--plain { margin-top: 20px; }
.spec--3 tbody td:last-child { color: var(--ink); background: #fffbe8; }
.spec--3 thead th:last-child { background: #fffbe8; }
.spec--3 tbody th { width: 160px; }

.route { display: grid; gap: 16px; margin-bottom: 48px; }
.route__row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); padding: 18px 20px; }
.route__row.is-new { border: 2px solid #e2b500; }
.route__label { font-weight: 700; color: var(--ink); font-size: 15px; }
.route__row.is-new .route__label { color: #a06f00; }
.route__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: r; }
.route__steps li { position: relative; font-size: 14px; line-height: 1.6; padding: 10px 12px; background: var(--bg-soft); }
.route__row.is-new .route__steps li { background: #fffbe8; }
.route__steps li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.route__detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.code { background: #fff; border: 1px solid var(--line); }
.code figcaption { font-size: 13px; color: var(--mute); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.code pre { font-family: Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; padding: 16px; overflow-x: auto; color: var(--ink); }
.code .c { color: var(--mute); }
.code b { color: var(--blue); }
.code em { font-style: normal; color: #c0392b; font-weight: 700; }

.case { border-left: 4px solid var(--line); background: var(--bg-soft); padding: 16px 20px; margin: 24px 0; }
.case__title { font-weight: 700; color: var(--ink); }
.case p + p { margin-top: 6px; }

@media (max-width: 860px) {
  .sub-title { font-size: 17px; margin-top: 36px; }
  .route__row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .route__steps { grid-template-columns: 1fr; gap: 18px; }
  .route__steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
  .route__detail { grid-template-columns: 1fr; gap: 24px; }
  .spec--3 tbody td:last-child { padding: 10px 12px; margin-bottom: 16px; }
  .spec--3 tbody td:nth-child(2) { border-bottom: 0; padding-bottom: 8px; }
  .spec--3 tbody th { width: auto; }
  .spec--3 tbody td:last-child::before { content: "対策の例"; display: block; font-size: 12px; font-weight: 700; color: #a06f00; }
}

/* 完了ページ */
.thanks { min-height: calc(100vh - 64px - 90px); }
.thanks .checklist { margin-bottom: 40px; }
.thanks__back { margin-top: 8px; }
