/* ==========================================================================
   ワーレックス株式会社 拠点詳細ページ（犬塚営業所）固有スタイル
   LOWER_SPEC_office.md 準拠。style.css → lower.css の後に読み込む。
   このファイルは office/inuzuka/index.html でのみ読み込まれるため、
   他ページに影響しない前提で新規セレクタのみを定義する。
   ========================================================================== */

/* ==========================================================================
   拠点情報・拠点長あいさつ内の .point-block__body の余白補正
   .point-block は本来「番号(01)＋見出し(h3)」の下に本文が続く前提で
   margin-top:16px が付いているが、本ページでは h3/番号を置かず本文のみを
   置くため、各ブロックの最初の段落に限り上余白をリセットする
   （LOWER_SPEC_office.md §2 行3・§3-4）。
   ========================================================================== */
.office-info .point-block__body {
  margin-top: 0;
}
.office-message .point-block__text > .point-block__body:first-of-type {
  margin-top: 0;
}

/* ==========================================================================
   写真→本文の順（point-blockのDOM順を反転させるモディファイア）
   拠点情報（写真左・本文右）と拠点長あいさつ（写真左・本文右）で共用する。
   LOWER_SPEC_office.md §3-1・§3-4
   1101px以上（=既存 .point-block の2カラムが有効な帯）でのみ列幅を変更し、
   769〜1100px・768px以下は lower.css 既存の .point-block レスポンシブ
   ルール（1カラム縦積み）をそのまま利用する。
   ========================================================================== */
@media (min-width: 1101px) {
  .point-block--reverse {
    grid-template-columns: minmax(0, 465.7px) minmax(0, 586.7px);
    justify-content: space-between;
    column-gap: 40px;
  }
  .point-block--reverse .point-block__photo {
    justify-self: start;
  }
  .point-block--reverse .point-block__text {
    padding-left: 0;
  }
}

/* ==========================================================================
   拠点情報テーブル（.point-block__text 内・右カラム586.7px幅に収める）
   LOWER_SPEC_office.md §3-1
   ========================================================================== */
.office-table {
  margin-top: 32px;
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border-card);
}
.office-table th,
.office-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--color-border-card);
  font-size: var(--fs-18);
  line-height: var(--lh-body-18);
  text-align: left;
}
.office-table th {
  width: 140px;
  background-color: var(--color-bg-grad-end);
  font-weight: var(--fw-bold);
  vertical-align: top;
  white-space: nowrap;
}

/* ==========================================================================
   拠点情報ボタン「この拠点の職種を見る」
   service-transport.css の .case-section__more と同じ考え方（.btn-fillの
   inline-flexだとmargin:autoで右寄せできないためdisplay:flexで上書き）。
   LOWER_SPEC_office.md §3-1
   ========================================================================== */
.office-info__more {
  display: flex;
  width: 280px; /* 「この拠点の職種を見る」10文字はcase-section__moreの263pxでは折り返すため実測(277.6px)に合わせて拡張（要確認） */
  margin: 24px 0 0 auto;
}

/* ==========================================================================
   拠点の特長カード（正方形写真＋キャプションのみ。番号・見出し枠は無し）
   service-transport.css の .safety-cards と同じグリッド。
   LOWER_SPEC_office.md §3-2
   ========================================================================== */
.feature-cards {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 40px;
}
.feature-card {
  min-width: 0;
}
.feature-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.feature-card__text {
  margin-top: 12px;
  font-size: var(--fs-16);
  line-height: var(--lh-list-16);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   フォトギャラリー（正方形写真6枚・3列×2段）
   LOWER_SPEC_office.md §3-3
   ========================================================================== */
.gallery-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 40px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   拠点長あいさつ 氏名行 ※推定 LOWER_SPEC_office.md §3-4
   ========================================================================== */
.office-message__name {
  margin-top: 24px;
  text-align: right;
  font-size: var(--fs-16);
}
.office-message__name-strong {
  margin-left: 12px;
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
}

/* ==========================================================================
   背景グラデーション（TOP SERVICE等と同じ灰グラデで白セクションと交互にする）
   LOWER_SPEC_office.md §2 行4・行6
   ========================================================================== */
.office-features,
.office-message {
  background: var(--grad-diagonal);
}

/* ==========================================================================
   Responsive: タブレット帯（769〜1100px）※推定
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1100px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ==========================================================================
   Responsive: SP（768px以下）LOWER_SPEC_office.md §5
   ========================================================================== */
@media (max-width: 768px) {
  .office-table {
    margin-top: 40px;
  }
  .office-table,
  .office-table tbody,
  .office-table tr {
    display: block;
    width: 100%;
  }
  .office-table th,
  .office-table td {
    display: block;
    width: 100%;
    font-size: var(--fs-16);
  }
  .office-table th {
    padding: 8px 16px;
  }
  .office-table td {
    padding: 12px 16px;
  }

  .office-info__more {
    margin: 24px auto 0;
  }

  .feature-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .feature-card {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
