/* =========================================================
   support.css
   - 退院支援・医療連携ページ専用スタイル
   - フローチャート / カードグリッド / EBMセクション
========================================================= */

/* 背景色ユーティリティ */
.bg-gray {
  background-color: var(--color-gray-light);
  padding: 5rem 0;
}

/* ---------------------------------------------------------
   4. Flow Chart (Process) - 入院〜退院の流れ
--------------------------------------------------------- */
.support-flow-chart {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
}

/* 各ステップの箱 */
.flow-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 最後のステップ（ゴール）を強調 */
.flow-step.step-goal {
  background-color: #f0f9ff; /* 薄い青 */
  border-color: var(--color-primary);
  border-width: 2px;
}

/* ラベル（入院直後、など） */
.step-label {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.step-content h4 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.step-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* 矢印 (PC: 右向き三角) */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  position: relative;
}
.flow-arrow::after {
  content: '▶';
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* ---------------------------------------------------------
   5. Approaches (2 Columns Grid) - 6つの取り組み
--------------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.support-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-border);
  transition: transform 0.3s ease;
  height: 100%;
}
.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* サムネイル */
.support-thumb {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.support-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.support-card:hover .support-thumb img {
  transform: scale(1.05);
}

/* 数字バッジ (丸型・緑) */
.support-num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-primary); /* 安全＝青（または緑） */
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-weight: 700;
  font-family: sans-serif;
  font-size: 1.2rem;
  border-bottom-right-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* 本文 */
.support-body {
  padding: 30px;
}
.support-body h3 {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-gray-border);
  line-height: 1.4;
}
.support-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* リスト装飾 */
.support-list {
  padding-left: 0;
  list-style: none;
}
.support-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.support-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}
.support-list strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* タグエリア (外来リハビリ用) */
.tag-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag-area span {
  background: #f0f9ff;
  color: var(--color-primary-dark);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #cceeff;
}

/* ---------------------------------------------------------
   6. EBM (Scientifically Based) - 科学的根拠
--------------------------------------------------------- */
.ebm-block {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ebm-image {
  flex: 0 0 45%;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
}
.ebm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebm-text {
  flex: 1;
}
.ebm-text h3 {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-primary);
  padding-left: 15px;
}
.ebm-text p {
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
}

/* ---------------------------------------------------------
   Responsive (Mobile/Tablet)
--------------------------------------------------------- */
@media (max-width: 900px) {
  /* フローチャート: 縦並び */
  .support-flow-chart {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* 矢印分のスペース */
  }
  .flow-step {
    width: 100%;
    max-width: 500px;
  }

  /* 矢印を90度回転して下向きに */
  .flow-arrow {
    transform: rotate(90deg);
  }

  /* EBM: 縦並び */
  .ebm-block {
    flex-direction: column;
    padding: 30px;
  }
  .ebm-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* グリッドを1列に */
  .support-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .support-thumb {
    height: 200px;
  }
}
