/**
 * SUBARU.JP ケアパスポート LP — 案件固有スタイル
 */

/* --- グローバル --- */

/* Sticky footer: フッターをビューポート最下部に固定 */
#wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#main-contents {
  flex: 1 0 auto;
  color: var(--text, #000);
}

/* --- section-kv --- */

.section-kv {
  padding-block: 4.2rem 2rem;
}

@media screen and (max-width: 768px) {
  .section-kv {
    padding-block: 2.4rem 0;
  }
}

#main-contents .breadcrumb-category {
  font-size: 2rem;
  line-height: 1.5;
  font-weight: var(--fwNormal, 300);
  color: #000;
  margin-bottom: 4px;
}

@media screen and (max-width: 768px) {
  #main-contents .breadcrumb-category {
    font-size: 1.6rem;
  }
}

#main-contents .h1ttl {
  margin-bottom: 2.4rem;
}

@media screen and (max-width: 768px) {
  #main-contents .h1ttl {
    margin-bottom: 2rem;
  }
}

/* 一次タブ: ディーラーサービス内ナビ（Figma Tab_Secondary） */
#main-contents .dealer-nav {
  background-color: var(--white);
}

#main-contents .dealer-nav-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 48px;
}

@media screen and (max-width: 768px) {
  #main-contents .dealer-nav-list {
    column-gap: 6px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-inline: 6px;
  }
}

#main-contents .dealer-nav-link {
  display: inline-block;
  padding-block: 11px 12px;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #000;
  border-bottom: 1px solid transparent;
}

@media (any-hover: hover) {
  #main-contents .dealer-nav-link:hover {
    border-bottom-color: var(--keyColor);
    color: var(--keyColor);
  }
}

@media screen and (max-width: 768px) {
  #main-contents .dealer-nav-link {
    font-size: 1.1rem;
    padding-block: 8px 9px;
  }
}

/* --- kv-wrap --- */

.kv-wrap img {
  aspect-ratio: 1440 / 445;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 768px) {
  .kv-wrap img {
    aspect-ratio: 375 / 192;
  }
}

/* --- section-service --- */

.section-service {
  padding-block: 4.2rem 2rem;
}

@media screen and (max-width: 768px) {
  .section-service {
    padding-block: 2.6rem 2rem;
  }

  #main-contents .sp-txt-l {
    line-height: 1.66;
  }
}

.link-wrap {
  padding-block: 4rem;
}

@media screen and (max-width: 768px) {
  .link-wrap {
    padding-block: 2.6rem 2rem;
    padding-inline-start: 1.8rem;
  }
}

#main-contents .txt-link-wrap.col-pc3-sp1 > .col {
  width: calc((100% - 40px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 16px;
}

@media screen and (max-width: 768px) {
  #main-contents .txt-link-wrap.col-pc3-sp1 > .col {
    width: 100%;
    align-items: stretch;
  }
}

.ttl-wrap {
  margin-block-start: 4rem;
  text-align: center;
}

.ttl-wrap .h2ttl {
  font-weight: var(--fwBold);
}

@media screen and (max-width: 768px) {
  .note-list {
    margin-top: 1rem;
  }
}

/* --- section-lineup --- */

/* 二次タブ: 商品ラインアップ切替（Figma Tab_Primary・JS連動） */
#main-contents .lineup-tab {
  margin-bottom: 24px;
}

#main-contents .lineup-tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--greyK20);
}

#main-contents .lineup-tab-btn {
  display: block;
  padding-block: 1.4rem;
  text-align: center;
  font-size: 2rem;
  font-weight: var(--fwBold);
  line-height: 1.5;
  color: #000;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  height: 100%;
}

@media screen and (max-width: 768px) {
  #main-contents .lineup-tab-btn {
    font-size: 1.4rem;
    padding-inline: 8px;
    align-content: center;
    padding-block: 1.2rem;
  }
}

#main-contents .lineup-tab-btn.cur {
  color: var(--keyColor);
  border-bottom-color: var(--keyColor);
}

#main-contents .js-tab-content {
  display: none;
}

#main-contents .js-tab-content.cur {
  display: block;
}

/* --- タブパネル内コンテンツ --- */

.text {
  color: #000;
  font-size: 2rem;
  font-weight: var(--fwNormal);
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .text {
    font-size: 1.8rem;
    line-height: 1.66;
  }

  #main-contents .h4ttl {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 768px) {
  .sp-scroll-notice span {
    font-size: 1.2rem;
  }
}

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

.w21p {
  width: 21% !important;
}

/* メンテナンス計画イメージ：画像拡大トリガー（SPのみ動作） */
#main-contents .js-img-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  cursor: default;
}

#main-contents .js-img-zoom > img {
  display: block;
  width: 100%;
  height: auto;
}

#main-contents .lp-img-zoom-icn {
  display: none;
}

