/* =============================================
   入院関連ページ共通スタイル
   hospitalization-style.css

   Design Philosophy:
   "引き算の美学" — タイポグラフィと余白の力だけで語る
   ============================================= */

/* =============================================
   リセット・基盤
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: #3a3a3a;
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #3156A3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1e3d7a;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* =============================================
   目次（Table of Contents）
   出版物のような静かな存在感
   ============================================= */
.page-toc {
  background: #fff;
  border-radius: 2px;
  padding: 32px 44px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.page-toc-title {
  font-size: 17px;
  font-weight: 600;
  color: #9ab;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'PT Serif', serif;
  font-style: italic;
}

.page-toc-list {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.page-toc-list li {
  counter-increment: toc;
}

.page-toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 9px 0;
  border-bottom: 1px solid #f0f1f3;
  color: #4a4a4a;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  text-decoration: none;
}

.page-toc-list li:last-child a {
  border-bottom: none;
}

.page-toc-list li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: #bcc8d8;
  min-width: 32px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.page-toc-list li a:hover {
  color: #3156A3;
}

.page-toc-list li a:hover::before {
  color: #3156A3;
}

/* 目次: 番号なし・ドット */
.page-toc-list--bullet {
  counter-reset: none;
}

.page-toc-list--bullet li {
  counter-increment: none;
}

.page-toc-list--bullet li a::before {
  content: '・';
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-size: 17px;
  color: #bcc8d8;
  min-width: 20px;
}

/* 目次: フェーズラベル */
.page-toc-phase {
  font-size: 17px;
  font-weight: 600;
  color: #9ab;
  letter-spacing: 0.12em;
  padding: 16px 0 6px;
}

.page-toc-phase:first-child {
  padding-top: 0;
}

/* 別ページへのリンク（外部リンク） */
.page-toc-list li a[href^="hospitalization-"]::after {
  content: '→';
  font-size: 17px;
  color: #bcc8d8;
  margin-left: 8px;
  transition: color 0.25s ease;
}

.page-toc-list li a[href^="hospitalization-"]:hover::after {
  color: #3156A3;
}

/* =============================================
   ページヒーロー（タイトル領域）
   アイコン廃止 → タイポグラフィのみで品格を表現
   ============================================= */
.page-hero {
  background: #3156A3;
  padding: 56px 20px 52px;
  text-align: center;
  position: relative;
}

/* ヒーロー下部の繊細なグラデーション境界 */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.page-hero .page-subtitle {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
}

/* ページヒーローのアイコンは非表示 */
.page-hero .page-icon {
  display: none;
}

/* =============================================
   ページコンテナ
   ============================================= */
.page-container {
/*  max-width: 800px;*/
  margin: 0 auto;
  padding: 48px 20px 72px;
}

/* =============================================
   セクション共通
   ============================================= */
.info-section {
  background: #fff;
  border-radius: 2px;
  padding: 40px 44px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: none;
}

.info-section:last-child {
  margin-bottom: 0;
}

/* =============================================
   セクション見出し — アイコン完全廃止
   細い左ラインとタイポグラフィだけで表現
   ============================================= */
.section-heading {
  display: block;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 3px solid #3156A3;
  border-bottom: none;
  padding-bottom: 0;
}

/* heading-iconは非表示（HTMLに残っていても影響なし） */
.section-heading .heading-icon {
  display: none;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.section-heading h2 small {
  display: block;
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: #9ab;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* =============================================
   導入テキスト（リード文）
   ============================================= */
.lead-text {
  font-size: 17px;
  line-height: 2;
  color: #4a4a4a;
}

.lead-text p {
  margin-bottom: 16px;
}

.lead-text p:last-child {
  margin-bottom: 0;
}

/* =============================================
   インフォボックス（補足情報）
   ============================================= */
.info-box {
  background: #FFF8F0;
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 16px;
  border-left: 3px solid #e8c9a0;
}

.info-box.warn {
  background: #FDF6EC;
  border-left-color: #d4b87c;
}

.info-box.important {
  background: #FDF5F0;
  border-left-color: #c0816e;
}

.info-box p {
  font-size: 17px;
  line-height: 1.9;
  color: #555;
}

.info-box-title {
  font-size: 17px;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.02em;
}

/* info-box-titleのアイコンも非表示 */
.info-box-title i {
  display: none;
}

.info-box.warn .info-box-title {
  color: #8a6d3b;
}

.info-box.important .info-box-title {
  color: #8a4a3b;
}

/* =============================================
   チェックリスト（持ち物など）
   アイコン → 小さな丸ドットに変更
   ============================================= */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 17px;
  color: #3a3a3a;
  flex-wrap: wrap;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #3156A3;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

.checklist li strong {
  color: #2a2a2a;
}

.checklist-sub {
  font-size: 17px;
  color: #888;
  display: block;
  width: 100%;
  padding-left: 21px;
  margin-top: 3px;
}

/* レンタル不要マーク */
.rental-note {
  color: #3156A3;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px solid #3156A3;
}

.rental-item {
  color: #3156A3;
  font-weight: 500;
  border-bottom: 1px dotted #93a7cc;
}

/* =============================================
   ルールリスト（心得・注意事項）
   ============================================= */
.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}

.rule-list li:last-child {
  border-bottom: none;
}

.rule-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #b0bec5;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

/* =============================================
   詳細リスト（箇条書き）
   ============================================= */
.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #b0bec5;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

/* =============================================
   テーブル（料金表・面会時間など）
   ============================================= */
.info-table-wrapper {
  overflow-x: auto;
  margin-top: 4px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.info-table thead th {
  background: #FFF5EB;
  color: #3a3a3a;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid #e8c9a0;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.info-table thead th:first-child {
  border-radius: 0;
}

.info-table thead th:last-child {
  border-radius: 0;
}

.info-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f2;
  color: #444;
  vertical-align: top;
}

.info-table tbody tr:last-child td {
  border-bottom: none;
}

.info-table tbody tr:nth-child(even) {
  background: #FFF8F0;
}

.info-table tbody td:first-child {
  font-weight: 600;
  color: #2a2a2a;
  white-space: nowrap;
}

/* =============================================
   PDFダウンロードリンク
   ============================================= */
.download-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #FFF8F0;
  border: 1px solid #f0dcc8;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.download-item:hover {
  border-color: #e8a84c;
  background: #FFF5EB;
  color: #333;
}

.download-item .dl-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-item .dl-icon i {
  font-size: 24px;
  color: #c0816e;
}

.download-item .dl-text {
  flex: 1;
  min-width: 0;
}

.download-item .dl-name {
  font-size: 17px;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.4;
}

.download-item .dl-meta {
  font-size: 17px;
  color: #aaa;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.download-item .dl-arrow {
  color: #ccc;
  font-size: 17px;
  transition: all 0.25s ease;
}

.download-item:hover .dl-arrow {
  color: #3156A3;
  transform: translateX(3px);
}

/* =============================================
   関連ページリンク
   ============================================= */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.related-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #FFF8F0;
  border: 1px solid #f0dcc8;
  border-radius: 3px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #333;
}

