/* ============================= */
/* リハビリテーションページ用CSS */
/* ============================= */

body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* --- セクション全体 --- */
.rehab-main {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.section-label {
  color: #f57c00;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
}

/* ============================= */
/* 方針セクション */
/* ============================= */

.policy-boxes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.policy-boxes::-webkit-scrollbar {
  display: none;
}

.policy-box {
  flex: 0 0 300px;
  max-width: 360px;
  min-width: 280px;
  border: 1px solid #ddd;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  background-color: #fff;
  text-align: left;
}

.policy-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.policy-box .highlight {
  color: #f57c00;
  font-weight: bold;
}

.policy-box p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

/* ============================= */
/* 当院の取り組み（上段：交互） */
/* ============================= */

.attempt-section {
  padding: 4rem 1rem;
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
}

.attempt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: nowrap;
}

.attempt-row.reverse {
  flex-direction: row-reverse;
}

.attempt-img {
  flex: 1 1 40%;
  max-width: 400px;
}

.attempt-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.attempt-text {
  flex: 1 1 50%;
  text-align: left;
}

.attempt-text h3 {
  font-size: 1.3rem;
  color: #f57c00;
  margin-bottom: 0.8rem;
}

.attempt-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

/* ============================= */
/* 当院の取り組み（下段：三分割カード） */
/* ============================= */

.attempt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.attempt-card {
  flex: 1 1 30%;
  max-width: 300px;
  text-align: center;
}

.attempt-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.attempt-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* ============================= */
/* 3つのリハ紹介セクション */
/* ============================= */

.types {
  margin-top: 4rem;
}

.types h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.types-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.types-list li {
  width: calc(33% - 1rem);
  max-width: 300px;
}

.types-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.types-list a:hover {
  transform: translateY(-4px);
}

.types-list img {
  width: 100%;
  height: auto;
  display: block;
}

.types-list span {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background-color: #f57c00;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
}

/* ============================= */
/* レスポンシブ対応 */
/* ============================= */

@media (max-width: 768px) {
  .types-list li {
    width: calc(50% - 1rem);
  }

  .attempt-section {
    max-width: 90%;
  }

  .attempt-img {
    max-width: 45%;
  }

  .attempt-text {
    flex: 1;
    padding: 0 1rem;
  }

  .attempt-card {
    flex: 1 1 45%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .types-list {
    flex-direction: column;
    align-items: center;
  }

  .types-list li {
    width: 100%;
  }

  .attempt-card {
    flex: 1 1 100%;
  }
}
