/* 架装ページ用：共通レイアウトは maintenance.css を利用 */
@import url('maintenance.css');

/* 架装ページ：ファーストビュー画像をタイヤが入るように表示 */
.hero-kaso .hero-visual-img-wrap img {
  object-position: right bottom;
}

.hero-kaso .hero-visual-img-wrap {
  max-height: 320px;
}

/* BEFORE / AFTER 画像比較（タイヤまで入る表示・参考デザインに合わせる） */
.before-after-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto var(--section-gap);
}

.before-after-images .compare-item {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}

/* 架装サービスで出来ることと同じラベルデザイン（青・角丸4px・画像左上） */
.before-after-images .compare-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #2C4390;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

.before-after-images .compare-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

.before-after-images .compare-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.before-after-images .compare-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #E5F56B;
  color: #2D3037;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .before-after-images {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px; /* 他セクションと同じレスポンシブ余白 */
  }

  .grid-2.kaso-what-grid + .section-title.centered {
    margin-top: 40px;
  }

  .before-after-images .compare-item {
    max-width: 100%;
  }

  .before-after-images .compare-arrow {
    transform: rotate(90deg);
  }
}

/* ========== 架装サービスで出来ること（板金塗装で出来ることと同じレイアウト） ========== */
.kaso-what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.kaso-what-grid .before-after {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.kaso-what-grid .before-after .ba-col {
  flex: 1;
  text-align: center;
}

.kaso-what-grid .before-after .ba-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.kaso-what-grid .before-after .ba-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--primary);
}

.kaso-what-grid .before-after .ba-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: #eee;
}

.kaso-what-grid .before-after .ba-img-wrap .ba-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  vertical-align: top;
}

.kaso-what-grid .before-after .ba-label-btn {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #2C4390;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

.kaso-what-grid .ba-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .kaso-what-grid {
    grid-template-columns: 1fr;
  }

  .kaso-what-grid .before-after {
    flex-direction: column;
    gap: 12px;
  }

  .kaso-what-grid .before-after .ba-arrow::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--primary);
    border-bottom: none;
  }
}

/* 選ばれる理由ブロックの上を他セクションと同じ余白に（架装サービスで出来ることとの間） */
.grid-2.kaso-what-grid + .section-title.centered {
  margin-top: var(--section-gap);
}

/* ========== ご依頼の流れ（画像は仮・差し替え可能） ========== */
.kaso-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.kaso-flow-grid .card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kaso-flow-grid .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #eee;
}

.kaso-flow-grid .text-content {
  padding: 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .kaso-flow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========== セクション余白を exterior.html と同じに ========== */
section {
  margin-bottom: 0;
}

.container.section-padding {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

main .container.section-padding:first-of-type {
  padding-top: 120px;
}

.page-container {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-container > section:not(.price-section-new) {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.price-section-new {
  padding: var(--section-gap) 0;
}

#voice {
  margin-bottom: 0;
}

/* ========== お問い合わせ（紺背景・画像は仮・差し替え可能） ========== */
.kaso-cta-section {
  background: #0b3b75;
  color: #fff;
  padding: var(--section-gap) 0;
}

.kaso-cta-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 32px;
}

/* お問い合わせのみ表示時は1カラムでセンタリング（資料列を表示する場合は 1fr 1fr に変更） */
.kaso-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
  justify-items: center;
}

.kaso-cta-grid .kaso-cta-col {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.kaso-cta-grid .kaso-cta-staff-grid {
  margin-left: auto;
  margin-right: auto;
}

.kaso-cta-col-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* 資料画像と担当者写真の下端を揃えるため同一高さを指定 */
.kaso-cta-thumb {
  height: 120px;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a4d8c;
}

.kaso-cta-thumb img {
  width: 100%;
  height: 100%;
  max-width: 200px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.kaso-cta-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 8px;
  margin-bottom: 12px;
  height: 120px;
}

.kaso-cta-staff-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #1a4d8c;
}

.kaso-cta-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.btn-kaso-cta {
  display: inline-block;
  padding: 12px 24px;
  background: #2e7d32;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-kaso-cta:hover {
  opacity: 0.9;
}

/* スマホ版レイアウト：exterior.css と同じ */
@media (max-width: 767px) {
  .container.section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  main .container.section-padding:first-of-type {
    padding-top: 40px;
  }

  .page-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-container > section:not(.price-section-new) {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-title.centered h2 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .section-title.centered p {
    font-size: 18px;
  }

  .grid-2.kaso-what-grid + .section-title.centered {
    margin-top: 40px;
  }

  .kaso-cta-section {
    padding: 40px 16px;
  }

  .kaso-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .kaso-cta-thumb img {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container.section-padding {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  main .container.section-padding:first-of-type {
    padding-top: 32px;
  }

  .page-container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-container > section:not(.price-section-new) {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* ファーストビュー（exterior 600px と同じ） */
  .hero-visual-left {
    padding: 32px 16px 24px;
  }

  .hero-visual-right {
    padding: 0 16px 32px;
  }

  .hero-visual-title {
    font-size: 22px;
  }

  .hero-visual-lead {
    font-size: 15px;
  }

  .hero-visual-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-visual-actions .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 20px;
  }

  .section-title.centered h2 {
    font-size: 22px;
  }

  .btn {
    font-size: 15px;
    padding: 12px 16px;
  }

  .before-after-images {
    margin-bottom: 32px;
  }

  .grid-2.kaso-what-grid + .section-title.centered {
    margin-top: 32px;
  }

  /* BEFORE/AFTER 矢印（架装サービスで出来ること内・exterior と同じ） */
  .before-after {
    flex-direction: column;
    gap: 12px;
  }

  .before-after .ba-arrow::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--primary);
    border-bottom: none;
  }

  .before-after .ba-arrow {
    transform: rotate(0);
  }

  .image-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .vehicle-type-grid {
    gap: 12px;
  }

  .vehicle-type-btn {
    padding: 12px;
    font-size: 14px;
  }

  .vehicle-icon {
    font-size: 20px;
  }

  .kaso-cta-section {
    padding: 32px 16px;
  }
}
