/* ==========================================================================
   4PLページ（service/4pl）固有スタイル
   LOWER_SPEC_4pl.md 準拠。lower.css の後に読み込む。
   お悩み系ブロックは無し。3PL/4PL比較表 / ワーレックスの4PLの3つの特長
   （point-block写真プレースホルダー含む） / 4PLの事例 / 依頼の流れ / フォーム補助
   で使う値のうち、lower.css に無いものだけをここに定義する。
   .lead-heading / .safety-cards / .safety-card* / .flow* は
   service-transport.css の値をそのまま転記（service-transport.css は読み込まない）。
   ========================================================================== */

/* ==========================================================================
   ページヘッダー：帯内テキストが32ptのため見出しサイズのみこのページで上書き
   （--fs-32トークンが無いため直値。lower.cssのSP側ルール(fs-24)はそのまま活かす
   ため min-width:769px のメディアクエリでPC側のみ上書きする）
   ========================================================================== */
@media (min-width: 769px) {
  .page-header__title {
    font-size: 2rem; /* 32px（ワイヤー実測32pt） */
  }
}
/* 文言が長く2行になり得るため、この本ページに限り帯の高さを拡張する
   （lower.cssの --lower-hero-h / --lower-hero-h-sp を上書き。値は変更せずこのページのみ再定義） */
:root {
  --lower-hero-h: 300px;
  --lower-hero-h-sp: 220px;
}

/* ==========================================================================
   リード ※値は service-transport.css の .lead-heading を転記
   ========================================================================== */
.lead-heading {
  text-align: center;
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}
.lead {
  padding-top: var(--lower-section-py);
  padding-bottom: var(--lower-section-py);
}

/* ==========================================================================
   3PLと4PLの違い：比較表（横スクロールラッパー）
   ========================================================================== */
.difference__table-wrap {
  overflow-x: auto;
  margin-top: 40px;
}
.difference__table-wrap .spec-table {
  margin-top: 0;
}
/* ディレクター初回チェック No.45: 4PL列を薄いベージュで目立たせる。
   色はワイヤー（ワイヤー/08_4PL.pptx スライド1の比較表）の4PL列セル塗りを
   python-pptxで読み取った値: テーマ色 accent2（#ED7D31）に lumMod 20% /
   lumOff 80%（PowerPoint標準の「アクセント2、白+基本色80%」）を適用した
   #FBE5D6。th（見出しセル）は lower.css の .spec-table th が敷く既存の
   グレー（--color-bg-grad-end）より優先させるため個別クラスより詳細度を
   上げて上書きする。 */
.difference__table-wrap .spec-table th:nth-child(3),
.difference__table-wrap .spec-table td:nth-child(3) {
  background-color: #FBE5D6;
}

/* ==========================================================================
   ワーレックスの4PLの3つの特長：写真プレースホルダー（点02・03の右カラム）
   .placeholder に .point-block__photo と同じ平行四辺形クリップを重ねる
   ========================================================================== */
.point-block__photo .placeholder {
  width: 100%;
  height: 100%;
  clip-path: polygon(35.58% 0, 0 100%, 64.42% 100%, 100% 0);
}

/* ==========================================================================
   安全教育カード相当（特長01・02の従属3カード）※値は service-transport.css の
   .safety-cards / .safety-card* を転記
   ========================================================================== */
.safety-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 40px;
}
.safety-card {
  min-width: 0;
}
.safety-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.safety-card__title {
  margin-top: 16px;
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
}
.safety-card__body {
  margin-top: 8px;
  font-size: var(--fs-16);
  line-height: var(--lh-list-16);
  overflow-wrap: break-word;
}

/* ==========================================================================
   4PLの事例
   ========================================================================== */
.cases .case-cards {
  margin-top: 40px;
}
/* 事例が1件のときは3列グリッドの左端に寄らないよう、1列（カード幅 300px）にして中央に置く
   （.case-cards の justify-content:center を活かす。SP は lower.css の1列指定と同じ結果） */
.cases .case-cards--single {
  grid-template-columns: minmax(0, 300px);
}

/* ==========================================================================
   依頼の流れ ※値は service-transport.css の .flow__row 等を転記
   ========================================================================== */
.flow__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14.85px;
  margin-top: 40px;
}
.section-heading + .flow__row,
.band-heading + .flow__row {
  margin-top: 70px;
}
.flow-step {
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
  text-align: center;
}
.flow-step__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.flow-step__number {
  margin-top: 12px;
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}
.flow-step__label {
  margin-top: 4px;
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  overflow-wrap: break-word;
}
.flow__arrow-wrap {
  flex: 0 0 auto;
  width: 10.3px;
  height: 40px;
  margin-top: 82px; /* 写真(アスペクト3:2)の縦中央に合わせる目安（要確認: カンプ無しのため実測補正なし） */
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow__arrow-wrap--break {
  display: none;
}

/* ==========================================================================
   お問い合わせフォーム：チェックボックス（無料診断を希望する）
   ========================================================================== */
.contact-form__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.contact-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-16);
}
.contact-form__checkbox input {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--color-primary);
}

/* ==========================================================================
   プレースホルダーは lower.css の .placeholder に統合（2026-09-07）
   ========================================================================== */

/* ==========================================================================
   Responsive: SP（768px以下）
   ========================================================================== */
@media (max-width: 768px) {
  .lead {
    padding-top: var(--lower-section-py-sp);
    padding-bottom: var(--lower-section-py-sp);
  }
  .lead-heading {
    padding: 0 16px;
    font-size: var(--fs-24);
  }

  .difference__table-wrap {
    margin-top: 24px;
  }
  .difference__table-wrap .spec-table {
    min-width: 600px;
  }
  /* このページの比較表は lower.css の SP block化ではなく横スクロールにする */
  .difference__table-wrap .spec-table,
  .difference__table-wrap .spec-table thead,
  .difference__table-wrap .spec-table tbody {
    display: table;
    width: 100%;
  }
  .difference__table-wrap .spec-table thead {
    display: table-header-group;
  }
  .difference__table-wrap .spec-table tbody {
    display: table-row-group;
  }
  .difference__table-wrap .spec-table tr {
    display: table-row;
  }
  .difference__table-wrap .spec-table th,
  .difference__table-wrap .spec-table td {
    display: table-cell;
    width: auto;
  }

  .safety-cards {
    margin-top: 24px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    row-gap: 40px;
  }
  .cases .case-cards {
    margin-top: 24px;
  }

  .flow__row {
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
  }
  .section-heading + .flow__row,
  .band-heading + .flow__row {
    margin-top: 0;
  }
  .flow__row + .flow__row {
    margin-top: 0;
  }
  .flow__row .flow-step {
    max-width: none;
    width: 100%;
  }
  .flow__arrow-wrap,
  .flow__arrow-wrap--break {
    width: 40px;
    height: 10.3px;
    margin: 16px auto;
  }
  .flow__arrow-wrap--break {
    display: flex;
  }
  .flow__arrow {
    transform: rotate(90deg);
  }
}
