:root{
  /* ===== s- tokens ===== */
  --s-bg: #ffffff;
  --s-ink: #0b1220;
  --s-muted: rgba(11,18,32,.72);

  --s-blue: #1e8cc8;
  --s-blue2: #167ed6;
  --s-blue-soft: #eaf6ff;

  --s-soft: #f6fbff;
  --s-soft2: #f2f7fb;

  --s-line: rgba(11,18,32,.10);
  --s-shadow: 0 18px 46px rgba(11,18,32,.10);

  --s-radius-lg: 18px;
  --s-radius-md: 14px;

  --s-container: min(1120px, calc(100% - 40px));
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin: 0; }

.s-body{
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.9;
  font-weight: 500; /* ← 基本500 */
}

a{ color: inherit; text-decoration: none; }

.s-main{ width:100%; }
.s-container{ width: var(--s-container); margin: 0 auto; }

.s-br-sm{ display:none; }
@media (max-width: 680px){
  .s-br-sm{ display:block; }
}

.s-strong{ font-weight: 600; } /* ← 強調は600まで */

/* ===== Header ===== */
.s-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,18,32,.08);
}

.s-header-inner{
  width: var(--s-container);
  margin: 0 auto;
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.s-header-brand-ja{
  font-weight: 600;
  letter-spacing: .03em;
  font-size: 1.06rem;
}

/* ===== Hero（ボタンなし、背景で分ける） ===== */
.s-hero{
  padding: 66px 0 46px;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(30,140,200,.14), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, var(--s-soft), #fff);
}

.s-hero-inner{
  width: var(--s-container);
  margin: 0 auto;
  text-align:center;
}

.s-hero-eyebrow{
  margin: 0;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: .86rem;
  color: rgba(11,18,32,.45);
}

.s-hero-title{
  margin: 14px 0 0;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  font-size: clamp(2.0rem, 3.0vw, 2.7rem);
}

.s-hero-sub{
  margin: 14px auto 0;
  max-width: 860px;
  color: rgba(11,18,32,.70);
}

.s-hero-meta{
  margin-top: 18px;
  display:flex;
  gap: 18px;
  justify-content:center;
  flex-wrap: wrap;
  color: rgba(11,18,32,.64);
}
.s-hero-meta-item{
  display:flex;
  gap: 10px;
  align-items:center;
}
.s-hero-meta-k{
  font-weight: 600;
  color: rgba(11,18,32,.52);
}
.s-hero-meta-v{
  font-weight: 500;
}

/* ===== Blue section ===== */
.s-blue{
  background: var(--s-blue);
  padding: 64px 0;
}

.s-blue-inner{
  width: var(--s-container);
  margin: 0 auto;
  text-align:center;
  color:#fff;
}

.s-blue-strap{
  margin: 0;
  letter-spacing: .30em;
  font-weight: 600;
  font-size: .84rem;
  opacity: .9;
}

.s-blue-head{
  margin: 14px 0 0;
  font-weight: 600;
  letter-spacing: .02em;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.s-blue-lead{
  margin: 12px auto 0;
  max-width: 860px;
  opacity: .92;
}

/* 枠感を減らして「背景の差」で見せる */
.s-point-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align:left;
}

.s-point-item{
  padding: 10px 8px 0;
}

.s-point-ic{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.05rem;
}

.s-point-title{
  margin: 12px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.s-point-text{
  margin: 8px 0 0;
  color: rgba(255,255,255,.88);
}

/* ===== Sections（背景色で区切る） ===== */
.s-section{ padding: 64px 0; }
.s-section--white{ background:#fff; }
.s-section--soft{
  background: var(--s-soft2);
  border-top: 1px solid rgba(11,18,32,.05);
  border-bottom: 1px solid rgba(11,18,32,.05);
}
.s-section--price{
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.s-section-head{ text-align:center; }
.s-section-title{
  margin: 0;
  font-weight: 600;
  letter-spacing: .02em;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
}
.s-section-lead{
  margin: 12px auto 0;
  max-width: 900px;
  color: rgba(11,18,32,.66);
}

/* ===== Timeline（縦ライン・枠なし） ===== */
.s-timeline{
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
  position: relative;
}

.s-timeline::before{
  content:"";
  position:absolute;
  left: 28px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(22,126,214,.22);
}

.s-timeline-item{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items:flex-start;
  padding: 12px 0;
}

.s-timeline-no{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(22,126,214,.10);
  color: var(--s-blue2);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.s-timeline-title{
  font-weight: 600;
  letter-spacing: .01em;
}
.s-timeline-desc{
  margin: 6px 0 0;
  color: rgba(11,18,32,.68);
}

/* ===== Docs（枠控えめ＋背景差） ===== */
.s-docs-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.s-doc{
  background: rgba(255,255,255,.9);
  border-radius: var(--s-radius-md);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(11,18,32,.08);
}

.s-doc-title{
  margin: 0;
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
}
.s-doc-title i{ color: var(--s-blue2); }

.s-doc-list{
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: rgba(11,18,32,.70);
}

.s-note{
  margin-top: 16px;
  background: rgba(22,126,214,.08);
  border-radius: var(--s-radius-md);
  padding: 12px 14px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(11,18,32,.72);
}
.s-note i{ color: var(--s-blue2); margin-top: 3px; }

/* ===== Price table（PCは表、SPは縦積みに変形） ===== */
.s-price{
  margin-top: 26px;
  border-radius: var(--s-radius-md);
  box-shadow: var(--s-shadow);
  background:#fff;
  overflow: hidden;
}

.s-price-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.s-price-table thead th{
  background: #2c3f4f;
  color:#fff;
  font-weight: 600;
  text-align:center;
  padding: 16px 10px;
  border-right: 2px solid rgba(255,255,255,.18);
}
.s-price-table thead th:last-child{ border-right:none; }

.s-price-table td,
.s-price-table tbody th{
  text-align:center;
  padding: 18px 10px;
  border-right: 1px solid rgba(11,18,32,.42);
  border-bottom: 1px solid rgba(11,18,32,.42);
  font-weight: 500;
  background:#fff;
}
.s-price-table td:last-child,
.s-price-table tbody th:last-child{ border-right:none; }

.s-row-alt td,
.s-row-alt th{
  background: var(--s-blue-soft);
}

.s-col-head,
.s-col-item,
.s-col-head2{
  background: #f1f4f6 !important;
  font-weight: 600;
  color: rgba(11,18,32,.86);
}

.s-col-head2{ line-height: 1.35; }

.s-td-note{
  color: rgba(11,18,32,.55);
  font-weight: 600;
}

.s-row-sum td,
.s-row-sum th{
  background: rgba(22,126,214,.12);
  border-top: 2px solid var(--s-blue2);
}

.s-sum-label{
  background: var(--s-blue2) !important;
  color:#fff;
  font-weight: 600;
}

.s-sum{
  font-weight: 600;
  font-size: 1.06rem;
}

.s-price-note{
  margin: 12px 0 0;
  color: rgba(11,18,32,.56);
  font-size: .95rem;
}

/* ===== CTA ===== */
.s-cta{
  padding: 58px 0 74px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  border-top: 1px solid rgba(11,18,32,.06);
}

.s-cta-inner{
  width: var(--s-container);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.s-cta-title{
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.32rem, 2.0vw, 1.65rem);
}

.s-cta-desc{
  margin: 10px 0 0;
  color: rgba(11,18,32,.70);
}

.s-cta-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.s-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--s-blue2);
  color:#fff;
  font-weight: 600;
  box-shadow: 0 18px 46px rgba(22,126,214,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.s-cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(22,126,214,.22);
}

.s-cta-tel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(22,126,214,.25);
  background: rgba(22,126,214,.06);
  color: rgba(11,18,32,.82);
  font-weight: 600;
}

/* ===== Footer ===== */
.s-footer{
  background:#fff;
  border-top: 1px solid rgba(11,18,32,.10);
  text-align:center;
  padding: 18px 0;
}
.s-footer-copy{
  color: rgba(11,18,32,.55);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .s-point-grid{ grid-template-columns: 1fr; }
  .s-docs-grid{ grid-template-columns: 1fr; }
  .s-cta-inner{ flex-direction: column; align-items:flex-start; }
  .s-cta-actions{ width: 100%; justify-content: stretch; }
  .s-cta-actions a{ width: 100%; }

  .s-timeline::before{ left: 24px; }
  .s-timeline-item{ grid-template-columns: 52px 1fr; }
}

/* ★ここが肝：スマホでテーブルを縦積みにして「横スクロールなし」 */
@media (max-width: 860px){
  .s-price{ overflow: visible; } /* スクロールさせない */

  .s-price-table,
  .s-price-table thead,
  .s-price-table tbody,
  .s-price-table th,
  .s-price-table td,
  .s-price-table tr{
    display: block;
    width: 100%;
  }

  .s-price-table thead{
    display:none; /* 見出しは各セルの data-label で代替 */
  }

  .s-price-table tr{
    border-radius: 14px;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: 0 10px 26px rgba(11,18,32,.08);
  }

  .s-price-table tbody th,
  .s-price-table td{
    border-right: none;
    border-bottom: 1px solid rgba(11,18,32,.10);
    text-align: left;
    padding: 12px 14px;
  }

  .s-price-table tbody th.s-col-head2{
    text-align: left;
  }

  /* 左側見出し（車種/項目）を上に固める */
  .s-price-table tbody th.s-col-head,
  .s-price-table tbody th.s-col-head2,
  .s-price-table tbody th.s-col-item{
    background: #f1f4f6 !important;
    font-weight: 600;
  }

  /* data-label を左に出す */
  .s-price-table td{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .s-price-table td::before{
    content: attr(data-label);
    color: rgba(11,18,32,.60);
    font-weight: 500;
  }

  /* 相談セルがcolspanの時でも崩れない */
  .s-price-table td.s-td-note{
    font-weight: 600;
  }

  /* 小計は強めに */
  .s-row-sum th.s-sum-label{
    color:#fff;
    text-align: center;
  }
  .s-row-sum td{
    background: rgba(22,126,214,.08);
  }
  .s-row-sum td::before{
    font-weight: 500;
  }
}

@media (max-width: 720px){
  :root{ --s-container: calc(100% - 28px); }
}
