/* ==========================================================================
   Muratsu Dental テーマ 下層ページ共通スタイル
   目次系ページ（診療案内一覧／料金一覧／症例一覧／ドクター一覧／記事一覧／症例データ）
   ／医院紹介／アクセスで共通して読み込む。base.css の共通トークンを前提とする。
   ========================================================================== */
/* ===== ヘッダー（下層ページ：横並び） ===== */
.site-header--sub { padding: 18px 0; background: #fff; border-bottom: 1px solid var(--border); }
.site-header--sub .section-inner { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.site-header--sub .logo-box {
  display: flex; align-items: center; gap: 9px; font-weight: 900; color: var(--navy); font-size: 16px;
  flex-shrink: 0; text-decoration: none; white-space: nowrap;
}
.site-header--sub .logo-box img { width: 30px; height: 30px; }
.site-header--sub .nav-row { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; }
.site-header--sub .nav-item-box {
  padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--navy); border-radius: 999px;
  cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block;
  transition: background .15s ease, color .15s ease;
}
.site-header--sub .nav-item-box:hover, .site-header--sub .nav-item-box.active { background: var(--primary-light); color: var(--primary); }
.site-header--sub .hamburger-box {
  display: none; width: 38px; height: 38px; flex-shrink: 0; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy); background: var(--primary-light); border-radius: var(--radius-sm); cursor: pointer; border: none;
}
.site-header--sub .reserve-btn-box {
  flex-shrink: 0; padding: 10px 20px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.site-header--sub .reserve-btn-box:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); color: #fff; }

/* ===== パンくず ===== */
.breadcrumb { padding: 14px 0; background: var(--primary-lighter); }
.breadcrumb-box { font-size: 12px; color: var(--text-muted); }
.breadcrumb-box a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-box a:hover { color: var(--primary); }
.breadcrumb-box span { color: var(--navy); font-weight: 700; }

/* ===== ページ見出し ===== */
.page-head { text-align: center; padding-bottom: 8px; }
.page-title-box { font-size: 28px; font-weight: 900; color: var(--navy); margin: 0 auto 10px; }
.page-lead-box { max-width: 60%; margin: 0 auto 28px; font-size: 14px; color: var(--text-muted); }

