/* =========================================================
   デザイン案 第7弾 改訂版（6案）
   02・05 … 前回のまま
   01・03・04・06 … 市岡歯科医院・原宿デンタルオフィスの誠実さは保ちつつ、構成から作り直した案
     01 「治す・整える・守る」型（3本柱の写真から始まる）
     03 「院長の言葉」型（手紙のような書き出し）
     04 「情報を先に」型（外観写真＋診療時間・アクセスのパネル）
     06 「院内の空気」型（人物のいない院内写真を全幅に）
   ========================================================= */

/* ---------- 前回のまま ---------- */
/* 02 チャコール×ベージュ（原宿デンタルオフィスの雰囲気） */
[data-theme="2"] { --main: #4a4a4a; --accent: #9a7a4e; --bg2: #f7f3ec; --line: #e2dccf; --news-bg: #555; }
@media (min-width: 1100px) {
  html[data-theme="2"] .gnav { background: #555; border-top: 0; }
  html[data-theme="2"] .gnav a { color: #fff; }
  html[data-theme="2"] .gnav a + a::before { border-color: rgba(255,255,255,.35); }
  html[data-theme="2"] .gnav a:first-child { background: transparent; }
}
/* 05 セージグリーン（写真とコピーを左右に分けた、いちばん穏やかな案） */
[data-theme="5"] { --main: #4e6658; --accent: #a08657; --bg2: #f3f4ef; --line: #dde1d7; --news-bg: #4e6658; }
@media (min-width: 1100px) {
  html[data-theme="5"] .mv { background: var(--bg2); }
  html[data-theme="5"] .mv-photo { left: 38%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  html[data-theme="5"] .mv-lead span, html[data-theme="5"] .mv-sub span, html[data-theme="5"] .mv-copy span { background: transparent; padding-left: 0; }
  html[data-theme="5"] .mv-copy span:last-child { margin-left: 0; }
}


/* =========================================================
   01 「治す・整える・守る」型 ／ ウォームグレー×ブラウン
   ========================================================= */
[data-theme="1"] { --main: #3d3a38; --accent: #8a6a3f; --bg2: #f4f2ef; --line: #dcd7d0; --news-bg: #3d3a38; }
html[data-theme="1"] .mv { display: none; }
html[data-theme="1"] .fv-pillars { display: block; background: var(--bg2); padding: 36px 0 32px; text-align: center; }
.pl-lead { font: 13px var(--f-head); color: var(--muted); margin: 0 0 8px; letter-spacing: .15em; }
.pl-copy { font-size: 24px; color: var(--main); letter-spacing: .12em; line-height: 1.7; margin-bottom: 26px; }
.pl-list { display: grid; gap: 22px; text-align: left; }
.pl-list li { background: #fff; border: 1px solid var(--line); }
.pl-photo { aspect-ratio: 16 / 10; }
.pl-no { font: 500 15px var(--f-en); color: var(--accent); letter-spacing: .2em; margin: 14px 18px 0; }
.pl-list h2 { font-size: 22px; color: var(--main); margin: 0 18px 4px; letter-spacing: .2em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pl-list p:last-child { font: 14px/1.8 var(--f-head); margin: 8px 18px 18px; }
html[data-theme="1"] .policy { display: none; }
@media (min-width: 600px) { .pl-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } .sp-br { display: none; } }
@media (min-width: 1100px) {
  html[data-theme="1"] .fv-pillars { padding: 64px 0 120px; }
  .pl-copy { font-size: 36px; margin-bottom: 44px; }
  .pl-list { gap: 28px; }
  html[data-theme="1"] .quick { margin-top: -64px; }
}


/* =========================================================
   03 「院長の言葉」型 ／ 落ち着いたティール
   ========================================================= */
[data-theme="3"] { --main: #2f6663; --accent: #a88a55; --bg2: #f1f5f4; --line: #d5e0de; --news-bg: #2f6663; }
html[data-theme="3"] .mv { display: none; }
html[data-theme="3"] .fv-letter { display: block; padding: 32px 0 20px; background: #fff; }
.lt-in { display: grid; gap: 24px; }
.lt-photo { aspect-ratio: 4 / 5; max-width: 300px; width: 70%; margin: 0 auto; }
.lt-lead { font: 13px var(--f-head); color: var(--accent); letter-spacing: .12em; margin: 0 0 14px; }
.lt-copy { font-size: 21px; color: var(--main); letter-spacing: .1em; line-height: 1.7; margin-bottom: 18px; }
.lt-text { font: 15px/2.1 var(--f-head); }
.lt-sign { text-align: right; font: 500 20px var(--f-head); letter-spacing: .2em; color: var(--main); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; }
.lt-sign small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
/* 診療メニューは文字の一覧 */
html[data-theme="3"] .quick { background: var(--bg2); padding: 26px 0; margin: 0; }
html[data-theme="3"] .quick-ttl { display: block; }
html[data-theme="3"] .quick-list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
html[data-theme="3"] .quick-list .photo { display: none; }
html[data-theme="3"] .quick-list a { border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 12px 22px 12px 4px; position: relative; box-shadow: none; }
html[data-theme="3"] .quick-list a::after { content: "›"; position: absolute; right: 4px; color: var(--accent); }
/* お知らせは明るく */
html[data-theme="3"] .news { background: #fff; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 0; }
html[data-theme="3"] .news-hd { color: var(--main); border-color: var(--line) !important; }
html[data-theme="3"] .news-hd a { border-color: var(--line); }
/* 診療案内は一覧（イラスト左・文字右） */
html[data-theme="3"] .tiles { grid-template-columns: 1fr; background: transparent; border: 0; gap: 0; }
html[data-theme="3"] .tiles a { aspect-ratio: auto; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; }
html[data-theme="3"] .tile-img { position: relative; inset: auto; width: 76px; height: 76px; flex: none; background-size: 80% !important; background-position: center !important; border-radius: 50%; border: 1px solid var(--line); }
html[data-theme="3"] .tile-frame { position: static; border: 0; background: none; text-align: left; padding: 0; }
html[data-theme="3"] .tile-frame small { font-size: 12px; }
@media (min-width: 600px) { html[data-theme="3"] .tiles { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) {
  html[data-theme="3"] .fv-letter { padding: 80px 0 72px; }
  .lt-in { grid-template-columns: 340px 1fr; gap: 72px; align-items: center; max-width: 980px; }
  .lt-photo { width: 100%; max-width: none; }
  .lt-copy { font-size: 38px; letter-spacing: .14em; }
  .lt-text { font-size: 16px; }
  html[data-theme="3"] .quick-list { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  html[data-theme="3"] .quick-list a { font-size: 16px; padding: 16px 24px 16px 4px; }
  html[data-theme="3"] .tiles { grid-template-columns: repeat(3, 1fr); }
}


/* =========================================================
   04 「情報を先に」型 ／ ネイビー×サンド
   ========================================================= */
[data-theme="4"] { --main: #2c3e55; --accent: #9a8058; --bg2: #f3f4f6; --line: #d9dde3; --news-bg: #2c3e55; }
html[data-theme="4"] .mv { display: none; }
html[data-theme="4"] .fv-info { display: block; background: var(--bg2); }
.if-photo { aspect-ratio: 16 / 9; }
.if-panel { background: #fff; margin: -24px 14px 0; position: relative; padding: 24px 20px; border-top: 3px solid var(--main); }
.if-lead { display: inline-block; font: 600 13px var(--f-head); color: #fff; background: var(--accent); padding: 2px 12px; margin: 0 0 12px; }
.if-copy { font-size: 23px; color: var(--main); letter-spacing: .1em; line-height: 1.7; margin-bottom: 16px; }
.if-hours { width: 100%; border-collapse: collapse; font-size: 12px; }
.if-hours th, .if-hours td { border-bottom: 1px solid var(--line); padding: 7px 2px; text-align: center; font-weight: 400; }
.if-hours th { text-align: left; white-space: nowrap; }
.if-hours tr:first-child td { background: var(--main); color: #fff; }
.if-hours td { color: var(--accent); }
.if-note { font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.if-facts li { font-size: 13px; margin-bottom: 4px; }
.if-facts b { display: inline-block; min-width: 4.5em; color: var(--main); }
.if-tel { display: flex; flex-direction: column; margin-top: 14px; background: var(--main); color: #fff; text-align: center; padding: 8px; font: 500 28px/1.2 var(--f-en); letter-spacing: .05em; }
.if-tel small { font: 11px var(--f-body); opacity: .85; }
/* 診療メニューは紺の帯 */
html[data-theme="4"] .quick { background: var(--main); padding: 22px 0; margin: 28px 0 0; }
html[data-theme="4"] .quick-ttl { display: block; color: #fff; }
html[data-theme="4"] .quick-ttl::before, html[data-theme="4"] .quick-ttl::after { background: rgba(255,255,255,.4); }
html[data-theme="4"] .quick-list a { background: transparent; border: 0; color: #fff; box-shadow: none; }
html[data-theme="4"] .quick-list .photo { width: 64px; height: 64px; aspect-ratio: auto; margin: 0 auto 6px; border-radius: 50%; background-size: 82%; }
html[data-theme="4"] .news { margin-top: 0; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
html[data-theme="4"] .news-hd { color: var(--main); border-color: var(--line) !important; }
html[data-theme="4"] .news-hd a { border-color: var(--line); }
/* 診療案内は左に線の入ったカード */
html[data-theme="4"] .tiles { background: transparent; border: 0; gap: 12px; }
html[data-theme="4"] .tiles a { aspect-ratio: auto; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-left: 3px solid var(--main); padding: 10px 12px; }
html[data-theme="4"] .tile-img { position: relative; inset: auto; width: 56px; height: 56px; flex: none; background-size: 90% !important; background-position: center !important; }
html[data-theme="4"] .tile-frame { position: static; border: 0; background: none; text-align: left; padding: 0; }
@media (min-width: 1100px) {
  html[data-theme="4"] .hd-info { display: none; }
  html[data-theme="4"] .fv-info { display: grid; grid-template-columns: 1fr 470px; min-height: 560px; }
  .if-photo { aspect-ratio: auto; height: 100%; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18%); mask-image: linear-gradient(to left, transparent 0, #000 18%); }
  .if-panel { margin: 40px 48px 40px -40px; padding: 34px 36px; align-self: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
  .if-copy { font-size: 27px; letter-spacing: .06em; white-space: nowrap; }
  .if-hours { font-size: 13px; }
  html[data-theme="4"] .quick { margin-top: 0; padding: 28px 0; }
  html[data-theme="4"] .quick-ttl { display: none; }
  html[data-theme="4"] .quick-list .photo { width: 80px; height: 80px; }
  html[data-theme="4"] .quick-list a { font-size: 15px; }
}


/* =========================================================
   06 「院内の空気」型 ／ 紺×テラコッタ
   ========================================================= */
[data-theme="6"] { --main: #2b3a52; --accent: #ad6f55; --bg2: #f6f2ee; --line: #e3dbd3; --news-bg: #2b3a52; }
html[data-theme="6"] .mv-body { text-align: center; }
html[data-theme="6"] .quick-list a { border-radius: 14px; border-color: transparent; background: var(--bg2); }
html[data-theme="6"] .quick-list .photo { border-radius: 12px 12px 0 0; }
html[data-theme="6"] .tiles { background: transparent; border: 0; gap: 12px; }
html[data-theme="6"] .tiles a { border-radius: 18px; background: var(--bg2); }
html[data-theme="6"] .tile-img { background-color: transparent; }
html[data-theme="6"] .tile-frame { border: 0; background: #fff; border-radius: 999px; }
html[data-theme="6"] :is(.effort, .equip, .greeting-photo, .concept-banner, .doctor-photo, .access-photo, .tour-list .photo) { border-radius: 16px; overflow: hidden; }
html[data-theme="6"] :is(.btn, .cta-line) { border-radius: 999px; }
@media (min-width: 1100px) {
  html[data-theme="6"] .mv { height: 640px; }
  html[data-theme="6"] .mv-photo { inset: 0; -webkit-mask-image: none; mask-image: none; }
  html[data-theme="6"] .mv-body { left: 50%; top: 46%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); padding: 40px 64px; border-radius: 20px; }
  html[data-theme="6"] :is(.mv-lead span, .mv-sub span, .mv-copy span) { background: transparent; padding: 0; margin-left: 0; margin-right: 0; }
  html[data-theme="6"] .mv-copy span { display: block; }
}

/* 03：理念の言葉はトップで見せているので、治療方針の帯は出さない */
html[data-theme="3"] .concept-banner { display: none; }
