﻿/* ============================================================
   診療案内ページ — guide page styles (gd-)
   reuses tokens & shared components from styles.css
   ============================================================ */

/* ---------- Hero ---------- */
.gd-hero { position: relative; overflow: hidden; }
.gd-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 120% at 50% -20%, var(--primary-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}
.gd-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--primary) 20%, transparent) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: 0.3;
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, transparent 65%);
}
.gd-hero-inner {
  position: relative; text-align: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.gd-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary-deep);
}
.gd-hero-eyebrow::before {
  content: ""; width: 20px; height: 2px;
  background: var(--primary); display: inline-block;
}
.gd-hero-title {
  font-size: clamp(40px, 6vw, 68px); letter-spacing: 0.06em;
  margin-top: 14px; color: var(--ink);
}
.gd-hero-lead {
  margin-top: 18px; font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-soft); line-height: 1.6;
  max-width: 50ch; margin-inline: auto;
}

/* ---------- Jump Nav ---------- */
.gd-jumpnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}
.gd-jumpnav-inner {
  display: flex; gap: 12px; flex-wrap: wrap;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.gd-jumplink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.04em;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--primary-soft); color: var(--primary-deep);
  border: 1.5px solid color-mix(in oklab, var(--primary) 24%, transparent);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.gd-jumplink:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--primary) 60%, black);
}
.gd-jumplink-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--primary) 18%, transparent);
}
.gd-jumplink:hover .gd-jumplink-icon { background: rgba(255,255,255,0.2); }

/* ---------- Section Banner ---------- */
.gd-sec-banner {
  background: linear-gradient(135deg, var(--primary-deep), color-mix(in oklab, var(--primary) 86%, black));
  padding: clamp(22px, 3vw, 34px) 0;
  scroll-margin-top: 78px;
  position: relative; overflow: hidden;
}
.gd-sec-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1.6px);
  background-size: 24px 24px;
  mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 60%);
  pointer-events: none;
}
.gd-sec-banner-inner {
  display: flex; align-items: center; gap: 18px;
  position: relative;
}
.gd-sec-banner-icon {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-md); background: rgba(255,255,255,0.18); color: #fff;
}
.gd-sec-banner-en {
  display: block; font-size: 15px; font-weight: 700;
  letter-spacing: 0.16em; color: rgba(255,255,255,0.72);
  text-transform: uppercase; margin-bottom: 4px;
}
.gd-sec-banner-title {
  font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700; color: #fff; letter-spacing: 0.06em; margin: 0; line-height: 1.2;
}

/* ---------- Sections ---------- */
.gd-section { padding-block: var(--pad-section); }
.gd-section-alt { background: var(--surface-2); }
.gd-sect-head { margin-bottom: 32px; }

.gd-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}

/* ---------- 診療時間テーブル ---------- */
.gd-hours-card {
  max-width: 880px; margin-inline: auto;
  padding: clamp(20px, 3vw, 36px);
}
.gd-hours-scroll { overflow-x: visible; }
.gd-hours-table {
  width: 100%; border-collapse: separate;
  border-spacing: 6px;
}
.gd-hours-table th,
.gd-hours-table td { text-align: center; }
.gd-hours-table thead th {
  font-size: 18px; font-weight: 700; color: var(--ink);
  padding: 10px 0; background: var(--surface-2); border-radius: var(--r-sm);
}
.gd-hours-table thead th.gd-off { color: var(--accent); background: var(--accent-soft); }
.gd-corner { background: transparent !important; }
.gd-hours-table tbody th {
  text-align: left; padding: 14px 16px;
  background: var(--surface-2); border-radius: var(--r-sm); white-space: nowrap;
}
.gd-hours-table tbody th strong { display: block; font-size: 22px; color: var(--ink); }
.gd-hours-table tbody th span {
  display: block; font-size: 18px; color: var(--ink-soft);
  font-family: ui-monospace, monospace; white-space: nowrap;
}
.gd-hours-table td { padding: 14px 0; border-radius: var(--r-sm); font-weight: 700; }
.gd-open  { background: var(--primary-soft); color: var(--primary-deep); }
.gd-closed { background: color-mix(in oklab, var(--surface-3) 55%, var(--surface)); color: var(--ink-faint); }
.gd-dot  { font-size: 15px; color: #ff9b4f; line-height: 1; display: inline-block; }
.gd-dash { font-size: 14px; }

.gd-hours-notes {
  list-style: none; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
}
.gd-hours-notes li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
}
.gd-hours-notes li svg { color: var(--primary); flex: none; margin-top: 3px; }
.gd-hours-notes strong { color: var(--ink); }

