/*
Theme Name: Tanaka Ladies Clinic 2026
Theme URI: https://tanakaladiesclinic.com/
Author: Tanaka Ladies Clinic
Description: 2026 renewal theme (pale cherry pink). Mock v9 based.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: tanaka-lc
*/

  :root {
    color-scheme: light;
    --pink: #F7A9BD;
    --pink-btn: #EE7F9F;
    --pink-text: #C95677;
    --pink-mist: #FDEEF3;
    --pink-pale: #FEF5F8;
    --paper: #FBF5F6;
    --white: #FFFFFF;
    --ink: #4B4347;
    --ink-soft: #837A7D;
    --gray: #9A9096;
    --sage: #6E8F7E;
    --line: #F2DFE6;
    --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
    --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.9;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 74px;
  }
  a { color: var(--pink-text); }
  img { max-width: 100%; }

  /* ===== ヘッダー ===== */
  header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(253,250,249,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .brand-band { background: var(--pink); }
  .site-inner {
    max-width: 1120px; margin: 0 auto; padding: 8px 20px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
  .brand img { height: 58px; width: auto; }
  .brand .txt { display: flex; flex-direction: column; }
  .brand .en { font-size: 9.5px; letter-spacing: .26em; color: rgba(255,255,255,.85); text-transform: uppercase; line-height: 1.4; }
  .brand .ja { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; color: #fff; }
  .brand-band .btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
  .brand-band .btn-ghost:hover { background: rgba(255,255,255,.15); }
  .brand-band .btn-solid { background: #fff; color: var(--pink-text); border-color: #fff; }
  .brand-band .btn-solid:hover { background: var(--pink-pale); border-color: var(--pink-pale); }
  .head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; border-radius: 999px; font-size: 14px; letter-spacing: .04em;
    padding: 10px 20px; border: 1.5px solid var(--pink-btn); white-space: nowrap;
    transition: background-color .15s ease, color .15s ease; cursor: pointer;
    font-family: var(--sans);
  }
  .btn:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; }
  .btn-solid { background: var(--pink-btn); color: #fff; font-weight: 600; }
  .btn-solid:hover { background: var(--pink); border-color: var(--pink); }
  .btn-ghost { background: transparent; color: var(--pink-text); }
  .btn-ghost:hover { background: var(--pink-mist); }
  @media (max-width: 640px) {
    .head-cta .btn-ghost { display: none; }
    .brand img { height: 38px; }
    .brand .ja { font-size: 16px; }
  }

  /* ===== ページタブ ===== */
  nav.tabs {
    max-width: 1120px; margin: 8px auto 0; padding: 0 12px;
    display: flex; gap: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { text-decoration: none; display: block;
    color: var(--pink-text); font-size: 15px; font-weight: 600; letter-spacing: .04em;
    padding: 10px 17px 11px; white-space: nowrap; flex: none;
    background: var(--pink-pale); border: 1px solid var(--line); border-bottom: none;
  }
  nav.tabs a:hover { background: var(--pink-mist); }
  nav.tabs a.current { background: var(--pink-btn); border-color: var(--pink-btn); color: #fff; }

  /* ===== ページ切替 ===== */
  .page { display: block; }
  .page-title {
    background: linear-gradient(165deg, #FDFCFC 0%, var(--pink-pale) 60%, #F9E0E9 100%);
    border-bottom: 1px solid var(--line);
  }
  .page-title .in { max-width: 1120px; margin: 0 auto; padding: 40px 20px; }
  .page-title .en { font-size: 11px; letter-spacing: .3em; color: var(--pink-btn); text-transform: uppercase; }
  .page-title h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); font-weight: 600; letter-spacing: .1em; margin-top: 4px; }

  /* ===== セクション共通 ===== */
  section.block { max-width: 1120px; margin: 0 auto; padding: 48px 20px; }
  section.block.tinted { max-width: none; background: var(--white); border-block: 1px solid var(--line); }
  section.block.tinted > .tint-inner { max-width: 1120px; margin: 0 auto; }
  .sec-head { margin-bottom: 28px; }
  .sec-head .en { font-size: 11px; letter-spacing: .3em; color: var(--pink-btn); text-transform: uppercase; }
  .sec-head h2 { font-family: var(--serif); font-size: clamp(21px, 3vw, 27px); font-weight: 600; letter-spacing: .08em; margin-top: 6px; text-wrap: balance; }
  .sec-head p { color: var(--ink-soft); font-size: 14px; margin-top: 10px; max-width: 44em; }
  h3.sub {
    font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .08em;
    margin: 38px 0 16px; padding: 9px 18px 9px 14px; border-left: 4px solid var(--pink);
    color: var(--pink-text);
    background: linear-gradient(90deg, var(--pink-mist) 0%, rgba(253,238,243,0) 92%);
    border-radius: 0 999px 999px 0; scroll-margin-top: 135px;
  }
  .more { text-align: center; margin-top: 26px; }

  /* ===== 写真プレースホルダ ===== */
  .ph {
    border: 2px dashed #DCC3C8; border-radius: 16px; background: var(--pink-pale);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--pink-text); font-size: 12.5px; letter-spacing: .12em; text-align: center; padding: 12px;
  }
  .ph svg { width: 30px; height: 30px; opacity: .7; }

  /* ===== ホーム:ヒーロー ===== */
  .hero { background: linear-gradient(165deg, #FDFCFC 0%, var(--pink-pale) 55%, #F9E0E9 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
  .hero-inner {
    max-width: 1120px; margin: 0 auto; padding: 56px 20px 52px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  }
  @media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-top: 40px; } }
  .hero .en-label { font-size: 12px; letter-spacing: .3em; color: var(--gray); margin-bottom: 16px; }
  .hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(25px, 4.6vw, 40px); line-height: 1.7; letter-spacing: .06em; text-wrap: balance;
  }
  .hero h1 .small-line { font-size: .62em; display: block; color: var(--pink-text); margin-bottom: 6px; letter-spacing: .1em; }
  .hero h1 .uline {
    padding-right: .6em;
    background-image: linear-gradient(90deg, rgba(247,169,189,.55) 0%, rgba(247,169,189,.45) 55%, rgba(247,169,189,0) 100%);
    background-repeat: no-repeat;
    background-size: 100% .32em;
    background-position: 0 92%;
  }
  .hero p.lead { margin-top: 18px; max-width: 32em; color: var(--ink-soft); font-size: 15px; }
  .hero-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; padding: 7px 16px; letter-spacing: .03em; }
  .chip b { color: var(--pink-text); font-weight: 600; }
  .hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-cta .btn { font-size: 15px; padding: 13px 28px; }
  .hero .ph { aspect-ratio: 4 / 3; }
  .slider { position: relative; aspect-ratio: 4 / 3; background: var(--pink-pale); border-radius: 16px; }
  .slider .slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 12s linear infinite; }
  .slider .slide:nth-child(1) { animation-name: heroFadeFirst; }
  .slider .slide:nth-child(2) { animation-delay: 4s; }
  .slider .slide:nth-child(3) { animation-delay: 8s; }
  .slider .ph { width: 100%; height: 100%; aspect-ratio: auto; }
  .slider .slide:nth-child(2) .ph { background: #F2EDE9; }
  .slider .slide:nth-child(3) .ph { background: #EDF1EE; }
  @keyframes heroFade { 0% {opacity:0} 4% {opacity:1} 30% {opacity:1} 34% {opacity:0} 100% {opacity:0} }
  @keyframes heroFadeFirst { 0% {opacity:1} 30% {opacity:1} 34% {opacity:0} 96% {opacity:0} 100% {opacity:1} }
  .slider .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
  .slider .dots span { width: 8px; height: 8px; border-radius: 50%; background: #DFD2D5; animation: dotFade 12s linear infinite; }
  .slider .dots span:nth-child(1) { animation-name: dotFadeFirst; }
  .slider .dots span:nth-child(2) { animation-delay: 4s; }
  .slider .dots span:nth-child(3) { animation-delay: 8s; }
  @keyframes dotFade { 0% {background:#DFD2D5} 4% {background:var(--pink-btn)} 30% {background:var(--pink-btn)} 34% {background:#DFD2D5} 100% {background:#DFD2D5} }
  @keyframes dotFadeFirst { 0% {background:var(--pink-btn)} 30% {background:var(--pink-btn)} 34% {background:#DFD2D5} 96% {background:#DFD2D5} 100% {background:var(--pink-btn)} }
  @media (prefers-reduced-motion: reduce) {
    .slider .slide, .slider .dots span { animation: none; }
    .slider .slide:first-child { opacity: 1; }
    .slider .dots span:first-child { background: var(--pink-btn); }
  }

  /* ===== ホーム:クイックリンク ===== */
  .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 820px) { .quick { grid-template-columns: 1fr; } }
  .q-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
    text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px;
    transition: border-color .15s ease;
  }
  .q-card:hover { border-color: var(--pink); }
  .q-card .t { font-family: var(--serif); font-size: 17.5px; font-weight: 600; letter-spacing: .08em; color: var(--pink-text); }
  .q-card p { font-size: 13.5px; color: var(--ink-soft); }
  .q-card .go { margin-top: auto; font-size: 13px; color: var(--pink-text); }

  /* ===== 診療時間 ===== */
  .hours-table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
  table.hours { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }
  table.hours th, table.hours td { text-align: center; padding: 12px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  table.hours thead th { background: var(--pink-mist); color: var(--pink-text); font-weight: 600; letter-spacing: .06em; }
  table.hours .time { font-weight: 600; white-space: nowrap; background: var(--pink-pale); }
  table.hours .who { font-size: 13px; white-space: nowrap; background: #FAF7F7; }
  table.hours tbody tr:last-child th, table.hours tbody tr:last-child td { border-bottom: none; }
  .mark-o { color: var(--sage); font-weight: 700; }
  .mark-x { color: #D3C8CB; }
  /* 医師ごとの色分け（●マークのみ。院長=グレー/副院長=ピンク/堤医師=オレンジ） */
  tr.dr1 { --dr: #B9B2B6; }
  tr.dr2 { --dr: #F5A3BB; }
  tr.dr3 { --dr: #7BBFDE; }
  table.hours tr[class*="dr"] .mark-o { color: var(--dr); font-size: 19px; line-height: 1; }
  .hours-note .dr-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 4px 0 2px; vertical-align: -1px; }
  .hours-note .dd1 { background: #B9B2B6; }
  .hours-note .dd2 { background: #F5A3BB; }
  .hours-note .dd3 { background: #7BBFDE; }
  .hours-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; list-style: none; }
  .hours-note li::before { content: "・"; color: var(--pink); }

  /* ===== お知らせ ===== */
  .news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .news-list a, .news-list label {
    display: flex; gap: 18px; align-items: baseline; padding: 15px 6px;
    border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14.5px;
  }
  .news-list a:hover, .news-list label:hover { background: var(--pink-mist); }
  .news-list time { color: var(--ink-soft); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .news-tag { font-size: 11px; border: 1px solid var(--pink); color: var(--pink-text); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
  .news-thumb { margin-left: auto; flex: 0 0 auto; align-self: center; }
  .news-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
  .wp-note {
    margin-top: 22px; background: var(--pink-mist); border-radius: 12px; padding: 16px 20px;
    font-size: 13px; color: var(--pink-text);
  }

  /* ===== 診療案内 ===== */
  .care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 900px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .care-grid { grid-template-columns: 1fr; } }
  .care { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
  .care h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; padding-bottom: 8px; border-bottom: 1px dashed #E7D8DB; color: var(--pink-text); }
  a.care { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
  a.care:hover { border-color: var(--pink-btn); box-shadow: 0 3px 12px rgba(238,127,159,.18); }
  .care p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }

  details.exam { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; scroll-margin-top: 135px; }
  details.exam summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; font-family: var(--serif); font-size: 16.5px; font-weight: 600; letter-spacing: .05em;
    background: var(--pink-pale);
  }
  details.exam summary::-webkit-details-marker { display: none; }
  details.exam summary::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
  details.exam summary::after { content: "＋"; margin-left: auto; color: var(--pink); font-size: 18px; font-family: var(--sans); }
  details.exam[open] summary::after { content: "−"; }
  details.exam summary:hover { background: var(--pink-mist); }
  details.exam .body { padding: 4px 20px 20px; border-top: 1px dashed var(--line); }
  dl.spec { display: grid; grid-template-columns: 7.5em 1fr; font-size: 14px; }
  dl.spec dt { color: var(--pink-text); font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--pink-mist); letter-spacing: .06em; font-size: 13px; }
  dl.spec dd { padding: 9px 0; border-bottom: 1px solid var(--pink-mist); }
  dl.spec dt:last-of-type, dl.spec dd:last-of-type { border-bottom: none; }
  @media (max-width: 560px) {
    dl.spec { grid-template-columns: 1fr; }
    dl.spec dt { border-bottom: none; padding-bottom: 0; }
    dl.spec dd { padding-top: 2px; }
  }
  .fine { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
  .draft-note {
    margin: 14px 0 22px; background: #F3F0F1; border: 1px dashed #C9BFC2; border-radius: 10px;
    padding: 10px 16px; font-size: 12.5px; color: #7C7276; letter-spacing: .02em;
  }
  .page-title h1.eq-title { font-family: "Avenir Next", "Century Gothic", var(--sans); letter-spacing: .14em; font-weight: 700; }
  .eq-title .furi, .prod-head .furi { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .32em; color: var(--pink-text); margin-bottom: 2px; }
  .prod-head { font-family: "Avenir Next", "Century Gothic", var(--sans); letter-spacing: .14em; font-weight: 700; font-size: 24px; margin-bottom: 14px; }
  html { scroll-behavior: smooth; }
  .prod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 30px; }
  .prod-tabs a {
    border: 1.5px solid var(--pink-btn); color: var(--pink-btn); background: var(--white);
    border-radius: 999px; padding: 8px 20px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  }
  .prod-tabs a::after { content: "↓"; font-size: 12px; opacity: .75; }
  .prod-sec { scroll-margin-top: 135px; }
  .nutri { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .nutri span { background: var(--pink-mist); color: var(--pink-text); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 14px; letter-spacing: .04em; }
  .nutri span.new { background: var(--pink-btn); color: #fff; }
  .prod-sec + .prod-sec { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 38px; }

  /* ===== ご予約 ===== */
  .web-reserve {
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 34px;
    background: var(--white);
  }
  .web-reserve .head {
    background: linear-gradient(135deg, var(--pink-btn) 0%, var(--pink) 100%); color: #fff; padding: 26px 28px;
  }
  .web-reserve .head .coming { font-size: 12px; letter-spacing: .22em; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; display: inline-block; padding: 2px 14px; margin-bottom: 10px; }
  .web-reserve .head h3 { font-family: var(--serif); font-size: clamp(19px, 3vw, 24px); font-weight: 600; letter-spacing: .08em; }
  .web-reserve .body { padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
  .web-reserve .body p { font-size: 14px; max-width: 34em; }
  .web-reserve .body .btn-wide {
    flex: none; display: inline-flex; align-items: center; gap: 10px;
    background: #ECE5E6; color: #95898D; border-radius: 999px; padding: 14px 30px;
    font-size: 15px; font-weight: 600; letter-spacing: .04em; cursor: not-allowed;
  }
  .rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 820px) { .rules { grid-template-columns: 1fr; } }
  .rule { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
  .rule h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; letter-spacing: .06em; color: var(--pink-text); margin-bottom: 10px; }
  .rule ul { list-style: none; font-size: 14px; }
  .rule li { padding-left: 1.2em; position: relative; margin-bottom: 6px; }
  .rule li::before { content: "・"; position: absolute; left: 0; color: var(--pink); }
  .rule p { font-size: 14px; }
  .tel-big { font-size: 28px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.3; }
  .tel-big small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); letter-spacing: .1em; }
  .tel-hero {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
    font-size: clamp(30px, 6vw, 42px); font-weight: 700; letter-spacing: .05em;
    color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.2;
  }
  .tel-hero svg { width: .75em; height: .75em; flex: none; }
  .web-reserve .head .sub-note { font-size: 13px; opacity: .95; letter-spacing: .05em; margin-top: 6px; }
  /* 電話予約は控えめに: 薄ピンク地+番号のみ濃いタブで強調 */
  .web-reserve .head.soft { background: var(--pink-mist); color: var(--ink); }
  .web-reserve .head.soft .coming { border-color: var(--pink-btn); color: var(--pink-text); }
  .web-reserve .head.soft .sub-note { color: var(--ink-soft); opacity: 1; }
  .web-reserve .head.soft .tel-hero {
    background: var(--pink-btn); color: #fff; border-radius: 14px;
    padding: 8px 24px; margin-top: 12px;
    font-size: clamp(26px, 5vw, 36px);
    box-shadow: 0 3px 10px rgba(238,127,159,.28);
  }
  .web-reserve .body ul { list-style: none; font-size: 14px; }
  .web-reserve .body li { padding-left: 1.2em; position: relative; margin-bottom: 6px; }
  .web-reserve .body li::before { content: "・"; position: absolute; left: 0; color: var(--pink); }

  /* ===== 初めての方へ ===== */
  .maina { background: var(--pink-mist); border-radius: 14px; padding: 24px 26px; margin-bottom: 18px; }
  .maina h4 { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; color: var(--pink-text); margin-bottom: 8px; }
  .maina p { font-size: 14px; }
  .first-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
  @media (max-width: 820px) { .first-steps { grid-template-columns: 1fr; } }
  .step { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; counter-increment: step; }
  .step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 28px; color: var(--pink); display: block; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
  .step h4 { font-size: 15.5px; font-weight: 600; letter-spacing: .05em; margin-bottom: 6px; }
  .step p { font-size: 13.5px; color: var(--ink-soft); }

  /* ===== 医師紹介 ===== */
  .docs { display: flex; flex-direction: column; gap: 18px; max-width: 880px; margin: 0 auto; }
  .doc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: row; }
  .doc .ph { width: 210px; flex: 0 0 210px; aspect-ratio: 3 / 4; border-radius: 0; border: none; border-right: 1px solid var(--line); }
  .doc .body { padding: 18px 22px 22px; flex: 1; align-self: center; }
  @media (max-width: 640px) {
    .doc { flex-direction: column; }
    .doc .ph { width: 100%; flex: initial; border-right: none; border-bottom: 1px solid var(--line); }
  }
  .doc .role { font-size: 11.5px; letter-spacing: .22em; color: var(--pink); }
  .doc h4 { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .1em; margin: 4px 0 8px; }
  .doc p { font-size: 13px; color: var(--ink-soft); }

  /* ===== アクセス ===== */
  .access-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
  @media (max-width: 820px) { .access-wrap { grid-template-columns: 1fr; } }
  .map-ph {
    border-radius: 14px; border: 1px solid var(--line); min-height: 280px;
    background:
      repeating-linear-gradient(0deg, transparent 0 39px, #E5DBDD 39px 40px),
      repeating-linear-gradient(90deg, transparent 0 39px, #E5DBDD 39px 40px),
      #F7F2F2;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft); font-size: 12.5px; letter-spacing: .14em; text-align: center;
  }
  .access-list { display: flex; flex-direction: column; gap: 14px; }
  .access-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
  .access-item .way { font-size: 12px; letter-spacing: .2em; color: var(--pink); }
  .access-item p { font-size: 14px; margin-top: 3px; }
  .map-ill { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
  .gmap-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
  .gmap-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

  /* ===== 施設基準 ===== */
  details.fac { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
  details.fac summary { cursor: pointer; list-style: none; padding: 14px 20px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; letter-spacing: .04em; }
  details.fac summary::-webkit-details-marker { display: none; }
  details.fac summary::after { content: "＋"; margin-left: auto; color: var(--pink); }
  details.fac[open] summary::after { content: "−"; }
  details.fac .body { padding: 0 20px 18px; font-size: 13.5px; color: var(--ink-soft); }
  details.fac .body ul { list-style: none; margin-top: 6px; }
  details.fac .body li { padding-left: 1.2em; position: relative; }
  details.fac .body li::before { content: "＊"; position: absolute; left: 0; color: var(--pink); }

  /* ===== フッター ===== */
  footer.site { background: var(--pink); margin-top: 40px; }
  .foot-inner { max-width: 1120px; margin: 0 auto; padding: 44px 20px 96px; color: #fff; display: flex; flex-wrap: wrap; gap: 30px 60px; align-items: center; }
  .foot-inner img { width: 180px; height: auto; }
  .foot-inner .addr { font-size: 14px; line-height: 2.1; }
  .foot-inner a { color: #fff; }
  .foot-inner .small { font-size: 12px; opacity: .9; margin-top: 8px; }
  .foot-inner .small a { text-underline-offset: 3px; }
  .insta-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    border: 1.5px solid rgba(255,255,255,.8); border-radius: 999px; padding: 6px 16px;
    font-size: 13px; letter-spacing: .06em; color: #fff;
  }
  .insta-badge svg { width: 17px; height: 17px; }
  .insta-badge .soon { font-size: 10.5px; letter-spacing: .16em; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

  /* ===== モバイル固定CTA ===== */
  .fixed-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
  .fixed-cta a, .fixed-cta label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
  .fixed-cta .call { background: var(--white); color: var(--ink); }
  .fixed-cta .web { background: var(--pink-btn); color: #fff; }
  .fixed-cta svg { width: 18px; height: 18px; flex: none; }

  /* ===== v6: 写真スタンドイン（実写真が届いたら差し替え） ===== */
  .photo { position: relative; overflow: hidden; border-radius: 16px; background: #EDE7E4; }
  .photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(200deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 45%, rgba(96,72,80,.12) 100%);
  }
  .photo .tag {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    background: rgba(255,255,255,.93); color: var(--pink-text);
    font-size: 11.5px; letter-spacing: .08em; border-radius: 999px; padding: 4px 14px;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: calc(100% - 24px);
  }
  .photo .tag svg { width: 13px; height: 13px; flex: none; }
  .sc-gaikan { background: #EDE7E4 url(assets/img/hero-gaikan.jpg) center/cover no-repeat; }
  .sc-machiai { background: #EDE7E4 url(assets/img/hero-machiai.jpg) center/cover no-repeat; }
  .sc-shinsatsu { background: #EDE7E4 url(assets/img/hero-shinsatsu.jpg) center/cover no-repeat; }
  .sc-ansei { background: #EDE7E4 url(assets/img/band-ansei.jpg) center/cover no-repeat; }
  .sc-parking { background: #EDE7E4 url(assets/img/parking.jpg) center/cover no-repeat; }
  .sc-kids { background: #EDE7E4 url(assets/img/kids.jpg) center/cover no-repeat; }
  .sc-komono { background: url(assets/img/band-komono.jpg) right center/auto 132% no-repeat; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) calc(100% - 800px), #000 calc(100% - 360px)); mask-image: linear-gradient(90deg, rgba(0,0,0,0) calc(100% - 800px), #000 calc(100% - 360px)); }
  .sc-plate { background: #EDE7E4 url(assets/img/plate.jpg) center/cover no-repeat; }
    .sc-hall { background: #EDE7E4 url(assets/img/band-hall.jpg) center/cover no-repeat; }
  .sc-uketsuke { background: #EDE7E4 url(assets/img/band-uketsuke.jpg) center/cover no-repeat; }
  .sc-plate2 { background: #EDE7E4 url(assets/img/band-plate2.jpg) right center/cover no-repeat; }
  .sc-gaikan2 { background: #EDE7E4 url(assets/img/band-gaikan2.jpg) center 60%/cover no-repeat; }
    .sc-rouka { background: #EDE7E4 url(assets/img/band-rouka.jpg) center/cover no-repeat; }
    .sc-shinsatsu2 { background: #EDE7E4 url(assets/img/band-shinsatsu2.jpg) center/cover no-repeat; }
  .sc-group { background: #EDE7E4 url(assets/img/doctors-group.jpg) center/cover no-repeat; }

  /* ===== v6 ヒーロー：写真を全幅背景に ===== */
  .hero6 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
  .hero6 .bg { position: absolute; inset: 0; }
  .hero6 .bg .slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 12s linear infinite; border-radius: 0; }
  .hero6 .bg .slide:nth-child(1) { animation-name: heroFadeFirst; }
  .hero6 .bg .slide:nth-child(2) { animation-delay: 4s; }
  .hero6 .bg .slide:nth-child(3) { animation-delay: 8s; }
  .hero6 .veil {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(253,250,249,.96) 0%, rgba(253,250,249,.87) 30%, rgba(253,250,249,.45) 62%, rgba(253,250,249,.05) 100%);
  }
  .hero6 .inner { position: relative; z-index: 3; max-width: 1120px; margin: 0 auto; padding: clamp(64px, 11vw, 150px) 20px; }
  .hero6 .inner > div { max-width: 580px; }
  .hero6 .bg-tag {
    position: absolute; right: 20px; bottom: 40px; z-index: 3;
    background: rgba(255,255,255,.92); color: var(--pink-text);
    font-size: 11px; letter-spacing: .06em; border-radius: 999px; padding: 4px 14px;
  }
  .hero6 .dots6 { position: absolute; right: 24px; bottom: 16px; z-index: 3; display: flex; gap: 8px; }
  .hero6 .dots6 span { width: 8px; height: 8px; border-radius: 50%; background: #DFD2D5; animation: dotFade 12s linear infinite; }
  .hero6 .dots6 span:nth-child(1) { animation-name: dotFadeFirst; }
  .hero6 .dots6 span:nth-child(2) { animation-delay: 4s; }
  .hero6 .dots6 span:nth-child(3) { animation-delay: 8s; }
  @media (max-width: 700px) {
    .hero6 .veil { background: linear-gradient(180deg, rgba(253,250,249,.95) 0%, rgba(253,250,249,.82) 50%, rgba(253,250,249,.6) 100%); }
    .hero6 .bg-tag { right: auto; left: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero6 .bg .slide, .hero6 .dots6 span { animation: none; }
    .hero6 .bg .slide:first-child { opacity: 1; }
    .hero6 .dots6 span:first-child { background: var(--pink-btn); }
  }

  /* ===== v6 院内のご案内・写真と文章の行 ===== */
  .fac-rows { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 76px); }
  .fac-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
  .fac-row.rev { grid-template-columns: .9fr 1.1fr; }
  .fac-row.rev .pwrap { order: 2; }
  @media (max-width: 780px) {
    .fac-row, .fac-row.rev { grid-template-columns: 1fr; }
    .fac-row.rev .pwrap { order: 0; }
  }
  .fac-row .pwrap { position: relative; }
  .fac-row .photo { aspect-ratio: 16 / 11; }
  .fac-row .accent {
    position: absolute; right: -10px; bottom: -24px; z-index: 3;
    width: clamp(96px, 14vw, 136px); aspect-ratio: 1 / 1; border-radius: 50%;
    border: 5px solid #fff; box-shadow: 0 8px 22px rgba(96,72,80,.2);
  }
  .fac-row .accent .tag { left: 50%; transform: translateX(-50%); bottom: 10px; padding: 2px 10px; font-size: 9.5px; }
  .fac-row h3 { font-family: var(--serif); font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; letter-spacing: .1em; margin-bottom: 10px; }
  .fac-row h3 .en { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; color: var(--pink-btn); text-transform: uppercase; margin-bottom: 6px; }
  .fac-row > div:not(.pwrap) p { font-size: 14px; color: var(--ink-soft); max-width: 36em; }

  /* ===== v6 コンセプト帯（写真の上に文字） ===== */
  .band6 { position: relative; overflow: hidden; margin-top: 8px; }
  .band6 > .photo { position: absolute; inset: 0; border-radius: 0; }
  .band6 .veil-soft { position: absolute; inset: 0; z-index: 2; background: rgba(253,245,247,.6); }
  .band6 .in { position: relative; z-index: 3; max-width: 1120px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 20px; text-align: center; }
  .band6 blockquote { font-family: var(--serif); font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .12em; line-height: 2.1; color: var(--ink); }
  .band6 .note { margin-top: 14px; font-size: 12px; letter-spacing: .22em; color: var(--pink-text); }

  /* ===== v7 ページタイトル帯のさりげない写真 ===== */
  .page-title { position: relative; overflow: hidden; }
  .page-title .ptp { position: absolute; inset: 0; border-radius: 0; }
  .page-title .ptp-veil {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(253,250,249,.94) 0%, rgba(253,250,249,.8) 32%, rgba(253,250,249,.35) 58%, rgba(253,250,249,.08) 80%, rgba(253,250,249,.04) 100%), linear-gradient(180deg, rgba(253,250,249,0) 62%, rgba(253,250,249,.3) 100%);
  }
  .page-title .in { position: relative; z-index: 2; }
  .page-title:has(.ptp) .in { padding: clamp(54px, 8.5vw, 92px) 20px; }

  /* ===== v6 医師集合写真 ===== */
  .doc-group { max-width: 880px; margin: 0 auto 26px; }
  .doc-group .photo { aspect-ratio: 21 / 9; }
  @media (max-width: 640px) { .doc-group .photo { aspect-ratio: 4 / 3; } }
  /* ===== v9 スマホ密度調整（PCのような一覧性に） ===== */
  br.spbr { display: none; } /* スマホのみ改行 */
  @media (max-width: 640px) {
    br.spbr { display: inline; }
    /* 診療時間表を横スクロールなしで画面内に */
    table.hours { min-width: 0; font-size: 11px; }
    table.hours th, table.hours td { padding: 8px 1px; }
    table.hours .time { font-size: 10.5px; letter-spacing: 0; }
    table.hours .who { font-size: 10.5px; }
    table.hours tr[class*="dr"] .mark-o { font-size: 14px; }
    .hours-note { font-size: 12px; margin-top: 10px; }
    /* 縦方向をぎゅっと圧縮 */
    section.block { padding: 28px 14px; }
    .sec-head { margin-bottom: 16px; }
    .sec-head h2 { font-size: 20px; }
    .page-title .in { padding: 26px 16px; }
    .page-title:has(.ptp) .in { padding: clamp(40px, 10vw, 56px) 16px; }
    .hero6 .inner { padding: 40px 16px 36px; }
    .hero p.lead { font-size: 13.5px; margin-top: 12px; }
    .hero-chips { margin-top: 14px; gap: 6px; }
    .hero-cta { margin-top: 18px; }
    .band6 .in { padding: 44px 16px; }
    .fac-rows { gap: 26px; }
    /* カード類を2列に（PCの一覧性に近づける） */
    .quick { grid-template-columns: 1fr 1fr; gap: 9px; }
    .q-card { padding: 13px 12px; border-radius: 12px; gap: 4px; }
    .q-card .t { font-size: 14.5px; }
    .q-card p { font-size: 11.5px; }
    .q-card .go { font-size: 11.5px; }
    .care-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .care { padding: 13px 12px; gap: 5px; }
    /* お知らせ・その他の行間 */
    .news-list a, .news-list label { padding: 11px 4px; font-size: 13.5px; gap: 10px; }
    .news-thumb img { width: 52px; height: 40px; }
    .prod-sec + .prod-sec { margin-top: 30px; padding-top: 26px; }
  }
  @media (min-width: 821px) { .access-wrap.wide-map { grid-template-columns: 1.6fr 1fr; } }
  .prod-img { width: 100%; max-width: 340px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: block; padding: 14px; box-sizing: border-box; }
  /* v9b: FAQ komono band - mobile only, keep photo clear of text */
  @media (max-width: 640px) {
    .page-title .ptp.sc-komono { background-size: auto 100%; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 50%, #000 78%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 50%, #000 78%); }
  }
  /* v9c: mobile hero - photo on top, text below (no overlap) */
  @media (max-width: 640px) {
    .hero6 .bg { position: relative; height: 216px; }
    .hero6 .veil { height: 216px; bottom: auto; background: linear-gradient(180deg, rgba(253,250,249,0) 55%, rgba(253,250,249,.45) 82%, #FDFAF9 100%); }
    .hero6 .inner { padding: 14px 16px 30px; }
    .hero6 .dots6 { bottom: auto; top: 186px; right: 14px; }
  }
  .nw { white-space: nowrap; }
