/* assets/css/recruit.css
   採用情報ページ モバイルファーストスタイル（修正版）
   - 金額の改行を防止
   - フォーカス時の色を無効化（ページ内で上書き）
*/

/* ---------------------------
   ベース（モバイル優先）
   --------------------------- */
.recruit-message{
  text-align: center;
  margin-bottom: 30px;
}
/* セクション内余白（layout の .section__inner と整合） */
.section-recruit-overview .section__inner,
.section-recruit-faq .section__inner {
  padding-top: 20px;
  padding-bottom: 28px;
}

/* 採用テーブル（モバイル：スタック表示） */
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 8px;
  font-size: 1rem;
  color: var(--color-ink);
  box-shadow: none;
}
.recruit-table th,
.recruit-table td {
  display: block;
  width: 100%;
  padding: 12px 12px;
  border-top: none;
  /* 不要な単語分割を抑える（日本語混在でも崩れにくくする） */
  word-break: break-word;
  overflow-wrap: normal;
}
.recruit-table th {
  font-weight: 700;
  color: var(--color-ink);
  background: transparent;
  padding-bottom: 6px;
  text-align: left;
}
.recruit-table td {
  color: var(--color-ink);
  line-height: 1.7;
  padding-bottom: 18px;
  border-top: 1px solid var(--color-divider, #eee);
}

/* 内部リストの調整 */
.recruit-table ul {
  margin: 0;
  padding-left: 0em;
}
.recruit-table li {
  margin-bottom: 6px;
}

/* 給与表（モバイル） */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.98rem;
}
.salary-table td {
  padding: 8px 10px;
  border: 1px solid var(--color-divider, #eee);
  background: #fafafa;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: normal;
}
.salary-table td + td {
  text-align: right;
}
/* 小見出し・備考 */
.recruit-table .note {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.95rem;
}



/* reduced motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .recruit-table tr:hover td { transition: none; }
}

/* ---------------------------
   タブレット以上（拡張）
   --------------------------- */
@media (min-width: 601px) {
  /* テーブル形式に戻す */
  .recruit-table th,
  .recruit-table td {
    display: table-cell;
    padding: 16px 18px;
    border-top: 1px solid var(--color-divider, #eee);
    vertical-align: top; /* ここで有効 */
  }
  .recruit-table th {
    width: 30%;
    white-space: nowrap;
    padding-right: 24px;
  }
  .recruit-table td {
    padding-left: 0;
  }

  /* 給与表の見た目調整 */
  .salary-table td {
    padding: 8px 12px;
  }
  .salary-table tr:nth-child(odd) td {
    background: #fbfbfb;
  }
}

/* ---------------------------
   デスクトップ（さらに拡張）
   --------------------------- */
@media (min-width: 1024px) {
  .section-recruit-overview .section__inner,
  .section-recruit-faq .section__inner {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .recruit-table th {
    padding: 18px 20px;
  }
  .recruit-table td {
    padding: 18px 20px;
  }
}

/* ---------------------------
   補助ユーティリティ（採用ページ専用）
   --------------------------- */
.recruit-contact {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--color-divider, #eee);
  background: #fff;
  border-radius: var(--radius, 6px);
}
.recruit-contact p {
  margin: 0 0 6px;
}

/* ---------------------------
   採用の流れ（フローチャート風）
   --------------------------- */

/* 基本レイアウト（モバイルファースト） */
.section-recruit-flow .recruit-flow {
  margin-top: 12px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 各ステップを左にマーカー、右に本文で横並びにする */
.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* マーカー領域（疑似要素で丸と縦線を描画） */
.flow-item__marker {
  position: relative;
  width: 40px;            /* 丸の外枠幅（必要に応じて調整） */
  min-width: 40px;
  height: 40px;           /* 丸の高さ */
  flex: 0 0 40px;
  display: block;
}

/* 丸（::before） */
.flow-item__marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent, #0078d4);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) inset;
  border: 2px solid rgba(255,255,255,0.12);
  z-index: 1;
}

/* 丸の中の数字（HTMLの .flow-item__number を中央に配置） */
.flow-item__number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  /* 数字が長くならないように中央に収める */
  text-align: center;
  width: 100%;
}

/* 丸の下の縦線（::after） */
.flow-item__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(40px + 6px); /* 丸の下から少し間隔を空ける */
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 40px - 6px); /* 親要素の高さに応じて伸びる */
  background: var(--color-divider, #e6e6e6);
  z-index: 0;
}

/* 最後の項目は線を表示しない */
.flow-list > .flow-item:last-child .flow-item__marker::after {
  display: none;
}

/* コンテンツ側 */
.flow-item__content {
  flex: 1 1 auto;
  min-width: 0; /* テキストの折返しを正しく動作させるため */
}

.flow-item__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink, #0b2540);
}

