/* 車両磨き・コーティングページ用：共通レイアウトは maintenance.css を利用 */
@import url('maintenance.css');

/* コーティングページ：ファーストビュー画像 */
.hero-coating .hero-visual-img-wrap img {
  object-fit: cover;
  object-position: center center;
}

.hero-coating .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;
}

.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 center;
  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;
  }

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

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

/* こんな方におすすめ（箇条書き・デザイン強化） */
.coating-recommend-list {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--section-gap);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coating-recommend-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid var(--primary, #0b3b75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.coating-recommend-item:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.coating-recommend-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary, #0b3b75);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.coating-recommend-icon::before {
  content: '✓';
  display: block;
  line-height: 1;
}

.coating-recommend-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text, #111827);
  font-weight: 500;
}

@media (max-width: 600px) {
  .coating-recommend-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .coating-recommend-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .coating-recommend-text {
    font-size: 15px;
  }
}

/* 流れ（施工完了の流れ）2行×3列 */
/* 3列2行でパネル表示 */
.coating-flow-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.coating-flow-grid-6 .card {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.coating-flow-placeholder {
  background: #e2e8f0;
  aspect-ratio: 320 / 220;
  overflow: hidden;
}

.coating-flow-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 767px) {
  .coating-flow-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .coating-flow-grid-6 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
}

/* ========== ご依頼の流れ ========== */
.coating-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

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

@media (max-width: 900px) {
  .coating-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;
}

/* 料金表（プリントスクリーンどおり） */
.price-section-new .price-card-new {
  border: 1px solid #2563eb;
  border-radius: 8px;
}

.price-section-new .price-amount {
  color: #111827;
}

.price-section-new .price-amount .price-yen {
  font-size: 0.9em;
  font-weight: 600;
  margin-left: 2px;
}

.price-section-new .price-disclaimer p::before {
  content: '→ ';
  color: #9ca3af;
  margin-right: 6px;
}

/* ========== お問い合わせ（紺背景） ========== */
.coating-cta-section {
  background: #0b3b75;
  color: #fff;
  padding: var(--section-gap) 0;
}

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

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

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

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

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

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

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

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

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

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

.btn-coating-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-coating-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: 20px;
  }

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

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

  .coating-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;
  }

  .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;
  }

  .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;
  }

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