@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #eff3f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --primary: #0b3b75;
  --primary-strong: #082a54;
  --accent: #d97706;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --container: 1120px;
  /* セクション間の縦余白（均一化） */
  --section-gap: 80px;
  /* Page specific vars matched to index.html style */
  --navy: #0b3b75;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

html {
}

section {
  scroll-margin-top: 100px;
  /* Offset for sticky header */
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ヘッダーとナビのスタイルはstyle.cssで管理 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--primary);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

footer {
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
  margin-top: 56px;
  font-size: 14px;
}

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

/* page-container 内のセクションも縦余白を均一に */
.page-container > section:not(.price-section-new) {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

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

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  border-left: 6px solid var(--accent);
  padding-left: 12px;
  margin: 0;
}

.section-title .section-subtitle {
  margin-top: 8px;
  font-size: 20px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 18px rgba(11, 59, 117, 0.08);
  margin-bottom: 16px;
}

.card-center {
  text-align: center;
}

.card-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 12px;
  display: block;
}

.hero-lead {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-top: 0;
}

.hero-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-top: 0;
}

.hero-subtext {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-top: 0;
}

.ba-card-title {
  margin-bottom: 12px;
}

.ba-desc {
  font-size: 14px;
}

.hero-text-xl {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-top: 0;
}

.vehicle-hero-img {
  width: 100%;
  border-radius: 8px;
}




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

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

/* 右向き三角形を疑似要素で表示 */
.before-after .ba-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

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

/* BEFORE/AFTER を画像の上に重ねるボタン */
.before-after .ba-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.before-after .ba-img-wrap .ba-img {
  display: block;
  width: 100%;
  vertical-align: top;
}

.before-after .ba-label-btn {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  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;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}


.ba-label {
  font-size: 10px;
  font-weight: bold;
  color: var(--text);
}

.ba-img {
  width: 100%;
  border-radius: 4px;
}

/* 板金塗装で出来ること：パネル背景のみ・BEFORE/AFTERを画像上にボタン重ね・矢印は右三角 */
.exterior-what-card {
  background: var(--card);
  box-shadow: 0 8px 18px rgba(11, 59, 117, 0.08);
}

.before-after.overlay-type {
  display: block;
  margin-bottom: 12px;
}

.before-after.overlay-type .ba-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.before-after.overlay-type .ba-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.before-after.overlay-type .ba-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.5);
}

.before-after.overlay-type .ba-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.before-after.overlay-type .ba-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
}

.before-after.overlay-type .ba-arrow {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1;
}

.section-title-row {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}


.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0.9;
}

.logos-row.small {
  gap: 24px;
  opacity: 0.7;
}
.logos-row.lg {
  margin-bottom: 20px;
}

.logo-img-sm {
  height: 50px;
  object-fit: contain;
}

.logo-img-md {
  height: 40px;
  object-fit: contain;
}

.logo-img-lg {
  height: 80px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.logos-center {
  text-align: center;
  margin: 20px 0;
}

.logos-heading {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}


/* ファーストビューは .hero-visual で style.css の幅（max-width: 1400px）に合わせるため .hero の上書きはしない */

.logo-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.logo-list img {
  width: 100%;
  border-radius: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 流れセクション：4列 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  text-align: center;
  font-size: 12px;
}

.vehicle-grid div {
  background: #f6f8fc;
  border-radius: 8px;
  padding: 8px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.price-grid .card {
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  border-radius: var(--radius);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Voice scroll (match maintenance) */
#voice {
  position: relative;
  margin-bottom: 72px;
}

#voice .voice-wrapper {
  position: relative;
  overflow: hidden;
}

#voice .voice-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 14px;
}

#voice .voice-grid::-webkit-scrollbar {
  height: 6px;
}

#voice .voice-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

#voice .card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(11, 59, 117, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  min-width: 280px;
  flex: 0 0 calc((100% - 48px) / 3);
}

#voice .card h3 {
  font-size: 20px;
}

#voice .card p {
  color: var(--muted);
  font-size: 14px;
}

#voice .voice-navs {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

/* 仕上がり事例スクロールボタン：maintenance.html と同じデザイン・仕様 */
#voice .voice-nav {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: #E5F56B;
  color: #2D3037;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

#voice .voice-nav:hover {
  opacity: 0.85;
}

/* スマホメニューのスタイルはstyle.cssで管理 */

/* Copied from index.html for Client Logos */
.partner-strip {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 20px;
}

/* Override for the section title inside client logos to remove orange line */
.client-logos-section .section-title {
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* New Price List Design */
.price-section-new {
  background-color: transparent;
  padding: var(--section-gap) 0;
}

/* 料金表タイトルは .section-title.centered で選ばれる理由に合わせ済み */
.price-section-new .section-title.centered {
  margin-bottom: 40px;
}

.price-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.price-card-new {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s;
}

.price-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price-card-header {
  background: var(--navy);
  color: #fff;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.price-card-body {
  padding: 24px 16px;
  text-align: center;
}

.price-amount {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.price-note {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.price-cta-new {
  text-align: center;
}

.btn-price-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  /* Accent blue */
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  transition: background 0.2s;
}

.btn-price-detail:hover {
  background: #2563eb;
}

.btn-price-detail svg {
  vertical-align: middle;
}

/* 板金ページ：お見積りリンク（モーダルなし） */
.btn-estimate-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  transition: background 0.2s;
  text-decoration: none;
}

.btn-estimate-link:hover {
  background: #2563eb;
  color: #fff;
}

.btn-estimate-link svg {
  vertical-align: middle;
}

/* 板金ページ：料金カード横並び4列 */
#price.price-section-new .price-grid-new {
  grid-template-columns: repeat(4, 1fr);
}

/* インラインスタイルの外部化 */
.grid-2-columns {
  grid-template-columns: repeat(2, 1fr);
}

.placeholder-box {
  text-align: center;
  padding: 40px;
}

.placeholder-note {
  color: var(--muted);
  font-weight: bold;
}

.placeholder-sub {
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .price-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 板金：2x2カードを1列に（maintenance の grid-3 に合わせる） */
  .exterior-what-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .price-grid-new {
    grid-template-columns: 1fr;
  }
}

/* ========== レスポンシブ（maintenance.html に合わせる） ========== */

@media (max-width: 767px) {
  /* セクション縦余白を狭く（style.css の main > section に合わせる） */
  .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;
  }

  /* 仕上がり事例パネル内フォント（maintenance #voice 767px に合わせる） */
  #voice .screenshot-text h3 {
    font-size: 20px;
  }

  #voice .screenshot-text p {
    font-size: 14px;
    line-height: 1.7;
  }

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

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

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

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

  /* セクション縦余白（style.css 600px に合わせる） */
  .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;
  }

  /* ファーストビュー（maintenance / style の hero 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 を縦並びに（狭い画面で見やすく） */
  .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;
  }

  /* オプション・料金カードは1列（maintenance と同様） */
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* 対応車両ボタン（maintenance 600px に合わせる） */
  .vehicle-type-grid {
    gap: 12px;
  }

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

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

  /* 料金表スマホは maintenance.html と同じ（余計な上書きなし） */
}
