/* 白里腎クリニック 見本サイトの見た目（全ページ共通）。土気の見本から色を変え、写真がなくても成り立つ部品を足したもの（海の青）
   方針：白を広く使い、紺で引き締め、橙は「押してほしいボタン」にだけ使う。写真を大きく見せる。
   4つのクリニック・介護のサイトでも、下の色（--main など）を変えて使い回す */
:root {
  --main: #17506b;      /* 海の青：見出し・帯（白里） */
  --main-2: #237a9c;    /* 明るい海の青：リンク・小見出し */
  --accent: #e8792b;    /* 橙：ボタン */
  --tint: #f1f7f9;      /* 淡い青灰：交互の背景 */
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #e2e8f0;
  --radius: 10px;
  --max: 1120px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.9; font-size: 16px; letter-spacing: .03em; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 仮の内容の目印。ふだんは見えない。アドレスの最後に ?check を付けて開くと黄色で見える */
.check .todo { background: #fff3cd; outline: 2px dashed var(--accent); outline-offset: 1px; }

/* ---------- 上の帯 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--main); }
.brand-mark { width: 46px; height: 44px; object-fit: contain; display: block; }
.brand-name { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .12em; }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.gnav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.gnav a:not(.btn):hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--main); margin: 5px 0; transition: .2s; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; padding: 14px 30px; border-radius: 6px; transition: background .2s, transform .2s; border: 0; }
.btn:hover { background: #d4661c; transform: translateY(-1px); }
.btn::after { content: "→"; font-weight: 400; }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.sm::after { content: none; }
.btn.line { background: transparent; border: 1.5px solid currentColor; color: #fff !important; }
.btn.line:hover { background: rgba(255,255,255,.12); }
.btn.navy { background: var(--main); }
.btn.navy:hover { background: #083a47; }
.text-link { font-weight: 700; text-decoration: none; color: var(--main-2); }
.text-link::after { content: " →"; }

/* ---------- 最初の画面（写真を大きく） ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,44,60,.88) 0%, rgba(10,44,60,.62) 45%, rgba(10,44,60,.1) 100%); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: #ffd2ad; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.45; margin: 0 0 22px; font-weight: 700; letter-spacing: .04em; }
.hero p { font-size: 17px; max-width: 560px; margin: 0 0 34px; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 下層ページの見出し帯 */
.page-head { position: relative; color: #fff; padding: 84px 0 64px; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,44,60,.9), rgba(10,44,60,.55)); z-index: 1; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: 36px; margin: 0; letter-spacing: .06em; }
.page-head .en { font-size: 13px; letter-spacing: .25em; color: #ffd2ad; font-weight: 700; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---------- まとまり ---------- */
section { padding: 96px 0; }
section.tint { background: var(--tint); }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head .en { display: block; font-size: 13px; font-weight: 700; letter-spacing: .25em; color: var(--accent); margin-bottom: 6px; }
.sec-head h2 { font-size: 32px; line-height: 1.5; margin: 0 0 14px; color: var(--main); letter-spacing: .05em; }
.sec-head p { color: var(--muted); margin: 0; max-width: 680px; }
.sec-head.center p { margin: 0 auto; }

/* 悩み・お困りごと */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.worry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 54px; position: relative; font-weight: 500; }
.worry::before { content: "✓"; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--main); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* 事業（写真つきカード） */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px rgba(23,80,107,.04), 0 12px 32px rgba(23,80,107,.08); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; }
.service:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(23,80,107,.06), 0 20px 40px rgba(23,80,107,.12); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .15em; }
.service h3 { font-size: 20px; color: var(--main); margin: 4px 0 10px; }
.service p { margin: 0 0 18px; font-size: 15px; color: var(--muted); flex: 1; }

/* 強み（数字） */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.strength { padding: 36px 32px; border-right: 1px solid rgba(255,255,255,.2); }
.strength:last-child { border-right: 0; }
.strength .big { font-size: 15px; font-weight: 700; color: #ffd2ad; letter-spacing: .15em; }
.strength h3 { font-size: 21px; margin: 6px 0 10px; }
.strength p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
section.navy { background: var(--main); color: #fff; }
section.navy .sec-head h2 { color: #fff; }
section.navy .sec-head p { color: rgba(255,255,255,.8); }

/* 進め方（流れ） */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 22px; border-top: 4px solid var(--main-2); position: relative; }
.step::before { counter-increment: step; content: "STEP " counter(step); font-size: 12px; font-weight: 700; color: var(--main-2); letter-spacing: .15em; }
.step h3 { margin: 6px 0 8px; font-size: 18px; color: var(--main); }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* 写真と文の横並び */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(23,80,107,.14); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2, .split h3 { color: var(--main); }
.split h3 { font-size: 26px; margin: 4px 0 16px; line-height: 1.5; }
.split ul { padding-left: 1.2em; margin: 0 0 24px; }
.split li { margin-bottom: 6px; }
.split .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .15em; }
.split + .split { margin-top: 88px; }

/* 記事カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { text-decoration: none; color: inherit; display: block; }
.post img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 14px; transition: opacity .2s; }
.post:hover img { opacity: .85; }
.post .meta { font-size: 13px; color: var(--muted); }
.post .cat { display: inline-block; background: var(--tint); color: var(--main-2); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-right: 8px; }
.post h3 { font-size: 17px; line-height: 1.6; margin: 6px 0 0; color: var(--main); }

/* よくある質問 */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 60px; font-weight: 700; position: relative; list-style: none; color: var(--main); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; font-size: 20px; color: var(--accent); }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 16px; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 28px 22px 60px; color: var(--text); }