.related-link-card:hover {
  border-color: #e8a84c;
  background: #FFF5EB;
  color: #333;
}

/* 関連リンクのアイコンも非表示 */
.related-link-card .rl-icon {
  display: none;
}

.related-link-card .rl-text {
  flex: 1;
  min-width: 0;
}

.related-link-card .rl-name {
  font-size: 17px;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.5;
}

.related-link-card .rl-desc {
  font-size: 17px;
  color: #999;
  margin-top: 3px;
}

.related-link-card .rl-arrow {
  color: #ccc;
  font-size: 17px;
  transition: all 0.25s ease;
}

.related-link-card:hover .rl-arrow {
  color: #3156A3;
  transform: translateX(3px);
}

/* もっと見るリンク */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #3156A3;
  letter-spacing: 0.02em;
}

.more-link:hover {
  color: #1e3d7a;
}

/* =============================================
   お問い合わせボックス（CTA）
   ============================================= */
.contact-box {
  background: #FFF8F0;
  border: 1px solid #f0dcc8;
  border-radius: 3px;
  padding: 36px 40px;
  text-align: center;
}

/* contact-box内のアイコンも非表示 */
.contact-box h3 i,
.contact-box .tel-number i {
  display: none;
}

.contact-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.contact-box p {
  font-size: 17px;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.8;
}

.contact-box .tel-number {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 26px;
  font-weight: 700;
  color: #3156A3;
  letter-spacing: 0.06em;
}

.contact-box .tel-note {
  font-size: 17px;
  color: #999;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* =============================================
   ステップフロー（入院までの流れ等）
   ============================================= */
.step-flow {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-item:first-child {
  padding-top: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid #3156A3;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3156A3;
  position: relative;
}

.step-number .label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0.6;
}

.step-number .num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.step-item:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100%);
  background: #dde2ea;
  z-index: -1;
}

.step-content {
  flex: 1;
  padding-top: 2px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.step-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #555;
}

/* =============================================
   アスタリスクリスト（東病棟の✽項目）
   ============================================= */
.asterisk-list {
  list-style: none;
  padding: 0;
}

.asterisk-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}

.asterisk-list li:last-child {
  border-bottom: none;
}

.asterisk-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #b0bec5;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

/* =============================================
   ダイヤモンドリスト（◆項目）
   ============================================= */
.diamond-list {
  list-style: none;
  padding: 0;
}

.diamond-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}

.diamond-list li:last-child {
  border-bottom: none;
}

.diamond-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #3156A3;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

/* 除外リスト（*印の小さなリスト） */
.exception-list {
  list-style: none;
  padding: 0 0 0 18px;
  margin-top: 10px;
}

.exception-list li {
  font-size: 17px;
  line-height: 1.9;
  color: #666;
  padding: 2px 0;
  border-bottom: none;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.exception-list li::before {
  content: '—';
  margin-right: 8px;
  color: #bbb;
}

/* =============================================
   ナビゲーション（前後ページ）
   ============================================= */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  gap: 16px;
  flex-wrap: wrap;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e0e2e6;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 500;
  color: #666;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.page-nav a:hover {
  border-color: #3156A3;
  color: #3156A3;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 767px) {
  .page-toc {
    padding: 24px 22px;
  }

  .page-toc-list li a {
    font-size: 17px;
    padding: 8px 0;
  }

  .page-hero {
    padding: 40px 16px 36px;
  }

  .page-hero h1 {
    font-size: 21px;
    letter-spacing: 0.08em;
  }

  .page-container {
    padding: 28px 16px 48px;
  }

  .info-section {
    padding: 28px 22px;
  }

  .section-heading {
    margin-bottom: 22px;
    padding-left: 14px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .step-item {
    gap: 14px;
  }

  .step-number {
    width: 40px;
    height: 40px;
  }

  .step-number .num {
    font-size: 17px;
  }

  .step-content h3 {
    font-size: 17px;
  }

  .download-list {
    grid-template-columns: 1fr;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 28px 22px;
  }

  .contact-box .tel-number {
    font-size: 22px;
  }

  .page-nav {
    flex-direction: column;
  }

  .page-nav a {
    width: 100%;
    justify-content: center;
  }

  .checklist-sub {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 22px 18px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .info-table {
    font-size: 17px;
  }

  .info-table thead th,
  .info-table tbody td {
    padding: 10px 12px;
  }
}
