/* =========================================================
   さくら歯科 TOP — 新規実装 v2（page-0001.jpg ピクセル準拠で作り直し）
   ========================================================= */

:root {
  --main: #de7884;
  --sub:  #f7c2c9;
  --bg:   #f6f6f6;
  --text: #646464;
  --line: #e2e2e2;
  --band: #a9c4cf;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- WEB問診票：年齢選択モーダル ---- */
.mondiv-modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 20px; }
.mondiv-modal.is-open { display: flex; }
.mondiv-modal__inner { position: relative; background: #fff; border-radius: 16px; padding: 34px 28px; max-width: 360px; width: 100%; text-align: center; }
.mondiv-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--text); cursor: pointer; }
.mondiv-modal__note { font-size: 14px; margin-bottom: 20px; }
.mondiv-modal__btn { display: block; background: var(--main); color: #fff; border-radius: 30px; padding: 14px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.mondiv-modal__btn.alt { background: #fff; color: var(--main); border: 1px solid var(--main); margin-bottom: 0; }

body {
  /* 欧文=gothic-a1 / 和文=秀英丸ゴ（A1ゴシック最寄り）。本物A1入手後は "A1ゴシック" を先頭へ */
  font-family: "gothic-a1", "dnp-shuei-mgothic-std", "A1ゴシック", "A1 Gothic",
    "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.9;
  font-size: 15px;
  /* antialiased は文字が細く見えるため既定(subpixel)に。全体的に線を太く */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { font-size: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.pad { padding: 84px 0; }
.bg-gray { background: var(--bg); }

/* ---- セクション見出し（中央・先頭1文字ピンク） ---- */
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .lead { display: block; font-size: 15px; color: var(--text); margin-bottom: 8px; letter-spacing: .08em; }
.sec-head .ja { display: block; margin: 0; font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: .1em; }
.sec-head .en { display: block; font-size: 13px; letter-spacing: .32em; color: var(--text); margin-top: 8px; text-transform: uppercase; }
.sec-head em { font-style: normal; color: var(--main); }           /* 先頭1文字/1字目 */
.sec-head--left { text-align: left; margin-bottom: 40px; }

/* =========================  スクロール追従ヘッダー  ========================= */
.siteheader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transform: translateY(-100%); transition: transform .3s ease;
}
.siteheader.is-visible { transform: none; }
.siteheader__inner { max-width: 1320px; margin: 0 auto; padding: 14px 26px; display: flex; align-items: center; gap: 24px; }
.siteheader__logo { width: 108px; flex: 0 0 auto; }
.siteheader__logo img { width: 100%; }
.siteheader__name { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.siteheader nav ul { display: flex; gap: 22px; list-style: none; font-size: 13px; margin-left: auto; }
.siteheader nav a { padding: 4px 0; transition: color .2s; }
.siteheader nav a:hover, .siteheader nav a.home { color: var(--main); }

/* =========================  トップ・ブランドストリップ  ========================= */
.topbar {
  display: flex; align-items: center; gap: 22px;
  max-width: 1320px; margin: 0 auto; padding: 12px 26px;
}
.topbar__logo { width: 128px; flex: 0 0 auto; }
.topbar__logo img { width: 100%; }
.topbar__pill {
  background: var(--sub); color: #fff; font-size: 14px; font-weight: 700;
  padding: 6px 18px; border-radius: 20px; letter-spacing: .06em;
}
.topbar__name { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: .12em; color: var(--text); }

/* =========================  ヒーロー（スライダー）  ========================= */
.hero { max-width: 1320px; margin: 0 auto; padding: 0 26px 30px; position: relative; }
.hero__slider { position: relative; aspect-ratio: 2301 / 1101; border-radius: 30px; overflow: hidden; background: #eef2f4; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; transform: scale(1.06); }

/* 診療時間ミニ表：写真の上に白カードで直書き */
.hero__hours {
  position: absolute; top: 34px; right: 104px; color: var(--text); font-size: 16px;
  background: rgba(255,255,255,.92);
  padding: 16px 22px; border-radius: 12px;
  backdrop-filter: blur(2px); box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.hero__hours table { border-collapse: collapse; }
.hero__hours th, .hero__hours td { padding: 5px 10px; text-align: center; font-weight: 400; }
.hero__hours caption, .hero__hours .lbl { font-weight: 700; letter-spacing: .12em; }
.hero__hours tbody th { text-align: left; white-space: nowrap; letter-spacing: .02em; }
.hero__hours thead th { letter-spacing: .1em; }
.hero__hours .on { color: var(--main); }
.hero__hours .off { color: #ccc; }
.hero__hoursnote { margin-top: 8px; font-size: 12px; text-align: right; color: var(--text); }

/* 左下：菱形バッジ（写真からはみ出す・クリック可） */
.hero__badge { position: absolute; left: 34px; bottom: -26px; width: 216px; z-index: 3; display: block; transition: transform .2s; }
.hero__badge:hover { transform: scale(1.04); }
.hero__badge img { width: 100%; }

/* 右端固定縦ボタン（PC） */
/* ヒーロー写真の右ラインにギリ被る位置へ（幅に応じて追従）。狭い幅では最小6px確保 */
.fixed-btns { position: fixed; top: 130px; right: max(6px, calc(50% - 645px)); z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fixed-btns a { display: block; width: 50px; transition: transform .2s; }
.fixed-btns a:hover { transform: translateX(-3px); }

/* トップへ戻る：初診WEB予約と同じ縦軸・右下。スクロールで表示 */
.backtotop { position: fixed; bottom: 22px; right: max(4px, calc(50% - 674px)); z-index: 60; width: 130px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.backtotop.show { opacity: 1; visibility: visible; transform: none; }
.backtotop img { width: 100%; display: block; }
.backtotop:hover { transform: translateY(-3px); }

/* グローバルナビ（写真の下・中央） */
.gnav { padding: 26px 0 14px; }
.gnav ul { display: flex; justify-content: center; gap: 34px; list-style: none; font-size: 14px; }
.gnav a { position: relative; padding: 6px 2px; transition: color .2s; }
.gnav a:hover { color: var(--main); }
.gnav a.home { color: var(--main); }
.gnav a.home::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--main); }

/* =========================  NEWS（グレー角丸バンド）  ========================= */
.news { padding: 20px 0 10px; }
.news__band {
  background: var(--bg); border-radius: 44px; padding: 34px 60px;
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 56px;
}
.news__title { font-size: 26px; letter-spacing: .3em; color: var(--text); flex: 0 0 auto; font-weight: 400; }
.news__list { list-style: none; font-size: 14px; flex: 1 1 auto; }
.news__list li { display: flex; gap: 28px; padding: 4px 0; }
.news__list time { color: var(--main); flex: 0 0 auto; letter-spacing: .05em; }
.news__more {
  flex: 0 0 100%; text-align: right; font-size: 13px; color: var(--main);
  text-decoration: underline; text-underline-offset: 3px;
}
.news__more:hover { text-decoration: none; }

/* =========================  お知らせ一覧ページ  ========================= */
.news-page__list { display: flex; flex-direction: column; gap: 0; }
.news-page__item { padding: 28px 0; border-bottom: 1px solid var(--border, #ddd); }
.news-page__item:first-child { padding-top: 0; }
.news-page__date { display: block; color: var(--main); font-size: 14px; letter-spacing: .05em; margin-bottom: 8px; }
.news-page__title { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.news-page__body { font-size: 14px; line-height: 1.8; color: var(--text); }
.news-page__body p { margin: 0 0 1em; }
.news-page__body p:last-child { margin-bottom: 0; }
.news-page__body .marker-orange { background: linear-gradient(transparent 65%, #ffd9a0 65%); }
.news-page__body .marker-pink { background: linear-gradient(transparent 65%, #f8c9d0 65%); }
.news-page__body .marker-green { background: linear-gradient(transparent 65%, #c9e8c9 65%); }

/* =========================  クリニック案内  ========================= */
.info__catch { text-align: center; margin: 8px 0 54px; font-size: 26px; font-weight: 700; line-height: 2.1; letter-spacing: .06em; }
.info__catch .q { color: var(--main); }
.info__catch .accent { color: var(--main); }
.info__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }

.hours-table { border-collapse: collapse; margin-bottom: 6px; }
.hours-table th, .hours-table td { padding: 7px 12px; text-align: center; font-size: 15px; font-weight: 500; }
.hours-table thead th { border-bottom: 1px solid var(--text); letter-spacing: .1em; font-weight: 600; }
.hours-table tbody tr:last-child th, .hours-table tbody tr:last-child td { border-bottom: 1px solid var(--text); }
.hours-table tbody th { text-align: left; white-space: nowrap; line-height: 1.3; padding: 10px 12px; }
.hours-table tbody th .sub { display: block; font-size: 10px; color: #999; }
.hours-table .on { color: var(--main); font-size: 16px; }
.hours-table .off { color: #cfcfcf; }
.info__recept { margin-left: 20px; font-size: 12px; }
.info__rest { margin: 14px 0 8px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.info__rest .pill { background: #8f8f8f; color: #fff; border-radius: 16px; padding: 2px 14px; font-size: 13px; }
.info__note { font-size: 13px; margin-bottom: 22px; }
.info__tel { display: block; text-decoration: none; font-size: 40px; font-weight: 700; letter-spacing: .06em; color: var(--text); line-height: 1.2; }
.info__telnote { font-size: 15px; margin-top: 8px; }
.info__cta { display: none; /* SP only */ }

.map-box { border: 1px solid var(--line); border-radius: 4px; height: 320px; overflow: hidden; margin-bottom: 18px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.info__addr { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.ico-svg { width: 24px; height: 24px; vertical-align: middle; display: inline-block; }
.info__addr .ico { color: var(--main); display: inline-flex; }
.info__park { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 26px; padding: 10px 26px; font-size: 14px; }
.info__park .ico { color: var(--text); }

.route-btn { display: inline-block; margin-top: 14px; background: var(--main); color: #fff; padding: 12px 28px; border-radius: 30px; font-size: 14px; letter-spacing: .03em; text-align: center; transition: opacity .2s; }
.route-btn:hover { opacity: .85; }
.mondiv-img-btn { display: block; margin-top: 14px; max-width: 340px; transition: opacity .2s; }
.mondiv-img-btn img { display: block; width: 100%; height: auto; }
.mondiv-img-btn:hover { opacity: .85; }

/* =========================  WEB予約バナー  ========================= */
.webyoyaku { padding: 46px 0; }
.webyoyaku__banner { display: block; border-radius: 18px; overflow: hidden; transition: opacity .2s; }
.webyoyaku__banner:hover { opacity: .9; }
.webyoyaku__banner img { width: 100%; height: auto; display: block; }

/* =========================  おすすめの治療  ========================= */
.recommend__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.recommend__card { display: block; border-radius: 12px; aspect-ratio: 16/9; overflow: hidden; transition: transform .2s; }
.recommend__card:hover { transform: translateY(-3px); }
.recommend__card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================  診療内容アイコン  ========================= */
.treat__desc { text-align: center; max-width: 780px; margin: 0 auto 50px; font-size: 14px; }
.treat__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 20px; max-width: 900px; margin: 0 auto; }
.treat__item { text-align: center; }
/* SVGに白丸＋影＋歯＋ラベルが全部入ってる。CSS側で丸/影は付けない（二重防止） */
.treat__circle { position: relative; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.treat__circle img { width: 140px; height: 140px; }
.treat__circle .icon-hover { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity .15s linear; }
.treat__circle .icon-base { transition: opacity .15s linear; }
.treat__item:hover .treat__circle { transform: translateY(-3px); }
.treat__item:hover .icon-base { opacity: 0; }
.treat__item:hover .icon-hover { opacity: 1; }

/* =========================  料金目安 3カラム  ========================= */
.guide { max-width: 960px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 0 44px 44px; }
.guide__band { background: var(--band); color: #fff; text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .1em; padding: 15px 20px; border-radius: 32px; position: relative; top: -24px; }
.guide__lead { text-align: center; font-size: 14px; margin: -6px 0 30px; line-height: 1.9; }
.guide__lead strong { color: var(--main); font-weight: 700; }
.guide__note { font-size: 12px; }
.guide__link { display: block; text-align: center; margin-top: 26px; text-decoration: underline; font-size: 14px; }
.guide__cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; align-items: stretch; }
.guide__col { display: flex; flex-direction: column; }
.guide__col h4 { text-align: center; color: var(--band); font-size: 16px; margin-bottom: 14px; letter-spacing: .08em; }
.guide__col .box { background: var(--bg); border-radius: 8px; padding: 18px; font-size: 13px; line-height: 1.9; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }

/* =========================  症例カルーセル  ========================= */
.cases__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.cases__head .ja { font-size: 26px; font-weight: 700; }
.cases__head .en { font-size: 13px; letter-spacing: .32em; color: var(--text); }
.cases__head em { font-style: normal; color: var(--main); }
.cases__bar { height: 4px; background: var(--sub); border-radius: 2px; margin-bottom: 30px; position: relative; }
.cases__bar::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 33%; background: var(--main); border-radius: 2px; }
.cases__scroller { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.cases__scroller::-webkit-scrollbar { height: 10px; }
.cases__scroller::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 5px; }
.cases__scroller::-webkit-scrollbar-track { background: var(--bg); border-radius: 5px; }
.case-card { flex: 0 0 300px; scroll-snap-align: start; background: var(--bg); border-radius: 8px; padding: 18px; }
.case-card .ba { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.case-card .ba-item { position: relative; background: #5a5a5a; border-radius: 6px; height: 108px; overflow: hidden; }
.case-card .ba-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.08) contrast(1.04); }
.case-card .ba-item .lbl { position: absolute; top: 6px; left: 8px; z-index: 2; color: #eaeaea; font-size: 11px; letter-spacing: .15em; background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 4px; }
.case-card__body { font-size: 13px; line-height: 1.85; }
.case-card__body .t { font-weight: 700; }
.case-card .more { display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 16px; background: #fff; border: 1px solid var(--text); border-radius: 24px; padding: 9px; font-size: 13px; line-height: 1; }

/* =========================  選ばれる理由  ========================= */
.reason { overflow: hidden; }
.reason__deco { position: absolute; right: -70px; top: 40px; width: 440px; opacity: 1; z-index: 0; pointer-events: none; }
.reason .wrap { position: relative; z-index: 1; }
.reason__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px 34px; max-width: 980px; margin: 0 auto; }
.reason__item { text-align: center; }
.reason__item .pt { font-size: 12px; letter-spacing: .3em; color: var(--text); }
.reason__item .no { font-size: 44px; font-weight: 700; color: var(--main); line-height: 1; margin-bottom: 14px; }
.reason__thumb { background: #5f5f5f; border-radius: 6px; aspect-ratio: 3/2; margin-bottom: 16px; overflow: hidden; }
.reason__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reason__item h4 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reason__item p { font-size: 13px; text-align: left; }

/* =========================  お支払い方法  ========================= */
.pay__pill { display: flex; align-items: center; justify-content: center; max-width: 700px; margin: 0 auto 26px; text-align: center; border: 1px solid var(--line); border-radius: 30px; padding: 14px; font-size: 22px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.pay__sub { text-align: center; font-size: 14px; margin-bottom: 30px; }
.pay__body { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.pay__logos img { width: 100%; }
.pay__text { font-size: 13px; line-height: 1.95; }

/* =========================  歯科医師紹介  ========================= */
.doctor__grid { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; max-width: 960px; margin: 0 auto; }
.doctor__text .role { font-size: 14px; }
.doctor__text .name { font-size: 32px; font-weight: 700; margin: 4px 0 18px; letter-spacing: .12em; }
.doctor__text .name small { font-size: 14px; font-weight: 400; margin-right: 14px; color: var(--text); }
.doctor__career { border-collapse: collapse; margin-bottom: 22px; }
.doctor__career th, .doctor__career td { text-align: left; padding: 4px 0; font-size: 13px; font-weight: 400; vertical-align: top; }
.doctor__career th { white-space: nowrap; padding-right: 18px; color: var(--main); }
.doctor__text p { font-size: 14px; margin-bottom: 26px; }
.doctor__photo { background: #cfd4d7; border-radius: 6px; aspect-ratio: 3/4; overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doctor__btns { display: flex; gap: 22px; align-items: stretch; }
.doctor__btns a { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border-radius: 4px; font-size: 13px; line-height: 1.5; }
.doctor__btns .yt { background: #5f5f5f; color: #fff; }
.doctor__btns .prof { background: #fff; border: 1px solid var(--text); }

/* =========================  グループ紹介  ========================= */
.group__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.group__card { text-align: center; font-size: 11px; }
.group__card img { width: 100%; border-radius: 4px; margin-bottom: 6px; }

/* =========================  フッター  ========================= */
.footer { background: var(--main); color: #fff; padding: 54px 0 30px; }
.footer .inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer .f-logo { width: 92px; background: #fff; border-radius: 6px; padding: 6px; }
.footer nav ul { list-style: none; font-size: 13px; columns: 2; column-gap: 40px; }
.footer nav li { padding: 3px 0; }
.footer .f-sns { display: flex; gap: 14px; }
.footer .f-sns img { width: 30px; filter: brightness(0) invert(1); }
.footer .copy { text-align: center; font-size: 11px; margin-top: 40px; opacity: .85; }

/* =========================  空き枠カレンダー  ========================= */
.calendar-lead { text-align: center; font-size: 14px; margin: -14px 0 30px; }
.dentnet-calendar-widget { max-width: 720px; margin: 0 auto; padding: 24px 18px; background: #fff; border: 2px solid var(--sub); border-radius: 14px; box-shadow: 0 4px 16px rgba(222,120,132,.08); }
.dcw-week-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.dcw-week-nav button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--main); padding: 4px 10px; }
.dcw-week-nav button:disabled { color: #ccc; cursor: not-allowed; }
.dcw-week-label { font-size: 15px; font-weight: 700; }
.dcw-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dcw-cell { display: flex; flex-direction: column; align-items: center; padding: 10px 2px; border-radius: 8px; border: 1px solid var(--line); background: #fafafa; transition: .2s; min-height: 88px; }
.dcw-cell.today { border: 2px solid var(--main); background: #fff5f6; }
.dcw-cell.clickable { cursor: pointer; }
.dcw-cell.clickable:hover { background: #fff0f2; box-shadow: 0 2px 8px rgba(222,120,132,.15); }
.dcw-cell.past { opacity: .4; }
.dcw-cell-date { font-size: 15px; font-weight: 700; }
.dcw-cell-day { font-size: 11px; color: #888; }
.dcw-cell.sat .dcw-cell-date, .dcw-cell.sat .dcw-cell-day { color: #2196F3; }
.dcw-cell.sun .dcw-cell-date, .dcw-cell.sun .dcw-cell-day { color: #E53935; }
.dcw-cell-status { margin-top: 8px; }
.dcw-icon { width: 34px; height: 34px; display: block; }
.dcw-legend { display: flex; justify-content: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.dcw-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dcw-legend-icon { width: 20px; height: 20px; }
.dcw-cta { text-align: center; margin-top: 14px; }
.dcw-cta a { color: var(--main); font-weight: 700; font-size: 14px; }
.dcw-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: #999; }
.dcw-loading-spinner { width: 20px; height: 20px; border: 3px solid #eee; border-top-color: var(--main); border-radius: 50%; animation: dcw-spin .8s linear infinite; }
@keyframes dcw-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .dcw-cell { min-height: 74px; padding: 6px 1px; }
  .dcw-cell-date { font-size: 16px; }
  .dcw-cell-day { font-size: 16px; }
  .dcw-icon { width: 28px; height: 28px; }
  .dcw-week-grid { gap: 3px; }
}

/* =========================  アクセス・クリニック概要  ========================= */
.access { position: relative; }
.access__q { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); font-size: 120px; color: #ededed; font-weight: 700; z-index: 0; pointer-events: none; }
.access .info__grid { position: relative; z-index: 1; }

/* =========================  はじめての方へページ  ========================= */

/* =========================  カード（院内設備・感染症対策 共通）  ========================= */
.feat-grid { display: grid; gap: 26px; max-width: 1000px; margin: 0 auto; }
.feat-grid.cols4 { grid-template-columns: repeat(4,1fr); }
.feat-grid.cols3 { grid-template-columns: repeat(3,1fr); max-width: 900px; }
.feat-card .thumb { background: #5f5f5f; border-radius: 8px; aspect-ratio: 4/3; margin-bottom: 14px; overflow: hidden; }
.feat-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.feat-card h4 { text-align: center; font-size: 15px; margin-bottom: 10px; }
.feat-card p { font-size: 13px; }

/* ---- 院内・設備紹介（Swiperによる無限ループスライダー） ---- */
.facilitySwiper { --swiper-theme-color: var(--main); max-width: 1120px; margin: 0 auto; }
.facilitySwiper .swiper-button-prev, .facilitySwiper .swiper-button-next {
  top: var(--facility-arrow-top, 50%); margin-top: 0; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.facilitySwiper .swiper-button-prev:after, .facilitySwiper .swiper-button-next:after { font-size: 16px; font-weight: 700; }
.facilitySwiper .swiper-button-prev { left: 4px; }
.facilitySwiper .swiper-button-next { right: 4px; }
/* キャプションの行数（1〜3行）でカードの高さが変わるため、ドットは絶対配置にせず
   通常の流し込みでカードの下に置く。固定pxで余白を当て推量すると行数次第で被る。 */
.facilitySwiper .swiper-pagination { position: static; margin-top: 20px; }
.facility-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.facility-card p { font-size: 13px; line-height: 1.85; }
.btn-pill { display: flex; align-items: center; justify-content: center; width: max-content; margin: 40px auto 0; border: 1px solid var(--text); border-radius: 30px; padding: 14px 48px; font-size: 14px; line-height: 1; }
.btn-pill .arw { margin-left: 20px; }

/* =========================  はじめて受診（STEP）  ========================= */
.firsttime { overflow: hidden; }
.firsttime__deco { position: absolute; right: -70px; top: 120px; width: 440px; z-index: 0; pointer-events: none; }
.firsttime .wrap { position: relative; z-index: 1; }
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 34px; max-width: 980px; margin: 0 auto; }
.step-item { text-align: center; }
.step-item .lbl { font-size: 12px; letter-spacing: .3em; color: var(--main); }
.step-item .no { font-size: 44px; font-weight: 700; color: var(--main); line-height: 1; margin-bottom: 12px; }
.step-item .thumb { background: #5f5f5f; border-radius: 6px; aspect-ratio: 16/9; margin-bottom: 12px; overflow: hidden; }
.step-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.step-item h4 { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.step-item p { font-size: 13px; text-align: left; }

/* =========================  FAQ  ========================= */
.faq { max-width: 1040px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.faq__q { display: flex; align-items: center; gap: 16px; padding: 18px 24px; cursor: pointer; font-size: 15px; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .mark { color: var(--main); font-weight: 700; font-size: 18px; }
.faq__q .chev { margin-left: auto; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #aaa; transition: transform .2s; }
.faq__item[open] .faq__q .chev { transform: rotate(90deg); }
.faq__a { display: flex; gap: 14px; padding: 0 24px 20px 24px; font-size: 14px; line-height: 1.9; }
.faq__a .mark { color: var(--main); font-weight: 700; flex: 0 0 auto; }

/* =========================  感染症対策  ========================= */
.infection__pill { max-width: 640px; margin: 0 auto 24px; text-align: center; border: 1px solid var(--line); border-radius: 30px; padding: 14px; font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.infection__sub { text-align: center; font-size: 13px; margin-bottom: 40px; }

/* =========================  豊富な実績  ========================= */
.record__lead { text-align: center; font-size: 14px; max-width: 820px; margin: 0 auto 44px; }
.record__stats { display: flex; justify-content: center; gap: 60px; }
.record__stat { position: relative; width: 200px; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.record__stat::before { content: ""; position: absolute; inset: 24px; background: #f8e3e5; transform: rotate(45deg); border-radius: 10px; z-index: 0; }
.record__stat .lbl { position: relative; z-index: 1; font-size: 14px; }
.record__stat .num { position: relative; z-index: 1; font-size: 34px; font-weight: 700; color: var(--main); }
.record__stat .unit { position: relative; z-index: 1; font-size: 12px; margin-top: 2px; }
.record__note { text-align: center; font-size: 12px; color: #999; margin-top: 16px; }

/* =========================  医院店舗一覧  ========================= */
.shops { overflow: hidden; }
.shops__map { position: absolute; right: -160px; top: 0; width: 1260px; opacity: .5; z-index: 0; pointer-events: none; }
.shops .wrap { position: relative; z-index: 1; }
.shops__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.shops__head .ja { font-size: 26px; font-weight: 700; }
.shops__head .ja em { font-style: normal; color: var(--main); }
.shops__head .en { font-size: 12px; letter-spacing: .3em; color: var(--text); }
.shops__bar { height: 4px; background: var(--sub); border-radius: 2px; margin-bottom: 40px; position: relative; }
.shops__bar::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 36%; background: var(--main); border-radius: 2px; }
.shops__cat { font-size: 24px; margin: 30px 0 20px; }
.shops__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.shop-card { text-align: center; font-size: 12px; }
.shop-card .thumb { background: #5f5f5f; border-radius: 8px; aspect-ratio: 3/2; margin-bottom: 8px; }

/* =========================  フッター（page-0002）  ========================= */
.footer { background: var(--main); color: #fff; padding: 0; margin-top: 0; }
.footer__main { max-width: 1000px; margin: 0 auto; padding: 70px 24px; }
.footer__ttl { font-size: 18px; margin-bottom: 20px; letter-spacing: .06em; }
.footer__links { display: grid; grid-template-columns: minmax(0,220px) minmax(0,220px) minmax(0,340px); gap: 6px 40px; font-size: 14px; }
.footer__links a { display: block; padding: 4px 0; }
.footer__links > div:nth-child(3) .footer__col-body { column-count: 2; column-gap: 24px; }
.footer__col-toggle { display: block; width: 100%; background: none; border: none; color: inherit; font: inherit; text-align: left; padding: 0; cursor: default; pointer-events: none; }
.footer__col-toggle .chevron { display: none; }
.footer__col-body { display: block; }
.footer__banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.footer__banner { display: block; border-radius: 4px; overflow: hidden; transition: opacity .2s; }
.footer__banner:hover { opacity: .9; }
.footer__banner img { width: 100%; height: auto; display: block; }
.footer__sns { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 16px; }
.footer__sns .box { background: #fff; color: var(--text); text-align: center; padding: 16px; font-size: 13px; border-radius: 2px; }
.footer__sns small { display: block; font-size: 11px; margin-top: 6px; }
.footer__bottom { background: #fff; color: var(--text); }
.footer__bottominner { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.footer__blogo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.footer__blogo img { width: 46px; }
.footer__bnav { margin-left: auto; display: flex; gap: 0; font-size: 14px; }
.footer__bnav a { padding: 0 20px; border-right: 1px solid var(--line); }
.footer__bnav a:last-child { border-right: none; }
.footer__copy { text-align: center; font-size: 12px; color: var(--text); padding: 16px; }

/* =========================  SP専用要素（PC非表示）  ========================= */
.sp-menu-btn { display: none; }
.sp-hero-bottom { display: none; }
.sp-bottombar { display: none; }
.topbar__sp-text { display: none; }

/* ---- モバイルメニューオーバーレイ ---- */
.sp-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--main); color: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
  overflow-y: auto;
}
.sp-menu.is-open { transform: none; }
.sp-menu__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 20px 0 20px;
}
.sp-menu__logo { display: flex; align-items: flex-start; gap: 8px; color: #fff; margin: 0; }
.sp-menu__logo img { width: 140px; }
.sp-menu__logo span { font-size: 16px; line-height: 1.4; font-weight: 700; }
.sp-menu__close { background: none; border: none; padding: 0; cursor: pointer; }
.sp-menu__close img { width: 56px; }
.sp-menu__nav { flex: 1; display: flex; align-items: center; }
.sp-menu__nav ul { list-style: none; width: 100%; padding: 0 40px; }
.sp-menu__nav li { border-bottom: 1px solid rgba(255,255,255,.2); }
.sp-menu__nav li:first-child { border-top: 1px solid rgba(255,255,255,.2); }
.sp-menu__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 18px; font-weight: 700;
  letter-spacing: .15em; color: #fff;
}
.sp-menu__nav .plus { font-size: 22px; font-weight: 400; }
.sp-menu__sns { display: flex; gap: 12px; padding: 30px 40px 40px; }
.sp-menu__sns-box {
  background: rgba(255,255,255,.16); padding: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex: 1;
}
.sp-menu__sns-box img { width: 30px; height: 30px; }

/* SP専用（空きあり吹き出し）：PCでは常に非表示、SP表示はmax-width:900px側で上書き */
.availability-bubble { display: none; }

/* =========================  レスポンシブ（SP版）  ========================= */
@media (max-width: 900px) {
  /* ---- グローバル ---- */
  .wrap { padding: 0 16px; }
  .pad { padding: 50px 0; }
  body { padding-bottom: 124px; font-size: 17px; }

  /* ---- セクション見出し ---- */
  .sec-head { margin-bottom: 28px; }
  .sec-head--left { text-align: center; }
  .sec-head .ja { font-size: 24px; }
  .sec-head .en { font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
  .sec-head .lead { font-size: 16px; }

  /* ---- トップバー ---- */
  .topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    padding: 10px 80px 10px 16px; gap: 12px;
  }
  .topbar__logo { width: 96px; }
  .topbar__pill { display: none; }
  .topbar__name { display: none; }
  .topbar__sp-text {
    display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0;
  }
  .topbar__sp-text span {
    font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0; line-height: 1.5; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
  }
  .sp-menu-btn {
    display: block; position: fixed; top: 14px; right: 16px; z-index: 150;
    background: none; border: none; padding: 0; cursor: pointer; line-height: 0;
  }
  .sp-menu-btn img { width: 52px; }

  /* ---- SP hero bottom (tags + clinic name below hero) ---- */
  .sp-hero-bottom { display: block; padding: 10px 16px 6px; }
  .sp-hero-bottom__feat { font-size: 16px; color: var(--text); line-height: 1.7; }
  .sp-hero-bottom__name { font-size: 26px; font-weight: 700; color: var(--text); margin-top: 8px; line-height: 1.4; }

  /* ---- スクロール追従ヘッダー ---- */
  .siteheader { display: none; }

  /* ---- ヒーロー ---- */
  .hero { padding: 0 0 20px; }
  .hero__slider { border-radius: 0; aspect-ratio: 1201 / 1101; background: transparent; }
  .hero__hours { display: none; }
  .hero__badge { width: 186px; left: auto; right: 24px; bottom: 28px; }

  /* ---- 固定ボタン ---- */
  .fixed-btns { display: none; }
  .backtotop { width: 100px; bottom: 195px; right: 10px; }

  /* ---- グローバルナビ ---- */
  .gnav { display: none; }

  /* ---- 空き枠カレンダー ---- */
  .calendar-lead { font-size: 16px; }
  .dentnet-calendar-widget { padding: 20px 14px; }
  .dcw-week-label { font-size: 16px; }
  .dcw-legend-item { font-size: 16px; }
  .dcw-cta a { font-size: 16px; }

  /* ---- NEWS ---- */
  .news__band {
    flex-direction: column; gap: 10px; padding: 20px 16px; border-radius: 16px;
  }
  .news__title { font-size: 19px; letter-spacing: .2em; }
  .news__list { font-size: 16px; }
  .news__list li { gap: 14px; flex-direction: column; gap: 2px; }

  /* ---- クリニック案内 ---- */
  .info__catch { font-size: 19px; margin: 4px 0 30px; line-height: 1.9; }
  .info__grid { grid-template-columns: 1fr; gap: 28px; }
  .hours-table { width: 100%; }
  .hours-table th, .hours-table td { padding: 5px 5px; font-size: 16px; }
  .hours-table thead th { font-size: 16px; }
  .hours-table tbody th { font-size: 16px; }
  .hours-table tbody th .sub { font-size: 16px; }
  .info__tel { font-size: 28px; text-align: center; }
  .info__telnote { display: none; }
  .mondiv-img-btn.info__telnote-btn { display: none; }
  .info__recept { font-size: 16px; }
  .info__cta {
    display: flex; flex-direction: column; gap: 14px; margin: 20px 0 0;
  }
  .info__cta-btn { display: block; }
  .info__cta-btn img { width: 100%; height: auto; }
  .info__rest { justify-content: center; flex-wrap: wrap; font-size: 16px; }
  .info__rest .pill { font-size: 16px; }
  .map-box { height: 260px; }
  .info__addr { font-size: 16px; gap: 8px; }
  .info__park { display: flex; width: max-content; margin: 0 auto; font-size: 16px; padding: 8px 16px; gap: 8px; }
  .route-btn { display: block; width: max-content; margin: 14px auto 0; }

  /* ---- WEB予約バナー ---- */
  .webyoyaku { padding: 30px 0; }
  .webyoyaku__banner { border-radius: 14px; }

  /* ---- おすすめの治療（中央配置スライダー・自動ループ） ---- */
  .recommend__grid {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 6px; margin: 0 -16px; padding-left: 10vw; padding-right: 10vw;
  }
  .recommend__grid::-webkit-scrollbar { height: 8px; }
  .recommend__grid::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 4px; }
  .recommend__grid::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
  .recommend__card { flex: 0 0 80vw; aspect-ratio: 16/9; scroll-snap-align: center; }

  /* ---- 診療内容 ---- */
  .treat__grid { grid-template-columns: repeat(3,1fr); gap: 18px 10px; }
  .treat__circle img { width: 118px; height: 118px; }
  .treat__desc { font-size: 16px; margin-bottom: 28px; }

  /* ---- 料金目安 ---- */
  .guide { padding: 0 16px 28px; }
  .guide__band { font-size: 16px; padding: 10px 12px; border-radius: 10px; }
  .guide__lead { font-size: 16px; }
  .guide__note { font-size: 16px; }
  .guide__link { font-size: 16px; }
  .guide__cols { grid-template-columns: 1fr; gap: 16px; }
  .guide__col h4 { margin-bottom: 6px; }

  /* ---- 症例 ---- */
  .case-card { flex: 0 0 260px; }
  .cases__head .ja { font-size: 21px; }
  .cases__head .en { font-size: 16px; }
  .case-card .ba-item { height: 130px; }
  .case-card .ba-item .lbl { font-size: 13px; }
  .case-card__body { font-size: 16px; }
  .case-card .more { font-size: 16px; }

  /* ---- 選ばれる理由 ---- */
  .reason__grid { grid-template-columns: 1fr; gap: 40px; }
  .reason__deco { width: 160px; right: -20px; top: 80px; }
  .reason__item { position: relative; }
  .reason__item .pt, .reason__item .no { text-align: left; position: relative; z-index: 2; }
  .reason__item .pt { font-size: 16px; }
  .reason__item .no { font-size: 38px; margin-bottom: -30px; }
  .reason__item p { font-size: 16px; }
  .reason__item .reason__thumb { position: relative; z-index: 1; }

  /* ---- お支払い ---- */
  .pay__pill { font-size: 17px; padding: 10px; }
  .pay__sub { font-size: 16px; }
  .pay__body { grid-template-columns: 1fr; gap: 20px; }
  .pay__logos { max-width: 280px; margin: 0 auto; }

  /* ---- 歯科医師紹介 ---- */
  .doctor__grid { grid-template-columns: 1fr; gap: 24px; }
  .doctor__photo { order: -1; max-width: 260px; margin: 0 auto; }
  .doctor__text .role { font-size: 16px; }
  .doctor__text .name { font-size: 25px; }
  .doctor__text .name small { font-size: 16px; }
  .doctor__career th, .doctor__career td { font-size: 16px; }
  .doctor__text p { font-size: 16px; }
  .doctor__btns { flex-direction: column; gap: 10px; }
  .doctor__btns a { font-size: 16px; }

  /* ---- アクセス ---- */
  .access__q { display: none; }

  /* ---- はじめての方へページ ---- */

  /* ---- 院内設備 ---- */
  .feat-grid.cols4 { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .feat-grid.cols3 { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .feat-card h4 { font-size: 16px; }
  .feat-card p { font-size: 16px; }
  .feat-grid.cols3.infection__grid { grid-template-columns: 1fr; gap: 28px; max-width: 340px; margin: 0 auto; }
  .infection__grid .thumb { border-radius: 50%; aspect-ratio: 1/1; max-width: 200px; margin-left: auto; margin-right: auto; }
  .btn-pill { font-size: 16px; }
  .facility-card p { font-size: 16px; }

  /* ---- はじめて受診 ---- */
  .step-grid { grid-template-columns: 1fr; gap: 30px; }
  .firsttime__deco { width: 160px; right: -20px; top: 60px; }
  .step-item { position: relative; }
  .step-item .lbl, .step-item .no { text-align: left; position: relative; z-index: 2; }
  .step-item .lbl { font-size: 16px; }
  .step-item .no { font-size: 38px; margin-bottom: -30px; }
  .step-item h4 { font-size: 16px; }
  .step-item p { font-size: 16px; }
  .step-item .thumb { position: relative; z-index: 1; }

  /* ---- FAQ ---- */
  .faq__q { padding: 14px 16px; font-size: 16px; }
  .faq__a { padding: 0 16px 16px; font-size: 16px; }

  /* ---- 感染症対策 ---- */
  .infection__pill { font-size: 16px; padding: 10px; }
  .infection__sub { font-size: 16px; margin-bottom: 28px; }

  /* ---- 豊富な実績 ---- */
  .record__lead { font-size: 16px; margin-bottom: 30px; }
  .record__stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .record__stat { width: 140px; height: 140px; }
  .record__stat .num { font-size: 27px; }
  .record__stat .lbl { font-size: 16px; }
  .record__stat .unit { font-size: 12px; }

  /* ---- 店舗一覧 ---- */
  .shops__grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .shops__map { width: 500px; right: -60px; }
  .shops__cat { font-size: 19px; margin: 22px 0 14px; }
  .shops__head .ja { font-size: 23px; }
  .shops__head .en { font-size: 16px; }
  .shop-card { font-size: 16px; }

  /* ---- フッター ---- */
  .footer__main { padding: 36px 16px; }
  .footer__ttl { font-size: 17px; }
  .footer__links { grid-template-columns: 1fr; gap: 2px; font-size: 16px; }
  .footer__col { border-bottom: 1px solid rgba(255,255,255,.25); }
  .footer__col-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; font-size: 16px; font-weight: 700; cursor: pointer; pointer-events: auto;
  }
  .footer__col-toggle .chevron { display: inline-block; transition: transform .2s; }
  .footer__col.is-open .footer__col-toggle .chevron { transform: rotate(180deg); }
  .footer__col-body { display: none; padding-bottom: 14px; column-count: 1 !important; }
  .footer__col.is-open .footer__col-body { display: block; }
  .footer__banners { display: none; }
  .footer__sns { display: none; }
  .footer__bottominner {
    flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px;
  }
  .footer__blogo { font-size: 17px; }
  .footer__blogo img { width: 28px; }
  .footer__bnav { display: none; }
  .footer__copy { font-size: 16px; padding: 10px; }

  /* ---- SP固定ボトムバー ---- */
  .sp-bottombar {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--main); padding: 10px 12px 8px; text-align: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  }
  .sp-bottombar__btns { display: flex; gap: 8px; margin-bottom: 4px; }
  .sp-bottombar__tel,
  .sp-bottombar__yoyaku {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: var(--main); border-radius: 10px; padding: 9px 8px;
    font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.2;
  }
  .sp-bottombar__yoyaku svg { flex-shrink: 0; stroke: var(--main); }
  .sp-bottombar__text {
    color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .1em; margin-top: 2px;
  }

  /* ---- SP空きあり吹き出し（ボトムバーの外に独立配置） ---- */
  .availability-bubble {
    position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
    z-index: 101; display: flex; align-items: center; justify-content: center;
    background-color: #ff891f; color: #fff; padding: 10px 20px; border-radius: 10px;
    max-width: calc(100% - 20px); width: max-content; box-shadow: 0 4px 6px rgba(0,0,0,.1);
    font-size: 16px; line-height: 1.5; gap: 15px;
  }
  .availability-bubble::after {
    content: ""; position: absolute; bottom: -20px; left: 70%; transform: translateX(-50%);
    border-width: 10px; border-style: solid; border-color: #ff891f transparent transparent transparent;
  }
  .availability-label { display: inline-block; font-weight: 700; white-space: nowrap; }
}

/* ============ 診療案内 ホバードロップダウン ============ */
.gnav__has-sub { position: relative; }
.gnav__sub {
  display: none !important; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); border-radius: 8px;
  padding: 16px 10px; z-index: 50; width: 880px; max-width: 94vw;
  grid-template-columns: repeat(6, 1fr); gap: 6px 8px;
}
.gnav__has-sub:hover .gnav__sub { display: grid !important; }
.gnav__sub li { list-style: none; }
.gnav__sub a { display: block; padding: 6px 6px; font-size: 13px; white-space: normal; line-height: 1.3; color: var(--text); border-radius: 4px; text-align: center; }
.gnav__sub a:hover { background: var(--sub); color: var(--main); }

.siteheader .gnav__sub { width: 760px; padding: 12px 10px; }
.siteheader .gnav__sub a { font-size: 12px; padding: 5px 4px; }

@media (max-width: 900px) {
  .gnav__sub { display: none !important; }
}

/* =========================================================
   RESPONSIVE LAYER — small / medium / large
   large  : >= 1101px (desktop base styles above)
   medium : 601px – 1100px (tablet)
   small  : <= 600px (phone)
   Fluid sizing + grids that reflow instead of overflowing.
   ========================================================= */

/* ---- 全幅共通の安全策 ---- */
html, body { overflow-x: hidden; }
img, iframe, video, svg { max-width: 100%; }
table { max-width: 100%; }
.treat__circle img { width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; }
.recommend__card, .case-card, .reason__item, .step-item, .feat-card, .shop-card { min-width: 0; }
.sec-head .ja, .info__catch { overflow-wrap: anywhere; }

/* =================== MEDIUM: タブレット横〜デスクトップ小 (901–1100) =================== */
@media (min-width: 901px) and (max-width: 1100px) {
  .wrap { padding: 0 28px; }
  .pad { padding: 70px 0; }

  .topbar, .hero { padding-left: 24px; padding-right: 24px; }
  .topbar__name { font-size: 24px; letter-spacing: .08em; }
  .hero__slider { border-radius: 24px; }
  .hero__hours { top: 18px; right: 18px; font-size: 13px; padding: 10px 14px; }
  .hero__hours th, .hero__hours td { padding: 3px 6px; }
  .hero__badge { width: 170px; left: 20px; }

  /* 右端固定ボタンはコンテンツに被るため小さく */
  .fixed-btns { right: 4px; top: 110px; gap: 8px; }
  .fixed-btns a { width: 42px; }
  .backtotop { width: 100px; right: 4px; }

  .siteheader__inner { padding: 10px 18px; gap: 14px; }
  .siteheader__logo { width: 88px; }
  .siteheader__name { font-size: 13px; }
  .siteheader nav ul { gap: 12px; font-size: 12px; }
  .gnav ul { gap: 20px; flex-wrap: wrap; row-gap: 4px; padding: 0 20px; }

  .news__band { padding: 28px 36px; gap: 8px 32px; border-radius: 36px; }
  .info__grid { gap: 36px; }
  .info__tel { font-size: 32px; }
  .recommend__grid { gap: 16px; }
  .treat__grid { gap: 24px 12px; }
  .reason__grid { gap: 32px 22px; }
  .feat-grid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .shops__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__bnav a { padding: 0 12px; font-size: 13px; }
  .footer__bottominner { gap: 16px; }
}

/* =================== MEDIUM: タブレット縦 (601–900) =================== */
/* 既存の ≤900 は「スマホ縮小版」。タブレット幅では間延びするので列を復活させる */
@media (min-width: 601px) and (max-width: 900px) {
  .wrap { padding: 0 32px; }
  .pad { padding: 64px 0; }
  body { font-size: 16px; padding-bottom: 130px; }
  p { font-size: 16px; }

  /* ヒーロー：横長の写真に戻してバッジは右下に収める */
  .hero__slider { aspect-ratio: 16 / 9; }
  .hero__badge { width: 150px; right: 28px; bottom: 18px; }
  .sp-hero-bottom { padding: 14px 32px 6px; }
  .topbar { padding: 14px 96px 14px 28px; }
  .topbar__logo { width: 120px; }

  /* 情報・案内 */
  .info__grid { grid-template-columns: 1fr; gap: 36px; max-width: 640px; margin: 0 auto; }
  .info__cta { flex-direction: row; }
  .info__cta-btn { flex: 1; }
  .map-box { height: 320px; }

  /* カード群：1列→2〜3列 */
  .recommend__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
    overflow: visible; margin: 0; padding: 0;
  }
  .recommend__card { flex: none; }
  .treat__grid { grid-template-columns: repeat(5, 1fr); gap: 20px 8px; }
  .treat__circle img { max-width: 120px; }
  .guide { padding: 0 32px 36px; }
  .guide__cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-card { flex-basis: 300px; }
  .case-card .ba { flex-direction: row; }
  .case-card .ba-item { flex: 1; height: 110px; }

  .reason__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .reason__item .no { margin-bottom: 12px; }
  .reason__item .reason__thumb { position: static; }
  .step-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step-item .no { margin-bottom: 10px; }
  .step-item p { font-size: 14px; }

  .pay__body { grid-template-columns: 240px 1fr; gap: 28px; }
  .pay__logos { max-width: none; margin: 0; }
  .doctor__grid { grid-template-columns: 1fr 240px; gap: 32px; }
  .doctor__photo { order: 0; max-width: none; margin: 0; }
  .doctor__btns { flex-direction: row; gap: 14px; }

  .feat-grid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
  .feat-grid.cols3.infection__grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; gap: 20px; }
  .infection__grid .thumb { max-width: 180px; }
  .shops__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .group__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .record__stat { width: 180px; height: 180px; }
  .record__stats { gap: 24px; }

  .footer__links { grid-template-columns: 1fr 1fr; gap: 2px 32px; }
  .footer__col-toggle { pointer-events: none; cursor: default; }
  .footer__col-toggle .chevron { display: none; }
  .footer__col-body { display: block; }
  .footer__links > div:nth-child(3) { grid-column: 1 / -1; }
  .footer__links > div:nth-child(3) .footer__col-body { column-count: 2 !important; }
}

/* =================== SMALL: スマホ (≤600) =================== */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }

  .sec-head .ja { font-size: clamp(20px, 6.2vw, 24px); }
  .sec-head .en { white-space: normal; letter-spacing: .12em; }
  .info__catch { font-size: clamp(16px, 5vw, 19px); }

  .topbar { padding-right: 76px; }
  .topbar__sp-text span { font-size: clamp(12px, 3.8vw, 16px); }
  .sp-hero-bottom__name { font-size: clamp(20px, 6.4vw, 26px); }
  .sp-hero-bottom__feat { font-size: 14px; }
  .hero__badge { width: clamp(120px, 38vw, 186px); right: 14px; bottom: 16px; }

  /* 診療内容：3列＋画像は列幅に追従 */
  .treat__grid { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
  .treat__circle img { max-width: 112px; }

  /* 症例カード：1枚が画面からはみ出さないように */
  .case-card { flex-basis: min(82vw, 280px); }
  .recommend__card { flex-basis: 84vw; }

  /* 時間表がはみ出さないように */
  .hours-table th, .hours-table td { padding: 5px 2px; font-size: 14px; }
  .hours-table thead th, .hours-table tbody th { font-size: 14px; }
  .hours-table tbody th .sub { font-size: 11px; }
  .info__recept { margin-left: 0; display: block; margin-top: 6px; font-size: 14px; }
  .info__addr { align-items: flex-start; }
  .info__park { max-width: 100%; }

  .guide { padding: 0 14px 24px; }
  .guide__band { font-size: 15px; }
  .pay__pill, .infection__pill { font-size: 15px; border-radius: 22px; }

  .feat-grid.cols4 { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .feat-card h4, .feat-card p { font-size: 14px; }
  .btn-pill { width: 100%; max-width: 320px; padding: 14px 24px; }

  .record__stat { width: 132px; height: 132px; }
  .record__stat .num { font-size: 24px; }
  .record__stat .lbl { font-size: 13px; }

  .shops__grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .shop-card { font-size: 13px; }
  .group__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .group__card { font-size: 12px; }

  .dcw-cell-day { font-size: 12px; }
  .availability-bubble { font-size: 14px; padding: 8px 14px; gap: 10px; }
  .sp-bottombar__tel, .sp-bottombar__yoyaku { font-size: 14px; padding: 9px 4px; }
  .doctor__photo { max-width: 220px; }
  .doctor__text .name { font-size: 22px; }
  .doctor__career th { padding-right: 12px; }
  .faq__q { gap: 10px; }
}

/* =================== 極小 (≤380) =================== */
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .treat__circle img { max-width: 96px; }
  .record__stat { width: 120px; height: 120px; }
  .hours-table th, .hours-table td { font-size: 13px; }
  .sp-bottombar__btns { gap: 6px; }
  .sp-bottombar__tel, .sp-bottombar__yoyaku { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   FLUID SECTION TITLES — clamp() so titles stay on one line
   and scale with the viewport instead of wrapping.
   ========================================================= */
.sec-head .ja, .cases__head .ja, .shops__head .ja {
  white-space: nowrap;
  font-size: clamp(17px, 2.4vw + 6px, 30px);
  letter-spacing: clamp(.02em, .6vw, .1em);
}
.sec-head .en, .cases__head .en, .shops__head .en {
  white-space: nowrap;
  font-size: clamp(9px, .9vw + 4px, 13px);
  letter-spacing: clamp(.08em, 1.6vw, .32em);
}
.sec-head .lead { white-space: nowrap; font-size: clamp(12px, 1vw + 8px, 15px); letter-spacing: clamp(.02em, .5vw, .08em); }
.cases__head, .shops__head { flex-wrap: nowrap; gap: clamp(8px, 2vw, 16px); min-width: 0; }
.sec-head, .cases__head, .shops__head { max-width: 100%; }
@media (max-width: 900px) {
  .sec-head .ja { font-size: clamp(17px, 5.4vw, 26px); }
  .sec-head .en { font-size: clamp(9px, 2.4vw, 12px); white-space: nowrap; letter-spacing: clamp(.06em, 1.6vw, .2em); }
  .sec-head .lead { font-size: clamp(12px, 3.6vw, 16px); }
  .cases__head .ja, .shops__head .ja { font-size: clamp(17px, 5vw, 24px); }
  .cases__head .en, .shops__head .en { font-size: clamp(9px, 2.4vw, 12px); }
}

/* =========================================================
   空き枠カレンダー — 7列がコンテナ幅に必ず収まる / 幅に追従して拡縮
   ========================================================= */
.dentnet-calendar-widget { container-type: inline-size; width: 100%; max-width: 720px; min-width: 0; padding: clamp(12px, 3cqw, 24px) clamp(8px, 2.5cqw, 18px); }
.dcw-week-nav { gap: clamp(6px, 3cqw, 16px); }
.dcw-week-label { font-size: clamp(13px, 3.4cqw, 16px); text-align: center; min-width: 0; }
.dcw-week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(2px, .8cqw, 6px); width: 100%; }
.dcw-cell { min-width: 0; min-height: 0; padding: clamp(5px, 1.6cqw, 10px) 1px; overflow: hidden; }
.dcw-cell-date { font-size: clamp(10px, 2.8cqw, 15px); line-height: 1.2; white-space: nowrap; }
.dcw-cell-day { font-size: clamp(9px, 2.2cqw, 12px); line-height: 1.3; }
.dcw-cell-status { margin-top: clamp(3px, 1.2cqw, 8px); }
.dcw-icon { width: clamp(18px, 5.2cqw, 34px); height: clamp(18px, 5.2cqw, 34px); }
.dcw-legend { gap: 6px clamp(8px, 2.5cqw, 18px); }
.dcw-legend-item { font-size: clamp(11px, 2.4cqw, 13px); }
.dcw-legend-icon { width: clamp(14px, 3cqw, 20px); height: clamp(14px, 3cqw, 20px); }
@media (max-width: 900px) {
  .dcw-cell { min-height: 0; padding: clamp(5px, 1.6cqw, 10px) 1px; }
  .dcw-cell-date { font-size: clamp(10px, 2.8cqw, 15px); }
  .dcw-cell-day { font-size: clamp(9px, 2.2cqw, 12px); }
  .dcw-icon { width: clamp(18px, 5.2cqw, 34px); height: clamp(18px, 5.2cqw, 34px); }
  .dcw-week-grid { gap: clamp(2px, .8cqw, 6px); }
  .dcw-week-label, .dcw-legend-item, .dcw-cta a { font-size: clamp(12px, 2.6cqw, 14px); }
}

/* =========== キッズイベントバナー ============= */
.kids_bana{
  width: 600px;
  margin-top: 30px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

/* PC版ではSP画像を非表示 */
.sp {
  display: none !important;
}

/* SP版ではPC画像を非表示 */
@media (max-width: 640px) {
  .pc { display: none !important; }
  .sp { display: block !important; }
}

/* =========================================================
   info__cta（初診WEB予約／WEB問診票）SVGボタンのモバイル崩れ対策
   width/height 属性のない SVG を <img> で出すと、iOS Safari 等では flex 内で
   高さが 0 / 150px になる。SVG 側は触らず、viewBox の比率を CSS で明示する。
   ========================================================= */
.info__cta { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; align-items: stretch; }
.info__cta-btn { display: block; width: 100%; flex: 0 0 auto; min-width: 0; }
.info__cta-btn img, .mondiv-img-btn img { display: block; width: 100%; height: auto; }
.info__cta-btn:nth-child(1) img { aspect-ratio: 552.1 / 102.1; }
.info__cta-btn:nth-child(2) img { aspect-ratio: 559 / 138; }
@media (min-width: 601px) and (max-width: 900px) {
  .info__cta { flex-direction: column; }
  .info__cta-btn { flex: 0 0 auto; }
}
