/* Vehicle inspection guide — faithful port of the original standalone page styles. */

.vehicle-inspection-page {
  width: min(calc(100% - 2rem), 1080px);
  margin: 0 auto;
}

.vehicle-inspection-page article[data-vehicle-inspection-page] {
  min-width: 0;
}

.vehicle-inspection-page .article-hero {
  padding: clamp(1.7rem, 5vw, 4rem);
  background: #101113;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(16, 17, 19, .16);
}

.vehicle-inspection-page .eyebrow,
.vehicle-inspection-page .section-kicker {
  margin: 0 0 .55rem;
  color: #8fc6ea;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
}

.vehicle-inspection-page .eyebrow::before,
.vehicle-inspection-page .section-kicker::before {
  content: none;
}

.vehicle-inspection-page h1,
.vehicle-inspection-page h2,
.vehicle-inspection-page h3,
.vehicle-inspection-page p {
  overflow-wrap: anywhere;
}

/* Long bare URLs (legal reference links) must wrap, otherwise they expand the
   mobile layout viewport and the fixed .nav produces horizontal scrolling. */
.vehicle-inspection-page a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vehicle-inspection-page h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: .02em;
  line-height: 1.35;
  white-space: nowrap;
  max-width: none;
}

.vehicle-inspection-page h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.5;
}

.vehicle-inspection-page h3 {
  margin: .2rem 0 .55rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.vehicle-inspection-page .lead {
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  color: inherit;
}

.vehicle-inspection-page .lead-line {
  display: block;
  white-space: nowrap;
}

.vehicle-inspection-page section,
.vehicle-inspection-page .installation-figure,
.vehicle-inspection-page .legal-note {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.vehicle-inspection-page .source-card {
  background: #fff;
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 12px 32px rgba(16, 17, 19, .055);
}

.vehicle-inspection-page .source-card p {
  margin: 0;
  color: #626871;
  font-size: .93rem;
}

.vehicle-inspection-page .legal-note {
  border-left: 5px solid #2c5e83;
  border-radius: 0 8px 8px 0;
  background: #edf5fa;
  padding: 1.2rem 1.35rem;
}

.vehicle-inspection-page .legal-note p {
  margin: .35rem 0 0;
}

.vehicle-inspection-page .legal-note h2 {
  margin-bottom: .2rem;
}

.vehicle-inspection-page .compliance-guidance {
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  background: #edf5fa;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.vehicle-inspection-page .compliance-guidance p:last-child {
  margin-bottom: 0;
}

.vehicle-inspection-page .installation-figure {
  margin-left: 0;
  margin-right: 0;
}

.vehicle-inspection-page .installation-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  background: #fff;
}

.vehicle-inspection-page figcaption {
  margin-top: .7rem;
  color: #626871;
  font-size: .88rem;
}

.vehicle-inspection-page .requirements-table {
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.vehicle-inspection-page .requirements-row {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.1fr;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-top: 1px solid rgba(16, 17, 19, .16);
}

.vehicle-inspection-page .requirements-row:first-child {
  border-top: 0;
}

.vehicle-inspection-page .requirements-head {
  background: #101113;
  color: #fff;
  font-weight: 800;
}

.vehicle-inspection-page .requirements-row strong,
.vehicle-inspection-page .requirements-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vehicle-inspection-page .classification-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.vehicle-inspection-page .classification-cases li {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  background: #fff;
}

.vehicle-inspection-page .classification-cases strong {
  display: block;
  margin-bottom: .35rem;
  color: #2c5e83;
  font-size: 1.02rem;
}

.vehicle-inspection-page .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem 1.1rem;
  padding: 0;
  list-style: none;
}

.vehicle-inspection-page .check-list li {
  position: relative;
  padding: .75rem .8rem .75rem 2.55rem;
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
  background: #fff;
}

.vehicle-inspection-page .check-list li::before {
  content: "✓";
  position: absolute;
  left: .9rem;
  top: .72rem;
  color: #2c5e83;
  font-weight: 900;
}

.vehicle-inspection-page .source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vehicle-inspection-page .source-card span {
  color: #2c5e83;
  font-size: .8rem;
  font-weight: 800;
}

.vehicle-inspection-page .source-card a {
  color: #2c5e83;
  font-weight: 800;
}

.vehicle-inspection-page .case-note {
  margin-top: 1rem;
  border-left: 5px solid #2c5e83;
  border-radius: 0 8px 8px 0;
  background: #edf5fa;
  padding: 1.2rem 1.35rem;
}

.vehicle-inspection-page .case-note strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.08rem;
}

.vehicle-inspection-page .wiring-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vehicle-inspection-page .wiring-gallery figure {
  margin: 0;
}

.vehicle-inspection-page .wiring-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(16, 17, 19, .16);
  border-radius: 8px;
}

.vehicle-inspection-page a:focus-visible {
  outline: 3px solid #2c5e83;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .vehicle-inspection-page {
    width: min(calc(100% - 1.25rem), 1080px);
  }

  .vehicle-inspection-page .article-hero {
    padding: 1.45rem;
  }

  .vehicle-inspection-page h1,
  .vehicle-inspection-page .lead-line {
    white-space: normal;
  }

  .vehicle-inspection-page .source-grid,
  .vehicle-inspection-page .check-list,
  .vehicle-inspection-page .wiring-gallery,
  .vehicle-inspection-page .classification-cases {
    grid-template-columns: 1fr;
  }

  .vehicle-inspection-page .requirements-table {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .vehicle-inspection-page .requirements-head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .vehicle-inspection-page .requirements-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-top: .8rem;
    padding: 1rem;
    border: 1px solid rgba(16, 17, 19, .16);
    border-radius: 8px;
    background: #fff;
  }

  .vehicle-inspection-page .requirements-row:not(.requirements-head) strong::before,
  .vehicle-inspection-page .requirements-row:not(.requirements-head) span::before {
    display: block;
    margin-bottom: .14rem;
    color: #626871;
    font-size: .76rem;
    font-weight: 800;
  }

  .vehicle-inspection-page .requirements-row:not(.requirements-head) strong::before {
    content: "確認項目";
  }

  .vehicle-inspection-page .requirements-row:not(.requirements-head) span:nth-child(2)::before {
    content: "基準の考え方";
  }

  .vehicle-inspection-page .requirements-row:not(.requirements-head) span:nth-child(3)::before {
    content: "確認内容";
  }
}
