@charset "utf-8";
/*
 * recruit_base.css
 * 採用ページ共通スタイル（従来 recruit.css と同一内容から開始）
 * 採用HTMLのみで読み込み、他ページには影響しません。
 */

body:not(.page-recruit-officeclerk) .kv {
	background: url(../img/recruit.header.png) no-repeat center center;
	background-size: 1300px auto;
	background-attachment: scroll;
}
.recruit-list {
	border: 1px solid #ccc;
	padding: 20px;
}
.recruit-list li {
	margin: 10px 0;
}
.text-box {
	margin: 40px 0 20px;
}
@media screen and (max-width:767px) {
	body:not(.page-recruit-officeclerk) .kv {
		background-image: url(../img/recruit.header.sp.png);
		background-size: 100% auto;
		background-attachment: inherit;
	}
}
/* ▼スマホ〜タブレット(〜767px)：通常の縦並び。画像は枠内で100%まで */
.img-right {
  float: none;
  display: block;
  margin: 10px auto;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ▼PC(768px〜)：本文右に回り込ませ、横幅の上限をきっちり指定 */
@media (min-width: 768px) {
  .img-right {
    float: right;
    display: block;
    margin: 0 0 10px 24px;   /* 左に余白 */
    width: auto !important;
    max-width: 320px !important;  /* ←ここでサイズを固定上限に */
    height: auto !important;
  }
}
/* ─────────────────────────────────────────
   #skill01 内の「3ブロック」だけ、本文幅を100%に強制
   ※ HTMLは変更不要（前回の1カラム化のままでOK）
   ───────────────────────────────────────── */
@media (min-width: 768px) {
  /* 内側 .text-box.row 自体にもし上限制御があれば解除 */
  #skill01 .text-box > .text-box.row {
    width: 100% !important;
    max-width: none !important;
  }

  /* カラムを確実に100%に（他CSSの上書き対策） */
  #skill01 .text-box > .text-box.row > .col-sm-12 {
    width: 100% !important;
    float: none !important;
  }

  /* さらに内側に max-width 等が入っていても解除（見出しやdivラッパの保険） */
  #skill01 .text-box > .text-box.row > .col-sm-12 > * {
    max-width: none !important;
  }
}
/* スマホだけ：画像を本文の「下」に移動＆余白を確保（PCは影響なし） */
@media (max-width: 767px) {
  /* 3ブロック（#skill01 内）の col-sm-12 を縦並びのフレックス化 */
  #skill01 .text-box > .row > .col-sm-12 {
    display: flex;
    flex-direction: column;
  }

  /* 見出し・本文（<h5> と その直下の <div>）を先に表示 */
  #skill01 .text-box > .row > .col-sm-12 > h5,
  #skill01 .text-box > .row > .col-sm-12 > div,
  #skill01 .text-box > .row > .col-sm-12 > br {
    order: 1;
  }

  /* 画像を後ろ（下）に回す＋下マージンをしっかり付与 */
  #skill01 .text-box > .row > .col-sm-12 > img.img-right,
  #skill01 .text-box > .row > .col-sm-12 > video.img-right {
    order: 2;
    float: none !important;         /* 念のためフロート解除（モバイル） */
    margin: 12px 0 24px 0 !important; /* 下に24px余白（必要に応じて数値調整） */
  }
}
/* Member（代表紹介）
   PC…写真をもう一回り大きく（col 3）＆文章との隙間を軽く縮める
   SP…写真をセンター寄せ。会社名＆役職名だけ“左揃えのまま”塊を中央配置
*/

/* PC */
@media (min-width: 768px) {
  .member.row .col-sm-3 { padding-right: 8px; }  /* 既定15px→8pxで隙間を詰める */
  .member.row .col-sm-9 { padding-left: 8px; }

  .member.row .col-sm-3 img.member-photo {
    width: 100% !important;   /* カラム幅いっぱい＝一回り大きく */
    height: auto;
    display: block;
    margin: 0;                 /* 左端に揃える */
  }
}

/* スマホ */
@media (max-width: 767px) {
  /* 写真は中央寄せ＋下に少し余白、見やすいサイズに */
  .member.row .col-sm-3 img.member-photo {
    display: block;
    margin: 0 auto 12px auto;  /* 中央寄せ */
    width: 70% !important;     /* お好みで 65〜80% に調整OK */
    height: auto;
  }

  /* 会社名・役職名の“ブロック”を中央配置（中の文字は左揃えのまま） */
  .member.row .col-sm-9 { text-align: center; }          /* 子要素を中央寄せ基準に */
  .member.row .col-sm-9 p { text-align: left; }          /* 文字は左揃えに戻す */
  .member.row .col-sm-9 p.position,
  .member.row .col-sm-9 p.name {
    display: inline-block;       /* ブロックを中央に */
    margin: 0 auto 6px auto;     /* 下に少し余白 */
  }
}

