/* ============================= */
/* 看取り（ターミナルケア）ページ */
/* ============================= */

/* --- ヒーローセクション --- */
.terminal-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.terminal-hero .section-en {
  display: block;
  text-align: center;
  text-transform: none;
  letter-spacing: 1px;
  font-weight: 600;
  color: #ef7a00;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* 導入文と最初のフェーズ説明は左寄せ */
.terminal-hero {
  text-align: left;
}

.terminal-hero .terminal-section-title,
.terminal-hero .terminal-intro,
.terminal-hero .terminal-text,
.terminal-phases:first-of-type .phase-sub,
.terminal-phases:first-of-type .terminal-section-title,
.terminal-phases:first-of-type .terminal-text {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.terminal-hero h1 {
  text-align: center;
  color: #d87b00;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.2rem 0 2rem;
}

.terminal-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.terminal-intro p {
  line-height: 2;
}

/* --- セクション見出し（オレンジ色） --- */
.terminal-section-title {
  color: #d87b00;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  position: relative;
  padding-bottom: 0;
}

.terminal-section-title::after {
  display: none;
}

.letter-button-wrap {
  text-align: center;
  margin: 0 0 2.5rem;
}

.letter-button {
  display: inline-block;
  background: #d87b00;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.letter-button:hover,
.letter-button:focus-visible {
  background: #bd6b00;
  transform: translateY(-1px);
}

/* --- テキストブロック --- */
.terminal-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.terminal-text p {
  line-height: 2;
}

/* --- Phase セクション --- */
.terminal-phases {
  padding: 3rem 0;
}

.phase-sub {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* --- Phase ブロック（2カラム：画像＋テキスト） --- */
.phase-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.phase-block.reverse {
  flex-direction: row-reverse;
}

.phase-img {
  flex: 0 0 40%;
  max-width: 400px;
}

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

.phase-content {
  flex: 1;
  text-align: left;
}

.phase-content p {
  line-height: 2;
}

/* --- Phase タイトル --- */
.phase-title {
  color: #d87b00;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.phase-title span {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

/* --- ARIS キーワードリスト --- */
.aris-keywords {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.aris-keywords li {
  font-size: 1.05rem;
  padding: 0.3rem 0;
  line-height: 1.8;
}

.aris-keywords li strong {
  color: #d87b00;
  font-size: 1.2rem;
}

/* --- ARIS care セクション --- */
.aris-section {
  background-color: #fdf8f2;
  padding: 3rem 1rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.aris-sub {
  text-align: center;
  color: #d87b00;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.aris-items {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- ARIS 各項目 --- */
.aris-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e8ddd2;
  align-items: flex-start;
}

.aris-item:last-child {
  border-bottom: none;
}

.aris-label {
  flex: 0 0 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.aris-letter {
  font-size: 2.5rem;
  font-weight: 700;
  color: #d87b00;
  line-height: 1;
}

.aris-word {
  font-size: 1rem;
  font-weight: 600;
  color: #d87b00;
}

.aris-ja {
  font-size: 0.85rem;
  color: #666;
}

.aris-content {
  flex: 1;
  text-align: left;
}

.aris-content h3 {
  color: #d87b00;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.aris-content p {
  line-height: 2;
}

/* --- はなまる家族会 --- */
.family-meeting {
  padding: 3rem 0;
  text-align: center;
}

.family-meeting-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d87b00;
  margin-bottom: 2rem;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .phase-block,
  .phase-block.reverse {
    flex-direction: column;
  }

  .phase-img {
    flex: none;
    max-width: 100%;
  }

  .aris-item {
    gap: 1rem;
  }

  .aris-label {
    flex: 0 0 80px;
  }

  .aris-letter {
    font-size: 1.8rem;
  }

  .aris-word {
    font-size: 0.85rem;
  }

  .aris-ja {
    font-size: 0.75rem;
  }

  .aris-content h3 {
    font-size: 0.95rem;
  }

  .aris-content p {
    font-size: 0.9rem;
  }

  .aris-section {
    padding: 2rem 0.75rem;
  }

  .terminal-hero h1 {
    font-size: 1.4rem;
  }

  .terminal-section-title {
    font-size: 1.2rem;
  }

  .terminal-phases {
    padding: 1.5rem 0;
  }
}
