@charset "UTF-8";
/* =========================================================
   アフターサービスページ（page-after-service.php）専用スタイル
   ※ functions.php が assets/css/ 内のCSSを自動で読み込みます
     （filemtime() によるバージョン番号付きで読み込むため、
       このファイルを差し替えるとキャッシュも自動で切り替わります）
   ※ style.css（共通）のあとに読み込まれます
   ※ ページタイトル帯・パンくずは style.css の
     全ページ共通パーツ（.page-hero / .breadcrumb）を使用しています
   ※ 全ページでこのCSSが読み込まれるため、クラス名は
     必ず after- で始め、他ページに影響しないようにしています

   ■ 目次
     1. ページ共通の変数・見出し・本文
     2. メインビジュアル（背景写真＋ロゴ＋白いパネル）
     3. アフターサービスについて（10年保証）
     4. アフターサービス基準（抜粋表）
     5. 将来のライフスタイル変化に伴うサポート
     6. タブレット（768〜1024px）
     7. SP（〜767px）
========================================================= */


/* =========================================================
   1. ページ共通の変数・見出し・本文
========================================================= */
.l-after-service {
  --after-blue: #007cc2;          /* 基準表の青いセル */
  --after-accent: #3593c7;        /* 見出し下線の水色部分 */
  --after-line: #dadada;          /* 見出し下線のグレー部分 */
  --after-cell-border: #e4f1f7;   /* 基準表の罫線（うすい水色） */
  --after-cell-gray: #f4f4f4;     /* 基準表 期間セルのグレー */
  --after-panel: rgba(255, 255, 255, .9); /* 写真に重なる白いパネル */
}

/* --- 共通インナー（style.css の --container: 1200px に合わせる） --- */
.after-inner {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- セクション見出し（明朝・中央） --- */
.after-title {
  color: var(--color-text);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .28em;
  text-indent: .28em; /* letter-spacing ぶんのズレを打ち消して中央に揃える */
  text-align: center;
}

/* --- セクション見出し直下のリード（中央） --- */
.after-lead {
  margin-top: 26px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .17em;
  text-indent: .17em;
  text-align: center;
}

/* --- 左寄せの小見出し（下線：左の水色＋全幅のグレー） --- */
.after-heading {
  position: relative;
  padding-bottom: 17px;
  color: var(--color-text);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .2em;
  border-bottom: 1px solid var(--after-line);
}

.after-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px; /* 罫線に重ねる */
  width: 218px;
  max-width: 40%;
  height: 1px;
  background-color: var(--after-accent);
}

/* --- 見出し・キャッチコピーは文節の切れ目で折り返す
   （「パートナ／ー。」のような不自然な改行を防ぐ。非対応ブラウザでは通常の折り返し） --- */
.after-title,
.after-heading,
.after-mv__catch {
  word-break: auto-phrase;
}

/* --- 本文（小さめ・両端揃え） --- */
.after-text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .24em;
  text-align: justify;
}


/* =========================================================
   2. メインビジュアル

   背景写真（af_mv_pc2.jpg / af_mv_sp2.jpg）は下端が白くフェードする画像です。
   写真を全幅で敷き、その上にロゴと白いパネルを重ねています。
   画像はPHP側の <picture> で出し分けています
   （〜767px：af_mv_sp2.jpg ／ 768px〜：af_mv_pc2.jpg）
========================================================= */
.after-mv {
  position: relative;
  isolation: isolate; /* 背景写真（z-index: -1）をこのセクション内に閉じ込める */
  margin-top: 64px;
}

.after-mv__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
}

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

.after-mv__inner {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 95px 20px 0;
}

/* --- ロゴ（After-Sales Service） --- */
.after-mv__logo {
  width: 807px;
  max-width: 100%;
  margin: 0 auto;
}

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

/* --- 白いパネル --- */
.after-mv__panel {
  margin-top: 28px;
  padding: 68px 40px 54px;
  background-color: var(--after-panel);
  text-align: center;
}

/* PCでは1要素＝1行で表示する */
.after-mv__line {
  display: block;
}

.after-mv__catch {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .18em;
  text-indent: .18em;
}

.after-mv__text {
  margin-top: 34px;
  font-size: 2rem;
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: .38em;
  text-indent: .38em;
}


/* =========================================================
   3. アフターサービスについて（10年保証）
========================================================= */
.after-about {
  margin-top: 145px;
}

/* 左：見出し＋本文 ／ 右：写真（598px） */
.after-about__body {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-top: 49px;
}

.after-about__content {
  flex: 1;
  min-width: 0;
}

/* 本文は写真から少し離して折り返す（デザインの文字幅に合わせる） */
.after-about__text {
  padding-right: 32px;
}

.after-about__text {
  margin-top: 43px;
}

