/* 広尾鈴木デンタルクリニック */
:root {
  --green: #1f8442;
  --green-dark: #166534;
  --green-soft: #e7f3ea;
  --cream: #faf7f1;
  --sand: #efe7d8;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --line: #dcd5c7;
  --accent: #c8794a;
  --alert: #b4472f;
  --alert-soft: #fbece7;
  --white: #fff;
  --radius: 14px;
  --max: 1080px;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 84px; width: auto; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; white-space: nowrap; }
.brand-name small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; }
@media (max-width: 1100px) and (min-width: 861px) {
  .brand { gap: 10px; }
  .brand-logo { height: 72px; }
  .brand-name { font-size: 1rem; }
  .global-nav a { padding: 8px 10px; }
  .header-tel .label { display: none; }
  .header-tel { padding: 10px; }
}
@media (max-width: 860px) {
  .brand { gap: 8px; }
  .brand-name { font-size: .82rem; letter-spacing: 0; }
  .brand-name small { font-size: .6rem; letter-spacing: 0; }
}
/* スマホ：医院名を「広尾」「鈴木デンタルクリニック」の二段にしてメニューボタンと重ならないようにする */
@media (max-width: 600px) {
  .brand-name { font-size: .9rem; line-height: 1.25; }
  .brand-name .bn { display: block; }
}
@media (max-width: 380px) {
  .header-inner .brand-logo { height: 52px; }
  .brand-name { font-size: .8rem; }
  .brand-name small { font-size: .55rem; }
}

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: .95rem;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }

.header-tel {
  display: flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white); text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.header-tel:hover { background: var(--green-dark); color: var(--white); }
.header-tel svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: .2s; }

@media (max-width: 860px) {
  .header-inner { height: 76px; }
  .brand-logo { height: 64px; }
  .menu-toggle { display: block; }
  .header-tel { display: none; } /* スマホは画面下の「電話で予約」を使う */
  .global-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); display: none;
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; padding: 8px 20px 20px; }
  .global-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Important notice banner ---------- */
.notice-banner { background: var(--alert-soft); border-bottom: 1px solid #efc9bd; }
.notice-banner[hidden] { display: none; }
.notice-banner .container { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.notice-banner .tag {
  flex: none; background: var(--alert); color: var(--white); font-size: .75rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-top: 3px;
}
.notice-banner ul { list-style: none; margin: 0; padding: 0; }
.notice-banner a { color: var(--alert); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--green-soft) 0%, rgba(231,243,234,0) 70%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .15em; font-size: .85rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); color: var(--green-dark); margin-bottom: 20px; }
.hero-lead { color: var(--muted); font-size: 1.02rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--sand); overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--white); }
.hero-visual .placeholder img { width: 72%; height: auto; object-fit: contain; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 420px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en { display: block; color: var(--accent); font-size: .8rem; letter-spacing: .25em; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); color: var(--green-dark); margin: 6px 0 0; }
@media (max-width: 860px) { .section { padding: 56px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--cream); border-radius: var(--radius); padding: 0 28px 32px; border: 1px solid var(--line); text-align: center; overflow: hidden; }
.pillar-photo { display: block; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 -28px 22px; }
.pillar p { text-align: left; }
.pillar .num { font-family: var(--font-head); color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.pillar h3 { font-size: 1.25rem; color: var(--green-dark); margin-top: 6px; }
/* スマホ：緑の見出しが1〜2文字だけ次の行に落ちないよう、画面幅に合わせて文字を少し縮める */
@media (max-width: 600px) {
  /* 一番長い「当院の取り組み・施設基準等」（13文字）が左右余白20pxの内側に収まる大きさ */
  .section-head h2 { font-size: min(1.5rem, calc((100vw - 40px) / 13.6)); }
  /* 一番長い「健康寿命100年を目指す医療」がカードの内側（余白込み96px）に収まる大きさ */
  .pillar h3 { font-size: min(1.25rem, calc((100vw - 96px) / 13.4)); }
  .section-head h2, .pillar h3 { text-wrap: balance; }
}
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item > summary, .news-item > .news-row {
  display: grid; grid-template-columns: 8.5em auto 1fr; gap: 12px 16px; align-items: baseline;
  padding: 18px 4px; cursor: pointer; list-style: none;
}
.news-item > summary::-webkit-details-marker { display: none; }
.news-item > summary:hover .news-title { color: var(--green); }
.news-date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: .72rem; font-weight: 700; padding: 1px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); white-space: nowrap;
}
.news-tag.is-important { background: var(--alert); color: var(--white); }
.news-title { font-weight: 500; }
.news-body { padding: 0 4px 22px calc(8.5em + 16px); color: var(--ink); white-space: pre-wrap; }
details.news-item > summary .news-title::after { content: "＋"; color: var(--muted); margin-left: 8px; font-size: .85em; }
details.news-item[open] > summary .news-title::after { content: "－"; }
.news-empty { padding: 24px 4px; color: var(--muted); }
.news-more { text-align: center; margin-top: 28px; }
@media (max-width: 600px) {
  .news-item > summary, .news-item > .news-row { grid-template-columns: auto 1fr; }
  .news-title { grid-column: 1 / -1; }
  .news-body { padding-left: 4px; }
}