/* 表 */
.table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--main); }
.table th, .table td { padding: 20px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 24%; color: var(--main); font-weight: 700; background: var(--tint); }

/* 求人 */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.job h3 { margin: 0 0 6px; font-size: 22px; color: var(--main); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 4px; background: #fdeee2; color: var(--accent); margin-right: 6px; }
.job .table { margin: 22px 0 28px; }

/* 最後のお誘い（写真の上） */
.cta { position: relative; color: #fff; text-align: center; padding: 96px 0; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(10,44,60,.82); z-index: 1; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: .05em; }
.cta p { margin: 0 0 32px; color: rgba(255,255,255,.88); }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* 記事本文 */
.article { max-width: 760px; margin: 0 auto; }
.article .lead-img { border-radius: var(--radius); margin: 0 0 36px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article h1 { font-size: 30px; line-height: 1.55; color: var(--main); margin: 8px 0 12px; }
.article h2 { font-size: 23px; color: var(--main); margin: 56px 0 18px; padding: 0 0 10px; border-bottom: 2px solid var(--line); position: relative; }
.article h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--accent); }
.article h3 { font-size: 19px; color: var(--main); margin: 32px 0 10px; }
.article .summary { background: var(--tint); border-radius: var(--radius); padding: 22px 28px; margin: 24px 0; }
.article .summary p { margin: 0 0 8px; font-weight: 700; color: var(--main); }
.article .summary ol { margin: 0; padding-left: 1.4em; }

/* 文書ページ（プライバシーポリシー） */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 19px; color: var(--main); margin: 36px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }

/* ---------- いちばん下 ---------- */
.site-footer { background: #06323d; color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-mark { background: #fff; border-radius: 10px; padding: 6px; width: 58px; height: 56px; box-sizing: border-box; }
.site-footer .brand-name small { color: rgba(255,255,255,.6); }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 12px; text-align: center; }