/* ===== 一覧カードグリッド（診療案内／料金／症例） ===== */
.item-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.item-grid > li { scroll-margin-top: 24px; }
.item-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; color: inherit;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.item-thumb-box { width: 100%; height: 96px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.item-thumb-box img { width: 46px; height: 46px; object-fit: contain; }
.item-thumb-box svg { width: 42px; height: 42px; }
.item-title-box { padding: 12px 14px 2px; font-size: 13.5px; font-weight: 800; color: var(--navy); }
.item-desc-box { padding: 0 14px 10px; font-size: 11.5px; color: var(--text-muted); }
.item-link-box { padding: 0 14px 14px; font-size: 11.5px; font-weight: 700; color: var(--primary); margin-top: auto; }

/* ===== ドクター一覧 =====
   「優しそう感」を意識し、角を大きめの丸みにする／写真の周りに淡い水色の余白（マット）を入れて
   フレーム越しに見えるような柔らかい印象にする／役職は控えめな丸ピルバッジ、ボタンは塗りの
   ソフトピルにして、輪郭のはっきりした線を極力減らしている。 */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.doctor-card {
  padding: 14px 20px 26px; text-align: center; background: #fff; border: none;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.doctor-photo-box {
  width: 100%; aspect-ratio: 9 / 10; border-radius: var(--radius-lg); margin: 0 auto 18px; overflow: hidden;
  background: var(--primary-lighter); padding: 10px;
}
.doctor-photo-box img { width: 100%; height: 100%; border-radius: var(--radius-md); object-fit: cover; object-position: center top; }
.doctor-name-box { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.02em; }
.doctor-title-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); padding: 4px 16px; border-radius: 999px; margin-bottom: 10px;
}
.doctor-role-box { font-size: 11.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.doctor-link-box {
  display: block; width: 100%; padding: 10px; font-size: 12px; font-weight: 700; color: var(--primary-dark);
  border: none; border-radius: 999px; background: var(--primary-light); cursor: pointer; text-decoration: none;
  transition: all .15s ease;
}
.doctor-link-box:hover { background: var(--primary); color: #fff; }
.doctor-link-box:hover { border-color: var(--primary); background: var(--primary-light); }

/* ===== 記事一覧 ===== */
.category-jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.category-jump-nav a {
  padding: 8px 16px; font-size: 12px; font-weight: 700; border: 1.5px solid var(--border); background: #fff;
  border-radius: 999px; text-decoration: none; color: var(--navy); transition: all .15s ease;
}
.category-jump-nav a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.category-block { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px dashed var(--border); scroll-margin-top: 90px; }
.category-block:last-child { margin-bottom: 0; border-bottom: none; }
.category-block-title {
  font-size: 18px; font-weight: 900; color: var(--navy); margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); display: flex; align-items: center; gap: 8px;
}
.category-block-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.format-block { margin-bottom: 18px; border-radius: var(--radius-md); padding: 20px; }
.format-block:last-child { margin-bottom: 0; }
.format-block.youtube { background: var(--yt-bg); border: 1.5px solid #f0c4c1; }
.format-block.column { background: var(--primary-lighter); border: 1.5px solid var(--border); }
.format-block-title { font-size: 13px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.format-block.youtube .format-block-title { color: var(--yt-red); }
.format-block.column .format-block-title { color: var(--primary); }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-thumb-box { width: 100%; height: 78px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.article-thumb-box img { width: 100%; height: 100%; object-fit: cover; }
.format-block.youtube .article-thumb-box:not(:has(img)) { background: linear-gradient(135deg, var(--navy) 0%, #3a6ea5 100%); }
.format-block.column .article-thumb-box:not(:has(img)) { background: linear-gradient(135deg, #4a7fc9 0%, #7fa8d6 100%); }
.article-title-box { padding: 8px 10px; font-size: 11.5px; font-weight: 700; color: var(--navy); }

.load-more-box {
  display: inline-flex; margin: 22px auto 0; padding: 10px 26px; font-size: 12.5px; font-weight: 700;
  color: var(--primary); border: 1.5px solid var(--primary); border-radius: 999px; background: #fff; cursor: pointer;
  transition: all .15s ease;
}
.load-more-box:hover { background: var(--primary); color: #fff; }

/* ===== 症例データ（簡易サイトマップ風） ===== */
.simple-index-note {
  font-size: 12.5px; color: #b45309; background: #fff7ed; padding: 14px 16px;
  border-radius: var(--radius-sm); margin-bottom: 24px; border: 1px solid #f0d9ae;
}
.simple-index-list { font-size: 13.5px; line-height: 2.1; color: var(--text); }
.simple-index-list .cat-heading {
  font-weight: 800; margin-top: 18px; display: block; color: var(--navy); font-size: 14.5px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.simple-index-list a { color: var(--primary); text-decoration: none; }
.simple-index-list a:hover { text-decoration: underline; }

/* ===== 医院紹介：理念 ===== */
.about-intro { text-align: center; background: var(--primary-lighter); }
.about-quote-box { font-size: 22px; font-weight: 900; color: var(--navy); line-height: 1.7; max-width: 680px; margin: 0 auto 20px; }
.about-lead-text {
  font-size: 13.5px; line-height: 1.9; color: var(--text); max-width: 680px; margin: 0 auto;
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow);
}
.about-section-title {
  font-size: 19px; font-weight: 900; color: var(--navy); margin: 0 0 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); display: flex; align-items: center; gap: 8px;
}
.about-section-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ===== 医院の特徴／予約方法（3カード共通レイアウト） ===== */
.feature-grid, .reserve-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.feature-card, .reserve-method-card {
  padding: 24px 20px; text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.feature-icon-box, .reserve-method-icon-box {
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; margin-bottom: 14px; display: flex;
  align-items: center; justify-content: center; background: var(--primary-light);
}
.reserve-method-icon-box img { width: 24px; height: 24px; }
.feature-title-box, .reserve-method-title-box { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feature-desc-box, .reserve-method-desc-box { font-size: 12.5px; line-height: 1.75; color: var(--text-muted); }

/* ===== 数字で見る実績 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.stat-card { padding: 22px 10px; text-align: center; background: var(--primary-lighter); border: 1px solid var(--border); border-radius: var(--radius-md); }
.stat-number-box { font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1.2; }
.stat-number-box .unit { font-size: 14px; font-weight: 700; color: var(--navy); margin-left: 2px; }
.stat-label-box { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }

/* ===== ドクター紹介への導線 ===== */
.doctor-teaser-card {
  display: flex; align-items: center; gap: 24px; padding: 24px; text-align: left; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.doctor-teaser-photo-box {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; font-size: 34px; color: #fff; display: flex;
  align-items: center; justify-content: center; background: linear-gradient(145deg, var(--primary) 0%, #4a9af0 100%);
}
.doctor-teaser-photo-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.doctor-teaser-text { flex: 1; font-size: 13.5px; line-height: 1.8; color: var(--text); }
.doctor-teaser-link-box {
  flex-shrink: 0; padding: 12px 22px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--primary);
  border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s ease;
}
.doctor-teaser-link-box:hover { background: var(--primary-dark); color: #fff; }

/* ===== 医院設備 ===== */
.equipment-intro-text { font-size: 13.5px; line-height: 1.85; margin-bottom: 18px; color: var(--text); }
.equipment-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.equipment-chip-box { padding: 9px 18px; font-size: 12.5px; font-weight: 700; border-radius: 999px; background: var(--primary-light); color: var(--navy); }

/* ===== テーブル（医院概要／診療時間） ===== */
.summary-table, .hours-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13.5px; }
.summary-table th, .summary-table td, .hours-table th, .hours-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.summary-table th, .hours-table th { width: 150px; font-size: 12px; color: var(--text-muted); font-weight: 700; background: var(--primary-lighter); }
.summary-table td, .hours-table td { color: var(--text); }
.summary-link-row { text-align: right; margin-top: 16px; font-size: 12.5px; }
.summary-link-row a { color: var(--primary); cursor: pointer; font-weight: 700; text-decoration: none; }
.summary-link-row a:hover { text-decoration: underline; }

/* ===== アクセス：地図 ===== */
.access-map-box {
  width: 100%; height: 260px; margin-top: 8px; font-size: 13px; border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--navy) 0%, #3a6ea5 100%); color: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
}
.access-map-box::before { content: "📍"; font-size: 32px; }
.access-map-embed { width: 100%; margin-top: 8px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.access-map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== アクセス：基本情報カード ===== */
.access-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.access-info-card { padding: 20px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.access-info-label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.access-info-value { font-size: 15.5px; font-weight: 800; color: var(--navy); line-height: 1.6; margin-top: 4px; }
.access-info-value.muted { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* ===== Web予約フォーム ===== */
.reserve-intro { text-align: center; background: var(--primary-lighter); padding-bottom: 30px; }
.reserve-intro-text { max-width: 620px; margin: 0 auto; font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }
.reserve-form-section { padding-top: 30px; }
.reserve-form {
  max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 40px;
}
/* ラベルを色付きブロックにして左、入力欄を右に並べる（実際の予約フォームのレイアウトに合わせる） */
.reserve-field-row {
  display: grid; grid-template-columns: 200px 1fr; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.reserve-field-label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700;
  color: #fff; background: #5f7fac; padding: 14px 16px;
}
.reserve-required {
  font-size: 10.5px; font-weight: 700; color: #fff; background: var(--yt-red);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.05em;
}
.reserve-optional {
  font-size: 10.5px; font-weight: 700; color: var(--navy); background: rgba(255,255,255,0.75);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.05em;
}
.reserve-field-input {
  background: #fff; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.reserve-field-input--stacked { gap: 8px; }
.reserve-hint { font-size: 11.5px; color: var(--text-muted); margin: -4px 0 10px; }
.reserve-input, .reserve-select, .reserve-textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.reserve-input:focus, .reserve-select:focus, .reserve-textarea:focus {
  outline: none; border-color: var(--primary); background: var(--primary-lighter);
}
.reserve-textarea { resize: vertical; min-height: 110px; }
.reserve-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reserve-radio-group, .reserve-checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.reserve-radio-label, .reserve-checkbox-label {
  display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text);
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer;
  background: #fff; transition: border-color .15s ease, background-color .15s ease;
}
.reserve-radio-label:has(input:checked), .reserve-checkbox-label:has(input:checked) {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 700;
}
.reserve-radio-label input, .reserve-checkbox-label input { accent-color: var(--primary); }
.reserve-consent {
  margin-top: 30px; padding: 16px 18px; background: var(--primary-lighter); border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.8; color: var(--text);
}
.reserve-consent a { color: var(--primary); text-decoration: underline; }
.reserve-submit-row { text-align: center; margin-top: 30px; }
.reserve-submit {
  padding: 16px 56px; font-size: 15px; font-weight: 800; color: #fff; background: var(--primary);
  border: none; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); transition: background-color .15s ease, box-shadow .15s ease;
}
.reserve-submit:hover { background: var(--primary-dark); box-shadow: var(--shadow-hover); }
.reserve-notice {
  max-width: 720px; margin: 0 auto 24px; padding: 16px 20px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700;
}
.reserve-notice.success { background: #e9f9ef; color: var(--line-green-dark); border: 1px solid #a8e6c1; }
.reserve-notice.error { background: var(--yt-bg); color: var(--yt-red); border: 1px solid #f0c4c1; }

/* ===== Web予約：診療時間・アクセス（実際の予約ページ参考） ===== */
.reserve-info { background: var(--primary-lighter); }
.reserve-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.reserve-info-address { font-size: 13.5px; color: var(--text); line-height: 1.9; margin: 0 0 14px; }
.reserve-info-address a { color: var(--primary); font-weight: 700; text-decoration: none; }
.reserve-info-address a:hover { text-decoration: underline; }

/* ===== レスポンシブ（モバイル） ===== */
@media (max-width: 782px) {
  .site-header--sub { padding: 14px 0; }
  .site-header--sub .section-inner { flex-wrap: wrap; }
  .site-header--sub .nav-row { display: none; width: 100%; flex-direction: column; order: 3; margin-top: 10px; }
  .site-header--sub .nav-row.is-open { display: flex; }
  .site-header--sub .nav-item-box { display: block; width: 100%; text-align: left; }
  .site-header--sub .hamburger-box { display: flex; }
  .site-header--sub .reserve-btn-box { padding: 9px 14px; font-size: 11.5px; }
  .page-lead-box { max-width: 100%; }
  .page-title-box { font-size: 22px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .reserve-method-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-teaser-card { flex-direction: column; text-align: center; }
  .doctor-teaser-text { text-align: center; }
  .access-info-grid { grid-template-columns: 1fr; }
  .reserve-info-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary-table th, .hours-table th { width: 100px; font-size: 11px; }
  .about-quote-box { font-size: 17px; }
  .reserve-form { padding: 20px; }
  .reserve-row { grid-template-columns: 1fr; }
  .reserve-field-row { grid-template-columns: 1fr; }
  .reserve-field-label { border-radius: 0; }
}
