/* =========================================================
   まつしま歯科医院 デザイン案 第7弾 共通レイアウト
   院長のご意見「派手すぎない・誠実な信頼感・診療メニュー導線が明確」に合わせた落ち着いた構成
   参考：市岡歯科医院（ichioka-do.com）、原宿デンタルオフィス（harajyuku-dental.com）、第6弾06の診療メニュー導線
   色は v7-themes.css の [data-theme] で切り替える
   ========================================================= */
:root {
  --main: #3d3a38; --accent: #8a6a3f; --bg2: #f4f2ef; --line: #dcd7d0; --text: #333; --muted: #777; --card: #fff;
  --news-bg: #3d3a38; --line-c: #06c755; --on-main: #fff;
  --f-head: "Noto Serif JP", serif; --f-body: "Noto Sans JP", sans-serif; --f-en: "Cormorant Garamond", serif;
  --photo: linear-gradient(135deg, #ddd, #f0f0f0);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.95 var(--f-body); letter-spacing: .05em; padding-bottom: 60px; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.6; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }
.in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.photo { position: relative; display: block; background: var(--photo); overflow: hidden; }
.photo::after { content: attr(data-label); position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: rgba(0,0,0,.45); }
.photo.img { background-image: var(--img); background-size: cover; background-position: var(--pos, center); background-repeat: no-repeat; background-color: #ddd; }
.photo.img::after { display: none; }
.photo.img.ai::after { display: block; content: "※画像はイメージです"; left: auto; right: 8px; bottom: 6px; padding: 1px 8px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); }
.photo.illust { background-color: #fff; background-size: 78%; }

/* 見出し（市岡型：英字｜日本語） */
.sec { padding: 64px 0; }
.hd2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hd2-en { font: 500 26px/1 var(--f-en); letter-spacing: .1em; color: var(--main); margin: 0; }
.hd2 h2 { font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2; }
.btn { display: inline-block; border: 1px solid var(--main); color: var(--main); padding: 8px 36px; font-size: 13px; letter-spacing: .15em; }
.btn::after { content: " ›"; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hd-seo { display: none; }
.hd-in { display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark { width: 34px; height: 34px; border: 1px solid var(--main); border-radius: 50%; position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); opacity: .85; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.3; }
.logo-txt small { font-size: 10px; color: var(--muted); }
.logo-txt b { font: 600 18px var(--f-head); letter-spacing: .1em; color: var(--main); }
.logo-txt em { font: 9px var(--f-en); letter-spacing: .25em; color: var(--muted); }
.hd-info, .hd-contact, .gnav { display: none; }
.hamburger { width: 46px; height: 46px; border: 1px solid var(--main); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 20px; height: 1px; background: var(--main); }

/* ---------- メインビジュアル（スマホ：写真→コピー） ---------- */
.mv { position: relative; background: var(--bg2); }
.mv-photo { aspect-ratio: 4 / 3; }
.mv-body { padding: 24px 18px 28px; }
.mv-lead { font: 13px var(--f-head); color: var(--muted); margin: 0 0 10px; }
.mv-copy { font-size: 25px; color: var(--main); letter-spacing: .12em; line-height: 1.7; }
.mv-copy span { display: block; white-space: nowrap; }
.mv-sub { font: 14px var(--f-head); margin: 10px 0 0; color: var(--text); }

/* ---------- 診療メニュー導線 ---------- */
.quick { background: #fff; padding: 28px 0 8px; }
.quick-ttl { font: 15px var(--f-head); color: var(--main); text-align: center; margin: 0 0 14px; letter-spacing: .15em; }
.quick-ttl::before, .quick-ttl::after { content: ""; display: inline-block; width: 30px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 12px; }
.quick-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-list a { display: block; border: 1px solid var(--line); background: #fff; text-align: center; font: 13px var(--f-head); color: var(--main); padding-bottom: 8px; }
.quick-list a:hover { border-color: var(--accent); }
.quick-list .photo { aspect-ratio: 4 / 3; margin-bottom: 2px; }

/* ---------- お知らせ ---------- */
.news { background: var(--news-bg); color: #fff; padding: 26px 0; margin-top: 28px; }
.news-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.news-hd p { font: 600 20px var(--f-en); letter-spacing: .12em; margin: 0; }
.news-hd small { font-size: 11px; opacity: .8; }
.news-hd a { margin-left: auto; font-size: 11px; border: 1px solid rgba(255,255,255,.6); padding: 1px 12px; }
.news-list li { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 6px 0; font-size: 14px; }
.news-list time { opacity: .75; }
.news-list a::before { content: "● "; font-size: 9px; vertical-align: 2px; }

/* ---------- 治療方針 ---------- */
.concept-banner { position: relative; background: var(--main); color: #fff; overflow: hidden; }
.concept-photo { aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.concept-copy { font: 500 21px/1.7 var(--f-head); letter-spacing: .15em; padding: 0 22px 22px; margin: -10px 0 0; position: relative; }
.concept-lead { font: 500 19px/1.7 var(--f-head); margin: 26px 0 12px; color: var(--main); }
.policy { display: grid; gap: 14px; margin-top: 26px; }
.policy li { border-top: 1px solid var(--line); padding-top: 14px; }
.policy-ttl { font: 500 20px var(--f-head); margin: 0 0 4px; color: var(--main); }
.policy-ttl u { text-decoration: none; background: linear-gradient(transparent 85%, var(--accent) 85%); padding: 0 2px; }

/* ---------- ごあいさつ ---------- */
.greeting { background: var(--bg2); }
.greeting-in { display: grid; gap: 24px; }
.greeting-photo { aspect-ratio: 3 / 2; }
.greeting-ttl { font: 500 19px var(--f-head); color: var(--main); }
.greeting-sign { text-align: right; font-family: var(--f-head); }

/* ---------- 診療案内（3×3タイル） ---------- */
.treatment-lead { font-size: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tiles a { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.tile-img { position: absolute; inset: 0; background-size: 62% !important; background-position: 50% 30% !important; }
.tile-frame { position: absolute; left: 12%; right: 12%; bottom: 10%; border: 1px solid var(--line); background: rgba(255,255,255,.92); text-align: center; padding: 8px 4px; line-height: 1.4; }
.tile-frame small { display: block; font: 10px var(--f-head); color: var(--muted); }
.tile-frame b { font: 500 16px var(--f-head); color: var(--main); letter-spacing: .08em; }
.tiles a:hover .tile-frame { border-color: var(--accent); }
.tiles { background: var(--line); border: 1px solid var(--line); }

/* ---------- 取り組み ---------- */
.efforts { background: var(--bg2); }
.effort { background: #fff; margin-bottom: 20px; border: 1px solid var(--line); }
.effort-photo { aspect-ratio: 16 / 9; }
.effort-body { padding: 22px 20px; }
.effort-en { font: 600 15px var(--f-en); letter-spacing: .2em; color: var(--accent); margin: 0 0 4px; text-align: center; }
.effort h3, .equip h3 { font-size: 19px; text-align: center; margin-bottom: 14px; color: var(--main); }
.effort h3 em, .equip h3 em { border-bottom: 1px solid var(--accent); }
.effort-body p:last-child { font-size: 14px; margin: 0; }
.equip { background: #fff; border: 1px solid var(--line); padding: 26px 18px; }
.equip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.equip-list .photo { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.equip-list b { display: block; font: 500 14px var(--f-head); color: var(--main); }
.equip-list small { font-size: 11px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- 院長 ---------- */
.doctor-in { display: grid; gap: 24px; }
.doctor-photo { aspect-ratio: 3 / 4; max-width: 380px; width: 100%; margin: 0 auto; }
.doctor-role { color: var(--muted); font-size: 13px; margin: 0; }
.doctor-name { font: 500 28px var(--f-head); letter-spacing: .2em; color: var(--main); margin: 0 0 14px; }
.career { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 22px; }
.career th, .career td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; font-weight: 400; }
.career th { color: var(--accent); width: 5em; }

/* ---------- 院内・アクセス ---------- */
.tour { background: var(--bg2); }
.tour-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-list .photo { aspect-ratio: 4 / 3; }
.tour-list b { display: block; text-align: center; font: 500 13px var(--f-head); margin-top: 4px; }
.access-in { display: grid; gap: 24px; }
.hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours th, .hours td { border: 1px solid var(--line); padding: 8px 2px; text-align: center; font-weight: 400; }
.hours thead th { background: var(--bg2); }
.hours td { color: var(--accent); }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.checks li { position: relative; padding-left: 1.6em; margin-bottom: 4px; font-family: var(--f-head); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.access-photo { aspect-ratio: 4 / 3; }

.banner { padding: 36px 0; }
.banner-list { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; }
.banner-list li { aspect-ratio: 16 / 6; }

/* ---------- 予約・フッター ---------- */
.cta { background: var(--main); color: #fff; text-align: center; padding: 48px 0; }
.cta-ttl { font: 500 18px var(--f-head); letter-spacing: .2em; margin: 0 0 6px; }
.cta-tel { display: inline-block; font: 500 40px/1.2 var(--f-en); letter-spacing: .06em; }
.cta-tel::before { content: "☎ "; font-size: .6em; }
.cta-time { font-size: 13px; opacity: .85; margin: 6px 0 18px; }
.cta-line { display: inline-block; background: var(--line-c); color: #fff; padding: 12px 40px; font-weight: 700; font-size: 14px; }
.ft { background: var(--bg2); padding: 40px 0 20px; font-size: 13px; }
.ft-in { display: grid; gap: 24px; }
.ft-logo { font: 600 20px var(--f-head); color: var(--main); margin-bottom: 6px; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.copy { text-align: center; font: 11px var(--f-en); letter-spacing: .15em; color: var(--muted); margin: 28px 0 0; }
.sp-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; height: 58px; border-top: 1px solid var(--line); }
.sp-cta a { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.sp-tel { background: var(--main); color: #fff; }
.sp-line { background: var(--line-c); color: #fff; }
.sp-acc { background: #fff; color: var(--main); }

/* =========================================================
   タブレット（600px〜）
   ========================================================= */
@media (min-width: 600px) {
  .mv-photo { aspect-ratio: 16 / 9; }
  .mv-body { padding: 28px 40px 32px; }
  .mv-copy { font-size: 32px; }
  .quick-list { grid-template-columns: repeat(6, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .policy { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .equip-list, .tour-list { grid-template-columns: repeat(4, 1fr); }
  .banner-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   PC（1100px〜）
   ========================================================= */
@media (min-width: 1100px) {
  body { padding-bottom: 0; font-size: 15px; }
  .sp-cta, .hamburger { display: none; }
  .in { padding: 0 24px; }
  .hd { position: relative; }
  .hd-seo { display: block; max-width: 1080px; margin: 0 auto; padding: 8px 24px 0; font-size: 11px; color: var(--muted); }
  .hd-in { max-width: 1080px; margin: 0 auto; padding: 8px 24px 16px; gap: 28px; align-items: center; }
  .logo-txt b { font-size: 22px; }
  .hd-info { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12px; margin: 0 auto 0 0; line-height: 1.6; }
  .hd-info dt { border: 1px solid var(--muted); color: var(--muted); font-size: 11px; padding: 0 6px; text-align: center; }
  .hd-info dd { margin: 0; }
  .hd-contact { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .hd-tel { display: flex; flex-direction: column; line-height: 1.2; }
  .hd-tel small { font-size: 11px; color: var(--muted); }
  .hd-tel span { font: 500 30px var(--f-en); color: var(--main); letter-spacing: .04em; }
  .hd-tel span::before { content: "☎ "; font-size: .7em; }
  .hd-line { background: var(--line-c); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; }
  .gnav { display: flex; justify-content: center; border-top: 1px solid var(--line); }
  .gnav a { padding: 13px 22px; font: 15px var(--f-head); color: var(--main); letter-spacing: .08em; position: relative; }
  .gnav a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid var(--line); }
  .gnav a:first-child { background: var(--main); color: #fff; }
  .gnav a:hover { color: var(--accent); }

  /* メインビジュアル：写真の左の空いた側に、半透明の白い帯でコピー（顔には重ねない） */
  .mv { height: 600px; overflow: hidden; }
  .mv-photo { position: absolute; inset: 0 0 0 22%; aspect-ratio: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
  .mv-body { position: absolute; left: max(24px, calc((100% - 1080px) / 2 + 24px)); top: 50%; transform: translateY(-50%); padding: 0; }
  .mv-lead span, .mv-sub span { display: inline-block; background: rgba(255,255,255,.88); padding: 4px 14px; }
  .mv-lead { margin-bottom: 14px; }
  .mv-copy span { display: table; background: rgba(255,255,255,.9); padding: 4px 22px; margin-bottom: 10px; font-size: clamp(30px, 2.8vw, 40px); }
  .mv-copy span:last-child { margin-left: 2.2em; }
  .mv-sub { margin-top: 14px; font-size: 16px; }

  .quick { padding: 0; margin-top: -54px; position: relative; z-index: 2; background: transparent; }
  .quick-ttl { display: none; }
  .quick-list { gap: 10px; }
  .quick-list a { font-size: 15px; padding-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }

  .news { margin-top: 44px; padding: 28px 0; }
  .news-in { display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: center; }
  .news-hd { flex-direction: column; align-items: center; gap: 2px; margin: 0; padding-right: 30px; border-right: 1px solid rgba(255,255,255,.3); }
  .news-hd p { font-size: 24px; }
  .news-hd a { margin: 8px 0 0; }
  .news-list li { font-size: 15px; }

  .sec { padding: 84px 0; }
  .hd2 { margin-bottom: 36px; }
  .hd2-en { font-size: 34px; }
  .concept-banner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; min-height: 230px; }
  .concept-photo { order: 2; aspect-ratio: auto; height: 100%; min-height: 230px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
  .concept-copy { font-size: 28px; padding: 30px 40px; margin: 0; }
  .concept-lead { font-size: 22px; }
  .greeting-in { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .greeting-ttl { font-size: 22px; }
  .tiles a:hover .tile-img { opacity: .85; }
  .tile-frame b { font-size: 19px; }
  .tile-frame small { font-size: 11px; }
  .effort { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .effort.rev .effort-photo { order: 2; }
  .effort-photo { height: 100%; min-height: 280px; aspect-ratio: auto; }
  .effort-body { padding: 32px 40px; }
  .effort h3, .equip h3 { font-size: 22px; }
  .equip { padding: 32px 40px; }
  .doctor-in { grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
  .access-in { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
  .hours { font-size: 14px; }
  .cta-tel { font-size: 52px; }
  .ft-in { grid-template-columns: 1fr 1.3fr; }
  .ft-nav { grid-template-columns: repeat(3, 1fr); }
}

/* 案ごとのファーストビュー（該当案だけ v7-themes.css で表示） */
.fv { display: none; }
