/*
Theme Name: Himesho Group
Theme URI: https://himesho.com/
Author: Himesho Group
Description: 姫商グループ（姫路商運株式会社・株式会社姫商ライン）コーポレート＆採用サイト用オリジナルテーマ。DESIGN.md のデザインシステムに準拠。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: himesho
*/

/* ==========================================================================
   Design Tokens — DESIGN.md 準拠
   ========================================================================== */
:root {
  /* Surface — ブルーに馴染む白に近いクールグレー */
  --canvas: #EDF1F6;        /* ページ基調。純白は使わない、青みのある明るいグレー */
  --lifted: #F7FAFC;        /* 一段浮いた面（ほぼ白） */
  --white: #FFFFFF;         /* ナビピル・カード・サテライトCTAのみ */
  --ghost: #DDE5EF;         /* ゴースト見出し（青みグレー） */

  /* Ink & Text */
  --ink: #14181C;           /* 主要テキスト・CTA・フッター（やや青寄りの黒） */
  --charcoal: #232B33;
  --slate: #62707E;         /* ミュートテキスト（クールグレー） */
  --taupe: #C7D2DF;         /* whisper テキスト・罫線（青みグレー） */

  /* Accent — ブルー系 */
  --signal: #1E5FBF;        /* アクセントブルー — アイブロウのドット・バッジ等 */
  --signal-dark: #17499A;   /* アクセントブルー（濃）— ホバー */
  --arc: #6BA4E6;           /* ライトブルー — 軌道ライン・装飾 */
  --link-blue: #1E5FBF;     /* インラインリンク */

  /* Typography */
  /* 本文・見出し・ボタン：和文フォントを先頭に（Sofia Sansは指定しない＝CJKのベースラインずれ防止） */
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  /* 欧文の飾り文字（アイブロウ・ゴースト見出し・英字ラベル）専用 */
  --font-latin: "Sofia Sans", "Zen Kaku Gothic New", Arial, sans-serif;

  /* Radius scale: 四角基調（丸みを抑える） */
  --r-btn: 2px;
  --r-hero: 4px;
  --r-pill: 4px;

  /* Shadow */
  --shadow-1: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px;
  --shadow-2: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px;

  /* Spacing (8px base) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;

  --container: 1280px;
  --gutter: 48px;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 450;
  font-size: 16px;
  line-height: 1.4;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
.entry-content a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link-blue); outline-offset: 3px; border-radius: 4px;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: 64px; line-height: 1; }
h2 { font-size: 36px; line-height: 44px; }
h3 { font-size: 24px; line-height: 1.2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-12) 0; position: relative; }
[id] { scroll-margin-top: 112px; } /* 固定ピルナビ分のアンカーオフセット */
.br-sp { display: none; } /* スマホのみ改行、PCでは改行なし */
.services__arc path { stroke: var(--arc); } /* 装飾アークをアクセント色に追従 */

/* アイブロウ：ドット＋大文字トラッキング */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-latin);
  font-size: 14px; font-weight: 700; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 0;
  background: var(--signal); flex: none;
}

/* ゴースト透かし見出し */
.ghost-word {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-latin);
  font-size: clamp(72px, 12vw, 128px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; color: var(--ghost);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-btn);
  padding: 13px 28px 12px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
  border: 1.5px solid var(--ink);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--ink); font-weight: 450; }
.btn--secondary:hover { background: var(--canvas); }
.btn--accent { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn--accent:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.btn--lg { padding: 17px 40px 16px; border-radius: var(--r-hero); font-size: 18px; }

/* サテライトCTA（円形ポートレート右下に係留） */
.satellite {
  position: absolute; right: 4%; bottom: 4%;
  transform: translate(30%, 0);
  width: 56px; height: 56px; border-radius: var(--r-btn);
  background: var(--white); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow-1);
  transition: transform 0.15s ease;
  z-index: 2;
}
.satellite:hover { transform: translate(30%, 0) scale(1.08); }

/* ==========================================================================
   Header — フローティング・ピルナビ
   ========================================================================== */
.site-header {
  position: absolute; top: 24px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 var(--s-3);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--white); border-radius: var(--r-pill);
  padding: 10px 14px 10px 28px; box-shadow: var(--shadow-1);
  max-width: calc(var(--container) - var(--gutter));
  width: 100%;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; justify-content: center; }
