/* =========================================================
   nintei-jyunkan.css
   - 循環領域 認定カリキュラム（第3階層）専用
   - 共通デザインシステム（Tier 3）準拠
========================================================= */

/* --- Utilities --- */
.bg-gray {
  background-color: var(--color-gray-light);
  padding: 6rem 0;
}
.mt-5 {
  margin-top: 3rem !important;
}
.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
}

/* ---------------------------------------------------------
   1. Overview Table
--------------------------------------------------------- */
.info-table-wrapper {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-border);
}
.nintei-info-table {
  width: 100%;
  border-collapse: collapse;
}
.nintei-info-table th,
.nintei-info-table td {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.nintei-info-table tr:last-child th,
.nintei-info-table tr:last-child td {
  border-bottom: none;
}
.nintei-info-table th {
  width: 25%;
  background-color: #f9fbfe;
  color: var(--color-primary-dark);
  text-align: left;
  font-weight: 700;
  vertical-align: top;
}
.nintei-info-table td {
  line-height: 1.8;
  color: var(--text-main);
}
.nintei-info-table td small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   2. Application Flow
--------------------------------------------------------- */
.flow-steps.vertical {
  max-width: 800px;
  margin: 50px auto 0;
  position: relative;
}
.flow-steps.vertical::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eee;
  z-index: 1;
}
.flow-step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.flow-step:last-child {
  margin-bottom: 0;
}
.step-num {
  flex: 0 0 52px;
  height: 52px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 161, 233, 0.2);
}
.step-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-border);
  flex: 1;
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ---------------------------------------------------------
   3. Program Table
--------------------------------------------------------- */
.table-sub-title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 25px;
  border-left: 4px solid var(--color-primary);
  padding-left: 15px;
}
.scroll-table {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--color-gray-border);
}
.program-list-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
}
.program-list-table th {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 15px;
  text-align: left;
  font-size: 0.9rem;
}
.program-list-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.program-list-table tr:hover td {
  background-color: #fcfdfe;
}
.col-num {
  width: 60px;
  text-align: center !important;
  font-weight: 700;
  color: #aaa;
}
.col-name {
  width: 160px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ---------------------------------------------------------
   4. Inspection Detail (循環器スケジュール)
--------------------------------------------------------- */
.inspection-detail-box {
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.inspection-info {
  margin-bottom: 40px;
}
.inspection-info h4,
.inspection-schedule h4 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.inspection-info h4::before,
.inspection-schedule h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}
.inspection-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}
.schedule-list {
  list-style: none;
  padding: 0;
}
.schedule-list li {
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: baseline;
  gap: 25px;
}
.schedule-list li span {
  flex: 0 0 80px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--ff-sans);
}

/* ---------------------------------------------------------
   5. Precautions
--------------------------------------------------------- */
.precautions-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-border);
  border-top: 4px solid #e74c3c;
}
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notes-list li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 12px;
  padding-left: 1.5em;
  position: relative;
}
.notes-list li::before {
  content: '※';
  color: #e74c3c;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* アンカーリンク調整 */
#hero-nintei-jyunkan {
  scroll-margin-top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .nintei-info-table th,
  .nintei-info-table td {
    display: block;
    width: 100%;
    padding: 15px 20px;
  }
  .nintei-info-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  .step-num {
    flex: 0 0 44px;
    height: 44px;
    font-size: 1rem;
  }
  .flow-steps.vertical::before {
    left: 21px;
  }
  .inspection-detail-box {
    padding: 30px 20px;
  }
}