/* ---------- Hours ---------- */
.hours-wrap { max-width: 760px; margin: 0 auto; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: 14px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.hours-table thead th { background: var(--green); color: var(--white); font-weight: 500; }
.hours-table tbody th { text-align: left; padding-left: 16px; font-weight: 500; white-space: nowrap; }
.hours-table .open { color: var(--green); font-size: 1.1rem; }
.hours-table .closed { color: #b8b0a2; }
.hours-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.hours-note strong { color: var(--ink); }
@media (max-width: 600px) {
  .hours-table th, .hours-table td { padding: 12px 2px; font-size: .88rem; }
  .hours-table tbody th { padding-left: 8px; }
}

/* ---------- Doctor ---------- */
.doctor { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.doctor-photo { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 3 / 4; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-role { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.doctor-name { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 2px; }
.doctor-name-en { color: var(--muted); font-size: .85rem; letter-spacing: .1em; margin-bottom: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--green-soft); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline .year { font-weight: 700; color: var(--green-dark); margin-right: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .doctor { grid-template-columns: 1fr; gap: 28px; } .doctor-photo { max-width: 280px; } }

/* ---------- Policy accordion ---------- */
.policy { max-width: 860px; margin: 0 auto; }
.policy details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.policy summary { padding: 18px 52px 18px 22px; cursor: pointer; font-weight: 700; position: relative; list-style: none; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "＋"; position: absolute; right: 22px; color: var(--green); }
.policy details[open] summary::after { content: "－"; }
.policy .policy-body { padding: 0 22px 18px; font-size: .95rem; }
.policy .policy-body ul { padding-left: 1.2em; margin: 0; }
.policy .policy-body li { margin-bottom: .6em; }

/* ---------- Access ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: .9rem; }
.info-list dd { margin: 0; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--sand); }
.route-list { list-style: none; padding: 0; margin: 0; }
.route-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.route-list strong { color: var(--green-dark); display: block; }
.building-photo { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- CTA ---------- */
.cta { background: var(--green); color: var(--white); text-align: center; padding: 64px 0; }
.cta h2 { color: var(--white); font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cta p { opacity: .9; }
.cta-tel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: .05em; }
.cta-tel svg { width: .9em; height: .9em; }
.cta-tel:hover { color: var(--white); opacity: .9; }
.cta .btn-outline { border-color: var(--white); color: var(--white); margin-top: 16px; }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Page header ---------- */
.page-header { background: var(--green-soft); padding: 48px 0 40px; }
.page-header .en { color: var(--accent); font-size: .8rem; letter-spacing: .25em; font-weight: 700; text-transform: uppercase; }
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--green-dark); margin: 4px 0 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Form ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-intro { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; }
.form-intro .tel-line { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.form-intro .tel-line a { text-decoration: none; }
.field { margin-bottom: 24px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 8px; }
.req, .opt { font-size: .72rem; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; font-weight: 700; }
.req { background: var(--alert); color: var(--white); }
.opt { background: var(--sand); color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field .error { color: var(--alert); font-size: .88rem; margin-top: 6px; display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--alert); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.checkbox input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); }
.privacy-box { max-height: 200px; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.privacy-box h3 { font-size: .95rem; color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; margin-top: 32px; }
.form-status { margin-top: 24px; padding: 20px; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: var(--green-soft); color: var(--green-dark); }
.form-status.fail { background: var(--alert-soft); color: var(--alert); }

/* ---------- Footer ---------- */
.site-footer { background: #1f2a23; color: #d9dfdc; padding: 56px 0 24px; font-size: .92rem; }
.site-footer a { color: #d9dfdc; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.footer-tel { font-family: var(--font-head); font-size: 1.6rem; color: var(--white) !important; text-decoration: none; font-weight: 700; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--white); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #9aa6a1; text-align: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Mobile fixed bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; text-decoration: none; font-weight: 700; font-size: .95rem; }
  .mobile-bar a:first-child { background: var(--green); color: var(--white); }
  .mobile-bar svg { width: 18px; height: 18px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