.brand__name {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  /* CJK文字が混在フォントで上寄りに見えるのを防ぐため、和文フォントを先頭に＆行高を詰める */
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1;
}
.brand__sub { font-size: 10px; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.nav-links > a:not(.nav-cta):hover { color: var(--slate); }
.nav-links .nav-cta {
  border-radius: var(--r-btn); padding: 10px 22px; border: 1.5px solid transparent;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-links .nav-cta--recruit { background: var(--signal); color: var(--white); border-color: var(--signal); }
.nav-links .nav-cta--recruit:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: var(--white); }
.nav-links .nav-cta--contact { background: var(--white); color: var(--ink); border-color: var(--ink); }
.nav-links .nav-cta--contact:hover { background: var(--canvas); }
.nav-links .nav-cta + .nav-cta { margin-left: -12px; }
.nav-toggle {
  display: none; margin-left: auto; flex: none;
  width: 48px; height: 48px; border-radius: var(--r-btn);
  border: 1px solid var(--ink); background: transparent;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--canvas);
  display: none; flex-direction: column; justify-content: center;
  padding: var(--s-6);
}
.nav-open .nav-overlay { display: flex; }
.nav-open { overflow: hidden; }
.nav-overlay nav > a {
  display: block;
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  padding: var(--s-2) 0; border-bottom: 1px solid var(--taupe);
}
.nav-overlay__cta { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.nav-overlay-btn {
  display: block; text-align: center;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  padding: 18px 24px 16px; line-height: 1; border-radius: var(--r-btn); border: 1.5px solid transparent;
}
.nav-overlay-btn--recruit { background: var(--signal); color: var(--white); border-color: var(--signal); }
.nav-overlay-btn--contact { background: var(--white); color: var(--ink); border-color: var(--ink); }

/* ==========================================================================
   Hero — スタジアム・メディアフレーム
   ========================================================================== */
.hero { padding: 0; }
.hero__frame {
  position: relative; overflow: hidden;
  border-radius: 0;                 /* 全面画像：角丸なし */
  min-height: 90vh;
  display: flex; align-items: flex-end;
  background: var(--charcoal);
  max-width: none; margin: 0;       /* 余白なし・全幅 */
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  /* テキストのある左下を中心に暗色を重ねて可読性を確保（青みのあるダーク） */
  background:
    linear-gradient(to top, rgba(11,18,30,0.86) 0%, rgba(11,18,30,0.48) 34%, rgba(11,18,30,0.10) 64%, rgba(11,18,30,0) 100%),
    linear-gradient(to right, rgba(11,18,30,0.55) 0%, rgba(11,18,30,0.12) 46%, rgba(11,18,30,0) 72%);
}
.hero__content { position: relative; z-index: 2; padding: var(--s-8); color: #ffffff; max-width: 760px; text-shadow: 0 1px 12px rgba(11,18,30,0.35); }
.hero__content .eyebrow { color: #ffffff; }
.hero__title { color: #ffffff; font-size: 60px; line-height: 1.15; margin-bottom: var(--s-3); }
.hero__lead { font-size: 17px; line-height: 1.9; margin-bottom: var(--s-4); opacity: 0.96; }
.hero__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero__actions .btn--light { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.hero__actions .btn--light:hover { background: var(--white); }
.hero__actions .btn--outline-light { background: transparent; color: var(--canvas); border-color: rgba(243,240,238,0.7); }
.hero__actions .btn--outline-light:hover { border-color: var(--canvas); }

/* ページ共通ヒーロー（下層） */
.page-hero { padding: 176px 0 var(--s-8); position: relative; overflow: hidden; }
.page-hero .ghost-word { top: 104px; right: -2vw; }
.page-hero__title { font-size: 56px; line-height: 1.1; position: relative; z-index: 1; }
.page-hero__lead { margin-top: var(--s-3); font-size: 17px; line-height: 1.9; color: var(--slate); position: relative; z-index: 1; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section-head { margin-bottom: var(--s-8); position: relative; z-index: 1; }
.section-lead { color: var(--slate); line-height: 1.9; margin-top: var(--s-3); }

/* 理念 */
.philosophy { overflow: hidden; }
.philosophy .ghost-word { top: 40px; left: -1vw; }
.philosophy__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: center; position: relative; z-index: 1; }
.philosophy__copy p { line-height: 2.1; margin-bottom: 1.2em; }
.philosophy__copy strong { font-weight: 700; }

/* 円形ポートレート */
.portrait { position: relative; width: 100%; }
.portrait__circle {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-hero);
  overflow: hidden; box-shadow: var(--shadow-2);
}
.portrait__circle img { width: 100%; height: 100%; object-fit: cover; }
.portrait__meta { margin-top: var(--s-3); }
.portrait__meta .eyebrow { margin-bottom: var(--s-1); }
.portrait__title { font-size: 24px; }
.portrait__desc { margin-top: var(--s-1); color: var(--slate); line-height: 1.8; font-size: 15px; }

/* サービス（コンステレーション配置） */
.services { overflow: hidden; }
.services__arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.services__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8);
  max-width: 860px; margin: 0 auto;
}
.services__grid .portrait { max-width: 340px; }
.services__grid .portrait:nth-child(1) { justify-self: end; }
.services__grid .portrait:nth-child(2) { margin-top: var(--s-12); justify-self: start; }

/* 会社概要テーブル */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 18px 8px;
  border-bottom: 1px solid var(--taupe);
  font-size: 15px; vertical-align: top;
}
.spec-table th { width: 32%; font-weight: 700; color: var(--slate); white-space: nowrap; }
.spec-table td { font-weight: 450; line-height: 1.7; }

/* 会社概要 2カラム */
.company__grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s-8); align-items: start; }
.company__portrait { max-width: 420px; justify-self: center; }
.company__links { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }

