/* template-D-medical-clinic.json 正本準拠
   chigusa-cl.com 解析ベース: ベージュ × ディープセージ × くすみピンク
   medical clinic (internal medicine + cosmetic dermatology) */

:root {
  --bg: #FBF7F2;
  --surface: #FFFFFF;
  --primary: #3F5D4E;
  --primary-dark: #2E4438;
  --accent-warm: #D4A5A5;
  --accent-neutral: #E8D4C4;
  --text: #2A2A2A;
  --muted: #7A7A7A;
  --border: rgba(42, 42, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(63, 93, 78, 0.08);
  --shadow-card: 0 2px 12px rgba(42, 42, 42, 0.06);
  --radius: 4px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", "メイリオ", Meiryo, sans-serif;
  line-height: 1.95;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

/* 日本のクリニックHP定番: 見出しは明朝で信頼感・本文はゴシックで可読性 */
h1, h2, h3, h4,
.hero h1, .section-head h2, .point-card h3, .greeting-text h2, .menu-item h4, .topic-title, .brand-name, .doctor-name strong {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "MS PMincho", "ＭＳ Ｐ明朝", serif;
  font-weight: 500;
}

.wrap { width: min(var(--max-w), calc(100% - 40px)); margin: 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.brand-sub { font-family: "Montserrat", sans-serif; font-size: 10px; letter-spacing: 0.25em; color: var(--muted); }

.header-cta { display: flex; gap: 10px; align-items: center; }
.tel-link { font-weight: 600; color: var(--primary); font-size: 17px; letter-spacing: 0.04em; }
.tel-link small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: 0.15em; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 2px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { filter: brightness(0.95); }

@media (max-width: 720px) {
  .header-cta .tel-link { display: none; }
  .btn { padding: 8px 12px; font-size: 12px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: clamp(440px, 65vh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 28%;
  background-image:
    linear-gradient(135deg, rgba(63,93,78,0.18) 0%, rgba(212,165,165,0.22) 100%),
    linear-gradient(180deg, #E8D4C4 0%, #D4A5A5 100%);
}
.hero-photo[data-photo] { background-image: var(--photo-url), linear-gradient(180deg, #E8D4C4 0%, #D4A5A5 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(251,247,242,0.85) 0%, rgba(251,247,242,0.45) 60%, transparent 100%);
}
.hero-inner { padding: 80px 0; max-width: 640px; }
.hero-en {
  font-family: "Montserrat", sans-serif;
  font-size: 11px; letter-spacing: 0.35em; color: var(--primary);
  margin: 0 0 16px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 5.5vw, 40px);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1F2933;
}
.hero h1 em { font-style: normal; color: var(--primary); border-bottom: 2px solid var(--accent-warm); padding-bottom: 2px; }
.hero-sub { margin: 22px 0 32px; color: var(--text); font-size: 15px; line-height: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 26px; font-size: 14px; }

/* ============ Section commons ============ */
section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-en {
  font-family: "Montserrat", sans-serif;
  font-size: 11px; letter-spacing: 0.35em;
  color: var(--primary);
  display: block; margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.section-head h2::after {
  content: ""; display: block;
  width: 36px; height: 1px; background: var(--accent-warm);
  margin: 18px auto 0;
}

/* ============ Features (3 cards) ============ */
.features { background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  text-align: center; padding: 36px 24px;
  background: var(--bg); border-radius: var(--radius);
}
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-neutral); border-radius: 50%;
  color: var(--primary);
}
.feature-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ============ News ============ */
.news { background: var(--bg); }
.news-list { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.news-list li {
  display: flex; gap: 24px; padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline; flex-wrap: wrap;
}
.news-date {
  font-family: "Montserrat", sans-serif;
  font-size: 12px; letter-spacing: 0.1em; color: var(--primary);
  min-width: 90px;
}
.news-tag {
  display: inline-block; padding: 2px 10px;
  background: var(--accent-neutral); color: var(--primary);
  font-size: 11px; letter-spacing: 0.1em;
}
.news-title { flex: 1; min-width: 200px; }

/* ============ Menu (internal + beauty) ============ */
.menu { background: var(--surface); }
.menu + .menu { background: var(--bg); }
.menu-tabs {
  display: flex; gap: 0; justify-content: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.menu-item {
  padding: 22px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.menu-item:hover { border-color: var(--accent-warm); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.menu .menu + .menu .menu-item { background: var(--surface); }
.menu-item h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.menu-item .desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.menu-item .price {
  display: block; margin-top: 12px;
  font-family: "Montserrat", sans-serif; font-size: 14px; color: var(--primary);
  font-weight: 600;
}
.menu-item .price small { font-size: 10px; color: var(--muted); margin-left: 4px; }

.menu-beauty .menu-item:hover { border-color: var(--accent-warm); }
.menu-beauty .menu-item h4::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--accent-warm); border-radius: 50%;
  vertical-align: middle; margin-right: 8px;
}
.menu-internal .menu-item h4::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
  vertical-align: middle; margin-right: 8px;
}

/* ============ Greeting (doctor) ============ */
.greeting { background: var(--bg); }
.greeting-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 56px; align-items: center;
}
@media (max-width: 820px) { .greeting-grid { grid-template-columns: 1fr; gap: 32px; } }
.greeting-photo {
  aspect-ratio: 3 / 4;
  background-size: cover; background-position: center 28%;
  background-image:
    linear-gradient(160deg, #E8D4C4 0%, #D4A5A5 100%);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}
.greeting-photo[data-photo] { background-image: var(--photo-url); }
.greeting-text h3 {
  margin: 0 0 8px; font-size: 14px; color: var(--primary); letter-spacing: 0.1em;
}
.greeting-text h2 {
  margin: 0 0 24px; font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 500; line-height: 1.7; letter-spacing: 0.04em;
}
.greeting-text h2 em { font-style: normal; border-bottom: 2px solid var(--accent-warm); padding-bottom: 2px; }
.greeting-text p { margin: 0 0 16px; line-height: 2.1; font-size: 15px; }
.doctor-name {
  margin-top: 24px;
  font-size: 14px; color: var(--muted); letter-spacing: 0.1em;
}
.doctor-name strong { color: var(--text); font-size: 18px; margin-left: 8px; }

/* ============ Access ============ */
.access { background: var(--surface); }
.access-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: start;
}
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }
.access-map {
  width: 100%; aspect-ratio: 4 / 3; background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
  overflow: hidden;
}
.access-map iframe { width: 100%; height: 100%; border: 0; }
.access-info dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 14px 18px; }
.access-info dt { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; padding-top: 2px; }
.access-info dd { margin: 0; font-size: 15px; }
.hours-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  font-size: 13px;
}
.hours-table th, .hours-table td {
  padding: 10px 6px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.hours-table th { background: var(--bg); color: var(--primary); font-weight: 600; letter-spacing: 0.05em; }
.hours-table td.off { color: var(--muted); }

/* ============ Footer ============ */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.86);
  padding: 56px 0 24px; font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 16px; font-size: 13px; letter-spacing: 0.1em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a:hover { color: var(--accent-warm); }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px; text-align: center;
  font-family: "Montserrat", sans-serif; font-size: 11px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

/* ============ Fixed side CTA ============ */
.side-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
}
.side-cta a {
  width: 60px; height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border-radius: 50%; box-shadow: var(--shadow-soft);
  font-size: 9px; letter-spacing: 0.05em; text-align: center;
  gap: 2px; transition: all .2s ease;
}
.side-cta a:hover { background: var(--primary-dark); transform: translateY(-2px); }
.side-cta a.line { background: #06C755; }
.side-cta a.top { background: var(--text); }

@media (max-width: 720px) {
  .side-cta {
    flex-direction: row; right: 0; left: 0; bottom: 0;
    gap: 0; padding: 0;
  }
  .side-cta a {
    flex: 1; width: auto; height: 56px; border-radius: 0;
    font-size: 10px;
  }
  .side-cta a.top { display: none; }
  body { padding-bottom: 56px; }
}

/* ============ Sample disclaimer banner ============ */
.disclaimer {
  background: #1F2933; color: rgba(255,255,255,0.86);
  padding: 10px 16px; text-align: center; font-size: 12px;
}
.disclaimer a { color: var(--accent-warm); text-decoration: underline; margin-left: 4px; }

/* ============ Utility: visually icons ============ */
.icon { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
