@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Shippori+Mincho:wght@400;600&family=Zen+Old+Mincho:wght@400;700;900&display=swap');

:root {
  --primary:       #1a3a93;
  --primary-light: #4f76fd;
  --secondary:     #456ffc;
  --accent:        #fe81ac;
  --white:         #ffffff;
  --text:          #1a1a2e;
  --radius:        8px;
  --shadow:        0 2px 12px rgba(26,58,147,0.13);
  --max-w:         680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.85;
  margin: 0;
  padding: 0;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; color: var(--primary-light); }

.site-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2px 4px 32px;
}

/* ─── ヘッダー ─── */
.page-header {
  background: var(--secondary);
  text-align: center;
  padding: 18px 16px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}
.page-header .clinic-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(1.5rem, 5.5vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  margin: 0;
}
.page-header .clinic-catch {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 6px 0 10px;
  line-height: 1.6;
}
.page-header .clinic-dept {
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  margin: 0;
}

/* ─── パンくず ─── */
.breadcrumb {
  background: var(--white);
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #666;
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--primary); }

/* ─── 記事タイトル ─── */
.article-title {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
}
.article-title small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

/* ─── 記事本文 ─── */
.article-body {
  background: var(--white);
  padding: 18px 16px;
  font-size: 0.97rem;
  line-height: 1.9;
}
.article-body h2 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  border-left: 4px solid var(--secondary);
  padding-left: 10px;
  margin: 28px 0 12px;
}
.article-body h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 10px;
}
.article-body p {
  margin: 0 0 14px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}

/* ─── テーブル ─── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 0.9rem;
}
.article-body th {
  background: var(--secondary);
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.article-body td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.article-body tr:nth-child(even) td {
  background: #f7f9ff;
}
.article-body td strong {
  color: var(--primary);
}

/* ─── 注意ボックス ─── */
.alert-box {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
  padding: 12px 14px;
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: #c53030;
  font-weight: 500;
}

/* ─── フッター ─── */
.page-footer {
  background: var(--secondary);
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 12px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 8px;
}
.page-footer a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color .2s;
}
.page-footer a:hover { color: #fff; text-decoration: none; }

/* ─── レスポンシブ ─── */
@media (max-width: 480px) {
  .article-body { padding: 14px 12px; }
  .article-body table { font-size: 0.82rem; }
  .article-body th, .article-body td { padding: 6px 7px; }
}

/* ─── 印刷 ─── */
@media print {
  .page-header, .page-footer, .breadcrumb { display: none; }
  .article-body { padding: 0; }
}