.after-about__img {
  flex-shrink: 0;
  width: 598px;
  max-width: 50%;
}

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


/* =========================================================
   4. アフターサービス基準（抜粋表）

   左：青いセル（楕円模様入り）／中：白いセル／右：グレーのセル
   行と行の間は border-spacing で 12px 空けています。
========================================================= */
.after-standard {
  margin-top: 92px;
}

.after-standard__table {
  position: relative; /* 見えない caption の基準 */
  width: 100%;
  margin-top: 19px; /* border-spacing の 12px と合わせて 31px */
  border-collapse: separate;
  border-spacing: 0 12px;
  table-layout: fixed;
}

/* 表の名前は読み上げ用（見出しと同じ文言のため画面には出さない） */
.after-standard__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- 列幅（452px ／ 558px ／ 190px）
   ※ 列幅は <colgroup><col> 側で指定します --- */
.after-standard__col--part   { width: 37.7%; }
.after-standard__col--detail { width: 46.5%; }
.after-standard__col--period { width: 15.8%; }

/* --- 左：部位（青いセル＋楕円模様） --- */
.after-standard__part {
  height: 115px;
  padding: 10px 20px 10px 41px;
  color: #fff;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  /* 楕円模様（白線）の上に半透明の青を重ねて、模様をうっすら見せる */
  background-color: var(--after-blue);
  background-image:
    linear-gradient(rgba(0, 124, 194, .78), rgba(0, 124, 194, .78)),
    url("../images/after-service/yoko_oval.png");
  background-repeat: no-repeat, repeat;
  background-position: 0 0, left center;
  background-size: 100% 100%, 512px auto;
}

.after-standard__part-name {
  display: block;
  font-size: 2.4rem;
  line-height: 1.6;
  letter-spacing: .15em;
}

.after-standard__part-sub {
  display: block;
  font-size: 1.8rem;
  line-height: 1.6;
  letter-spacing: .2em;
}

/* --- 中：対象となる不具合 ／ 右：保証期間（うすい水色の罫線で囲む） --- */
.after-standard__detail,
.after-standard__period {
  vertical-align: middle;
  border-top: 2px solid var(--after-cell-border);
  border-bottom: 2px solid var(--after-cell-border);
}

.after-standard__detail {
  padding: 10px 20px 10px 47px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .24em;
}

.after-standard__period {
  padding: 10px;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: center;
  background-color: var(--after-cell-gray);
  border-left: 2px solid var(--after-cell-border);
  border-right: 2px solid var(--after-cell-border);
}

/* 数字と「年」の間を少し空ける */
.after-standard__num {
  margin-right: .3em;
}

.after-standard__note {
  margin-top: 12px; /* border-spacing の 12px と合わせて 24px */
  padding-left: 5px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .19em;
}


/* =========================================================
   5. 将来のライフスタイル変化に伴うサポート

   全幅の背景写真（af_s_bg.jpg）の下部に、
   白いパネル（2列×2段のカード）を重ねています。
   重なり量は写真の高さ（画面幅×895/2420）に合わせて vw で指定します。
========================================================= */
.after-support {
  margin-top: 111px;
  margin-bottom: 147px;
}

.after-support__bg {
  margin-top: 54px;
}

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

/* --- 白いパネル（写真に重なる） --- */
.after-support__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 46px;
  margin-top: max(-16.6vw, -320px); /* 1600px幅で -266px */
  padding: 32px 35px 0;
  background-color: var(--after-panel);
}

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

.after-support__title {
  margin-top: 22px;
  font-size: 2.8rem;
  letter-spacing: .12em;
}

.after-support__text {
  margin-top: 25px;
}


/* =========================================================
   6. タブレット（768〜1024px）
      レイアウトはPCのまま、文字サイズ・余白を詰める
========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  .after-title {
    font-size: 2.6rem;
    letter-spacing: .12em;
    text-indent: .12em;
  }

  .after-lead {
    letter-spacing: .2em;
    text-indent: .2em;
  }

  .after-heading {
    font-size: 2.1rem;
    letter-spacing: .08em;
  }

  .after-text {
    letter-spacing: .12em;
  }

  /* --- メインビジュアル --- */
  .after-mv__inner {
    padding-top: 50px;
  }

  .after-mv__logo {
    width: 76%;
  }

  .after-mv__panel {
    padding: 48px 30px 44px;
  }

  .after-mv__catch {
    font-size: 2.4rem;
    letter-spacing: .14em;
    text-indent: .14em;
  }

  .after-mv__text {
    margin-top: 26px;
    font-size: 1.6rem;
    line-height: 2.1;
    letter-spacing: .2em;
    text-indent: .2em;
  }

  /* --- 10年保証 --- */
  .after-about {
    margin-top: 110px;
  }

  .after-about__text {
    margin-top: 28px;
  }

  /* --- 基準表 --- */
  .after-standard__part {
    height: 100px;
    padding-left: 24px;
  }

  .after-standard__part-name {
    font-size: 1.9rem;
    letter-spacing: .08em;
  }

  .after-standard__part-sub {
    font-size: 1.4rem;
    letter-spacing: .06em;
  }

  .after-standard__detail {
    padding-left: 24px;
    font-size: 1.5rem;
    letter-spacing: .1em;
  }

  .after-standard__period {
    font-size: 2.2rem;
  }

  .after-standard__note {
    font-size: 1.4rem;
    letter-spacing: .2em;
  }

  /* --- サポート --- */
  .after-support__list {
    gap: 44px 30px;
    padding: 26px 24px 0;
  }

  .after-support__title {
    margin-top: 22px;
    font-size: 2.1rem;
    letter-spacing: .08em;
  }

  .after-support__text {
    margin-top: 20px;
  }
}


