/* ==========================================================================
   アフターサービス（visitor/after_service/index.html）
   Breakpoint: SP ~375px / PC 768px+
   Section layout: business-section（事業概要ページと同型）
   ========================================================================== */

.after-service-page {
  --after-support-gap: 32px;
}

.after-service-page .page-header__title-block .section-label__en {
  text-transform: capitalize;
}

.after-service-page .page-header__inner {
  padding-bottom: 32px;
}

/* --- KV (responsive img swap) --- */
.after-service-page .after-kv__image--pc {
  display: none;
}

/* --- Intro --- */
.after-intro .business-section__content {
  align-items: flex-start;
  width: 100%;
}

.after-intro .business-section__body {
  width: 100%;
}

/* Topic subsections (after-support__details) */
.after-support__topic-head {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.after-support__topic-head .business-section__title {
  margin: 0;
}

.after-support__topic-head .business-section__text {
  margin: 0;
}

/* --- Business-section overrides --- */
.after-service-page .business-section__title {
  font-family: var(--font-heading);
  font-weight: 600;
}

.after-service-page .business-section__title-line {
  background: var(--color-red);
}

.after-service-page .business-section__title-break {
  display: inline;
}

.after-support__tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: var(--fw-md);
  line-height: 1;
  color: var(--color-red);
}

.after-support__tag-num {
  font-size: 24px;
  letter-spacing: 0.06em;
}

/* --- Supplemental content below main row --- */
.after-support__details {
  padding-top: var(--after-support-gap);
  padding-bottom: 48px;
}

.after-support__details-inner {
  max-width: var(--visitor-content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.after-support__topic {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}


.after-support__topic-figure {
  margin: 0;
  max-width: 884px;
}

.after-support__topic-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.after-support__topic-figure--visual {
  margin-inline-start: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.after-support__topic-figure--visual img {
  aspect-ratio: 300 / 200;
  object-fit: cover;
}

.after-support__topic-figure--visual-auto img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}

.after-support__topic-figure--flow {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.after-support__topic-figure--flow img {
  width: auto;
  max-width: none;
  min-width: 100%;
}

.after-support__flow-icon {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-top: -16px;
}

.after-support__label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-red);
}

/* --- Call center --- */
.after-support__details-inner--center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.after-support__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  text-align: center;
}

.business-section--gray .after-support__contact {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-300);
}

.after-support__contact-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-gray-700);
}

.after-support__contact-hours {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: var(--fw-md);
  line-height: 1.5;
  color: var(--color-gray-700);
}

.after-support__contact-tel {
  display: block;
  margin-top: 16px;
  font-family: var(--font-label);
  font-size: 32px;
  font-weight: var(--fw-md);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-gray-700);
  text-decoration: none;
}

.after-support__contact-note {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: var(--fw-md);
  line-height: 1.75;
  color: var(--color-gray-400);
}

.after-support__contact-btn {
  margin-top: 24px;
  width: 100%;
  max-width: 320px;
}

/* ==========================================================================
   SP
   ========================================================================== */
@media (max-width: 767px) {
  .after-service-page .page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .after-service-page .page-nav__link {
    padding: 12px 0;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .after-service-page .page-nav__icon {
    width: 20px;
    height: 12px;
    flex-shrink: 0;
  }

  .after-service-page .business-section.after-support:has(.after-support__details) {
    padding-bottom: 0;
  }

  .after-support__details {
    padding-bottom: 48px;
  }
}

/* ==========================================================================
   PC
   ========================================================================== */
@media (min-width: 768px) {
  .after-service-page .page-header__inner {
    padding: 0 var(--visitor-header-pad-pc) 40px;
  }

  .after-service-page .after-kv__image--sp {
    display: none;
  }

  .after-service-page .after-kv__image--pc {
    display: block;
  }

  .after-intro .business-section__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .after-intro .business-section__head {
    flex: none;
    width: 100%;
  }

  .after-intro .business-section__title {
    white-space: nowrap;
  }

  .after-intro .business-section__content {
    flex: none;
    max-width: 884px;
  }

  .after-service-page .business-section__title {
    font-size: 32px;
    line-height: 1.375;
  }

  .after-service-page .business-section__title-break {
    display: none;
  }

  .after-service-page .business-section.after-support:has(.after-support__details) {
    padding-bottom: 0;
  }

  .after-support__details {
    padding-bottom: 80px;
  }

  .after-support__details-inner {
    gap: 64px;
  }

  .after-support__details-inner:not(.after-support__details-inner--center) {
    padding-left: calc(240px + 80px);
  }

  /* space-between だと余白分だけ本文列が右に押し出され、
     下の詳細ブロック（見出し列 240px + gap 80px の位置）と左端がずれる。 */
  .after-support .business-section__inner {
    justify-content: flex-start;
  }

  .after-support__topic {
    gap: 40px;
    max-width: 884px;
  }

  .after-support__topic-figure {
    max-width: 884px;
  }

  .after-support__topic-figure--visual {
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
  }

  .after-support__topic-figure--visual img {
    height: 240px;
    aspect-ratio: auto;
  }

  .after-support__topic-figure--visual-auto img {
    height: auto;
  }

  .after-support__topic-figure--flow {
    overflow-x: visible;
  }

  .after-support__topic-figure--flow img {
    width: 100%;
    max-width: 100%;
  }

  .after-support__flow-icon {
    display: none;
  }

  .after-support__contact {
    padding: 40px;
  }

  .after-support__contact-tel {
    font-size: 40px;
  }
}

/* ==========================================================================
   図版（写真ではない資料イメージ）は枠比率と縦横比が大きく異なるため、
   他の図版と同じ外形（3:2）を保ったまま、トリミングせず全体を表示する。
   背景を白で敷き、上下に余白を取って枠の際まで図が来ないようにする。
   ========================================================================== */
.after-support .business-section__visual--auto {
  aspect-ratio: 300 / 200;
  padding-block: 16px;
  background: var(--color-white);
}

.after-support .business-section__visual--auto img {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   タブレット〜小型ノート (768〜1199px)
   セクションを縦積みにしている幅では、詳細ブロックの字下げ（240px + 80px）を
   解除して本文と左端を揃える
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  .after-support__details-inner:not(.after-support__details-inner--center) {
    padding-left: 0;
  }
}

/* ==========================================================================
   PC では電話発信ができないため、tel リンクのボタンを非表示にする。
   電話番号自体（.after-support__contact-tel）は表示したまま残す。
   ========================================================================== */
@media (min-width: 768px) {
  .after-support__contact-btn {
    display: none;
  }
}
