/* ============================================================
   saiyou.css
   ------------------------------------------------------------
   求人情報ページ（saiyou.html）専用CSS
   ============================================================ */

@import url(common.css);

/* ============================================================
   メイン
============================================================ */

/* メイン部分の上側の余白を設定しています。ヘッダーとの位置関係に影響します。 */
main {
  padding-top: 0;
}

/* ============================================================
   メインビジュアル
============================================================ */

/* ページ最上部の大きな写真（メインビジュアル）の大きさを設定しています。 */
.main-visual {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* メインビジュアルに使っている写真を、決められた枠いっぱいに表示します。 */
.main-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   求人ページ全体
============================================================ */

/* 求人ページの本文全体を囲む部分です。横幅と上下左右の余白をここで調整します。 */
.service {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
}

/* ============================================================
   ページ大見出し
   ------------------------------------------------------------
   「求人情報」
============================================================ */

/* ページの一番大きな見出し「求人情報」の文字の大きさ・色・位置を設定しています。 */
.service > h2 {
  position: relative;
  margin: 0 0 75px;
  text-align: center;
  color: #333;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* ============================================================
   英字タイトル
============================================================ */

/* 「求人情報」の上に表示する英字「RECRUIT」を設定しています。HTMLには直接書かれていません。 */
.service > h2::before {
  content: "RECRUIT";
  display: block;
  margin-bottom: 10px;
  color: #eaa317;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* ============================================================
   大見出しのオレンジライン
============================================================ */

/* 「求人情報」の下に表示する短いオレンジ色の線を設定しています。 */
.service > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 20px auto 0;
  background: #eaa317;
  border-radius: 10px;
}

/* ============================================================
   求人ページ導入
============================================================ */

/* 「私たちと一緒に働きませんか？」の紹介エリア全体です。背景色や余白を設定しています。 */
.recruit-introduction {
  margin-bottom: 80px;
  padding: 55px 30px;
  box-sizing: border-box;
  background: #fffaf2;
  border-radius: 20px;
  text-align: center;
}

/* 「私たちと一緒に働きませんか？」の見出し部分です。 */
.recruit-introduction h3 {
  margin: 0 0 25px;
  color: #333;
  font-size: 30px;
  line-height: 1.5;
}

/* 求人ページの導入説明文です。文字色と行間を設定しています。 */
.recruit-introduction p {
  margin: 0;
  color: #555;
  line-height: 2;
}

/* ============================================================
   事業所リスト
============================================================ */

/* 「事業所から探す」の一覧全体です。背景・枠・角の丸みなどを設定しています。 */
.office-list {
  max-width: 1000px;
  margin: 0 auto 90px;
  padding: 45px 40px;
  box-sizing: border-box;
  background: #fffaf2;
  border: 1px solid #f1d8a8;
  border-radius: 20px;
}

/* 「事業所から探す」の見出しです。 */
.office-list > h3 {
  margin: 0 0 12px;
  color: #333;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* 事業所一覧の上に表示する説明文です。 */
.office-list-intro {
  margin: 0 0 30px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

/* 事業所のボタンを並べる部分です。PCでは2列に並びます。 */
.office-list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* 1つの事業所ボタンです。背景・枠・文字・余白などを設定しています。 */
.office-list-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 18px 55px 18px 25px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 12px;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(80, 60, 40, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* 事業所名が入る文字部分の表示幅を設定しています。 */
.office-list-name {
  display: block;
  width: 100%;
}

/* スマートフォンだけで表示したい内容に使うクラスです。PCでは表示しません。 */
.sp-only {
  display: none;
}

/* 事業所ボタンの右側に表示する矢印の位置と見た目を設定しています。 */
.office-arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: #eaa317;
  font-size: 18px;
  line-height: 1;
  transition: right 0.3s ease;
}

/* PCで事業所ボタンにマウスを重ねたときの変化を設定しています。 */
.office-list-item:hover {
  transform: translateY(-3px);
  border-color: #eaa317;
  box-shadow: 0 10px 25px rgba(80, 60, 40, 0.09);
}

/* PCで事業所ボタンにマウスを重ねたとき、右側の矢印を少し動かします。 */
.office-list-item:hover .office-arrow {
  right: 17px;
}

/* ============================================================
   主な業務内容
   ------------------------------------------------------------
   ・オレンジ下線なし
   ・左側にオレンジの縦線
============================================================ */

/* 「主な業務内容」の1つのまとまりを設定しています。 */
.job-section {
  margin-bottom: 90px;
}

/* 「主な業務内容」の見出しです。左側のオレンジ色の縦線もここで設定しています。 */
.job-section > h3 {
  position: relative;
  margin: 0 0 40px;
  padding-left: 15px;
  border-left: 5px solid #eaa317;

  color: #333;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: left;
}

/* 共通CSSなどで見出しに線が付く場合、このページでは線を表示しない設定です。 */
.job-section > h3::after {
  display: none;
}

/* 求人情報のカードを縦方向に並べる部分です。カード同士の間隔も設定しています。 */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 1つの求人情報を表示するカードです。左側のオレンジ線が特徴です。 */
.job-item {
  padding: 30px 35px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 6px solid #eaa317;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* PCで求人カードにマウスを重ねたとき、少し浮き上がるようにします。 */
.job-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 求人カードの中身を配置するための土台です。 */
.job-content {
  position: relative;
}

/* 「職種名」など、各求人カードのタイトル部分です。 */
.job-item h4 {
  margin: 0 0 18px;
  color: #333;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

/* ============================================================
   求人タイトル内の共通設定
============================================================ */

/* 求人タイトルの中にある補足文字の共通設定です。 */
.job-item h4 span {
  display: inline-block;
  margin-left: 8px;
  color: #eaa317;
  font-size: 18px;
}

/* ============================================================
   ケアマネジャーのタイトル専用設定
============================================================ */

/* ケアマネジャーのタイトル表示を、PCとスマートフォンで調整するための設定です。 */
.job-item h4 .sp-job-break,
.job-item h4 .pc-job-space,
.job-item h4 .job-title-second {
  color: #333;
}

/* ============================================================
   PC表示
============================================================ */

/* PC表示では、ケアマネジャーのタイトルを通常の文章として表示します。 */
.sp-job-break {
  display: inline;
}

/* PC表示でタイトル内に入れる空白の表示を設定しています。 */
.pc-job-space {
  display: inline;
}

/* 求人タイトルの2つ目の文字部分です。PCでは同じ行に表示します。 */
.job-title-second {
  display: inline;
}

/* ============================================================
   求人説明
============================================================ */

/* 求人の詳しい仕事内容を表示する文章部分です。 */
.job-description {
  width: 100%;
  max-width: 850px;
  margin: 0 0 25px;
  box-sizing: border-box;
  color: #555;
  line-height: 1.9;
}

/* 求人説明の最初にある導入文です。 */
.job-description .job-lead {
  margin: 0 0 12px;
  padding: 0;
  color: #555;
  line-height: 1.9;
}

/* 求人説明の通常の段落です。段落同士の間隔を設定しています。 */
.job-description > p {
  margin: 0 0 18px;
  padding: 0;
}

/* 求人説明の箇条書き全体です。左側に余白を作っています。 */
.job-description ul {
  margin: 0 0 25px;
  padding-left: 1.5em;
  box-sizing: border-box;
}

/* 求人説明の箇条書き1項目です。 */
.job-description li {
  margin-bottom: 8px;
  padding: 0;
  color: #555;
  line-height: 1.8;
}

/* 箇条書きの最後だけ、下側の余白をなくしています。 */
.job-description li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   求人詳細ボタン
============================================================ */

/* 各求人の「詳しい求人情報」ボタンです。 */
.job-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 25px;
  margin-left: auto;
  padding: 12px 25px;
  background: #eaa317;
  border-radius: 999px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* 求人詳細ボタンの中にある矢印などの補足文字を設定しています。 */
.job-link span {
  margin-left: 10px;
  font-size: 18px;
}

/* PCで求人詳細ボタンにマウスを重ねたときの変化です。 */
.job-link:hover {
  background: #d58f08;
  transform: translateY(-2px);
}

/* ============================================================
   求人サイト案内
============================================================ */

/* 外部の求人サイトを案内するエリア全体です。 */
.external-recruit {
  margin-bottom: 80px;
  padding: 50px 30px;
  box-sizing: border-box;
  background: #fdf4e3;
  border-radius: 20px;
  text-align: center;
}

/* 外部求人サイト案内の見出しです。 */
.external-recruit h3 {
  margin: 0 0 20px;
  color: #333;
  font-size: 26px;
  line-height: 1.5;
}

/* 外部求人サイト案内の説明文です。 */
.external-recruit p {
  margin: 8px 0;
  color: #555;
  line-height: 1.9;
}

/* ============================================================
   仲間の声
============================================================ */

/* 「仲間の声」など、求人についてのメッセージを表示するエリアです。 */
.recruit-message {
  margin-bottom: 70px;
  padding: 60px 30px;
  box-sizing: border-box;
  background: #fffaf2;
  border-radius: 20px;
  text-align: center;
}

/* 求人メッセージエリアの見出しです。 */
.recruit-message h3 {
  margin: 0 0 20px;
  color: #333;
  font-size: 28px;
  line-height: 1.5;
}

/* 求人メッセージエリアの説明文です。 */
.recruit-message p {
  margin-bottom: 30px;
  color: #555;
  line-height: 1.9;
}

/* ============================================================
   詳細ボタン
============================================================ */

/* 「詳しく見る」などの詳細ページへ移動するボタンです。 */
.detail-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #eaa317;
  border-radius: 999px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* PCで詳細ボタンにマウスを重ねたときの変化です。 */
.detail-btn:hover {
  background: #d58f08;
  transform: translateY(-2px);
}

/* ============================================================
   お問い合わせ
============================================================ */

/* 求人について問い合わせるための案内エリア全体です。 */
.recruit-contact {
  padding: 60px 30px;
  box-sizing: border-box;
  background: #fdf4e3;
  border-radius: 20px;
  text-align: center;
}

/* 求人問い合わせエリアの見出しです。 */
.recruit-contact h3 {
  margin: 0 0 20px;
  color: #333;
  font-size: 28px;
  line-height: 1.5;
}

/* 求人問い合わせエリアの説明文です。 */
.recruit-contact p {
  margin-bottom: 30px;
  color: #555;
  line-height: 1.9;
}

/* 求人問い合わせページへ移動するボタンです。 */
.recruit-contact-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #eaa317;
  border-radius: 999px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* PCで問い合わせボタンにマウスを重ねたときの変化です。 */
.recruit-contact-btn:hover {
  background: #d58f08;
  transform: translateY(-3px);
}

/* ============================================================
   求人の特徴
============================================================ */

/* 「未経験OK」など、求人の特徴を小さなタグのように並べる部分です。 */
.job-features {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 10px 0 15px;
  padding: 0;
  list-style: none;
}

/* 求人の特徴を1つ表示するタグです。 */
.job-features li {
  display: flex;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 0 18px;
  box-sizing: border-box;
  background: #fff8ed;
  border: 1px solid #f1d8a8;
  border-radius: 8px;
  color: #555;
  font-weight: bold;
  line-height: 1.5;
}

/* リスト項目の先頭に自動で付く記号を表示しない設定です。 */
.job-features li::marker {
  content: "";
}

/* ============================================================
   小見出し
============================================================ */

/* 求人説明の中にある小見出しです。左側のオレンジ線で区切っています。 */
.job-description .midasi {
  margin: 30px 0 12px;
  padding: 10px 15px;
  box-sizing: border-box;
  background: #fff8ed;
  border-left: 5px solid #eaa317;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
}

/* 求人説明の一番最初の小見出しだけ、上側の余白をなくします。 */
.job-description .midasi:first-child {
  margin-top: 0;
}

/* ============================================================
   スマートフォン表示
============================================================ */

/* ここから下は、画面幅が768px以下のスマートフォン・小さな画面専用の設定です。 */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  main {
    width: 100%;
  }

  /* ==========================================================
     メインビジュアル
  ========================================================== */

  .main-visual {
    width: 100%;
    height: 300px;
  }

  .main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ==========================================================
     求人情報全体
  ========================================================== */

  .service {
    width: 100%;
    padding: 55px 15px;
    box-sizing: border-box;
  }

  /* ==========================================================
     ページ大見出し
     ----------------------------------------------------------
     「求人情報」
  ========================================================== */

  .service > h2 {
    margin: 0 0 55px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .service > h2::before {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.18em;
  }

  .service > h2::after {
    width: 42px;
    height: 2px;
    margin-top: 17px;
  }

  /* ==========================================================
     私たちと一緒に働きませんか？
  ========================================================== */

  .recruit-introduction {
    width: 100%;
    margin-bottom: 60px;
    padding: 40px 20px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .recruit-introduction h3 {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
  }

  .recruit-introduction p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  /* ==========================================================
     事業所から探す
  ========================================================== */

  .office-list {
    width: 100%;
    margin-bottom: 70px;
    padding: 30px 15px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .office-list h3 {
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.6;
  }

  .office-list > p {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.9;
  }

  .office-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .office-list-item {
    width: 100%;
    min-height: 60px;
    padding: 15px 45px 15px 18px;
    box-sizing: border-box;
    font-size: 14px;
  }

  .office-list-name {
    line-height: 1.6;
  }

  .office-arrow {
    right: 18px;
  }

  /* ==========================================================
     主な業務内容
     ----------------------------------------------------------
     ・下線なし
     ・左側にオレンジの縦線
  ========================================================== */

  .job-section {
    width: 100%;
    margin-bottom: 70px;
  }

  .job-section > h3 {
    margin: 0 0 35px;
    padding-left: 12px;
    border-left: 4px solid #eaa317;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .job-section > h3::after {
    display: none;
  }

  .job-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .job-item {
    width: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
    border-left-width: 5px;
    border-radius: 10px;
  }

  .job-item h4 {
    margin: 0 0 15px;
    font-size: 21px;
    line-height: 1.6;
  }

  /* ==========================================================
     ケアマネジャー
  ========================================================== */

  .job-item h4 .sp-job-break {
    display: inline;
  }

  .job-item h4 .sp-job-break::after {
    content: "";
    display: block;
  }

  .job-item h4 .pc-job-space {
    display: none;
  }

  .job-item h4 .job-title-second {
    display: inline;
    color: #333;
  }

  /* ==========================================================
     業務内容の文章
  ========================================================== */

  .job-description {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: normal;
  }

  .job-description p {
    margin-bottom: 15px;
  }

  .job-description ul {
    margin: 10px 0 0;
    padding-left: 20px;
  }

  .job-description li {
    margin-bottom: 7px;
    line-height: 1.8;
  }

  /* ==========================================================
     求人の特徴
  ========================================================== */

  .job-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ==========================================================
     詳しい求人情報について
     ----------------------------------------------------------
     見出しは中央揃え
     文章は左揃え
  ========================================================== */

  .external-recruit {
    width: 100%;
    margin-bottom: 60px;
    padding: 35px 20px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .external-recruit h3 {
    font-size: 23px;
    line-height: 1.6;
    text-align: center;
  }

  .external-recruit p {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  /* ==========================================================
     求人についてのメッセージ
  ========================================================== */

  .recruit-message {
    width: 100%;
    margin-bottom: 60px;
    padding: 35px 20px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .recruit-message h3 {
    font-size: 23px;
    line-height: 1.6;
  }

  .recruit-message p {
    font-size: 14px;
    line-height: 1.9;
  }

  /* ==========================================================
     求人についてのお問い合わせ
  ========================================================== */

  .recruit-contact {
    width: 100%;
    padding: 35px 20px;
    box-sizing: border-box;
    border-radius: 15px;
    text-align: center;
  }

  .recruit-contact h3 {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
  }

  .recruit-contact p {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
  }

  .recruit-contact .contact-button {
    width: 100%;
    box-sizing: border-box;
  }

  /* ==========================================================
     その他
  ========================================================== */

  .midasi {
    font-size: 20px;
    line-height: 1.6;
  }
}
