@charset "UTF-8";

/* ==================================================
   職種紹介ページ Styles (jobs.css)
================================================== */

/* ページ見出し（ヘッダー潜り込み防止） */
.p-sub-fv {
  padding: 120px 0 40px;
  text-align: center;
}
.p-sub-fv__title {
  font-size: 32px;
  font-weight: 400;
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  letter-spacing: 0.1em;
  color: #333;
  margin: 0;
}

/* 導入文 */
.p-jobs-intro {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 60px;
}

/* ==================================================
   レイヤー風セクション見出し（共通スタイル）
================================================== */
.p-top-layer-header {
  position: relative;
  text-align: center;
  padding: 30px 0;
  margin-bottom: 25px;
}
.p-top-layer-header--left {
  text-align: left;
  padding: 10px 0;
}
.p-top-layer-header__en {
  font-family: var(--font-serif, "Noto Serif JP", serif);
  font-size: 72px;
  font-weight: 300;
  color: #e2e8ec;
  letter-spacing: 0.08em;
  display: block;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}
.p-top-layer-header__ja {
  font-family: var(--font-serif, "Noto Serif JP", serif);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 400;
  color: #333;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.p-top-layer-header--left .p-top-layer-header__ja {
  position: static;
  transform: none;
  margin-top: -35px;
  margin-left: 5px;
}

/* ==================================================
   職種カードグリッド
================================================== */
.p-jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.p-jobs-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-main, #f37c8f);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
.p-jobs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(243, 124, 143, 0.15);
}

.p-jobs-card__img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像の比率を固定 */
  overflow: hidden;
  background-color: #f7f9fa;
}
.p-jobs-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.p-jobs-card:hover .p-jobs-card__img img {
  transform: scale(1.05); /* ホバー時に画像を少しズーム */
}

.p-jobs-card__banner {
  background-color: var(--color-main, #f37c8f);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: bold;
}
.p-jobs-card__banner::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.p-jobs-card:hover .p-jobs-card__banner {
  background-color: #e56a7d;
}


/* ==================================================
   SP Responsive (max-width: 768px)
================================================== */
@media screen and (max-width: 768px) {
  .p-sub-fv { padding: 100px 0 30px; }
  .p-sub-fv__title { font-size: 24px; }
  .p-jobs-intro { text-align: left; margin-bottom: 40px; }
  
  /* SP レイヤー風見出し */
  .p-top-layer-header { padding: 25px 0 20px; margin-bottom: 20px; overflow: hidden; }
  .p-top-layer-header--left { padding: 10px 0; }
  .p-top-layer-header__en { font-size: clamp(48px, 13vw, 62px); letter-spacing: 0.04em; line-height: 1.1; }
  .p-top-layer-header__ja { font-size: 30px; letter-spacing: 0.05em; font-weight: 500; }
  .p-top-layer-header--left .p-top-layer-header__ja { margin-top: -30px; margin-left: 2px; }

  /* SP: 2列グリッド */
  .p-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .p-jobs-card__banner {
    padding: 12px 10px;
    font-size: 13px;
  }
}



/* ==================================================
   職種紹介 下層ページ (医療事務など) 詳細レイアウト
================================================== */
.p-job-detail .p-top-layer-header {
  margin-bottom: 20px;
}

/* 2カラム基本セクション */
.p-job-section {
  margin-bottom: 90px;
}
.p-job-section__inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
/* 画像を左、テキストを右にするリバース（PCのみ） */
.p-job-section__inner--reverse {
  flex-direction: row-reverse;
}
/* 上端揃えにする場合 */
.p-job-section__inner--align-top {
  align-items: flex-start;
}

/* テキストエリア */
.p-job-section__text {
  flex: 1;
}
.p-job-section__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.6;
}
.p-job-section__body p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 15px;
}
.p-job-section__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

/* 画像エリア */
.p-job-section__img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}
.p-job-section__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================================
   求める人物像 (NECESSARY)
================================================== */
.p-job-section--necessary {
  background-color: #f7f9fa;
  padding: 60px 0 80px;
  margin-bottom: 90px;
  /* 画面幅いっぱいに背景を広げる安全な計算式に変更（見切れ防止） */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.p-job-section__points {
  flex: 1;
}
.p-job-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.p-job-points-list li {
  display: flex;
  align-items: stretch; /* ★高さをテキスト枠と完全に一致させる */
  background: #fff;
  border-radius: 6px;
  overflow: hidden; /* ★はみ出た角を切り取ることで左側だけ角丸にする */
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  border: 1px solid #eee;
}
.p-job-points-list .num {
  display: flex; /* ★高さいっぱいになったピンク枠の中で数字を中央配置 */
  align-items: center;
  justify-content: center;
  background-color: var(--color-main, #f37c8f);
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  width: 60px;
  flex-shrink: 0;
}
.p-job-points-list .text {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  padding: 15px 20px;
  line-height: 1.5;
}

/* ==================================================
   キャリアステップ (CAREER STEP)
================================================== */
.p-job-career {
  text-align: center;
}
.p-job-career__body {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  text-align: left;
}
.p-job-career__img img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==================================================
   勤務地 (FACILITIES)
================================================== */
.p-job-facilities {
  margin-top: 20px;
}
.p-job-facilities__name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 5px 0;
  border-left: 3px solid var(--color-main, #f37c8f);
  padding-left: 10px;
}
.p-job-facilities__address {
  font-size: 14.5px;
  color: #555;
  margin: 0 0 25px 0;
  padding-left: 13px;
}
.p-job-facilities__address:last-child {
  margin-bottom: 0;
}

/* ==================================================
   SP Responsive (max-width: 768px)
================================================== */
@media screen and (max-width: 768px) {
  .p-job-section {
    margin-bottom: 60px;
  }
  
  /* スマホ時はすべて「写真が上、テキストが下」 */
  .p-job-section__inner {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .p-job-section__inner--reverse {
    flex-direction: column-reverse;
  }
  .p-job-section__inner--align-top {
    flex-direction: column-reverse;
  }
  .p-job-section--necessary .p-job-section__inner--align-top {
    flex-direction: column;
  }

  /* ★追加：SP時の画像を確実に中央揃えにする */
  .p-job-section__img {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .p-job-section__img img {
    margin: 0 auto;
    width: 100%;
  }

  .p-job-section__subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .p-job-section__body p,
  .p-job-section__body ul {
    font-size: 14px;
  }
  
  .p-job-section--necessary {
    padding-top: 50px;
    padding-bottom: 60px;
    /* ★追加：SP時に左に寄る見切れを防止するため余白を確保 */
    padding-left: calc(50vw - 50% + 4%);
    padding-right: calc(50vw - 50% + 4%);
  }
  .p-job-points-list .text {
    font-size: 13.5px;
    padding: 15px;
  }
  .p-job-career__body {
    font-size: 14px;
    text-align: left;
  }
}