/* =========================================================
   7. SP（〜767px）
      1カラムに組み替え、文字サイズ・余白を詰める
========================================================= */
@media screen and (max-width: 767px) {

  .after-title {
    font-size: 2.1rem;
    letter-spacing: .08em;
    text-indent: .08em;
  }

  .after-lead {
    margin-top: 14px;
    font-size: 1.4rem;
    line-height: 1.9;
    letter-spacing: .08em;
    text-indent: .08em;
  }

  .after-heading {
    padding-bottom: 12px;
    font-size: 1.9rem;
    letter-spacing: .06em;
  }

  .after-heading::after {
    width: 120px;
  }

  .after-text {
    font-size: 1.4rem;
    line-height: 1.9;
    letter-spacing: .06em;
  }

  /* --- メインビジュアル --- */
  .after-mv {
    margin-top: 32px;
  }

  .after-mv__inner {
    padding-top: 40px;
  }

  .after-mv__panel {
    margin-top: 20px;
    padding: 30px 20px 32px;
  }

  /* SPではリード文を画面幅に合わせて自然に折り返す
     （キャッチコピーは1文ずつ改行したままにする） */
  .after-mv__text .after-mv__line {
    display: inline;
  }

  .after-mv__catch {
    font-size: 1.8rem;
    line-height: 1.8;
    letter-spacing: .08em;
    text-indent: 0;
  }

  .after-mv__text {
    margin-top: 18px;
    font-size: 1.4rem;
    line-height: 2;
    letter-spacing: .06em;
    text-indent: 0;
    text-align: justify;
  }

  /* --- 10年保証（見出し → 本文 → 写真 の縦積み） --- */
  .after-about {
    margin-top: 64px;
  }

  .after-about__body {
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
  }

  .after-about__content {
    width: 100%;
  }

  .after-about__text {
    margin-top: 18px;
    padding-right: 0;
  }

  .after-about__img {
    width: 100%;
    max-width: none;
  }

  /* --- 基準表（上段：部位 ／ 下段：不具合＋期間 の2段に組み替え） --- */
  .after-standard {
    margin-top: 64px;
  }

  .after-standard__table {
    margin-top: 24px;
    border-spacing: 0;
  }

  .after-standard__table,
  .after-standard__table tbody {
    display: block;
  }

  .after-standard__row {
    display: grid;
    grid-template-columns: 1fr 76px;
  }

  .after-standard__row + .after-standard__row {
    margin-top: 12px;
  }

  .after-standard__part {
    grid-column: 1 / -1;
    height: auto;
    padding: 14px 16px;
  }

  .after-standard__part-name {
    font-size: 1.7rem;
    letter-spacing: .08em;
  }

  .after-standard__part-sub {
    font-size: 1.3rem;
    letter-spacing: .04em;
  }

  .after-standard__detail,
  .after-standard__period {
    display: flex;
    align-items: center;
  }

  .after-standard__detail {
    padding: 12px 14px;
    font-size: 1.4rem;
    line-height: 1.7;
    letter-spacing: .04em;
    border-left: 2px solid var(--after-cell-border);
  }

  .after-standard__period {
    justify-content: center;
    padding: 12px 4px;
    font-size: 1.8rem;
    letter-spacing: .06em;
    border-left: 0;
  }

  .after-standard__note {
    margin-top: 14px;
    padding-left: 0;
    font-size: 1.2rem;
    letter-spacing: .04em;
  }

  /* --- サポート（1カラム） --- */
  .after-support {
    margin-top: 64px;
    margin-bottom: 70px;
  }

  .after-support__bg {
    margin-top: 28px;
  }

  .after-support__list {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: -16vw;
    padding: 20px 16px 0;
  }

  .after-support__title {
    margin-top: 16px;
    font-size: 1.9rem;
  }

  .after-support__text {
    margin-top: 14px;
  }
}
