@charset "UTF-8";
/*
   修正依頼への対応
   
   受領CSSは変更せず、最後に読み込んで上書きする。
   */

/* ホバーの色はマス全体に付ける */
.section-nav {
  padding-bottom: 0;
  padding-top: 0;
}
.section-nav a {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-bottom: 2.9rem;
  padding-top: 2.9rem;
}

@media (max-width: 768px) {

  /* ページ内ナビ（SP）は2列 */
  .inspection-page .section-nav {
    border-bottom: 0;
    border-top: 0;
    gap: 0;
  }
  .inspection-page .section-nav > a {
    border-bottom: 1px solid #d9e5e8;
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
    flex: 0 0 50%;
  }
  .inspection-page .section-nav > a:nth-child(-n+2) {
    border-top: 1px solid #d9e5e8;
  }
  .inspection-page .section-nav > a:nth-child(2n) {
    border-left: 1px solid #d9e5e8;
  }
  /* 項目が奇数のとき（/cars/ と /company/）最後の1つを全幅にする */
  .inspection-page .section-nav > a:last-child:nth-child(odd) {
    flex-basis: 100%;
  }

  /* 車検の流れ（SP）は縦並びにして左側に線を通す */
  .flow-steps {
    gap: 0;
  }
  /* border だと枠の上端から始まって丸より上に飛び出すため背景で引く */
  .flow-steps li {
    background: linear-gradient(#b9eaf2, #b9eaf2) 0 0 / 2px 100% no-repeat;
    border-left: 0;
    border-top: 0;
    padding: 0 0 4rem 3rem;
  }
  /* 1つ目だけ丸の中心から描き始める */
  .flow-steps li:first-child {
    background-position: 0 1.05rem;
    background-size: 2px calc(100% - 1.05rem);
  }
  .flow-steps li:last-child {
    padding-bottom: 0;
  }
  .flow-steps li::before {
    left: calc(-0.55rem + 1px);
    top: 0.5rem;
  }

  /* 表を画面の右端まで伸ばして、続きがあることを示す */
  .price-table-wrap {
    margin-right: -2rem;
    width: auto;
  }

  /* PC用の固定幅が残っていたので幅いっぱいに */
  .inspection-page .contact-buttons .outline-button {
    max-width: none;
    width: 100%;
  }

  /* 車種名は .vehicle-name（todo-revision.css）が折り返さないので、収まる幅まで広げる */
  .price-table {
    min-width: 96rem;
  }

  /* 左端の列を貼り付ける。行ごとに背景色が違うので個別に指定する */
  .price-table th {
    font-size: 1.6rem;
  }
  .price-table th:first-child {
    background: #f5f5f5;
    box-shadow: 1px 0 0 #ddd;
    left: 0;
    position: sticky;
    z-index: 1;
  }
  .price-table thead th:first-child {
    background: #1d2087;
    z-index: 2;
  }
  .price-table .car-examples th:first-child {
    background: #fff;
  }

  /* 備考が潰れるので横スクロールにする */
  .repair-prices .table-scroll {
    -webkit-overflow-scrolling: touch;
    margin-right: -2rem;
    overflow-x: auto;
  }
  .repair-prices table {
    min-width: 62rem;
  }

  /* 各種割引（SP）は縦積み */
  .discount-details dl > div {
    display: block;
  }
  .discount-details dt {
    flex: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
}

/* 選べる車検方法（2026-09-27の修正依頼で追加） */
.inspection-types {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
}

.inspection-type {
  background: var(--reading-surface);
  border-radius: 0.8rem;
  padding: 3rem 3.2rem;
}

.inspection-type h3 {
  color: var(--brand-navy);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.inspection-type h3::before {
  background: var(--brand-cyan);
  content: "";
  display: block;
  height: 0.4rem;
  margin-bottom: 1.6rem;
  width: 4rem;
}

.inspection-type-note {
  color: #555;
  font-size: 1.4rem;
  margin-top: 1.2rem;
}

.inspection-types-note {
  margin-top: 2.4rem;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .inspection-types {
    gap: 2rem;
    grid-template-columns: 1fr;
  }
  .inspection-type {
    padding: 2.5rem;
  }
  .inspection-type h3 {
    font-size: 2.4rem;
  }
  .inspection-type-note,
  .inspection-types-note {
    font-size: 1.6rem;
  }
  .inspection-types-note {
    text-align: left;
  }
}

/* 特典情報のイラスト（代車・積載車）
   写真と違って車体を切りたくないので contain で収め、
   下の白い本文と区別できるよう画像側に色を敷く */
.benefit-photo.is-illustration {
  align-items: center;
  background: #e9f4fa;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.benefit-photo.is-illustration img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

/* 支給参考に合わせた用品イメージ。商品を切らず、メーカー表記なしで掲載。 */
.benefit-photo.is-parts-image {
  background: #fff;
  padding: 1.6rem;
}
.benefit-photo.is-parts-image img {
  object-fit: contain;
}

/* 特徴セクションの写真を項目に合わせて切り替える
   受領JSが root に data-active="0〜" を出すので、それに合わせて重ねた写真を出し分ける。
   切り替えが効かない幅（スマホ）では1枚目だけを出す */
.story-photo.has-steps {
  position: relative;
}

.story-photo.has-steps img {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.24s ease;
}

/* JSで固定表示できない画面では、各説明と対応する写真を一組で表示する。 */
.story-inline-photo {
  display: none;
}
.feature-story.is-stacked .story-layout {
  display: block;
}
.feature-story.is-stacked .story-layout > .story-photo {
  display: none;
}
.feature-story.is-stacked .story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 6rem;
  align-content: center;
  padding: 3rem 0;
}
.feature-story.is-stacked .story-inline-photo {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-radius: 8rem 1rem 1rem 1rem;
}
.feature-story.is-stacked .story-inline-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-story.is-stacked .story-number,
.feature-story.is-stacked .story-panel h3,
.feature-story.is-stacked .story-panel p {
  grid-column: 2;
}
.feature-story.is-stacked .story-number {
  align-self: end;
}
@media (max-width: 768px) {
  .feature-story.is-stacked .story-panel {
    display: block;
    padding: 3rem 0;
  }
  .feature-story.is-stacked .story-inline-photo {
    margin-bottom: 2.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-photo.has-steps img {
    transition: none;
  }
}

.story-photo.has-steps img:first-child {
  opacity: 1;
}

.feature-story.is-enhanced .story-photo.has-steps img:first-child {
  opacity: 0;
}

.feature-story.is-enhanced[data-active="0"] .story-photo.has-steps img:nth-child(1),
.feature-story.is-enhanced[data-active="1"] .story-photo.has-steps img:nth-child(2),
.feature-story.is-enhanced[data-active="2"] .story-photo.has-steps img:nth-child(3),
.feature-story.is-enhanced[data-active="3"] .story-photo.has-steps img:nth-child(4),
.feature-story.is-enhanced[data-active="4"] .story-photo.has-steps img:nth-child(5),
.feature-story.is-enhanced[data-active="5"] .story-photo.has-steps img:nth-child(6) {
  opacity: 1;
}

/* 料金表の強調行の背景（2026-10-13の指定・配色参考画像から採寸）
   SPでは左端の列を貼り付けているので、その背景も行に合わせる */
/* lower-pages.css の縞模様（:nth-child の指定）より強くしておく */
.inspection-page .price-table tbody tr.subtotal {
  background: #e8e8e8;
}

.inspection-page .price-table tbody tr.total-row {
  background: #dae8f9;
}

@media (max-width: 768px) {
  .price-table .subtotal th:first-child {
    background: #e8e8e8;
  }
  .price-table .total-row th:first-child {
    background: #dae8f9;
  }
}
/* Features use a horizontal carousel in normal document flow. */
.feature-story.is-carousel { height: auto; }
.feature-story.is-carousel .story-stage { position: static; }
.feature-story.is-carousel .story-layout { display: block; }
.feature-story.is-carousel .story-layout > .story-photo { display: none; }
.feature-story.is-carousel .story-panels {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.feature-story.is-carousel .story-panels::-webkit-scrollbar { display: none; }
.feature-story.is-carousel .story-panel {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6rem;
  padding: 0;
  border: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.feature-story.is-carousel .story-inline-photo {
  display: block;
  margin: 0;
  aspect-ratio: 1.35;
  border-radius: 8rem 1rem 1rem 1rem;
  overflow: hidden;
  background: #edf2f3;
}
.feature-story.is-carousel .story-inline-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-story.is-carousel .story-panel-copy { min-width: 0; padding: 2rem 0; }
.feature-story.is-carousel .story-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  border-top: 1px solid #cadde3;
  margin-top: 3rem;
  padding-top: 2rem;
}
.story-controls { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.story-controls button {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--brand-navy);
  border-radius: 50%;
  color: var(--brand-navy);
  background: transparent;
  font-size: 2.2rem;
  cursor: pointer;
}
.story-controls button:hover { color: white; background: var(--brand-navy); }
.story-controls button:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; }
.story-controls .story-pause { font-size: 1.4rem; border-color: #cadde3; }
@media (max-width: 768px) {
  .feature-story.is-carousel .story-panel { display: flex; flex-direction: column; gap: 2.4rem; align-items: stretch; }
  .feature-story.is-carousel .story-inline-photo { width: 100%; aspect-ratio: 1.6; flex-shrink: 0; border-top-left-radius: 5rem; }
  .feature-story.is-carousel .story-panel-copy { padding: 0; }
  .feature-story.is-carousel .story-navigation { gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
  .feature-story.is-carousel .story-dots button { width: 2.8rem; }
  .story-controls { gap: .6rem; }
}
@media print {
  .feature-story.is-carousel .story-panels { display: block; overflow: visible; }
  .feature-story.is-carousel .story-panel { margin-bottom: 3rem; break-inside: avoid; }
  .feature-story.is-carousel .story-clone,
  .feature-story.is-carousel .story-navigation { display: none; }
}
