/* ============================================
   Safety Info Page Styles
   ============================================ */

/* Main Section */
.carsafety-section {
  background: #fff;
  padding: 0 0 5rem;
  /* 顶部间距由 breadcrumb-section 的 margin-bottom 控制 */
  min-height: 60vh;
}

/* Youtube Section - Topics Style */
.youtube-section {
  background: var(--color-bg-section);
  padding: var(--spacing-3xl) var(--spacing-5xl) var(--spacing-3xl);
  position: relative;
  overflow: hidden;
}

.youtube-section .container {
  max-width: none;
  padding: 0;
}

@media (max-width: 768px) {
  .youtube-section {
    padding: var(--spacing-xl) var(--spacing-base);
  }
}

.youtube-heading {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.youtube-label {
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted) !important;
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.youtube-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-gold-dark) !important;
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-wide);
  margin-top: var(--spacing-sm);
}

.youtube-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: auto
}

/* ============================================
   Unify Link List Styles with data.html
   ============================================ */
.link-list {
  list-style: none !important;
  margin-left: 1rem;
}

.link-list li {
  position: relative;
  padding-left: 1.5rem;
  min-height: 51px;
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
  justify-content: flex-start;
  border-bottom: 1px dashed transparent;
  margin-bottom: 0;
}

.link-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 26px;
  transform: translateY(-50%);
  font-size: 0.5rem;
  color: #4b3a18;
}

.link-list a {
  color: #0d6efd !important;
  text-decoration: none !important;
  font-size: 16px;
}

.link-list a:hover {
  text-decoration: underline !important;
}

/* External Link / PDF Icon (unified with data.html) */
.link-list a[target="_blank"]::after,
.link-list a[href$=".pdf"]::after,
.link-list a[href*="http"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6efd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-top: -2px;
}

/* link-list: video flag (true: show icon / false: hide icon) */
.link-list .list_square.list_square--has-video > a::after {
  content: "";
  display: inline-block;
  width: 2.8rem;
  height: 1.5em;
  background: url("../../icons/youtube.png") no-repeat center / contain;
  vertical-align: middle;
}

.newmark {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin-left: 0.2em;
}

/* セクション CTA（base 変数・流体） */
.top-head-cta {
  --top-head-cta-padding-block: clamp(
    var(--space-3),
    var(--space-2) + 0.5vw,
    var(--space-5)
  );
  --top-head-cta-padding-inline: clamp(
    var(--space-4),
    var(--space-3) + 1.25vw,
    var(--space-6)
  );
  --top-head-cta-gap: clamp(
    var(--space-2),
    var(--space-1) + 0.5vw,
    var(--space-4)
  );
  --top-head-cta-font: clamp(
    var(--text-sm),
    var(--text-sm) + 0.25vw,
    var(--text-lg)
  );
  --top-head-cta-min-height: clamp(
    var(--size-button-sm),
    3vw + var(--space-6),
    calc(var(--space-12) + var(--space-2))
  );
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--top-head-cta-gap);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--top-head-cta-padding-block) var(--top-head-cta-padding-inline);
  font-size: var(--top-head-cta-font);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-sans);
  line-height: var(--leading-150);
  white-space: nowrap;
  background: var(--color-brand);
  color: var(--color-text-secondary);
  text-decoration: none;
  width: max-content;
  min-width: min-content;
  max-width: 100%;
  min-height: var(--top-head-cta-min-height);
  height: auto;
  box-sizing: border-box;
  box-shadow: var(--shadow-2);
  transition:
    background var(--motion-slow),
    box-shadow var(--motion-slow);
  margin-top: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.top-head-cta:hover {
  background: var(--color-brand-hover);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-3);
}

.top-head-cta-sm {
  --top-head-cta-padding-block: clamp(
    var(--space-2),
    var(--space-1) + 0.35vw,
    var(--space-4)
  );
  --top-head-cta-padding-inline: clamp(
    var(--space-3),
    var(--space-2) + 1vw,
    var(--space-5)
  );
  --top-head-cta-gap: clamp(
    var(--space-2),
    var(--space-1) + 0.35vw,
    var(--space-3)
  );
  --top-head-cta-font: clamp(
    var(--text-xs),
    var(--text-xs) + 0.2vw,
    var(--text-base)
  );
  --top-head-cta-min-height: clamp(
    var(--space-8),
    2.5vw + var(--space-4),
    calc(var(--space-10) + var(--space-1))
  );
  margin-top: 0;
}

/* top-head-cta レスポンシブ：小画面でタッチしやすく・PC でゆとり */
@media (max-width: 575px) {
  .top-head-cta {
    --top-head-cta-padding-block: var(--space-3);
    --top-head-cta-padding-inline: clamp(
      var(--space-4),
      5vw + var(--space-2),
      var(--space-5)
    );
    --top-head-cta-gap: var(--space-2);
    --top-head-cta-font: var(--text-sm);
    --top-head-cta-min-height: calc(var(--size-button-sm) + var(--space-1));
  }
  .top-head-cta-sm {
    --top-head-cta-padding-block: var(--space-2);
    --top-head-cta-padding-inline: clamp(
      var(--space-3),
      3vw + var(--space-2),
      var(--space-4)
    );
    --top-head-cta-gap: var(--space-2);
    --top-head-cta-font: var(--text-xs);
    --top-head-cta-min-height: calc(var(--space-4) + var(--space-5));
  }
}

@media (min-width: 992px) {
  .top-head-cta {
    --top-head-cta-padding-inline: clamp(
      var(--space-5),
      var(--space-4) + 0.5vw,
      var(--space-6)
    );
    --top-head-cta-gap: var(--space-4);
    --top-head-cta-font: var(--text-base);
    --top-head-cta-min-height: calc(var(--space-12) + var(--space-1));
  }
  .top-head-cta-sm {
    --top-head-cta-padding-inline: clamp(
      var(--space-4),
      var(--space-3) + 0.5vw,
      var(--space-5)
    );
    --top-head-cta-gap: var(--space-3);
    --top-head-cta-font: var(--text-sm);
  }
}

.top-head-cta-text {
  flex: 0 1 auto;
  min-width: 0;
  text-align: start;
  white-space: nowrap;
}

.top-head-cta-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke-width: 2.5;
}