/* 沿革 */
.history { border-left: 1px solid var(--taupe); padding-left: var(--s-4); display: grid; gap: var(--s-4); }
.history__item { position: relative; }
.history__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-4) - 4px); top: 8px;
  width: 7px; height: 7px; border-radius: 0; background: var(--signal);
}
.history__year { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.history__text { color: var(--slate); margin-top: 4px; line-height: 1.7; }

/* 採用ティーザー */
.recruit-teaser__inner {
  background: var(--lifted); border-radius: var(--r-hero);
  padding: var(--s-12) var(--s-8); text-align: center;
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.recruit-teaser__inner .ghost-word { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }
.recruit-teaser__inner > :not(.ghost-word) { position: relative; z-index: 1; }
.recruit-teaser__title { font-size: 40px; line-height: 1.3; margin-bottom: var(--s-3); }
.recruit-teaser__lead { color: var(--slate); line-height: 2; max-width: 560px; margin: 0 auto var(--s-6); }

/* スタッツ（ピル） */
.stat-pills { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-6); }
.stat-pill {
  background: var(--white); border-radius: var(--r-pill);
  padding: 14px 28px; box-shadow: var(--shadow-1);
  display: flex; align-items: baseline; gap: 8px;
}
.stat-pill__num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.stat-pill__label { font-size: 13px; color: var(--slate); font-weight: 500; }

/* アクセス */
.access__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.access__map {
  border-radius: var(--r-hero); overflow: hidden; box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3; background: var(--taupe);
}
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.tel-block { margin-top: var(--s-4); }
.tel-block__number { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tel-block__number a { color: inherit; }
.tel-block__note { color: var(--slate); font-size: 14px; margin-top: 6px; }

/* ==========================================================================
   Recruit page
   ========================================================================== */
/* 働く理由 */
.reasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.reason-card {
  background: var(--lifted); border-radius: var(--r-hero);
  padding: var(--s-4); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.reason-card__circle {
  width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-hero); overflow: hidden;
  margin: 0 auto var(--s-1); box-shadow: var(--shadow-1);
}
.reason-card__circle img { width: 100%; height: 100%; object-fit: cover; }
.reason-card h3 { font-size: 21px; }
.reason-card p { color: var(--slate); line-height: 1.9; font-size: 15px; }

/* 代表メッセージ */
.message { overflow: hidden; }
.message .ghost-word { bottom: 24px; right: -1vw; }
.message__grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-8); align-items: start; position: relative; z-index: 1; }
.message__portrait { max-width: 340px; position: sticky; top: 128px; }
.message__quote { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; margin-bottom: var(--s-4); }
.message__body p { line-height: 2.2; margin-bottom: 1.4em; }
.message__sign { margin-top: var(--s-4); }
.message__sign-name { font-size: 26px; font-weight: 700; letter-spacing: 0.06em; }
.message__sign-role { font-size: 13px; color: var(--slate); margin-top: 2px; }
.message__profile {
  margin-top: var(--s-4); background: var(--lifted);
  border-radius: var(--r-hero); padding: var(--s-4);
  font-size: 14px; color: var(--slate); line-height: 1.9;
}
.message__profile h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-1); }