@media (max-width: 768px) {
  #main-contents .js-img-zoom {
    position: relative;
    cursor: zoom-in;
    pointer-events: auto;
  }

  #main-contents .lp-img-zoom-icn {
    display: block;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    line-height: 0;
  }

  #main-contents .lp-img-zoom-icn img {
    display: block;
    width: 24px;
    height: 24px;
  }

  /* 画像拡大モーダル：高さフィット＋横スクロール（SP表組み画像の閲覧性向上） */
  .img-modal-win .modal-win-body[data-area="img"] {
    position: relative;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .img-modal-win .modal-win-body[data-area="img"] .modal-overlay-inner {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .img-modal-win .modal-win-body[data-area="img"]::before {
    content: "";
    flex: 1 0 16px;
    min-width: 16px;
  }

  .img-modal-win .modal-win-body[data-area="img"]::after {
    content: "";
    flex: 1 0 16px;
    min-width: 16px;
  }

  .img-modal-win .modal-win-body[data-area="img"] img {
    position: relative;
    z-index: 1;
    height: auto;
    max-height: 55vh;
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }
}

/* 定期点検カードスライダー: PC時はSplideを破棄し panel-list の3カラムに戻す */
#main-contents .js-check-slider .splide__list.panel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1100px;
  margin-inline: auto !important;
}

#main-contents .js-check-slider .splide__list.panel-list .splide__slide {
  width: calc((100% - 40px) / 3);
  padding: 5.2rem 4rem;
}

.sub-title {
  color: #000;
  text-align: center;
  font-size: 2rem;
  font-weight: var(--fwBold);
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .sub-title {
    font-size: 1.8rem;
  }
}

/* 定期点検カード: タイトルを中央寄せ + 区切り線（疑似要素・内側パディングより少し広げる） */
#main-contents .js-check-slider .splide__slide .sub-title {
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 24px;
  position: relative;
}

#main-contents .js-check-slider .splide__slide .sub-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0px;
  bottom: 0;
  height: 1px;
  background-color: var(--black);
}

.sub-text {
  color: #000;
  font-size: 1.6rem;
  font-weight: var(--fwBold);
  line-height: 1.5;
}

/* 定期点検カード: 「主な点検メニュー」ラベル */
#main-contents .js-check-slider .splide__slide .sub-ttl {
  color: var(--black);
  font-size: 1.8rem;
  font-weight: var(--fwBold);
  line-height: 1.44;
}

/* 定期点検カード: 「主な点検メニュー」bullet リスト（Figma仕様・●bullet） */
#main-contents .menu-dot-list {
  font-size: 1.6rem;
  line-height: 1.625;
  color: #000;
}

#main-contents .menu-dot-list > li {
  padding-left: 1em;
  text-indent: -1em;
  font-size: 1.4rem;
}

@media screen and (max-width: 768px) {
  #main-contents .menu-dot-list > li {
    font-size: 1.6rem;
  }
}

#main-contents .menu-dot-list > li::before {
  content: "●";
}

/* 定期点検カードスライダー: SP時は panel-list の flex-wrap/gap を無効化して Splide が横スクロールできるようにする */
@media screen and (max-width: 768px) {
  #main-contents .js-check-slider .splide__list.panel-list {
    flex-wrap: nowrap;
    gap: 0;
  }

  /* ページネーションをカード（.splide__slide）の外側・左下に配置 */
  #main-contents .js-check-slider .splide__pagination.cmn-carousel-pagination {
    position: static;
    transform: none;
    margin-top: 16px;
    height: auto;
    justify-content: flex-start;
  }
}

/* --- pdf-text-link --- */

/* PDFテキストリンク（Figma: SUBARU Care Passport契約注意事項リンク） */
#main-contents .pdf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: inherit;
  text-decoration: none;
}

#main-contents .pdf-text-link::after {
  content: none;
  display: none;
}

@media (any-hover: hover) {
  #main-contents .pdf-text-link {
    transition: opacity 0.2s ease;
  }

  #main-contents .pdf-text-link:hover {
    opacity: 0.7;
  }
}

#main-contents .pdf-text-link .txt {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#main-contents .pdf-text-link .icn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

@media screen and (max-width: 768px) {
  #main-contents .pdf-text-link .icn {
    width: 4.2rem;
    height: 4.2rem;
  }
}

/* --- section-cta --- */

.section-cta.mt144 {
  margin-top: 144px;
}

@media screen and (max-width: 768px) {
  .section-cta.mt144 {
    margin-top: 82px;
  }

  .link-col-list > li .arrow-link {
    font-size: 1.4rem !important;
  }

  #wrap .btn-wrap .btn-ttl {
    margin-bottom: 0;
    font-size: 1.2rem !important;
  }
}

/* --- footer --- */

#wrap .footer-nav-list > li + li {
  margin-left: unset;
}



