/* css/recruit.css - 求人下層ページ共通 */

/* =========================================
   Page Hero (ページ上部ヘッダー)
   ========================================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 0 5%;
}

/* 位置調整用クラス */
.hero-left { align-items: flex-start; text-align: left; }
.hero-center { align-items: center; text-align: center; }

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.1em;
  line-height: 1;
}

.page-hero p {
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  margin-top: 10px;
  letter-spacing: 0.2em;
}

/* ページ内リンクナビ */
.page-index {
  background: #f9f9f9;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.page-index ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.page-index a {
  font-size: 14px;
  color: #333;
  font-weight: bold;
  padding: 5px 10px;
  display: block;
}

.page-index a:hover {
  color: #BFA455;
}

/* =========================================
   Appeal Section (やりがい・魅力)
   ========================================= */
.appeal-section {
  padding: 80px 20px;
  background: #fff;
}

.appeal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.appeal-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.appeal-images img {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.appeal-text {
  flex: 1.2;
}

.appeal-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 32px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.appeal-caption {
  font-size: 15px;
  line-height: 2;
  color: #444;
}

/* =========================================
   Person Section (求める人材)
   ========================================= */
.person-section {
  padding: 80px 20px;
  /* 背景画像がある場合 */
  background: url('../img/TIAM_LP_background\ 2.png') no-repeat center center/cover;
  color: #fff;
}

.person-section__heading {
  text-align: center;
  font-family: "Zen Old Mincho", serif;
  font-size: 36px;
  margin-bottom: 60px;
}

.person-section__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

/* 逆配置 */
.person-section__content--reverse {
  flex-direction: row-reverse;
}

.person-section__caption {
  flex: 1;
}

.person-section__caption-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 10px;
  display: inline-block;
}

.person-section__caption-subtitle {
  font-size: 15px;
  line-height: 2;
  opacity: 0.9;
}

.person-section__image {
  flex: 1;
}

.person-section__image img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* =========================================
   Job Features (業務内容 - Nurse用グリッド)
   ========================================= */
.person-features {
  padding: 80px 20px;
  background: #f4f4f4;
  text-align: center;
}

.work-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-family: "Zen Old Mincho", serif;
}

.section-subtitle {
  font-size: 16px;
  margin-bottom: 50px;
  color: #666;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-item {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #BFA455;
  font-weight: bold;
}

.feature-subtitle {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================================
   CS Job Section (業務内容 - CS/Dr用リスト)
   ========================================= */
.cs-job-section {
  padding: 80px 20px;
  background: #f4f4f4;
}

.job-title {
  text-align: center;
  font-size: 36px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 20px;
}

.job-caption {
  text-align: center;
  margin-bottom: 50px;
  font-size: 15px;
  color: #666;
}

.job-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto 50px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
}

.job-content.reverse {
  flex-direction: row-reverse;
}

.job-list {
  flex: 1;
}

.job-list ul {
  list-style: none;
  padding: 0;
}

.job-list li {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-family: "Zen Old Mincho", serif;
}

.job-list li::before {
  content: "✔";
  color: #BFA455;
  margin-right: 10px;
}

.job-image {
  flex: 1;
}

.job-image img {
  border-radius: 8px;
  width: 100%;
}

/* =========================================
   Dr About Section (医師ページ専用)
   ========================================= */
.dr-about-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 10px;
}

.dr-image img {
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  margin: 30px auto;
}

.dr-description {
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 2;
  text-align: left;
}