/* PC：画像を右に寄せ、各ブロック末尾でclearfixして次のブロックが横に回り込むのを防ぐ */
@media (min-width: 768px) {
  #skill01 .text-box img.img-right,
  #skill01 .text-box video.img-right {
    float: right;
    margin: 0 0 16px 24px;   /* 下/左の余白（調整可：16〜32pxなど） */
    max-width: 320px;        /* 画像の上限幅（280〜360pxで調整可） */
    height: auto;
  }
}
/* 各 .col-sm-12 がフロートを内包（これが“ズレ防止”の肝） */
#skill01 .text-box .row .col-sm-12::after {
  content: "";
  display: block;
  clear: both;
}

/* スマホ：縦並び&中央寄せ（PC指定のfloatを無効化） */
@media (max-width: 767px) {
  #skill01 .text-box img.img-right,
  #skill01 .text-box video.img-right {
    float: none !important;
    display: block;
    margin: 12px auto 24px;
    max-width: 100%;
    height: auto;
  }
}
/* PC：右画像の“ぶんの幅”を最後まで確保して、本文が画像の下で広がらないようにする */
@media (min-width: 768px) {
  /* 画像は右寄せ（お好みで幅と間隔を調整） */
  #skill01 .text-box .row .col-sm-12 img.img-right,
  #skill01 .text-box .row .col-sm-12 video.img-right {
    float: right;
    max-width: 320px;        /* 画像の上限幅：280〜360pxで調整可 */
    height: auto;
    margin: 0 0 16px 24px;   /* 左に24px（本文との間隔） */
  }

  /* ★ポイント：画像の後続要素すべてに右パディングを与え、画像幅ぶんの帯を確保 */
  #skill01 .text-box .row .col-sm-12 img.img-right ~ *,
  #skill01 .text-box .row .col-sm-12 video.img-right ~ * {
    padding-right: calc(320px + 24px);  /* 画像幅 + 左マージンと同じ値 */
  }

  /* ブロック末尾でclearfix（次の塊が横に回り込むのを防止） */
  #skill01 .text-box .row .col-sm-12::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* スマホ：縦並びに戻す（右パディングもリセット） */
@media (max-width: 767px) {
  #skill01 .text-box .row .col-sm-12 img.img-right,
  #skill01 .text-box .row .col-sm-12 video.img-right {
    float: none !important;
    display: block;
    margin: 12px auto 24px;
    max-width: 100%;
    height: auto;
  }
  #skill01 .text-box .row .col-sm-12 img.img-right ~ *,
  #skill01 .text-box .row .col-sm-12 video.img-right ~ * {
    padding-right: 0;  /* リセット */
  }
}

/* ▼ skill02 の2つの見出しを、上段h5と同じスタイルに“強制” */
#skill02 .read-box > h5,
#skill02 .text-box > h5,
#skill02 h5 {
  font-size: 16px !important;
  font-weight: 700 !important;   /* = bold */
  line-height: 1.6 !important;
  letter-spacing: 0.02em;        /* 任意：少し広め。不要なら消してOK */
  margin: 0 0 12px !important;   /* 下の余白 */
  color: #000 !important;        /* 上段と同じ色に */
}
/* ========================================
   行間統一設定（最終版）
   ======================================== */

/* 全ての段落を統一 */
.container .box p,
.box-contents p,
.skill-box p {
    line-height: 1.6 !important;
    letter-spacing: 0.02em !important;
    margin: 0 0 16px !important;
}

/* 見出しの統一 */
.container .box h5,
.box-contents h5 {
    line-height: 1.6 !important;
    margin: 0 0 16px !important;
}

/* 代表紹介エリア（Member）を統一 */
.member.row .col-sm-9 p {
    line-height: 1.6 !important;
    margin: 0 0 16px !important;
}
.recruit-list {
	border: 1px solid #ccc;
	padding: 20px;
	margin-top: 6px;  /* 上の余白を狭く（デフォルトより小さく） */
}
/* read-box 内の段落も統一 */
.read-box p,
.read-text {
    line-height: 1.6 !important;
    letter-spacing: 0.02em !important;
    margin: 0 0 16px !important;
}
/* ───────── 採用条件テーブル：本文スタイル継承版（置き換え用） ───────── */

/* ボックス（見出しは外に出す前提） */
.job-terms {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 12px 4px;
  margin: 8px 0 24px;
  background: #fff;
}

/* テーブルの基本レイアウト（文字サイズは一切指定せず＝本文を継承） */
.terms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.terms-table th,
.terms-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-word;
  line-height: 1.8;   /* 読みやすさだけ調整（サイズは継承） */
}

.terms-table th {
  width: 12rem;       /* PC時の見出し列幅 */
  background: #f8f8f8;
  font-weight: 700;   /* 見出しは太字だけ指定 */
}

/* 最終行の下線を少し薄く */
.terms-table tr:last-child th,
.terms-table tr:last-child td {
  border-bottom-color: #f2f2f2.
}

/* --- スマホ（～767px）：縦積み表示（サイズ指定なしで継承） --- */
@media (max-width: 767px) {
  .terms-table,
  .terms-table tbody,
  .terms-table tr,
  .terms-table th,
  .terms-table td {
    display: block;
    width: 100%;
  }
  .terms-table tr {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .terms-table th {
    background: transparent;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .terms-table td {
    padding-top: 0;
  }
}
