@charset "UTF-8";
/*
   下層ページのレスポンシブ用ベースCSS
   
   受領データは globals.css の body{min-width:1000px} でPC幅に固定されていた。
   それを解除し、SPでは縦積みで流し込む。受領CSSは変更せず最後に上書きする。
   */

/* 1000px未満で横スクロールが出ていた原因 */
body {
  min-width: 0;
}

/* --------------------------------------------------------------------
   固定ヘッダー分の余白

   lower-pages.css の .inspection-page{padding-top:8.4rem} は
   .hd_cnt の高さ(8.4rem)と同じ値だが、実際のヘッダーは
   下線1pxぶん高いため、1pxぶんコンテンツが潜り込んでいた。
   -------------------------------------------------------------------- */
.inspection-page {
  padding-top: calc(8.4rem + 1px);
}

img,
video {
  max-width: 100%;
}

@media (max-width: 1000px) {
  .inspection-page header {
    min-width: 0;
  }
}

@media (max-width: 768px) {

  /*
   remの基準サイズ
   
   ヘッダー・SPメニュー・ページ下部は top-reference.css（トップページ用）が担当しており、
   SPのrem値は calc(10/750*100vw) を前提に書かれている。ルートをそちらに合わせ、
   下層ページ固有の本文だけ zoom 1.5625 で従来の見え方に戻す。
   */
  html {
    font-size: calc(10 / 750 * 100vw);
  }
  .inspection-page main > *:not(.footer-root) {
    zoom: 1.5625;
  }
  /* 共通ブロックは拡大の対象から外す（0.64 = 1 / 1.5625） */
  .inspection-page .business-information {
    zoom: 0.64;
  }

  /* PCの9remのままだとSPでは空きすぎる */
  :root {
    --section-space: 5rem;
  }

  /*
   .ft_sp を消すと footer の高さが0になる。
   .ft_cnt は bottom:28rem の絶対配置なので、同じ見え方になる3remを直接指定する。
   */
  .inspection-page footer .ft_sp {
    display: none;
  }
  .inspection-page footer .ft_cnt {
    bottom: 3rem;
  }

  /* SPドロワーメニュー（js/menu.js が is-open を付け外しする） */
  .inspection-page .menuArea {
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
  }
  .inspection-page .menuArea.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* SPのヘッダー実高さは .hd_cnt 10.6rem ＋ padding-bottom 2rem */
  .inspection-page {
    padding-top: 12.6rem;
  }

  /* ----------------------------------------------------------------
     ヘッダー

     SPではトップページのスクロール後（白背景）の状態と完全に同じにする。
     lower-pages.css が下層ページ用に別のサイズを指定しているので、
     そこを打ち消して top-reference.css 側の指定が効くようにする。
     ---------------------------------------------------------------- */
  .inspection-page header .hd_cnt {
    height: auto;
    max-width: none;
    width: auto;
  }
  .inspection-page header .hd_cnt .logoArea {
    max-width: 35.5rem;
    width: auto;
  }
  .inspection-page header.fixed {
    border-bottom: none;
  }

  /* ページ内ナビは2列 */
  .inspection-page .section-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .inspection-page .section-nav > a {
    flex: 0 0 calc(50% - 0.5rem);
  }

  /* グリッドの子要素が内容幅ではみ出すのを防ぐ */
  .hero > *,
  .story-layout > *,
  .service-grid > *,
  .two-links > *,
  .benefit-grid > *,
  .access-grid > *,
  .feature-list > * {
    min-width: 0;
  }

  .hero {
    gap: 3rem;
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
  }
  .hero .hero-image {
    margin-left: -2rem;
    margin-right: -2rem;
  }
  /* PCの3remのままだとSPで実寸23pxになる */
  .headline-hero .hero-copy p {
    font-size: 2.2rem;
  }

  .title-band h1 {
    font-size: 2.6rem;
  }

  .cars-introduction h2 {
    font-size: 2.4rem;
  }

  .cars-introduction p {
    font-size: 1.8rem;
  }

  .story-number {
    font-size: 3rem;
  }

  .story-panel h3 {
    font-size: 2.6rem;
  }

  .hero-copy h2 {
    font-size: 2.6rem;
  }

  .loan-car p {
    font-size: 1.9rem;
  }

  /* 見出し直後のリード文（対応メーカー・修理料金の目安） */
  .section-title + p {
    font-size: 1.9rem;
  }

  .section-title {
    margin-bottom: 3.2rem;
  }

  /* スクロール切替セクション */
  .story-layout {
    gap: 3rem;
    grid-template-columns: 1fr;
  }
  .feature-story .story-panels {
    display: block;
    min-height: 0;
  }
  .story-navigation {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* 2〜5カラムのグリッドは1列に */
  .service-grid,
  .two-links,
  .benefit-grid,
  .flow-steps,
  .access-grid,
  .feature-list,
  .company-profile-layout {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .service-grid article > p {
    font-size: 1.9rem;
  }

  /* サイトマップはPCの4列だと1列40pxしかない */
  .page-sitemap {
    gap: 3rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .sitemap-address {
    gap: 3rem;
    grid-template-columns: 1fr;
    margin: 4rem 0 3rem;
  }
  .form-alternative-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  .sitemap-address p,
  .form-alternative-links a {
    font-size: 1.9rem;
  }

  .company-profile dt,
  .company-profile dd,
  .access-grid dt,
  .access-grid dd {
    font-size: 1.9rem;
  }

  .access-grid dt {
    flex-shrink: 0;
    white-space: nowrap;
    width: 8rem;
  }

  /* SPでは縦積みになり、カードの余白と .campaign-copy の余白が二重になる */
  .campaign-copy,
  .campaign-category:first-child .campaign-card:first-child .campaign-copy {
    padding-left: 0;
    padding-right: 0;
  }
  .campaign-list {
    grid-template-columns: 1fr;
  }

  .maker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 代車のご案内は縦積み */
  .inspection-page .loan-car {
    flex-direction: column;
    gap: 1rem;
  }

  /* 電話ボタン（お問い合わせ・お見積もり） */
  .phone-contact {
    flex-direction: column;
    gap: 2rem;
  }
  .phone-contact a {
    width: 100%;
  }

  .form-intro {
    font-size: 1.9rem;
  }

  /*
   font-size の指定が無い本文
   
   SPでは body が 2.4rem になる作りだが、本文は 1.9rem で運用している。
   */
  .qa-answer p,
  .campaign-card p,
  .recruit-details p,
  .access-grid p:not(.access-address),
  .text-link {
    font-size: 1.9rem;
  }

  /* PCの「質問 > 本文 = ページ内ナビ」の大小関係にそろえる */
  .qa-item h3 {
    font-size: 2.1rem;
  }

  .section-nav a {
    font-size: 1.9rem;
  }

  /* 横並びボタン */
  .contact-buttons {
    flex-direction: column;
    gap: 2rem;
    width: auto;
  }

  /* 修理事例スライダーは1枚＝画面幅 */
  .repair-gallery {
    --case-width: 100%;
  }
  .repair-case-slide > * {
    min-width: 0;
  }

  /* 料金表は縦積みにできないので横スクロール */
  .price-table-wrap [data-slot=table-container] {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
  .price-table {
    min-width: 72rem;
  }

  /*
   受領CSSに 1.6rem / 1.4rem のまま残っている本文・注記
   remは画面幅に比例するので、大きい端末でも相対的な小ささは変わらない
   */
  .hero-copy p,
  .company-profile-story > p:last-child,
  .story-panel p,
  .flow-steps p,
  .feature-copy p,
  .promise-copy p,
  .repair-gallery .repair-case-copy p,
  .page-sitemap li,
  .inspection-page main a.outline-button,
  .service-card-action,
  .eyebrow,
  .maker-text,
  .price-table th,
  .price-table td {
    font-size: 1.9rem;
  }

  .hero-copy .service-note,
  .repair-prices small,
  .repair-gallery .repair-case-copy dl > div,
  .repair-gallery .repair-case-copy dd small,
  .price-notes li,
  .discount-info .center,
  .maker-grid figcaption,
  .price-table small,
  .price-table .car-examples td,
  .vehicle-name,
  .repair-gallery .gallery-pagination button {
    font-size: 1.6rem;
  }

  /*
   罫線の最小幅
   
   0.1rem指定の罫線はSPで実寸0.5pxになり、zoomの関係で途切れて見える。
   */
  .inspection-page main a.outline-button,
  .inspection-page main a .arrow_maru,
  .inspection-page main .service-card-action,
  .inspection-page main .discount-info,
  .inspection-page main .repair-gallery .gallery-prev,
  .inspection-page main .repair-gallery .gallery-next {
    border-width: 1px;
  }

  /* 四辺まとめて指定すると、受領CSSで0にしている辺にも既定色の線が出る */
  .inspection-page main .price-table th,
  .inspection-page main .price-table td,
  .inspection-page main .qa-item {
    border-bottom-width: 1px;
  }

  /* 左右の余白（PCは96%幅だとSPで狭すぎる） */
  .wrap,
  .section,
  .hero {
    box-sizing: border-box;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
  }
  .section .wrap,
  .wrap .wrap {
    padding-left: 0;
    padding-right: 0;
  }
}
