/* ========================================
   教育事業ページ CSS
   ======================================== */

/* --- 共通 --- */
.edu-section {
  padding: 60px 0;
}
.edu-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.edu-section-title {
  font-size: 1.6em;
  color: #1a3a6a;
  margin-bottom: 20px;
  line-height: 1.4;
}
.edu-center { text-align: center; }
.edu-section-sub {
  text-align: center;
  color: #555;
  font-size: 0.95em;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ==============================
   Section 1: ヒーロー
   ============================== */
.edu-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.edu-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.edu-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edu-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,63,106,0.85) 0%, rgba(26,111,175,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.edu-hero-title {
  color: #fff;
  font-size: 2.2em;
  line-height: 1.5;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.edu-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.1em;
  letter-spacing: 0.15em;
}

/* ==============================
   Section 1: 問題提起
   ============================== */
.edu-mondai {
  background: #f7f9fc;
}
.edu-mondai-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.edu-mondai-text {
  flex: 1;
  text-align: left;
}
.edu-mondai-visual {
  flex: 0 0 380px;
}
.edu-lead {
  font-size: 1.05em;
  line-height: 1.9;
  color: #333;
  margin-bottom: 16px;
}
.edu-body {
  font-size: 0.95em;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}
.edu-gap-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.edu-gap-list li {
  background: #e8f0f8;
  color: #1a3a6a;
  font-weight: bold;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.95em;
}
.edu-emphasis {
  font-size: 1.15em;
  line-height: 1.7;
  color: #1a3a6a;
  border-left: 4px solid #1a6faf;
  padding-left: 16px;
  margin-top: 20px;
}

/* インフォグラフィック */
.edu-infographic {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.edu-info-title {
  font-size: 0.9em;
  font-weight: bold;
  color: #1a3a6a;
  margin-bottom: 20px;
  text-align: center;
}
.edu-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edu-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.edu-bar-label {
  font-size: 0.8em;
  color: #666;
  width: 55px;
  flex-shrink: 0;
}
.edu-bar {
  background: linear-gradient(90deg, #1a6faf, #3a9fd8);
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width 1s ease;
}
.edu-bar span {
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
}
.bar-mid {
  background: linear-gradient(90deg, #3a8abf, #6ab4d8);
}
.bar-low {
  background: linear-gradient(90deg, #cc6644, #e88866);
}
.edu-info-note {
  font-size: 0.7em;
  color: #999;
  text-align: right;
  margin-top: 12px;
}
.edu-info-highlight {
  font-size: 0.85em;
  font-weight: bold;
  color: #c0392b;
  text-align: center;
  margin-top: 10px;
}
.edu-infographic-second {
  margin-top: 20px;
}
.bar-shortage {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}
.bar-shortage-mid {
  background: linear-gradient(90deg, #d35400, #e67e22);
}
.bar-shortage-low {
  background: linear-gradient(90deg, #b8860b, #daa520);
}

/* ==============================
   Section 2: 3つの領域
   ============================== */
.edu-three {
  background: #fff;
}
.edu-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.edu-three-card {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e0e6ed;
  transition: 0.3s;
}
.edu-three-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.edu-three-icon {
  margin-bottom: 12px;
}
.edu-three-title {
  font-size: 1.05em;
  color: #1a3a6a;
  margin-bottom: 12px;
  line-height: 1.4;
}
/* 2枚写真レイアウト（カード内） */
.edu-two-photos {
  display: flex;
  gap: 4px;
}
.edu-two-photos img {
  width: 50% !important;
}
/* 2枚写真レイアウト（ワイド） */
.edu-two-photos-wide {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.edu-two-photos-wide img {
  max-width: 48% !important;
}

.edu-three-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}
.edu-three-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edu-three-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.edu-three-list li {
  font-size: 0.85em;
  color: #555;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.6;
}
.edu-three-list li::before {
  content: "●";
  color: #1a6faf;
  font-size: 0.5em;
  position: absolute;
  left: 4px;
  top: 9px;
}

/* ==============================
   Section 3: 制度の構造問題
   ============================== */
.edu-problem {
  background: #f0f2f5;
}
.edu-problem-img {
  text-align: center;
  margin-bottom: 32px;
}
.edu-problem-img img {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.edu-problem-content {
  display: flex;
  gap: 40px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.edu-problem-text {
  flex: 1;
  text-align: left;
  text-wrap: pretty;
}
.edu-problem-illust {
  flex: 0 0 220px;
  text-align: center;
}
.edu-problem-illust img {
  width: 100%;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .edu-problem-content { flex-direction: column; }
  .edu-problem-illust { flex: auto; width: 100%; }
}
.edu-problem-text p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.9;
  margin-bottom: 16px;
}
.edu-photo-caption {
  font-size: 0.8em;
  color: #777;
  margin-top: 10px;
}

/* ==============================
   Section 4: HTPの役割 + 教育ツール
   ============================== */
.edu-role {
  background: #fff;
}
.edu-role-message {
  margin-bottom: 50px;
}
.edu-role-lead {
  font-size: 1.2em;
  color: #1a3a6a;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: center;
}
.edu-role-desc {
  font-size: 0.95em;
  color: #555;
  line-height: 1.8;
  text-align: left;
}

/* 教育ツール */
.edu-tools {
  margin-bottom: 50px;
}
.edu-tools-title {
  text-align: center;
  font-size: 1.3em;
  color: #1a3a6a;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a6faf;
}
.edu-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edu-tool-card {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 24px 20px;
  border: 1px solid #e0e6ed;
  text-align: left;
}
.edu-tool-badge {
  display: inline-block;
  background: #1a6faf;
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.badge-green { background: #27ae60; }
.badge-orange { background: #e67e22; }

.edu-tool-card h5 {
  font-size: 1em;
  color: #1a3a6a;
  margin-bottom: 10px;
  line-height: 1.5;
}
.edu-tool-card p {
  font-size: 0.8em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}
.edu-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.edu-tool-tags span {
  background: #e8eef5;
  color: #1a6faf;
  font-size: 0.7em;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ツール詳細解説 */
.edu-tool-detail {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0e6ed;
}
.edu-tool-detail-header {
  padding: 24px 28px;
  color: #fff;
}
.edu-tool-detail-header.tool-blue {
  background: linear-gradient(135deg, #1a3a6a, #1a6faf);
}
.edu-tool-detail-header.tool-green {
  background: linear-gradient(135deg, #1a6a3a, #27ae60);
}
.edu-tool-detail-header.tool-orange {
  background: linear-gradient(135deg, #8a4a10, #e67e22);
}
.edu-tool-detail-header h5 {
  font-size: 1.3em;
  margin: 8px 0 6px;
}
.edu-tool-detail-header .edu-tool-badge {
  font-size: 0.75em;
}
.edu-tool-detail-sub {
  font-size: 0.8em;
  opacity: 0.85;
}
.edu-tool-detail-body {
  padding: 28px;
  background: #fff;
  text-align: left;
}
.edu-tool-desc {
  font-size: 0.95em;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
}
.edu-tool-spec {
  margin-bottom: 24px;
}
.edu-tool-spec h6,
.edu-tool-features h6 {
  font-size: 0.9em;
  color: #1a3a6a;
  border-bottom: 2px solid #e0e6ed;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.edu-tool-spec ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edu-tool-spec li {
  font-size: 0.85em;
  color: #444;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.7;
}
.edu-tool-spec li::before {
  content: "▸";
  color: #1a6faf;
  position: absolute;
  left: 2px;
}
.edu-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.edu-feature-item {
  background: #f7f9fc;
  border-radius: 6px;
  padding: 14px 16px;
  border-left: 3px solid #1a6faf;
}
.tool-green ~ .edu-tool-detail-body .edu-feature-item {
  border-left-color: #27ae60;
}
.tool-orange ~ .edu-tool-detail-body .edu-feature-item {
  border-left-color: #e67e22;
}
.edu-feature-item strong {
  display: block;
  font-size: 0.85em;
  color: #1a3a6a;
  margin-bottom: 4px;
}
.edu-feature-item span {
  font-size: 0.78em;
  color: #666;
  line-height: 1.5;
}
.edu-tool-detail-images {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edu-tool-images-row {
  flex-direction: row;
}
.edu-tool-images-row img {
  width: 48% !important;
  object-fit: contain;
}
.edu-tool-detail-images img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
/* 特定技能2号 分野グリッド */
.edu-tokugi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.edu-tokugi-item {
  background: #fdf6ee;
  border-radius: 6px;
  padding: 12px 14px;
  border-left: 3px solid #e67e22;
}
.edu-tokugi-label {
  display: block;
  font-size: 0.85em;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}
.edu-tokugi-schedule {
  font-size: 0.75em;
  color: #888;
}
@media (max-width: 768px) {
  .edu-feature-grid { grid-template-columns: 1fr; }
  .edu-tokugi-grid { grid-template-columns: 1fr; }
}

/* 3つの能力軸 */
.edu-axis {
  text-align: center;
  margin-bottom: 50px;
}
.edu-axis-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.edu-axis-item {
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  color: #fff;
}
.axis-blue { background: #1a6faf; }
.axis-green { background: #27ae60; }
.axis-orange { background: #e67e22; }
.edu-axis-plus {
  font-size: 1.5em;
  color: #999;
  font-weight: bold;
}
.edu-axis-caption {
  font-size: 0.9em;
  color: #555;
}

/* 写真ギャラリー */
.edu-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.edu-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

/* ==============================
   CTA
   ============================== */
.edu-cta {
  background: linear-gradient(135deg, #1a3a6a, #1a6faf);
  padding: 50px 0;
  text-align: center;
}
.edu-cta-text {
  color: #fff;
  font-size: 1.15em;
  margin-bottom: 20px;
}
.edu-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a6faf;
  font-size: 1.05em;
  font-weight: bold;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}
.edu-cta-btn:hover {
  background: #e8eef5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==============================
   ナビ アクティブ状態
   ============================== */
.active-nav {
  background: rgba(255,255,255,0.15) !important;
}

/* ==============================
   レスポンシブ
   ============================== */
@media (max-width: 768px) {
  .edu-hero { height: 300px; }
  .edu-hero-title { font-size: 1.5em; }
  .edu-mondai-inner { flex-direction: column; }
  .edu-mondai-visual { flex: auto; width: 100%; }
  .edu-three-grid { grid-template-columns: 1fr; }
  .edu-tools-grid { grid-template-columns: 1fr; }
  .edu-axis-inner { flex-direction: column; gap: 8px; }
  .edu-axis-plus { font-size: 1.2em; }
  .edu-gallery { grid-template-columns: repeat(2, 1fr); }
}