/* ==========================================================
   pages.css — 下層ページ共通部品（A案のデザイン言語を流用）
   a.css の色トークン・.section-heading / .rv / .btn / .tmp-data 等を
   そのまま前提にする。ここでは下層にしかない部品だけを追加する。
   ========================================================== */

/* ---------- ページヒーロー（写真ヒーローの代わりの帯） ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: var(--tint);
  overflow: hidden;
}
.page-hero__inner {
  /* .container（width: min(100% - 48px, 1200px)）の左右余白を活かす。
     ここで width:100% を指定すると画面端に張り付くので指定しない */
}
.page-hero__crumbs {
  /* 英字（0.68em 上に飛び出す）と重ならない間隔。PC 88px / SP 48px */
  margin-bottom: clamp(48px, 7vw, 88px);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.page-hero__crumbs a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease-out, border-color 0.3s ease-out;
}
.page-hero__crumbs a:hover {
  color: var(--key);
  border-color: var(--key);
}
.page-hero__crumbs .page-hero__crumb-sep {
  margin: 0 0.6em;
  color: var(--line);
}
.page-hero__crumbs [aria-current="page"] {
  color: var(--text);
}
.page-hero__head {
  position: relative;
}
.page-hero__en {
  position: absolute;
  left: -0.04em;
  top: -0.68em;
  z-index: 0;
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(16, 48, 192, 0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.page-hero__title {
  position: relative;
  z-index: 1;
  padding-top: 0.3em;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
/* 英字ラベルの出現: a.css の .hero__ghost（ghost-in）と同じ 2.4s・0.3s遅延・同じイージング */
html.js .page-hero__en {
  opacity: 0;
  transform: translateX(-24px);
  transition: none;
}
html.js .page-hero__en.is-in {
  animation: page-hero-ghost-in 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
}
@keyframes page-hero-ghost-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 900px) {
  .page-hero {
    min-height: 220px;
    padding: calc(var(--header-h) + 32px) 0 28px;
  }
  .page-hero__title {
    font-size: clamp(26px, 6vw, 32px);
  }
}

/* ---------- ページ内セクション共通の余白 ---------- */
.page-section {
  padding: 96px 0;
}
.page-section + .page-section {
  padding-top: 0;
}
.page-section__lead {
  max-width: 46em;
  margin-bottom: 56px;
  color: var(--muted);
}
.page-section__heading {
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .page-section {
    padding: 64px 0;
  }
  .page-section__lead {
    margin-bottom: 36px;
  }
}

/* ---------- CTA帯（各ページ末尾・フッター直前） ---------- */
.page-cta {
  padding: 88px 0;
  text-align: center;
  color: #fff;
  background: var(--navy);
}
.page-cta__title {
  margin-bottom: 32px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.page-cta .btn-row {
  justify-content: center;
  margin-top: 0;
}
.page-cta .btn {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.page-cta .btn:hover,
.page-cta .btn:focus-visible {
  border-color: #fff;
}
.page-cta .btn--fill {
  border-color: var(--key);
  color: #fff;
}
@media (max-width: 900px) {
  .page-cta {
    padding: 64px 0;
  }
}

/* ---------- 拠点カード（/network/） ---------- */
.base-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.base-card {
  padding: 32px clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
}
.base-card__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.4em;
}
.base-card__role {
  margin-bottom: 1.2em;
  font-size: 15px;
  color: var(--key);
}
.base-card__info {
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.base-card__info > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 1em;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.base-card__info dt {
  color: var(--muted);
}
.base-card__map {
  display: inline-block;
  margin-top: 1.4em;
  font-size: 15px;
}
.group-card__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1em;
}
@media (max-width: 900px) {
  .base-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 安全への取り組み：4本柱（/safety/） ---------- */
.doc-blocks {
  display: grid;
  gap: 56px;
}
.doc-block {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: clamp(16px, 3vw, 32px);
}
.doc-block__num {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: rgba(16, 48, 192, 0.18);
}
.doc-block__title {
  margin-bottom: 0.7em;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.doc-block__body p + p {
  margin-top: 1em;
}
.doc-block__list {
  margin-top: 0.4em;
  display: grid;
  gap: 0.5em;
}
.doc-block__list li {
  padding-left: 1.3em;
  position: relative;
  line-height: 1.9;
}
.doc-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light);
}
.doc-block__sublist {
  margin-top: 0.6em;
  margin-left: 1.3em;
  display: grid;
  gap: 0.3em;
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 640px) {
  .doc-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- 認証カード（Gマーク。/safety/） ---------- */
.cert-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 420px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}
.cert-card__logo {
  width: 96px;
  height: auto;
  flex: none;
}
.cert-card__caption {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}
.cert-card__note {
  margin-top: 0.6em;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- 事業内容：保有車両内訳（/service/） ---------- */
.fleet-table-heading {
  margin-bottom: 0.6em;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.fleet-table {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

/* ---------- 会社概要：グループ会社／アクセス（/company/） ---------- */
.group-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.group-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 1.1em 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.group-list li small {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.access-block__address {
  margin-bottom: 1.2em;
  font-size: 17px;
  line-height: 1.9;
}
.access-block__map {
  display: inline-block;
}

/* ---------- 仮画像のプレースホルダ figure（safety-tenko / safety-inspection 差し込み待ち） ---------- */
.rv.is-placeholder img {
  filter: saturate(0.9);
}

/* ---------- ページ内の単発写真（帯・ロゴ・ヤード） ---------- */
.page-figure {
  margin-bottom: 56px;
}
.page-figure--narrow {
  max-width: 480px;
}
.page-figure--medium {
  max-width: 600px;
  margin-bottom: 32px;
}

/* ---------- リード文が複数段落になる場合（/recruit/ など） ---------- */
.page-section__lead p + p {
  margin-top: 1em;
}

/* ---------- 募集要項dlのあとの補足文（/recruit/） ---------- */
.recruit-note {
  margin-top: 1.4em;
  color: var(--muted);
}

/* ---------- 募集職種カード（/recruit/） ---------- */
.job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.job-card {
  padding: 32px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
}
.job-card__type {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--key);
}
.job-card__name {
  margin-top: 0.5em;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .job-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 応募・見学ボタン（/recruit/ 末尾。CTA帯は置かない） ---------- */
.apply-band {
  text-align: center;
}

/* ---------- お知らせ一覧のカテゴリ見出し（装飾のみ。/news/） ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.4em;
}
.news-filter__item {
  display: inline-block;
  padding: 0.3em 1.1em;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.news-filter__item.is-active {
  color: #fff;
  background: var(--key);
  border-color: var(--key);
}

/* ---------- お知らせ一覧の1件をリンク化する（/news/。display:contents でグリッド構造を保つ） ---------- */
.news-item > a.news-item__link {
  display: contents;
  color: inherit;
}

/* ---------- ページ送り（無効状態。/news/ /news/sample/） ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.pager__btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ---------- お知らせ詳細のメタ情報（日付・カテゴリ。/news/sample/） ---------- */
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2.4em;
}

/* ---------- 記事本文の素直な組版（/news/sample/ /privacy/） ---------- */
.prose {
  display: grid;
  gap: 1.6em;
  max-width: 46em;
  margin-bottom: 2.4em;
}
.prose h2 {
  margin-top: 0.6em;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.prose p {
  line-height: 1.95;
}
.prose ul {
  display: grid;
  gap: 0.6em;
}
.prose li {
  padding-left: 1.3em;
  position: relative;
  line-height: 1.9;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light);
}
.prose figure {
  margin: 0;
}

/* ---------- お問い合わせフォーム（/contact/。CF7置き換え前提で .contact-form 配下のみで組む） ---------- */
.contact-form {
  max-width: 720px;
}
.contact-form__row {
  display: grid;
  gap: 0.6em;
  padding: 1.4em 0;
  border-bottom: 1px solid var(--line);
}
.contact-form__row:first-child {
  border-top: 1px solid var(--line);
}
.contact-form__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.contact-form__required {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.1em 0.7em;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--key);
  border-radius: 100px;
  vertical-align: 0.15em;
}
.contact-form__input {
  width: 100%;
  padding: 0.8em 1em;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-form__input:focus-visible {
  outline: 2px solid var(--key);
  outline-offset: 1px;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 9em;
}
.contact-form__row--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}
.contact-form__checkbox {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.2em;
}
.contact-form__row--checkbox label {
  font-size: 16px;
  line-height: 1.7;
}
.contact-form__submit {
  margin-top: 1.6em;
}
.contact-form__submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.contact-form__submit[disabled]:hover {
  background: var(--key);
  border-color: var(--key);
}
.contact-form__note {
  margin-top: 0.8em;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- お問い合わせ: 入力チェック・確認画面・完了ページ（2026-09-24） ---------- */
#contact-form {
  scroll-margin-top: 96px;
}
.contact-form__error {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #c62828;
}
.contact-form__input[aria-invalid="true"],
.contact-form__checkbox[aria-invalid="true"] {
  border-color: #c62828;
  outline: 2px solid rgba(198, 40, 40, 0.35);
  outline-offset: 1px;
}
.contact-form form[hidden],
.contact-form [hidden] {
  display: none !important;
}
.contact-confirm:focus {
  outline: none;
}
.contact-confirm__title {
  margin: 0 0 0.8em;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.contact-confirm__lead {
  margin: 0 0 1.8em;
  font-size: 16px;
  line-height: 1.9;
}
.contact-confirm__list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.contact-confirm__list > div {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 1em;
  padding: 1.3em 0;
  border-bottom: 1px solid var(--line);
}
.contact-confirm__list dt {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.contact-confirm__list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.contact-confirm__list dd.is-empty {
  color: var(--muted);
}
.contact-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2.4em;
}
.contact-confirm__actions .btn {
  min-width: 13em;
  justify-content: center;
}
.contact-confirm__actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 765px) {
  .contact-confirm__list > div {
    grid-template-columns: 1fr;
    gap: 0.4em;
    padding: 1.1em 0;
  }
  .contact-confirm__actions .btn {
    width: 100%;
  }
}

/* 完了ページ（/contact/thanks/） */
.thanks {
  max-width: 820px;
  text-align: center;
}
.thanks__title {
  margin: 0 0 1.4em;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.thanks__text {
  margin: 0 0 1.4em;
  font-size: 17px;
  line-height: 2.1;
}
.thanks__note {
  margin: 0 0 2.4em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.thanks .btn-row {
  justify-content: center;
}

/* 採用ページ冒頭の画像枠（2026-09-24）: 画像は未決のため枠だけ確保。3:2。画像が決まったら
   <img> に置き換えて .is-empty を外す（recruit/index.html と page-recruit.php の TODO コメント参照）。 */
.recruit-lead__figure {
  max-width: 720px;
  margin: 0 0 48px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ice);
}
.recruit-lead__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recruit-lead__figure.is-empty {
  border: 1px dashed var(--line);
}
.recruit-lead__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
@media (max-width: 765px) {
  .recruit-lead__figure {
    margin-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__en {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 記事ページャ: 狭い幅ではボタン内で「前の記／事へ」と割れるため短いラベルに差し替える */
.sp-label {
  display: none;
}
@media (max-width: 720px) {
  .pc-label {
    display: none;
  }
  .sp-label {
    display: inline;
  }
}

/* ---------- 拠点カードの所在地（/network/。SEO仕様 §6.2） ---------- */
.base-card__place {
  margin: 0 0 0.3em;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- よくあるご質問（共通部品 .faq。<details>/<summary>、JS不要） ---------- */
.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item + .faq__item {
  margin-top: 0;
}
.faq__question {
  position: relative;
  display: block;
  padding: 1.2em 2.2em 1.2em 2.4em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1.2em;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--key);
}
.faq__question::after {
  content: "";
  position: absolute;
  right: 0.3em;
  top: 1.7em;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
}
.faq__answer {
  margin: 0;
  padding: 0 2.2em 1.4em 2.4em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .faq__question::after {
    transition: none;
  }
}

/* アクセスの地図（Googleマップ埋め込み）。写真と同じ見え方に揃える */
.access-block__map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--tint);
}
.access-block__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 720px) {
  .access-block__map-frame {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
  }
}

/* 拠点カードの住所: 「都道府県＋市区町村」「町名番地」の塊ごとに折り返す（2026-09-25） */
.base-card__addr-part {
  display: inline-block;
}
