/* JOHTA page specific layout (3-column responsive grid)
   Relies on CSS variables defined in dashboard-custom.css (:root) */

.johta-features,
.programs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Feature cards (上段3つの特徴) */
.johta-feature {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.johta-feature .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #E8F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.johta-feature .feature-icon img {
  max-width: 40px;
  height: auto;
}

.johta-feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 10px;
  line-height: 1.35;
}

.johta-feature p {
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.6;
  margin: 0;
}

/* Program cards (申込可能なプログラム) */
.program-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.program-card .program-header {
  background: linear-gradient(135deg, var(--primary-color), #008B8B);
  padding: 16px;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.program-card .program-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFB300;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.program-card .program-image img {
  max-width: 72px;
  height: auto;
  filter: brightness(0) invert(1);
}

.program-card .program-content {
  padding: 16px 18px 18px;
}

.program-card .program-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
  line-height: 1.4;
}

.program-card .program-description {
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.program-card .program-details {
  font-size: 13px;
  color: var(--light-text);
  margin: 0 0 12px;
}
.program-card .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}
.program-card .detail-row:last-child {
  border-bottom: none;
}
.program-card .detail-label {
  font-weight: 600;
  color: var(--text-color);
}
.program-card .detail-value {
  color: var(--light-text);
}

.program-card .program-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.program-card .apply-btn,
.program-card .info-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.program-card .apply-btn.primary {
  background: var(--primary-color);
  color: var(--white);
}
.program-card .apply-btn.primary:hover {
  background: #008B8B;
}
.program-card .info-btn {
  background: var(--secondary-color);
  color: var(--text-color);
}

/* Section titles on JOHTA page (フォント・下線の統一) */
.dashboard-main-content .section-title,
#johta-program .section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-color);
  margin: 10px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
}

/* “もっと見る/申込む” ボタンなど */
.johta-more {
  margin-top: 28px;
  text-align: center;
}
.johta-more .btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
}
.johta-more .btn-primary:hover {
  background: #008B8B;
}

/* =======================================================================
   追加: /johta/ 中央コンテンツの見た目調整（PDF準拠のカード化/グリッド化）
   ======================================================================= */

/* 画像が巨大化しないように中央領域のデフォルトを制御 */
.dashboard-main-content img {
  max-width: 100%;
  height: auto;
}

/* Page header */
.page-header .header-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.page-header .page-title {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 800;
}
.page-header .page-description {
  margin: 0;
  color: var(--light-text);
  font-size: 14px;
}

/* 参加状況 */
.program-status .status-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.status-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.status-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #E8F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.status-content h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-color);
  font-weight: 700;
}
.status-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 4px;
}
.status-content p {
  margin: 0;
  font-size: 13px;
  color: var(--light-text);
}

/* 申込可能なプログラム（微調整） */
.available-programs .programs-list {
  margin-top: 14px;
}

/* 参加中のプログラム */
.current-programs .current-programs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.current-program-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.current-program-item .program-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}
.current-program-item .program-info p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--light-text);
}
.program-progress .progress-bar {
  width: 100%;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.program-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #008B8B);
  border-radius: 999px;
}
.program-progress .progress-text {
  font-size: 12px;
  color: var(--light-text);
}
.current-program-item .continue-btn {
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.current-program-item .continue-btn:hover {
  background: #008B8B;
}

/* 今後のスケジュール */
.program-schedule .schedule-calendar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.schedule-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.schedule-date {
  width: 60px;
  border-right: 1px solid var(--border-color);
  text-align: center;
  padding-right: 12px;
}
.schedule-date .date-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
}
.schedule-date .date-month {
  font-size: 12px;
  color: var(--light-text);
  letter-spacing: 0.6px;
}
.schedule-content h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}
.schedule-content p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--light-text);
}
.schedule-type {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--secondary-color);
  color: var(--text-color);
}
.schedule-type.seminar { background: #E3F2FD; color: #1976D2; }
.schedule-type.deadline { background: #FFF3E0; color: #F57C00; }
.schedule-type.upcoming { background: #E8F5E9; color: #2E7D32; }

/* Responsive */
@media (max-width: 1200px) {
  .johta-features,
  .programs-list {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .johta-features,
  .programs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .program-status .status-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .current-programs .current-programs-list {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .johta-features,
  .programs-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .program-card .program-header {
    min-height: 96px;
    padding: 12px;
  }
  .program-card .program-image img {
    max-width: 56px;
  }

  .program-status .status-overview {
    grid-template-columns: 1fr;
  }

  .page-header .header-content {
    padding: 16px;
  }
}