/* 募集要項 */
.jobs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.job-card {
  background: var(--white); border-radius: var(--r-hero);
  padding: var(--s-6); box-shadow: var(--shadow-2);
}
.job-card__badge {
  display: inline-block; background: var(--canvas); border-radius: var(--r-pill);
  padding: 6px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.job-card h3 { font-size: 26px; margin-bottom: var(--s-2); }
.job-card__lead { color: var(--slate); line-height: 1.9; font-size: 15px; margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--taupe); }
.job-card .spec-table th { width: 30%; }
.job-card .btn { margin-top: var(--s-4); width: 100%; }
.jobs__note { margin-top: var(--s-4); color: var(--slate); font-size: 14px; line-height: 1.9; }

/* インタビュー */
.interviews { overflow: hidden; }
.interviews .ghost-word { top: 48px; left: -1vw; }
.interviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); position: relative; z-index: 1; }
.interview-card { display: flex; flex-direction: column; }
.interview-card__circle {
  position: relative; width: 200px; height: 200px; border-radius: var(--r-hero);
  margin: 0 auto var(--s-3);
  background: var(--ghost); box-shadow: var(--shadow-1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.interview-card__circle img { width: 100%; height: 100%; object-fit: cover; }
.interview-card__initial { font-size: 48px; font-weight: 500; letter-spacing: -0.02em; color: var(--slate); }
.interview-card__meta { text-align: center; margin-bottom: var(--s-2); }
.interview-card__name { font-size: 20px; font-weight: 700; }
.interview-card__role { font-size: 13px; color: var(--slate); margin-top: 2px; }
.interview-card__quote {
  background: var(--lifted); border-radius: var(--r-hero);
  padding: var(--s-4); flex: 1;
}
.interview-card__quote h3 { font-size: 18px; line-height: 1.5; margin-bottom: var(--s-2); }
.interview-card__quote p { font-size: 14px; color: var(--slate); line-height: 2; }

/* 応募の流れ */
.flow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: flow; }
.flow-step {
  background: var(--white); border-radius: var(--r-hero);
  padding: var(--s-4); box-shadow: var(--shadow-1);
  counter-increment: flow;
}
.flow-step::before {
  content: "0" counter(flow);
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--taupe); display: block; margin-bottom: var(--s-2);
}
.flow-step h3 { font-size: 18px; margin-bottom: var(--s-1); }
.flow-step p { font-size: 14px; color: var(--slate); line-height: 1.9; }

/* 応募CTA */
.apply-cta__inner {
  background: var(--ink); color: var(--canvas);
  border-radius: var(--r-hero); padding: var(--s-12) var(--s-8);
  text-align: center;
}
.apply-cta__inner h2 { color: var(--canvas); font-size: 40px; line-height: 1.3; margin-bottom: var(--s-2); }
.apply-cta__inner p { opacity: 0.75; line-height: 2; max-width: 560px; margin: 0 auto var(--s-4); }
.apply-cta__tel { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; display: inline-block; color: var(--canvas); line-height: 1.2; }
.apply-cta__note { font-size: 14px; opacity: 0.6; margin-top: var(--s-1); }

/* ==========================================================================
   汎用ページ（page.php / index.php）
   ========================================================================== */
.entry-content { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin: 1.8em 0 0.8em; }
.entry-content h2 { font-size: 30px; line-height: 1.4; }
.entry-content h3 { font-size: 22px; }
.entry-content p { line-height: 2.1; margin: 0 0 1.4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; line-height: 1.9; }
.entry-content img { box-shadow: var(--shadow-2); margin: var(--s-4) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
.entry-content table th, .entry-content table td {
  text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--taupe);
  font-size: 15px; line-height: 1.7;
}
.entry-content table th { color: var(--slate); font-weight: 700; white-space: nowrap; }
.entry-content .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.entry-content .wp-block-image img, .entry-content figure img { margin: 0; }
.entry-content figure { margin: var(--s-4) 0; }
.entry-content figcaption { font-size: 13px; color: var(--slate); margin-top: 8px; text-align: center; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
/* ギャラリー：角丸を全カード均一にする（figure側で丸め、画像はobject-fitで揃える） */
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin: var(--s-4) 0; }
/* モダンギャラリー（has-nested-images）：グリッドセル内で画像をセル幅いっぱいに */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
.entry-content .wp-block-gallery .blocks-gallery-grid { display: contents; margin: 0; padding: 0; }
.entry-content .wp-block-gallery figure.wp-block-gallery { display: grid; }
.entry-content .blocks-gallery-item { margin: 0; }
.entry-content .blocks-gallery-item figure { margin: 0; border-radius: var(--r-hero); overflow: hidden; box-shadow: var(--shadow-2); position: relative; }
.entry-content .blocks-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; margin: 0; }
.entry-content .blocks-gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  background: linear-gradient(0deg, rgba(20,20,19,0.72), rgba(20,20,19,0));
  color: var(--white); padding: 24px 16px 12px; font-size: 14px; font-weight: 700; text-align: left;
}