/* ---------- 表示のアニメーション（ゆっくり浮かび上がる） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .services, .cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .worries { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 64px; }
  html { scroll-padding-top: 72px; }
  .menu-btn { display: block; }
  .gnav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(23,80,107,.1); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .gnav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .gnav a:not(.btn)::after { content: none; }
  .gnav .btn { margin-top: 16px; }
  .nav-open .gnav { transform: none; }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 560px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(10,44,60,.35) 0%, rgba(10,44,60,.88) 55%); }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15.5px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .page-head { padding: 56px 0 40px; }
  .page-head h1 { font-size: 27px; }

  section { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2 { font-size: 24px; }
  .services, .cards, .flow, .worries, .strengths, .split, .footer-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .split + .split { margin-top: 56px; }
  .split h3 { font-size: 22px; }
  .strength { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 28px 4px; }
  .table th, .table td { display: block; width: 100%; }
  .table th { padding: 12px 14px; }
  .table td { padding: 14px 14px 20px; }
  .job { padding: 26px 20px; }
  .cta { padding: 64px 0; }
  .cta h2 { font-size: 23px; }
  .cta .actions .btn { flex: 1 1 100%; }
  .article h1 { font-size: 24px; }
  .article h2 { font-size: 20px; }
}

/* ===================== ここから椎名崎クリニックで足したもの ===================== */

