/* =========================================================
   education.css
   - 人材育成ページ専用スタイル
   - フォトカード / ジグザグレイアウト / グリッド
========================================================= */

/* --- 3. Ideal Candidate (Photo Card Style) --- */
.bg-gray {
  background-color: var(--color-gray-light);
}

.ideal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.ideal-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden; /* 画像の角丸維持 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%; /* 高さを揃える */
  display: flex;
  flex-direction: column;
}
.ideal-card:hover {
  transform: translateY(-5px);
}

/* 写真エリア */
.ideal-thumb {
  position: relative;
  width: 100%;
  height: 280px; /* 写真の高さ固定 */
  overflow: hidden;
}
.ideal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ideal-card:hover .ideal-thumb img {
  transform: scale(1.05);
}

/* 数字バッジ (写真の左上に配置) */
.ideal-num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-secondary); /* 教育カラー(緑) */
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-weight: 700;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.2rem;
  border-bottom-right-radius: 8px; /* デザインアクセント */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* テキストエリア */
.ideal-body {
  padding: 30px 25px;
  text-align: center;
  flex: 1; /* 高さを揃えるために伸長 */
  display: flex;
  flex-direction: column;
}

.ideal-body h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  line-height: 1.5;
  border-bottom: 2px solid var(--color-gray-border);
  padding-bottom: 10px;
  display: inline-block;
  align-self: center; /* 中央揃え */
}

.ideal-body p {
  font-size: 0.9rem;
  text-align: left; /* 本文は左揃えで読みやすく */
  line-height: 1.8;
  color: var(--text-main);
  margin-top: auto; /* 下揃えの余白調整 */
}

/* --- 4. Roadmap --- */
.roadmap-figure {
  margin: 0;
  text-align: center;
}

.roadmap-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: none;
}

/* PC画面でのみ幅制限 */
@media (min-width: 769px) {
  .roadmap-figure img {
    width: 80%;
    max-width: 800px;
  }
}

/* --- 5. Features List (Zigzag) --- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--color-secondary);
  display: inline-block;
  padding-bottom: 5px;
}
.feature-text p {
  line-height: 1.8;
  text-align: justify;
}

.feature-image {
  flex: 1;
}
.img-placeholder {
  width: 100%;
  height: 300px;
  background-color: #ddd;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- 6. Newcomer (3 Cards) --- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.simple-card {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  transition: 0.3s;
  height: 100%;
}
.simple-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.simple-card h4 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 4px solid var(--color-secondary);
}
.simple-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- 7. Career Support (Grid) --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.support-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.support-item h4 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.support-item p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  /* タブレット (2列) */
  .ideal-grid,
  .card-grid-3,
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ジグザグレイアウトを縦並びに */
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 30px;
  }

  /* 画像とテキストの幅確保 */
  .feature-text,
  .feature-image {
    width: 100%;
  }

  .img-placeholder {
    height: 250px;
  }
}

@media (max-width: 600px) {
  /* スマホ (1列) */
  .ideal-grid,
  .card-grid-3,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .ideal-card {
    padding: 0; /* 写真があるのでパディング調整不要(bodyで指定済み) */
  }
}