/* ==========================================================================
   Footer — インクブラック
   ========================================================================== */
.site-footer {
  background: var(--ink); color: var(--white);
  border-radius: var(--r-hero) var(--r-hero) 0 0;
  margin-top: var(--s-12);
  padding: var(--s-12) 0 var(--s-8);
}
.site-footer a { color: var(--white); }
.footer-head { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; color: var(--white); margin-bottom: var(--s-8); max-width: 640px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); margin-bottom: var(--s-8); }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-bottom: var(--s-2);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; font-weight: 450; opacity: 0.9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-col .footer-tel { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.footer-col p { font-size: 13px; opacity: 0.7; line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: var(--s-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  font-size: 13px; opacity: 0.7;
}

/* ==========================================================================
   Site index（トップ：下層ページ一覧）
   ========================================================================== */
.site-index__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.index-card {
  display: flex; flex-direction: column; gap: 4px; position: relative;
  background: var(--white); border-radius: var(--r-hero);
  padding: var(--s-4); box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.index-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.index-card__en {
  font-family: var(--font-latin);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--signal);
}
.index-card__ja { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.index-card__arrow {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 40px; height: 40px; border-radius: var(--r-btn);
  background: var(--canvas); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.index-card:hover .index-card__arrow { background: var(--signal); color: var(--white); }

/* ==========================================================================
   News（お知らせ：一覧・トップ抜粋・詳細）
   ========================================================================== */
.news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6);
}
.news-list { border-top: 1px solid var(--taupe); }
.news-item { border-bottom: 1px solid var(--taupe); }
.news-item__link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-1); transition: background 0.15s ease;
}
.news-item__link:hover { background: var(--lifted); }
.news-item__date {
  font-family: var(--font-latin);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--signal);
  white-space: nowrap;
}
.news-item__title { font-size: 17px; font-weight: 500; line-height: 1.6; }
.news-item__link:hover .news-item__title { color: var(--slate); }
.news-item__arrow {
  width: 32px; height: 32px; border-radius: var(--r-btn); flex: none;
  background: var(--canvas); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}
.news-item__link:hover .news-item__arrow { background: var(--signal); color: var(--white); }

/* 投稿詳細 */
.single__date {
  display: block; font-family: var(--font-latin);
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--signal);
  margin-bottom: var(--s-1); position: relative; z-index: 1;
}
.single__title { margin-top: 0; }
.single__back { max-width: 820px; margin: var(--s-8) auto 0; }

/* ==========================================================================
   Fleet page（保有車両）
   ========================================================================== */
.fleet-banner { padding: 0 var(--s-3) var(--s-8); }
.fleet-banner__frame {
  position: relative; overflow: hidden; border-radius: var(--r-hero);
  max-width: calc(var(--container) + 120px); margin: 0 auto;
  box-shadow: var(--shadow-2);
}
.fleet-banner__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 20 / 7; }
.fleet-banner__stat {
  position: absolute; left: var(--s-6); bottom: var(--s-6);
  background: var(--white); border-radius: var(--r-pill);
  padding: 16px 32px; box-shadow: var(--shadow-1);
  display: flex; align-items: baseline; gap: 10px;
}
.fleet-banner__num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.fleet-banner__num span { font-size: 18px; margin-left: 2px; }
.fleet-banner__label { font-size: 14px; color: var(--slate); font-weight: 500; }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.fleet-card {
  background: var(--white); border-radius: var(--r-hero); overflow: hidden;
  box-shadow: var(--shadow-1); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fleet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.fleet-card__media { position: relative; overflow: hidden; }
.fleet-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fleet-card__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--ink); color: var(--canvas);
  border-radius: var(--r-pill); padding: 6px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.fleet-card__body { padding: var(--s-3) var(--s-4) var(--s-4); }