/* ---------- 持ち物リスト ---------- */
.gd-bring-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.gd-bring-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.gd-bring-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary-deep); color: #fff;
}
.gd-bring-item strong { display: block; font-size: 18px; color: var(--ink); }
.gd-bring-item span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 注意事項ボックス ---------- */
.gd-notices {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.gd-notices-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700; color: var(--primary-deep);
  margin: 0 0 14px;
}
.gd-notices-head svg { flex: none; }
.gd-notices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gd-notices li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 20px; color: var(--ink-soft); line-height: 1.55;
}
.gd-notices li svg { color: var(--primary); flex: none; margin-top: 2px; }

/* ---------- 写真スロット ---------- */
.gd-photo-col { position: relative; }
.gd-photo {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--surface);
}

/* ---------- 入院 stats ---------- */
.gd-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.gd-stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.gd-stat-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--primary-deep); color: #fff;
  margin-bottom: 6px;
}
.gd-stat-card strong {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700;
  color: var(--primary-deep); letter-spacing: 0.02em; line-height: 1.2;
}
.gd-stat-card strong small { font-size: 0.55em; font-weight: 700; margin-left: 2px; }
.gd-stat-card > span { font-size: 18px; color: var(--ink-soft); line-height: 1.4; }

.gd-adm-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: color-mix(in oklab, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  border-radius: var(--r-md); padding: 18px 22px;
  max-width: 760px; margin-inline: auto;
}
.gd-adm-notice svg { color: var(--accent); flex: none; margin-top: 2px; }
.gd-adm-notice p { font-size: 14px; color: var(--ink); line-height: 1.55; }
.gd-adm-notice strong { color: var(--accent); }

.gd-checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.gd-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
}
.gd-checklist li svg { color: var(--primary); flex: none; margin-top: 3px; }

.gd-adm-sub {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 20px; font-size: 20px; color: var(--ink-soft); line-height: 1.55;
}
.gd-adm-sub svg { color: var(--primary); flex: none; margin-top: 2px; }

/* ---------- 透析 features ---------- */
.gd-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gd-feat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.gd-feat-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 5px; background: var(--primary);
}
.gd-feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gd-feat-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.gd-feat-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-deep);
}
.gd-feat-badge {
  font-size: 18px; font-weight: 700; padding: 5px 12px;
  border-radius: var(--r-pill); background: var(--primary-tint);
  color: var(--primary-deep);
  border: 1px solid color-mix(in oklab, var(--primary) 24%, transparent);
  white-space: nowrap;
}
.gd-feat-card h3 { font-size: 15px; color: var(--ink); letter-spacing: 0.03em; margin-bottom: 10px; }
.gd-feat-card p  { font-size: 20px; color: var(--ink-soft); line-height: 1.6; }

.gd-facility-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .gd-two-col { grid-template-columns: 1fr; }
  .gd-photo { aspect-ratio: 16 / 9; }
  .gd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-feat-grid { grid-template-columns: 1fr; max-width: 520px; }
  .gd-hours-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gd-tab { padding: 10px 20px; font-size: 18.5px; }
  .gd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-hours-table { border-spacing: 3px; table-layout: fixed; }
  .gd-corner { width: 72px; }
  .gd-hours-table thead th { font-size: 13px; padding: 8px 0; }
  .gd-hours-table tbody th { padding: 10px 6px; white-space: normal; width: 72px; }
  .gd-hours-table tbody th strong { font-size: 13px; }
  .gd-hours-table tbody th span { font-size: 11px; }
  .gd-hours-table td { padding: 10px 0; }
  .gd-dot { font-size: 13px; }
  .gd-dash { font-size: 13px; }
}