.dr-columns {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.dr-col {
  flex: 1;
  background: #fafafa;
  padding: 15px;
  border-radius: 8px;
}

.dr-col img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.dr-message {
  background: #fdfcf5;
  padding: 40px;
  border: 1px solid #BFA455;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  line-height: 2;
}

/* =========================================
   Day Section (1日の流れ - タイムライン)
   ========================================= */
.day-section {
  padding: 80px 20px;
  background: #fff;
}

.day-title {
  text-align: center;
  font-size: 36px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 60px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* 中央線 */
.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.time-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #BFA455;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  z-index: 1;
  border: 4px solid #fff; /* 線と重なった時の余白 */
}

.timeline-content {
  background: #f9f9f9;
  padding: 20px 30px;
  border-radius: 8px;
  flex: 1;
}

.timeline-heading {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: "Zen Old Mincho", serif;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.timeline-caption {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* =========================================
   Training Section (研修制度)
   ========================================= */
.training-section {
  padding: 80px 20px;
  background: #f4f4f4;
  text-align: center;
}

.training-title {
  font-size: 36px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 50px;
}

.training-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.training-card {
  background: #fff;
  padding: 30px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: left;
}

.training-subtitle {
  font-size: 20px;
  color: #BFA455;
  margin-bottom: 15px;
  border-left: 4px solid #BFA455;
  padding-left: 10px;
}

.training-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* =========================================
   Recruitment Section (募集要項)
   ========================================= */
.recruitment-section {
  padding: 80px 20px;
  background: #fff;
}

.jobsection-title {
  text-align: center;
  font-size: 36px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 40px;
}

.job-titlebox {
  background: #333;
  color: #fff;
  padding: 10px 30px;
  display: inline-block;
  font-size: 20px;
  margin-bottom: 20px;
  margin-left: 10%; /* テーブルに合わせる */
}

.recruitment-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15px;
}

.recruitment-table th,
.recruitment-table td {
  border: 1px solid #ddd;
  padding: 20px;
  text-align: left;
}

.recruitment-table th {
  background: #f9f9f9;
  width: 25%;
  font-weight: bold;
  color: #333;
}

.recruitment-table td {
  line-height: 1.8;
}

/* =========================================
   Flow Section (選考フロー - 詳細版)
   ========================================= */
.flow-section {
  padding: 80px 20px;
  background: #fafafa;
}

.flow-section .section-title {
  text-align: center;
}

.flow-steps {
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

/* 矢印 */
.flow-step:not(:last-child)::after {
  content: "▼";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #BFA455;
  font-size: 20px;
}

.flow-icon {
  width: 60px;
  height: 60px;
  margin-right: 30px;
  flex-shrink: 0;
}

.flow-icon svg {
  width: 100%;
  height: 100%;
  fill: #333;
}

.flow-content {
  flex: 1;
}

.flow-heading {
  font-size: 22px;
  margin-bottom: 10px;
  font-family: "Zen Old Mincho", serif;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.flow-caption {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.flow-entry {
  text-align: center;
  margin-top: 60px;
}

.entry-btn {
  display: inline-block;
  background-color: #BAB54A;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 20px 100px;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(186, 181, 74, 0.4);
}

.entry-btn:hover {
  background-color: #9A833A;
  transform: translateY(-3px);
}

/* =========================================
   レスポンシブ対応 (スマホ)
   ========================================= */
@media (max-width: 768px) {
  /* ヒーロー */
  .page-hero h1 { font-size: 42px; }
  .page-hero p { font-size: 16px; }
  
  /* レイアウト縦並び化 */
  .appeal-container,
  .person-section__content,
  .person-section__content--reverse,
  .job-content,
  .job-content.reverse,
  .dr-columns {
    flex-direction: column;
    gap: 30px;
  }
  
  .person-section__content--reverse {
    flex-direction: column; /* スマホでは逆順解除して上から順にするのが一般的 */
  }
  
  /* 画像サイズ */
  .appeal-images img,
  .person-section__image img,
  .job-image img,
  .dr-col img {
    width: 100%;
    height: auto;
  }
  
  /* グリッド解除 */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* テーブル */
  .recruitment-table,
  .recruitment-table tbody,
  .recruitment-table tr,
  .recruitment-table th,
  .recruitment-table td {
    display: block;
    width: 100%;
  }
  
  .recruitment-table th {
    background: #eee;
    padding: 10px;
  }
  
  .job-titlebox {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  
  /* タイムライン */
  .timeline::before { left: 20px; }
  .time-circle { width: 40px; height: 40px; font-size: 12px; left: 0; }
  .timeline-item { gap: 15px; padding-left: 10px; }
  
  /* フロー */
  .flow-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .flow-icon { margin: 0 0 20px 0; }
  
  .entry-btn {
    width: 90%;
    padding: 15px;
  }
}

/* css/recruit.css の一番下に追記 */

/* 2つのブロックに分けた際の余白調整 */
.appeal-container {
  margin-bottom: 60px; /* ブロックごとの間隔 */
}

/* 偶数番目の要素を左右反転（画像とテキストの位置を入れ替え） */
.appeal-container.reverse {
  flex-direction: row-reverse;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .appeal-container {
    margin-bottom: 40px;
  }
  
  /* スマホでは「画像→テキスト」の順序に統一して読みやすくする */
  .appeal-container.reverse {
    flex-direction: column;
  }
}