.fleet-card__type { font-size: 20px; }

/* ==========================================================================
   Group page（グループ会社について）
   ========================================================================== */
.group-logos {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
  margin-top: var(--s-8);
}
.group-logo-card {
  background: var(--lifted); border-radius: var(--r-hero);
  padding: var(--s-8) var(--s-6); text-align: center; box-shadow: var(--shadow-1);
}
.group-logo-card__logo {
  height: 96px; display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.group-logo-card__logo img { max-height: 96px; width: auto; box-shadow: none; border-radius: 0; }
.group-logo-card__name { font-size: 22px; margin-bottom: var(--s-1); }
.group-logo-card__desc { font-size: 14px; color: var(--slate); line-height: 1.9; }
.group-logo-plus { font-size: 40px; font-weight: 300; color: var(--taupe); text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  h1, .hero__title { font-size: 48px; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .site-index__grid { grid-template-columns: repeat(2, 1fr); }
  .group-logos { grid-template-columns: 1fr; }
  .group-logo-plus { transform: rotate(90deg); }
  .page-hero__title { font-size: 42px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .portrait:nth-child(n) { margin-top: 0; justify-self: center; }
  .services__arc { display: none; }
  .reasons__grid, .interviews__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__grid { grid-template-columns: repeat(2, 1fr); }
  .jobs__grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 767px) {
  :root { --gutter: 4%; }
  .section { padding: var(--s-6) 0; }
  h1, .hero__title { font-size: 36px; }
  h2 { font-size: 28px; line-height: 1.35; }
  /* SP：ヘッダーを少し上に、高さを抑える */
  .site-header { top: 10px; }
  .nav-pill { padding: 7px 8px 7px 16px; gap: var(--s-2); }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { font-size: 16px; }
  .nav-toggle { width: 42px; height: 42px; }
  .nav-toggle span { left: 12px; right: 12px; }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 20px; }
  .nav-toggle span:nth-child(3) { top: 25px; }
  .page-hero { padding: 112px 0 var(--s-6); }
  .page-hero__title { font-size: 34px; }
  .hero { padding-top: 0; }
  .hero__frame { min-height: 88vh; }
  .hero__content { padding: 4%; padding-bottom: var(--s-6); }
  .hero__lead { font-size: 14px; }
  .philosophy__grid, .company__grid, .access__grid, .message__grid { grid-template-columns: 1fr; }
  .company__portrait, .message__portrait { position: static; margin: 0 auto; }
  .services__grid, .reasons__grid, .interviews__grid, .flow__grid { grid-template-columns: 1fr; }
  .services__grid .portrait { max-width: 260px; }
  .recruit-teaser__title { font-size: 28px; }
  .recruit-teaser__inner { padding: var(--s-8) var(--s-3); }
  .apply-cta__inner { padding: var(--s-8) var(--s-3); }
  .apply-cta__inner h2 { font-size: 28px; }
  .apply-cta__tel { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-head { font-size: 26px; }
  .tel-block__number { font-size: 34px; }
  .spec-table th { width: 38%; }
  .message__quote { font-size: 22px; }
  /* 募集要項カードのSP最適化：余白を詰め、ラベル→値を縦積みにして値を全幅に */
  .job-card { padding: var(--s-4) var(--s-3); }
  .job-card h3 { font-size: 21px; }
  .job-card .spec-table th,
  .job-card .spec-table td { display: block; width: auto; padding-left: 0; padding-right: 0; }
  .job-card .spec-table th { border-bottom: none; padding: 16px 0 2px; }
  .job-card .spec-table tr:first-child th { padding-top: 0; }
  .job-card .spec-table td { padding: 0 0 16px; line-height: 1.8; }
  .fleet-grid { grid-template-columns: 1fr; }
  .site-index__grid { grid-template-columns: 1fr; }
  .fleet-banner__frame img { aspect-ratio: 3 / 2; }
  .fleet-banner__stat { left: var(--s-3); bottom: var(--s-3); padding: 12px 22px; }
  .fleet-banner__num { font-size: 30px; }
  .entry-content .wp-block-gallery { grid-template-columns: 1fr; }
  .br-sp { display: inline; }
  .news-item__link { grid-template-columns: 1fr auto; row-gap: 4px; }
  .news-item__date { grid-column: 1 / -1; }
}