/* 写真がまだない最初の画面（色の面で見せる。本物の写真ができたら .hero-bg の img を入れる） */
.hero.nophoto { background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16) 0, rgba(255,255,255,0) 34%), radial-gradient(circle at 70% 90%, rgba(232,121,43,.22) 0, rgba(232,121,43,0) 38%), linear-gradient(120deg, #0f2546 0%, #1d3f6e 45%, #2c66a8 100%); min-height: 520px; }
.hero.nophoto::before { content: none; }
.hero.nophoto .wrap { padding-bottom: 120px; }
.page-head.nophoto { background: linear-gradient(120deg, #0d3a50, #237a9c); }
.page-head.nophoto::before { content: none; }

/* 写真の仮置き（本物の写真に置き換える） */
.ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #dcecef, #b9d8de); display: grid; place-items: center; color: var(--main); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-align: center; padding: 16px; }

/* 最初の画面のすぐ下：電話・時間・休診日 */
.infobar { position: relative; z-index: 3; margin-top: -56px; }
.infobar .box { background: #fff; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(23,80,107,.14); display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; overflow: hidden; }
.infobar .cell { padding: 22px 26px; border-right: 1px solid var(--line); }
.infobar .cell:last-child { border-right: 0; }
.infobar .label { font-size: 12px; font-weight: 700; color: var(--main-2); letter-spacing: .15em; display: block; }
.infobar .tel { font-size: 26px; font-weight: 700; color: var(--main); text-decoration: none; letter-spacing: .04em; }
.infobar .v { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.7; }

/* 診療時間の表 */
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.hours th, .hours td { border: 1px solid var(--line); padding: 12px 6px; text-align: center; }
.hours thead th { background: var(--main); color: #fff; font-weight: 700; }
.hours tbody th { background: var(--tint); color: var(--main); white-space: nowrap; padding: 12px 14px; }
.hours .o { color: var(--main-2); font-size: 18px; }
.hours .x { color: #b4bfc9; }
.note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: flex; gap: 18px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.news time { color: var(--muted); font-size: 14px; min-width: 92px; }
.news .kind { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px; background: var(--tint); color: var(--main-2); }
.news .kind.important { background: #fdeee2; color: #c4561a; }
.news .t { flex: 1 1 320px; font-weight: 500; }

/* ページの中の目次（まとめたページで、行きたい所へ飛ぶ） */
.toc { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0 0; }
.toc a { border: 1.5px solid var(--main-2); color: var(--main-2); text-decoration: none; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.toc a:hover { background: var(--main-2); color: #fff; }

/* 特徴（数字） */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.point { background: #fff; border-radius: var(--radius); padding: 30px 28px; border-top: 4px solid var(--main-2); box-shadow: 0 8px 24px rgba(23,80,107,.06); }
.point .big { font-size: 34px; font-weight: 700; color: var(--main); line-height: 1.2; }
.point .big small { font-size: 16px; margin-left: 2px; }
.point h3 { font-size: 18px; color: var(--main); margin: 8px 0 6px; }
.point p { margin: 0; font-size: 15px; color: var(--muted); }

/* 求人：絞り込みとカード */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; align-items: center; }
.filters .grp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .gl { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.filters button { font: inherit; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.count { font-size: 14px; color: var(--muted); margin: -12px 0 20px; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.jobcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.jobcard:hover { box-shadow: 0 12px 30px rgba(23,80,107,.12); transform: translateY(-2px); }
.jobcard h3 { margin: 8px 0 10px; font-size: 20px; color: var(--main); }
.jobcard dl { margin: 0 0 16px; display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 10px; font-size: 14.5px; }
.jobcard dt { color: var(--muted); }
.jobcard dd { margin: 0; }
.jobcard .pay { font-weight: 700; color: #c4561a; }
.jobcard .text-link { margin-top: auto; }
.jobcard[hidden] { display: none; }
.jobcard.soon { background: var(--tint); border-style: dashed; }
.tag.part { background: #e3f1f4; color: var(--main-2); }
.tag.easy { background: #eef6e6; color: #4d7a1f; }
.job-apply { background: var(--tint); border-radius: var(--radius); padding: 28px; margin-top: 32px; text-align: center; }
.job-apply p { margin: 0 0 16px; }

/* 地図 */
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--tint); }

@media (max-width: 960px) {
  .infobar .box { grid-template-columns: 1fr 1fr; }
  .infobar .cell:nth-child(2) { border-right: 0; }
  .infobar .cell:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .infobar { margin-top: -32px; }
  .infobar .box { grid-template-columns: 1fr; }
  .infobar .cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .infobar .cell:nth-child(3) { border-top: 0; }
  .points, .jobs { grid-template-columns: 1fr; }
  .hours { font-size: 13px; }
  .hours th, .hours td { padding: 10px 2px; }
  .hours tbody th { padding: 10px 6px; }
  .hero.nophoto { min-height: 480px; }
}

/* ---- 写真（2026-11-30 追加） ---- */
.hero .wrap { padding-bottom: 120px; }
.hero-bg { object-position: 70% 40%; }
.cta img { object-position: center 40%; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.split + .reveal .gallery, .gallery { margin-bottom: 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
#facility .split.rev { margin-top: 88px; }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gallery, .gallery.g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery, .gallery.g4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } #facility .split.rev { margin-top: 56px; } }

/* ---- 担当医紹介（2026-11-30 追加） ---- */
.doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doctor { background: #fff; border-radius: var(--radius); padding: 26px 28px; border-top: 4px solid var(--main-2); box-shadow: 0 8px 24px rgba(23,80,107,.06); }
.doctor .spec { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.doctor h3 { font-size: 22px; color: var(--main); margin: 4px 0 14px; letter-spacing: .08em; }
.doctor .role { font-size: 13px; font-weight: 700; color: #fff; background: var(--main); border-radius: 4px; padding: 2px 8px; margin-right: 10px; vertical-align: 3px; letter-spacing: .05em; }
.doctor dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 12px; margin: 0; font-size: 14px; line-height: 1.7; }
.doctor dt { color: var(--muted); font-weight: 700; }
.doctor dd { margin: 0; }
@media (max-width: 760px) { .doctors { grid-template-columns: 1fr; } .doctor dl { grid-template-columns: 1fr; gap: 0; } .doctor dt { margin-top: 6px; } }

/* ---- 診療時間の表の見出し・担当医予定表・医療DX（2026-11-30 追加） ---- */
.hours-ttl { color: var(--main); font-size: 18px; margin: 28px 0 10px; }
.hours-ttl:first-child { margin-top: 0; }
.hours.duty td { font-size: 14px; line-height: 1.6; color: var(--text); font-weight: 500; }
.hours.duty td small { color: var(--accent); margin-left: 2px; }
.dx { max-width: 820px; margin: 48px auto 0; background: var(--tint); border-radius: var(--radius); padding: 24px 28px; }
.dx h3 { margin: 0 0 8px; font-size: 17px; color: var(--main); }
.dx ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .hours.duty { font-size: 13px; } .hours.duty td { font-size: 12.5px; padding: 8px 4px; } }
/* 確かめたいことのメモ（class="todo memo"）。ふだんは隠し、?check を付けて開いたときだけ黄色で見える */
.memo { display: none !important; }
.check .memo { display: block !important; }
.check span.memo { display: inline !important; }

/* ---- 写真がないときの部品（白里）。写真が届いたら 作る.mjs の PHOTOS に入れるだけで、ここは使われなくなる ---- */
/* 最初の画面：写真のかわりに、海の青の色の重なりと波の線 */
.hero.nophoto { background: linear-gradient(115deg, #0b3044 0%, #17506b 48%, #2f8db0 100%); min-height: 540px; }
.hero.nophoto::before { background: none; }
.hero.nophoto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C240 40 480 140 720 90 S1200 40 1440 90 V180 H0Z' fill='%23ffffff' fill-opacity='.10'/%3E%3Cpath d='M0 120 C240 80 480 170 720 120 S1200 80 1440 120 V180 H0Z' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hero .badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .08em; }
/* 写真の場所：絵文字ではなく線の絵（SVG）と短い言葉で埋める */
.ph { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius); background: linear-gradient(135deg, #e6f1f5, #cfe3ea); display: grid; place-items: center; color: var(--main); }
.ph svg { width: 34%; max-width: 120px; height: auto; opacity: .75; }
.service .ph { border-radius: 0; }
.cta.nophoto { background: linear-gradient(115deg, #0b3044, #17506b); }
.cta.nophoto::before { content: none; }
/* 開院までの流れ */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--main-2); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--main-2); }
.timeline time { font-weight: 700; color: var(--main); display: block; }
.notice-box { border: 2px solid var(--accent); border-radius: var(--radius); background: #fff8f2; padding: 22px 26px; }
.notice-box h3 { margin: 0 0 6px; color: var(--accent); font-size: 18px; }
.hero .badge + .eyebrow { display: block; width: fit-content; }

/* ---- 簡易版（2026-12-04 第2版）：写真なしで読ませる部品 ---- */
.narrow { max-width: 880px; }
.infobar .v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
/* 写真のないカードの上の絵は、低めの帯にする（写真の空き箱に見えないように） */
.service .ph { aspect-ratio: 16 / 7; }
.service .ph svg { width: 22%; max-width: 84px; }
/* ご挨拶（写真なしの形） */
.message { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--main-2); box-shadow: 0 8px 28px rgba(23,80,107,.10); padding: 44px 52px 40px; }
.message .num, .split .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .15em; }
.message h3 { font-size: 26px; color: var(--main); line-height: 1.5; margin: 4px 0 18px; }
.sign { text-align: right; margin: 26px 0 0; font-weight: 700; font-size: 20px; color: var(--main); letter-spacing: .1em; }
.sign small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
/* 流れ（3つ） */
.flow.three { grid-template-columns: repeat(3, 1fr); }
.flow.three .step { box-shadow: 0 8px 24px rgba(23,80,107,.06); border: 1px solid var(--line); border-top: 4px solid var(--main-2); }
/* 地域の名前 */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.area-list li { background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 18px; font-weight: 700; color: var(--main); font-size: 14.5px; }
/* グループのクリニックへのリンク */
.grouplinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.grouplink { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--main-2); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.grouplink:hover { box-shadow: 0 10px 26px rgba(23,80,107,.12); transform: translateY(-2px); }
.gl-name { display: block; font-weight: 700; font-size: 18px; color: var(--main); }
.gl-name::after { content: " →"; color: var(--main-2); font-weight: 400; }
.gl-sub { display: block; font-size: 13.5px; color: var(--muted); }
.cta .btn.line { color: #fff !important; }
@media (max-width: 960px) { .flow.three { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .message { padding: 28px 22px; }
  .message h3 { font-size: 21px; }
  .grouplinks { grid-template-columns: 1fr; }
  .service .ph { aspect-ratio: 16 / 6; }
}