.flow-item__desc {
  margin: 0;
  color: var(--color-muted, #666);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* 内部の箇条書きがある場合の余白調整 */
.flow-item__desc ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
}

/* タブレット以上：マーカーを大きく、余白を広げる */
@media (min-width: 601px) {
  .flow-item {
    gap: 18px;
  }
  .flow-item__marker {
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  .flow-item__marker::before {
    width: 40px;
    height: 40px;
  }
  .flow-item__marker::after {
    top: calc(40px + 8px);
    height: calc(100% - 40px - 8px);
    width: 2px;
  }
  .flow-item__number {
    font-size: 1.05rem;
  }
  .flow-item__title {
    font-size: 1.1rem;
  }
}

/* デスクトップ：さらに余裕を持たせる */
@media (min-width: 1024px) {
  .flow-list {
    gap: 24px;
  }
  .flow-item__marker {
    width: 48px;
    min-width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  .flow-item__marker::before {
    width: 48px;
    height: 48px;
  }
  .flow-item__marker::after {
    top: calc(48px + 10px);
    height: calc(100% - 48px - 10px);
    width: 2px;
  }
  .flow-item__number {
    font-size: 1.15rem;
  }
  .flow-item__title {
    font-size: 1.2rem;
  }
}

/* 色のカスタマイズ用変数（必要なら上書きしてください） */
:root {
  --recruit-marker-bg: var(--color-accent, #0078d4);
  --recruit-marker-color: #fff;
  --recruit-line-color: var(--color-divider, #e6e6e6);
}

/* 変数を使うように調整（将来的な上書きに対応） */
.flow-item__marker::before { background: var(--recruit-marker-bg); }
.flow-item__marker::after  { background: var(--recruit-line-color); }
.flow-item__number         { color: var(--recruit-marker-color); }

.mynavi-link { text-align: center; margin-top: 16px; }
.mynavi-link img { vertical-align: middle;  }


.kpi-button--wm-subtle::before { color: rgba(0,0,0,0.04); }/* KPI Buttons Block - モバイルファースト */
.kpi-buttons {
  width: 100%;
  padding: 24px 0;
  background: transparent;
  box-sizing: border-box;
}

/* 内側ラッパー（モバイル：縦積み） */
.kpi-buttons__inner {
  max-width: var(--max-width, 1100px);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  box-sizing: border-box;
}

/* ボタン共通（モバイル基準） */
.kpi-button {
  position: relative; /* 疑似要素の基準 */
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-accent);
  background: #ffffff;
  border: 1px solid rgba(104, 104, 104, 0.766);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(3,59,120,0.04);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
  width: 100%;
  height: 100px;
  box-sizing: border-box;
  z-index: 0;
}

/* ラベルは前面に出す */
.kpi-button__label {
  display: inline-block;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ホバーとフォーカス（タッチ端末でもフォーカス対応） */
.kpi-button:hover,
.kpi-button:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(3,59,120,0.08);
  outline: none;
  text-decoration: none;
}

/* アクセシビリティ補助 */
.kpi-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(3,59,120,0.12);
}

/* ウォーターマーク（疑似要素） - モバイル基準は小さめ */
.kpi-button::before {
  content: attr(data-watermark);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  font-weight: 700;
  color: rgba(0,0,0,0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: .06em;
  text-transform: none;
}

/* 色のバリエーションユーティリティ */
.kpi-button--accent {
  background: var(--accent, #0077cc);
  color: #fff;
  border-color: transparent;
}

/* ウォーターマーク強弱ユーティリティ */
.kpi-button--wm-strong::before { color: rgba(0,0,0,0.10); }
.kpi-button--wm-subtle::before { color: rgba(0,0,0,0.04); }

/* デスクトップ以上（横並び・横長ボタン） */
@media (min-width: 881px) {
  .kpi-buttons__inner {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
  }

  .kpi-button {
    width: auto;
    min-width: 320px; /* 横長の長方形 */
    padding: 18px 28px;
    font-size: 18px;
    border-radius: 14px;
    height: 100px;
  }

  /* ウォーターマークをデスクトップ向けに大きく薄く */
  .kpi-button::before {
    font-size: 48px;
    color: rgba(0,0,0,0.05);
    transform: translate(-50%, -50%);
  }
}