@charset "UTF-8";
/* =====================================
 もちづき歯科 本院 [028] 2026-11-12
 当社の仕様（大宮いしはた歯科）に合わせた作り変え。common.css・top.css・lower.css のあとに読む。
 色は本院サイトの色（緑 #4db97b、黄 #fad22f）から。
===================================== */
:root {
  --mdc-green: #4db97b;
  --mdc-green-dark: #2f8f5b;
  --mdc-green-pale: #eaf7ef;
  --mdc-yellow: #fad22f;
  --mdc-text: #333333;
  --mdc-c1: #2f8f5b;
  --mdc-c2: #2b7fb8;
  --mdc-c3: #c8577a;
  --mdc-c4: #7a5bb5;
  --mdc-c5: #b86e0b;
  --mdc-c6: #5a6b7c;
}

/* 2 文字の色：本文の灰色の段落も濃く */
.feature_con .txt,
.info_con .txt {
  color: var(--mdc-text);
}

/* ---------- 7 ヘッダーの右側（電話・ハンバーガー） ---------- */
/* 右上のボタンは画面の右端に置く（ロゴの 1000px の枠 .grid_12 を基準にしないよう、基準を外す） */
#header .grid_12 {
  position: static !important;
}
.mdc-hd-right {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 50;
  display: flex;
  gap: 8px;
}
.mdc-hd-tel,
.mdc-hd-burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.mdc-hd-tel {
  background: var(--mdc-yellow);
  color: #333;
}
.mdc-hd-tel svg {
  width: 30px;
  height: 30px;
  fill: #333;
}
.mdc-hd-tel__num {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1;
}
.mdc-hd-burger {
  background: var(--mdc-green);
  color: #fff;
}
.mdc-hd-burger__lines {
  position: relative;
  display: block;
  width: 30px;
  height: 22px;
}
.mdc-hd-burger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}
.mdc-hd-burger__lines span:nth-child(1) { top: 0; }
.mdc-hd-burger__lines span:nth-child(2) { top: 9px; }
.mdc-hd-burger__lines span:nth-child(3) { top: 18px; }
.mdc-hd-burger__txt {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1;
}
/* 右上の黄色い電話の札は、ヘッダーの電話に移したので PC では出さない */
@media (min-width: 768px) {
  #side {
    display: none;
  }
}
/* 9 Gナビのプルダウン */
@media (min-width: 768px) {
  .sf-menu > li {
    position: relative;
  }
  .sf-menu ul.sf_menu_01 {
    min-width: 220px;
  }
}
@media (max-width: 767px) {
  .mdc-hd-right {
    /* スマホは前の「menu」のボタンと同じ場所（右に浮かせて、下に「19:00まで診療」の札） */
    position: static;
    float: right;
    justify-content: flex-end;
    width: 30%;
    max-width: 300px;
    margin: 4% 10px 12px 0;
  }
  .mdc-hd-tel {
    display: none; /* スマホは画面の下の「お電話はこちら」を使う */
  }
  .mdc-hd-burger {
    width: 56px;
    height: 56px;
  }
  .mdc-hd-burger__lines {
    width: 26px;
    height: 19px;
  }
  .mdc-hd-burger__lines span:nth-child(2) { top: 8px; }
  .mdc-hd-burger__lines span:nth-child(3) { top: 16px; }
  .mdc-hd-burger__txt {
    font-size: 10px;
  }
  /* 古いスマホのメニュー（一覧が下に開く形）は使わない */
  #header nav.horizontal-nav {
    display: none;
  }
}

/* ---------- 8 ハンバーガーのメニュー ---------- */
.mdc-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s, visibility .25s;
}
.mdc-nav-flag:checked + .mdc-drawer {
  visibility: visible;
  opacity: 1;
}
body:has(.mdc-nav-flag:checked) {
  overflow: hidden;
}
.mdc-drawer__bg {
  position: absolute;
  inset: 0;
  background: rgba(24, 74, 47, .96);
}
.mdc-drawer__inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 120px;
  color: #fff;
  letter-spacing: .05em;
}
.mdc-drawer a {
  color: #fff;
  text-decoration: none;
}
.mdc-drawer__close {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.mdc-drawer__close span {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 40px;
  height: 3px;
  background: #fff;
}
.mdc-drawer__close span:nth-child(1) { transform: rotate(45deg); }
.mdc-drawer__close span:nth-child(2) { transform: rotate(-45deg); }
.mdc-drawer__title {
  margin: 8px 0 24px;
  font-size: 32px;
  letter-spacing: .1em;
  text-align: center;
}
.mdc-drawer__btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.mdc-drawer__btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}
.mdc-c1 a { background: var(--mdc-c1); }
.mdc-c2 a { background: var(--mdc-c2); }
.mdc-c3 a { background: var(--mdc-c3); }
.mdc-c4 a { background: var(--mdc-c4); }
.mdc-c5 a { background: var(--mdc-c5); }
.mdc-c6 a { background: var(--mdc-c6); }
.mdc-drawer__btn a:hover,
.mdc-drawer__btn a:focus {
  opacity: .85;
}
.mdc-drawer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.mdc-drawer__tabflag,
.mdc-drawer__tabs {
  display: none;
}
.mdc-drawer__box {
  margin-bottom: 24px;
}
.mdc-drawer__boxtitle {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  font-size: 17px;
  font-weight: bold;
}
.mdc-drawer__box ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.mdc-drawer__box li a {
  display: block;
  padding: 6px 0;
}
@media (min-width: 768px) {
  .mdc-drawer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.mdc-drawer__time {
  max-width: 560px;
  margin: 8px auto 0;
}
.mdc-drawer .mdc-hours table {
  background: transparent;
  color: #fff;
}
.mdc-drawer .mdc-hours thead th {
  background: rgba(255, 255, 255, .18);
}
.mdc-drawer .mdc-hours th,
.mdc-drawer .mdc-hours td {
  border-color: rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
}
.mdc-drawer__tel {
  margin: 16px 0 0;
  font-size: 22px;
  text-align: center;
}
@media (max-width: 767px) {
  .mdc-drawer__inner {
    padding: 72px 16px 120px;
  }
  .mdc-drawer__title {
    font-size: 26px;
    margin-bottom: 18px;
  }
  .mdc-drawer__btns {
    gap: 8px;
  }
  .mdc-drawer__btn a {
    min-height: 52px;
    font-size: 13px;
  }
  .mdc-drawer__main {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, .4);
  }
  .mdc-drawer__main li a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
  }
  /* スマホは「コンテンツ」「診療メニュー」を切り替え。押すとその場で各ページが並ぶ（一覧のページへは飛ばない） */
  .mdc-drawer__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }
  .mdc-drawer__tab {
    display: block;
    padding: 12px 4px;
    border: 1px solid #fff;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
  }
  .mdc-drawer__boxtitle {
    display: none;
  }
  .mdc-drawer__box {
    display: none;
  }
  #mdc_drawer_tab1:checked ~ .mdc-drawer__box--1,
  #mdc_drawer_tab2:checked ~ .mdc-drawer__box--2 {
    display: block;
  }
  #mdc_drawer_tab1:checked ~ .mdc-drawer__tabs .mdc-drawer__tab--1,
  #mdc_drawer_tab2:checked ~ .mdc-drawer__tabs .mdc-drawer__tab--2 {
    background: #fff;
    color: var(--mdc-green-dark);
    font-weight: bold;
  }
  .mdc-drawer__box ul {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 15px;
  }
  .mdc-drawer__box li a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
  }
}

/* ---------- 診療時間表（クリニック概要のページの表） ---------- */
.mdc-hours table {
  width: 100%;
  border-collapse: collapse;
  letter-spacing: .02em;
  font-size: 15px;
}
.mdc-hours th,
.mdc-hours td {
  padding: 10px 4px;
  border-bottom: 1px solid #cfe9da;
  text-align: center;
  vertical-align: middle;
}
.mdc-hours thead th {
  background: var(--mdc-green);
  color: #fff;
  font-weight: bold;
}
.mdc-hours tbody th {
  white-space: nowrap;
  font-weight: bold;
}
.mdc-hours p {
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
}

/* ---------- 10 トップ画像の下：診療時間、診療メニューのアイコン ---------- */
.mdc-top-menu {
  padding: 48px 20px;
}
.mdc-top-hours {
  background: var(--mdc-green-pale);
}
.mdc-top-hours__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 32px 24px;
  border-radius: 16px;
  background: #fff;
}
.mdc-top-menu__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.mdc-top-ttl {
  margin: 0 0 20px;
  color: var(--mdc-text);
  font-size: 26px;
  letter-spacing: .1em;
  text-align: center;
}
.mdc-top-menu__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mdc-top-menu__list a {
  display: block;
  transition: transform .2s, opacity .2s;
}
.mdc-top-menu__list a:hover,
.mdc-top-menu__list a:focus {
  opacity: .85;
  transform: translateY(-3px);
}
.mdc-top-menu__list img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .mdc-top-hours,
  .mdc-top-menu {
    padding: 32px 20px;
  }
  .mdc-top-hours__inner {
    padding: 18px 12px 14px;
    border-radius: 12px;
  }
  .mdc-hours table {
    font-size: 13px;
  }
  .mdc-hours th,
  .mdc-hours td {
    padding: 8px 2px;
  }
  .mdc-top-ttl {
    font-size: 22px;
  }
  .mdc-top-menu__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* ---------- 4 文章の幅（Feature） ---------- */
@media (max-width: 767px) {
  .feature_con .grid_12 {
    margin-right: 20px;
    margin-left: 20px;
    width: auto;
  }
}

/* ---------- 6 新着情報の枠を無くし、文字の幅を広げる ---------- */
.news_con .contentArea,
.news_con .top_blog_list,
.news_con .titleBg {
  border: none;
  box-shadow: none;
}
@media (max-width: 767px) {
  .news_con {
    padding-right: 20px;
    padding-left: 20px;
  }
  .news_con .contentArea {
    padding-right: 0;
    padding-left: 0;
  }
}

/* ---------- 13 スマーティーのバナー ---------- */
.mdc-smartee {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  box-sizing: content-box;
}
.mdc-smartee a {
  display: block;
}
.mdc-smartee img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .mdc-smartee {
    padding: 8px 20px 32px;
  }
}

/* ---------- 11 医院紹介のスライド（右から左に流れる） ---------- */
.info_con .mdc-slider {
  overflow: hidden;
}
.mdc-slider__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: mdc-slide 36s linear infinite;
}
.mdc-slider__track li {
  flex: 0 0 auto;
  width: 220px;
  margin: 0 8px 0 0;
}
.mdc-slider__track img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
@keyframes mdc-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mdc-slider__track {
    animation-duration: 120s;
  }
}
@media (max-width: 767px) {
  .mdc-slider__track li {
    width: 160px;
  }
}

/* ---------- 14 医院情報の3つのボタンを3色に ---------- */
.info_con .mdc-btn--1 a { background: var(--mdc-c1); }
.info_con .mdc-btn--2 a { background: var(--mdc-c5); }
.info_con .mdc-btn--3 a { background: var(--mdc-c2); }

/* ---------- 15 地図を画面の幅いっぱいに ---------- */
.mdc-map {
  width: 100%;
  margin: 0;
  line-height: 0;
}
.mdc-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
@media (max-width: 767px) {
  .mdc-map iframe {
    height: 320px;
  }
}

/* 「診療メニュー」のボタンで上の診療メニューへ滑らかに戻る */
html {
  scroll-behavior: smooth;
}
#mdc-top-menu {
  scroll-margin-top: 16px;
}

/* ---------- お知らせと診療時間を左右に並べる（相模原駅ビル歯科の形） ---------- */
.mdc-top-notice {
  padding: 48px 20px;
  background: var(--mdc-green-pale);
}
.mdc-top-notice__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.mdc-top-notice__info,
.mdc-top-notice__time {
  padding: 24px 28px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
}
.mdc-top-notice .top__bulletin__box {
  margin: 0;
  padding: 0;
}
.mdc-top-notice__news .top_infomation_btn {
  text-align: right;
  margin-bottom: 4px;
}
.mdc-top-notice__news .top_blog_list {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #cfe9da;
}
.mdc-top-notice__news .top_blog_list dt,
.mdc-top-notice__news .top_blog_list dd {
  float: none;
  width: auto;
  margin: 0;
}
.mdc-top-notice__news .post_date {
  color: var(--mdc-green-dark);
  font-size: 14px;
}
@media (max-width: 899px) {
  .mdc-top-notice__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .mdc-top-notice {
    padding: 32px 20px;
  }
  .mdc-top-notice__info,
  .mdc-top-notice__time {
    padding: 18px 12px 14px;
    border-radius: 12px;
  }
}

/* ---------- 3 「こだわり」のアイコンはスマホで2列 ---------- */
@media (max-width: 767px) {
  .policy_con ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }
  .policy_con ul::before,
  .policy_con ul::after {
    display: none;
  }
  .policy_con li,
  .policy_con li:last-child {
    width: auto;
    max-width: none;
    margin: 0;
  }
  .policy_con p.txt {
    font-size: 14px;
    line-height: 1.5;
  }
  .policy_con li .img_box img {
    width: 100%;
    height: auto;
  }
}

/* ---------- 13 スマーティーの見出しと白い背景 ---------- */
.mdc-smartee {
  background: #fff;
}
/* 見出しは「こだわり」「治療の特徴」と同じ形（h2 の .b_txt と .h2_txt。石井さんの指示 2026-11-12） */
.mdc-smartee h2 {
  margin: 0 0 30px;
}

/* ---------- 14 医院情報の3つのボタンを中央寄せ ---------- */
.info_con .btn_group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.info_con .btn_group .green_btn {
  margin: 0;
}

/* ---------- 7 ヘッダーの電話：四角いボタンではなく「ご予約・お問い合わせ ＞ 電話番号」の横長の形（小林社長の指示 2026-11-12） ---------- */
.mdc-hd-right {
  align-items: center;
}
.mdc-hd-tel {
  flex-direction: row;
  letter-spacing: 0;
  gap: 0;
  width: auto;
  height: 56px;
  padding: 0 28px;
  border: 2px solid var(--mdc-green-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--mdc-green-dark);
  white-space: nowrap;
}
.mdc-hd-tel__label {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: .05em;
}
.mdc-hd-tel__arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 18px 0 14px;
  border-top: 2px solid var(--mdc-green-dark);
  border-right: 2px solid var(--mdc-green-dark);
  transform: rotate(45deg);
}
.mdc-hd-tel svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  fill: var(--mdc-green-dark);
}
.mdc-hd-tel__num {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
}
.mdc-hd-tel:hover,
.mdc-hd-tel:focus {
  background: var(--mdc-green-pale);
}
/* 画面が狭いときはロゴと重ならないよう縮める（1600px 以上で全部、1024〜1599px は番号だけ、768〜1023px は電話のしるしだけ） */
@media (min-width: 768px) and (max-width: 1599px) {
  .mdc-hd-tel {
    height: 48px;
    padding: 0 18px;
  }
  .mdc-hd-tel__label,
  .mdc-hd-tel__arrow {
    display: none;
  }
  .mdc-hd-tel__num {
    font-size: 22px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mdc-hd-tel {
    width: 48px;
    padding: 0;
  }
  .mdc-hd-tel svg {
    margin: 0;
  }
  .mdc-hd-tel__num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---------- 色をもちづき歯科の色あいに（石井さんの指示 2026-11-12：ハンバーガーの背景が暗い、ボタンの色を合わせる） ---------- */
:root {
  --mdc-c1: #4db97b; /* 緑（サイトのボタンの色） */
  --mdc-c2: #4fa9dd; /* 水色（ロゴの「Clinic」・時計のしるし） */
  --mdc-c3: #ee8aa0; /* 桃色 */
  --mdc-c4: #f5c400; /* 黄（電話の札・TOP のボタン） */
  --mdc-c5: #f39800; /* だいだい（画面の下の「お電話はこちら」） */
  --mdc-c6: #3fb2a3; /* 青緑（車のしるし） */
}
.mdc-drawer__bg {
  background: rgba(240, 250, 244, .98);
}
.mdc-drawer__inner,
.mdc-drawer a {
  color: var(--mdc-text);
}
.mdc-drawer__title {
  color: var(--mdc-green);
  font-weight: bold;
}
.mdc-drawer__close span {
  background: var(--mdc-green);
}
.mdc-drawer__btn a {
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
.mdc-c4 a,
.mdc-c5 a {
  color: #333;
}
.mdc-drawer__main a:hover,
.mdc-drawer__box a:hover {
  color: var(--mdc-green-dark);
}
.mdc-drawer__boxtitle {
  border-bottom-color: var(--mdc-green);
  color: var(--mdc-green-dark);
}
.mdc-drawer .mdc-hours table {
  background: #fff;
  color: var(--mdc-text);
}
.mdc-drawer .mdc-hours th,
.mdc-drawer .mdc-hours td {
  border-color: #cfe9da;
  color: var(--mdc-text);
}
.mdc-drawer .mdc-hours thead th {
  background: var(--mdc-green);
  color: #fff;
}
.mdc-drawer__tel a {
  color: var(--mdc-green-dark);
  font-weight: bold;
}
@media (max-width: 767px) {
  .mdc-drawer__main {
    border-top-color: #cfe9da;
  }
  .mdc-drawer__main li a,
  .mdc-drawer__box li a {
    border-bottom-color: #cfe9da;
  }
  .mdc-drawer__tab {
    border-color: var(--mdc-green);
    background: #fff;
    color: var(--mdc-green-dark);
  }
  #mdc_drawer_tab1:checked ~ .mdc-drawer__tabs .mdc-drawer__tab--1,
  #mdc_drawer_tab2:checked ~ .mdc-drawer__tabs .mdc-drawer__tab--2 {
    background: var(--mdc-green);
    color: #fff;
  }
}
/* 医院紹介の3つのボタン：緑・水色・だいだい */
.info_con .mdc-btn--1 a { background: var(--mdc-c1); }
.info_con .mdc-btn--2 a { background: var(--mdc-c2); }
.info_con .mdc-btn--3 a { background: var(--mdc-c5); }

/* ---------- 10 診療メニューのアイコン：絵柄のそろった web_assets/icon の6つを、もちづき歯科の緑に塗り替え、名前は HTML の文字で（2026-11-12 の指示） ---------- */
.mdc-top-menu__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 18px 8px 16px;
  border: 2px solid #d6efe0;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
  color: var(--mdc-text);
  text-decoration: none;
}
.mdc-top-menu__list a:hover,
.mdc-top-menu__list a:focus {
  border-color: var(--mdc-green);
}
.mdc-top-menu__list img {
  width: 72%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.mdc-top-menu__name {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .05em;
  line-height: 1.4;
  text-align: center;
}
@media (max-width: 767px) {
  .mdc-top-menu__list a {
    padding: 12px 4px 10px;
  }
  .mdc-top-menu__name {
    font-size: 12px;
    letter-spacing: 0;
  }
}

/* ---------- 2026-11-12 石井さんの指示 ---------- */
/* お知らせと診療時間の欄の薄い緑の背景を、トップ画像の下の「Mochizuki Dental Clinic」の文字の下に入れる（文字の帯は画像の下 約3%。枠の位置は変えない） */
@media (min-width: 768px) {
  .mdc-top-notice {
    margin-top: -3.1vw;
    padding-top: calc(48px + 3.1vw);
  }
  .mainimage .img_box .pc img {
    position: relative;
    z-index: 1;
    mix-blend-mode: multiply; /* 画像の下の白い帯を透かして、背景の緑を見せる */
  }
}
/* 診療時間表の見出しの行：テーマの表の色（薄い緑）が上に来て白い文字が読みにくいので、緑を濃く */
.mdc-hours table.gnv_tmp_hours thead th,
.mdc-drawer .mdc-hours table.gnv_tmp_hours thead th {
  background: var(--mdc-green-dark);
  color: #fff;
}
/* スマーティーの欄の上下の空きを広く */
.mdc-smartee {
  padding-top: 80px;
  padding-bottom: 96px;
}
@media (max-width: 767px) {
  .mdc-smartee {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* ---------- 9 ヘッダーの「診療メニュー」：大塚CARNA歯科 矯正歯科のテストサイトと同じ、カードが並ぶサブメニュー（2026-11-12 の指示。色はもちづき歯科） ---------- */
.mdc-submenu {
  display: none;
}
@media (min-width: 768px) {
  .sf-menu > li.mdc-submenu-wrap {
    position: static; /* サブメニューをヘッダーの幅いっぱいに出す */
  }
  .mdc-submenu {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 900;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    text-align: left;
    letter-spacing: 0;
  }
  .mdc-submenu-wrap.is-hovered .mdc-submenu {
    opacity: 1;
    visibility: visible;
  }
  .mdc-submenu__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 210px);
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sf-menu .mdc-submenu__list li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .sf-menu .mdc-submenu__list a.mdc-submenu__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 40px 6px 0;
    border: 0;
    border-radius: 30px;
    background: #f3faf6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    box-sizing: border-box;
    color: var(--mdc-text);
    text-decoration: none;
  }
  .sf-menu .mdc-submenu__list a.mdc-submenu__card:hover,
  .sf-menu .mdc-submenu__list a.mdc-submenu__card:focus {
    opacity: .8;
    box-shadow: none;
  }
  .mdc-submenu__icon img {
    display: block;
    width: 66px;
    height: 66px;
  }
  .mdc-submenu__name {
    display: block;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .04em;
    line-height: 1.4;
    text-align: center;
  }
  .mdc-submenu__sub {
    display: block;
    margin-top: 8px;
    color: var(--mdc-green-dark);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0;
  }
  .mdc-submenu__close {
    aspect-ratio: 1 / 1;
  }
  .mdc-submenu__close-btn {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 46% 0 0;
    border: 0;
    border-radius: 50%;
    background: #f3faf6;
    color: var(--mdc-green-dark);
    font-size: 26px;
    font-weight: bold;
    letter-spacing: .06em;
    cursor: pointer;
  }
  .mdc-submenu__close-btn::before,
  .mdc-submenu__close-btn::after {
    content: "";
    position: absolute;
    top: 32%;
    left: 50%;
    width: 64px;
    height: 10px;
    margin-left: -32px;
    border-radius: 2px;
    background: var(--mdc-green-dark);
    transform: rotate(45deg);
  }
  .mdc-submenu__close-btn::after {
    transform: rotate(-45deg);
  }
  .mdc-submenu__close-btn:hover,
  .mdc-submenu__close-btn:focus {
    background: #fff;
  }
}

/* ---------- 追従の「TOP」のボタンを右下に（2026-11-12 の指示。テーマが right:50% を直に書いているため !important） ---------- */
#toTop {
  right: 20px !important;
  left: auto !important;
  margin-right: 0 !important;
}

/* ---------- 11 医院の写真：画面の幅いっぱいで右から左に流す帯を、フッターのバナーの上に（相模原駅ビル歯科と同じ形。2026-11-12 の指示） ---------- */
/* 医院紹介の欄は写真を外したので、文章を幅いっぱいに */
.info_con .txt_box {
  width: 100%;
  float: none;
}
.mdc-loop {
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--mdc-green-pale);
  line-height: 0;
}
.mdc-loop__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: mdc-slide 60s linear infinite;
}
.mdc-loop__track li {
  flex: 0 0 auto;
  margin: 0;
}
.mdc-loop__track img {
  display: block;
  width: 420px;
  height: 260px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .mdc-loop__track img {
    width: 260px;
    height: 160px;
  }
  .mdc-loop__track {
    animation-duration: 40s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mdc-loop__track {
    animation-duration: 180s;
  }
}

/* サブメニューの直し（2026-11-12 石井さんの確かめ）
   ・カードの帯だけ緑になっていた：テーマの「.sf-menu ul」の色・位置がカードの並びにも効いていたので外し、背景を周りの半透明と同じにする
   ・CLOSE のあと、消えかけ（0.3秒）の間もカードがマウスを拾って開き直っていた：閉じている間はマウスを拾わない */
@media (min-width: 768px) {
  .sf-menu .mdc-submenu ul.mdc-submenu__list {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    min-width: 0;
    padding: 0;
    background: none;
  }
  .mdc-submenu {
    pointer-events: none;
  }
  .mdc-submenu-wrap.is-hovered .mdc-submenu {
    pointer-events: auto;
  }
}

/* ---------- 8 ハンバーガーのメニュー：PC で上に寄って下が空く・×が端に寄るのを直し、バランスを整える（2026-11-12 石井さんの指示） ---------- */
@media (min-width: 768px) {
  .mdc-drawer__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    max-width: 1080px;
    padding: 72px 40px 56px;
  }
  .mdc-drawer__title {
    margin: 0 0 28px;
    font-size: 36px;
  }
  .mdc-drawer__btns {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }
  .mdc-drawer__btn a {
    min-height: 68px;
    font-size: 14px;
  }
  .mdc-drawer__main {
    gap: 8px 40px;
    margin-bottom: 28px;
    font-size: 16px;
  }
  .mdc-drawer__nav {
    gap: 24px;
    margin-bottom: 24px;
  }
  .mdc-drawer__box,
  .mdc-drawer__time {
    margin: 0;
    padding: 22px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  }
  .mdc-drawer__time {
    max-width: none;
  }
  .mdc-drawer__tel {
    margin-top: 20px;
    font-size: 26px;
  }
  .mdc-drawer__close {
    top: 48px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }
  .mdc-drawer__close span {
    left: 14px;
    width: 28px;
    height: 3px;
    margin-top: -1px;
  }
}

/* 医院の写真の帯：写真の間と上下に、もちづき歯科の緑を入れる（相模原駅ビル歯科と同じ形。2026-11-12 石井さんの指示） */
.mdc-loop {
  padding: 30px 0;
  background: var(--mdc-green);
}
.mdc-loop__track li {
  margin-right: 30px;
}
@media (max-width: 767px) {
  .mdc-loop {
    padding: 16px 0;
  }
  .mdc-loop__track li {
    margin-right: 16px;
  }
}

/* ---------- [030] 医院紹介（選ばれる理由・院内・設備・クリニック概要）・診療時間アクセス・案内のボタン ---------- */
.mdc-about__sec {
  padding-top: 56px;
  scroll-margin-top: 16px;
}
.mdc-about__sec:first-child {
  padding-top: 24px;
}
.mdc-about__ttl {
  margin: 0 0 24px;
  color: var(--mdc-text);
  text-align: center;
  line-height: 1.2;
}
.mdc-about__access {
  max-width: 320px;
  margin: 24px auto 0;
}
.mdc-access__train p {
  font-size: 16px;
}
.mdc-guide {
  max-width: 1000px;
  margin: 32px auto;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--mdc-green-pale);
  box-sizing: border-box;
  text-align: center;
}
.mdc-guide__lead {
  margin: 0 0 14px;
  font-size: 16px;
}
.mdc-guide__btn {
  margin: 0;
}
.mdc-guide__btn a {
  display: inline-block;
  min-width: 280px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--mdc-green-dark);
  color: #fff;
  font-weight: bold;
  letter-spacing: .05em;
  text-decoration: none;
}
.mdc-guide__btn a:hover,
.mdc-guide__btn a:focus {
  opacity: .85;
}
@media (max-width: 767px) {
  .mdc-about__sec {
    padding-top: 40px;
  }
  .mdc-guide {
    margin: 24px 16px;
  }
  .mdc-guide__btn a {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* [030] プルダウンから #reason・#tour・#overview に飛んだとき、上に付いてくるヘッダーに見出しが隠れないように */
.mdc-about__sec {
  scroll-margin-top: 200px;
}
@media (max-width: 767px) {
  .mdc-about__sec {
    scroll-margin-top: 110px;
  }
}

/* 2026-11-12 小林社長の指示
   ・ヘッダーの診療メニューのカードを中央寄せに（格子のあまりの列で左に寄っていたので、折り返しの横並びで真ん中にそろえる）
   ・医院紹介の「診療時間・アクセス」のボタン：上の「院長・スタッフ紹介はこちら」と幅・位置をそろえ、下の見出しの帯とくっつかないよう空ける */
@media (min-width: 768px) {
  .sf-menu .mdc-submenu ul.mdc-submenu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .sf-menu .mdc-submenu ul.mdc-submenu__list > li {
    flex: 0 0 210px;
  }
}
p.green_btn.mdc-about__access {
  width: 324px;
  max-width: 100%;
  margin: 24px auto 64px;
}
@media (max-width: 767px) {
  p.green_btn.mdc-about__access {
    margin-bottom: 48px;
  }
}

/* ---------- [030] ブログの欄：6つのカテゴリーを PC 3列×2段、真ん中に寄せて両側を空ける。「ブログの一覧を見る」は下の真ん中（2026-11-12 の指示） ---------- */
.news_con.blog_list.mdc-blog6 {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 40px;
  padding-left: 40px;
  box-sizing: border-box;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .news_con.blog_list.mdc-blog6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .news_con.blog_list.mdc-blog6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
  }
}
.blog_list .contentArea.care h2:before {
  mask: url(../img/news_icon.png) no-repeat center center;
  background: #4db97b;
}
.blog_list .contentArea.implant h2:before {
  mask: url(../img/news_icon.png) no-repeat center center;
  background: #9b6fd0;
}
.mdc-blog6__empty {
  margin: 14px 0 0;
  color: #777;
  font-size: 15px;
}
p.green_btn.mdc-blog6__more {
  width: 324px;
  max-width: calc(100% - 40px);
  margin: 8px auto 64px;
}
@media (max-width: 767px) {
  .news_con.blog_list.mdc-blog6 {
    padding-right: 20px;
    padding-left: 20px;
  }
  p.green_btn.mdc-blog6__more {
    margin-bottom: 48px;
  }
}

/* ---------- 院長・スタッフ紹介「瑛清会もちづき歯科医院が大切にしている言葉」（THE MOUTH）の飾り（2026-11-12 の指示。本文の文は変えない） ---------- */
.mdc-mouth {
  max-width: 860px;
  margin: 8px auto 0;
  padding: 40px 48px 36px;
  border-radius: 20px;
  background: var(--mdc-green-pale);
  box-sizing: border-box;
  line-height: 2;
}
.mdc-mouth p {
  margin: 0 0 1.4em;
}
.mdc-mouth__lead {
  text-align: center;
}
.mdc-mouth__quote {
  position: relative;
  margin: 8px 0 32px;
  padding: 36px 32px 28px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  text-align: center;
}
.mdc-mouth__quote::before,
.mdc-mouth__quote::after {
  position: absolute;
  color: var(--mdc-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  opacity: .5;
}
.mdc-mouth__quote::before {
  content: "\201C";
  top: 6px;
  left: 18px;
}
.mdc-mouth__quote::after {
  content: "\201D";
  right: 18px;
  bottom: -18px;
}
.mdc-mouth p.mdc-mouth__words {
  margin: 0 0 14px;
  color: var(--mdc-green-dark);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: .08em;
  line-height: 1.7;
}
.mdc-mouth p.mdc-mouth__cite {
  margin: 0;
  color: #666;
  font-size: 13px;
  letter-spacing: .04em;
}
.mdc-mouth p.mdc-mouth__sign {
  margin: 0;
  font-weight: bold;
  text-align: right;
}
@media (max-width: 767px) {
  .mdc-mouth {
    padding: 28px 18px 24px;
    border-radius: 14px;
    line-height: 1.9;
  }
  .mdc-mouth__lead {
    text-align: left;
  }
  .mdc-mouth__quote {
    padding: 32px 18px 22px;
  }
  .mdc-mouth p.mdc-mouth__words {
    font-size: 18px;
  }
}

/* ブログの欄：3列のとき長い見出し（インプラント・入れ歯）が右上の「一覧へ」と重ならないように */
.news_con.blog_list.mdc-blog6 .contentArea h2 {
  padding-right: 64px !important;
  font-size: 19px !important;
  letter-spacing: 2px !important;
}

/* ブログの欄：右上の「一覧へ」を各欄の記事の下に移して、ボタンの見た目に（2026-11-12 の指示） */
.news_con.blog_list.mdc-blog6 .contentArea {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px !important;
}
.news_con.blog_list.mdc-blog6 .contentArea h2 {
  padding-right: 0 !important;
}
.news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov {
  order: 99;
  position: static;
  float: none;
  align-self: center;
  margin-top: auto; /* 3つの欄で、ボタンの高さをそろえる */
  padding-top: 20px;
}
.news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov a {
  display: inline-block;
  min-width: 160px;
  padding: 10px 28px;
  border: 2px solid var(--mdc-green);
  border-radius: 999px;
  background: #fff;
  color: var(--mdc-green-dark);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
}
.news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov a:hover,
.news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov a:focus {
  background: var(--mdc-green);
  color: #fff;
}

/* 2026-11-12 小林社長の指示：「一覧へ」は記事の右下に（お知らせの欄・ブログの6つの欄）。見出しは横いっぱいに使えるので「入れ歯」の「歯」だけが次の行に出ない */
.news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov {
  align-self: flex-end;
}
.mdc-top-notice__news {
  display: flex;
  flex-direction: column;
}
.mdc-top-notice__news .top_infomation_btn {
  order: 99;
  align-self: flex-end;
  margin: 14px 0 0;
  text-align: right;
}
.mdc-top-notice__news .top_infomation_btn a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--mdc-green);
  border-radius: 999px;
  color: var(--mdc-green-dark);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .1em;
  text-decoration: none;
}
.mdc-top-notice__news .top_infomation_btn a:hover,
.mdc-top-notice__news .top_infomation_btn a:focus {
  background: var(--mdc-green);
  color: #fff;
}

/* ---------- 2026-11-12 17時台 小林社長のスマホの画面への指示 ---------- */
@media (max-width: 767px) {
  /* ロゴと MENU の段を、上に付いてくるように（「19:00まで診療」の札はヘッダーの外に出した） */
  #header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: #fff;
  }
  body {
    padding-top: var(--mdc-hd-h, 84px);
  }
  .mdc-sp-label {
    display: block;
    padding: 4px 10px 8px;
    background: #fff;
  }
  /* 「治療の特徴」「医院紹介」の文の幅を広げる（左右 20px） */
  .top .feature_con .grid_12,
  .top .info_con .grid_12 {
    width: auto !important;
    margin-right: 20px !important;
    margin-left: 20px !important;
  }
  /* お知らせの見出しの下の空きを小さく */
  .top .mdc-top-notice .mdc-top-ttl {
    margin-bottom: 8px !important; /* テーマの「.top h2 { margin-bottom: 40px !important }」に勝つため */
  }
  /* 「一覧へ」は、右下の追従の TOP のボタンと重ならないよう真ん中に */
  .mdc-top-notice__news .top_infomation_btn,
  .news_con.blog_list.mdc-blog6 .contentArea .top_infomation_btn.ov {
    align-self: center;
  }
  /* フッターのリンクは2列にして、行の終わりの「｜」を出さない */
  #footer .footerLink {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    max-width: 340px;
    margin: 16px auto;
    padding: 0;
  }
  #footer .footerLink li {
    float: none;
    margin: 0;
    font-size: 0;
    text-align: left;
  }
  #footer .footerLink li.pc {
    display: none;
  }
  #footer .footerLink li a {
    font-size: 14px;
    letter-spacing: .05em;
    line-height: 1.5;
  }
}

/* 2026-11-12 石井さんの指示：スマホの横の空きをほかの欄（左右 20px）とそろえる */
@media (max-width: 767px) {
  /* トップのブログの6つの欄：欄の中の左右の空きをなくし、文字の幅を広げる */
  .news_con.blog_list.mdc-blog6 .contentArea {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  /* 小児歯科・矯正歯科・入れ歯・インプラントのページの薄い緑の案内の欄：外と中の空きを小さく */
  .mdc-guide {
    margin: 16px 0;
    padding: 18px 14px;
  }
  .mdc-guide__lead {
    font-size: 14px;
    letter-spacing: .02em;
  }
  .mdc-guide__btn a {
    padding: 14px 12px;
    font-size: 14px;
    letter-spacing: .02em;
    text-wrap: balance; /* 「へ」だけが次の行に出ないよう、2行の長さをそろえる */
  }
}

/* スマホ：診療時間の見出しの下は、表がすぐ来るので少し空ける（お知らせは 8px のまま。2026-11-12 石井さんの確かめ） */
@media (max-width: 767px) {
  .top .mdc-top-notice__time .mdc-top-ttl {
    margin-bottom: 20px !important;
  }
}

/* 2026-11-12 1文字だけの行の一斉の確かめ（375・768・1280・1920px、小林社長 16:59 の指示）で見つかったもの */
/* トップの診療メニューのアイコン：768〜999px は6列だと狭く「インプラン／ト」と切れるので3列に */
@media (min-width: 768px) and (max-width: 999px) {
  .mdc-top-menu__list {
    grid-template-columns: repeat(3, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
}
/* スマホのフッターのリンク：2列のときに「入れ歯・インプラン／ト」と切れないよう、1行に収める */
@media (max-width: 767px) {
  #footer .footerLink li a {
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* 院長・スタッフ紹介「大切にしている言葉」：小林社長の iPhone の画面の崩れの直し（2026-11-13）
   ・引用の言葉と出典は、本文の HTML で言葉の切れ目ごとに区切った（staff_the_mouth_v2.txt）
   ・閉じる引用符が出典の文字に重ならないよう、枠の下に空きを取ってそこに置く
   ・字の間隔（テーマの 3px）を詰め、行の長さをそろえて、言葉の途中で切れにくくする */
.mdc-mouth,
.mdc-mouth p {
  letter-spacing: .04em;
  text-wrap: pretty;
}
.mdc-mouth__quote {
  padding-bottom: 52px;
}
.mdc-mouth__quote::after {
  right: 16px;
  bottom: 4px;
}
.mdc-mouth p.mdc-mouth__words,
.mdc-mouth p.mdc-mouth__cite {
  text-wrap: balance;
}
@media (max-width: 767px) {
  .mdc-mouth {
    padding-right: 16px;
    padding-left: 16px;
  }
  .mdc-mouth p {
    font-size: 15px;
  }
  .mdc-mouth p.mdc-mouth__words {
    font-size: 18px;
    letter-spacing: .02em;
  }
  .mdc-mouth p.mdc-mouth__cite {
    font-size: 12px;
    letter-spacing: 0;
  }
  .mdc-mouth__quote {
    padding: 34px 14px 48px;
  }
}

/* スマホは本文の決まった改行（br）をやめ、言葉のまとまり（disIB）ごとに折り返す（2026-11-13） */
@media (max-width: 767px) {
  .mdc-mouth p br {
    display: none;
  }
}

/* トップのブログの欄にカミングキッズクラブを足して7つに（2026-11-13）。PC は3列で、最後の段の欄は真ん中に寄せる */
@media (min-width: 1100px) {
  .news_con.blog_list.mdc-blog6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .news_con.blog_list.mdc-blog6 .contentArea {
    flex: 0 0 calc((100% - 80px) / 3);
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .news_con.blog_list.mdc-blog6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .news_con.blog_list.mdc-blog6 .contentArea {
    flex: 0 0 calc((100% - 30px) / 2);
  }
}
.blog_list .contentArea.kidsclub h2:before {
  mask: url(../img/news_icon.png) no-repeat center center;
  background: #f39800;
}

/* 2026-11-13 石井さんの Android の実機の確かめ（NG）の直し */
/* 小児歯科・虫歯・歯周病の予防の薄い緑の枠（.shadow_box）：スマホでは中の空き（上下 40px・左右 45px）が大きく文字の幅が狭いので小さく */
@media (max-width: 767px) {
  .shadow_box {
    padding: 22px 16px;
  }
  .shadow_box .sub_tle {
    font-size: 18px;
  }
}
/* 医療費控除：表の色の指定（--maincolor）がどこにも無く、表の見出しの地と枠の色が消えていたので、もちづき歯科の緑を入れる */
:root {
  --maincolor: #4db97b;
}
/* 医療費控除の見出しは、ほかのページと同じ緑の帯（page-deduction.php で h3.gnv_tmp_h3 にした）。小見出し（h4）はほかのページの下線の見出しに合わせる */
.page__deduction h4 {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mdc-green);
  color: var(--mdc-green-dark);
  font-size: 18px;
  line-height: 1.5;
}

/* 2026-11-13 医療費控除の「計算する」ボタン：文字の色の指定が無く、iPad・iPhone（Safari）では青い字になっていたので、PC・Android と同じ黒にそろえる（石井さんの連絡） */
.price__button button {
  color: #000;
  font-family: inherit;
  border-radius: 0;
}

/* 2026-11-13 医療費控除の「個人・夫婦・家族の医療費が10万円以上の場合」の3枚の画像：PC だけ3列で、iPad・スマホでは縦に1枚ずつ（左寄せ）だったので、どの幅でも3列にする（石井さんの指示） */
.page__deduction ul.line3 {
  display: flex;
  gap: 2%;
  margin-left: 0;
  padding: 0;
}
.page__deduction ul.line3::before,
.page__deduction ul.line3::after {
  content: none;
}
.page__deduction ul.line3 > li {
  flex: 1 1 0;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.page__deduction ul.line3 > li img {
  display: block;
  width: 100%;
  height: auto;
}

/* 2026-11-13 「こんな方におすすめ！」の枠の中のリスト（2列）：文字の下の線でそろう指定のままで、iPad で片方が2行になると、もう片方が下にずれていたので、上でそろえる（石井さんの指示） */
.bg_box2 .ic_01 li {
  vertical-align: top;
}

/* 2026-11-13 ハンバーガーの色のボタン：中が横並び（flex）で折り返さず、「入れ歯・」「インプラント」の区切りがそれぞれの中で切れていた（「インプラ／ント」）ので、区切りごとに次の行へ送る */
.mdc-drawer__btn a {
  flex-wrap: wrap;
  align-content: center;
}

/* もちづき歯科 本院｜院長・スタッフ紹介「大切にしている言葉」（[033] 2026-11-13 小林社長のシリウス）
   飾りの引用符は付けない（小林社長「この赤いところも必要ない」）。前の .mdc-mouth とは別の名前なので、前の CSS は残っていても効かない。 */
.mdc-words { max-width: 760px; margin: 0 auto; padding: 40px 48px; background: #ebf5ee; border-radius: 20px; color: #333; }
.mdc-words p { margin: 0; letter-spacing: .04em; line-height: 2; text-wrap: pretty; }
.mdc-words .nb { display: inline-block; }
.mdc-words__lead { text-align: center; font-size: 15px; }
.mdc-words__quote { margin: 28px 0; padding: 28px 32px; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); quotes: none; }
.mdc-words__quote::before, .mdc-words__quote::after,
.mdc-words__text::before, .mdc-words__text::after,
.mdc-words__cite::before, .mdc-words__cite::after { content: none !important; display: none !important; }
.mdc-words__text { text-align: center; color: #4f9a6c; font-weight: 700; font-size: 22px; line-height: 1.7; text-wrap: balance; }
.mdc-words__cite { margin-top: 14px !important; text-align: center; color: #888; font-size: 13px; line-height: 1.7; }
.mdc-words__body { margin-top: 24px !important; font-size: 15px; }
.mdc-words__sign { margin-top: 24px !important; text-align: right; font-weight: 700; font-size: 15px; }
@media (max-width: 767px) {
  .mdc-words { padding: 28px 18px; border-radius: 16px; }
  .mdc-words br.pc { display: none; }
  .mdc-words__lead { text-align: left; }
  .mdc-words__quote { margin: 22px 0; padding: 22px 16px; }
  .mdc-words__text { font-size: 19px; }
  .mdc-words__cite { font-size: 12px; }
}

/* [034] 2026-11-16 改行の自動の CSS（tasks/README.md §1-7。言葉のまとまりで折り返す。イシウス） */
p, li, dd, dt, td, th, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6, blockquote, caption, button, nav a, [class*="btn"], [class*="ttl"], [class*="title"] { text-wrap: balance; word-break: auto-phrase; }
/* [034] 2026-11-16 追加：本文・メニュー・フッター・記事の一覧も、言葉のまとまりで折り返す（Chrome・Edge・Android。iPhone の Safari は word-break: auto-phrase に対応していない） */
body { word-break: auto-phrase; }
.disIB, span.disIB { text-wrap: balance; }
.top_blog_list dd { text-wrap: balance; }

/* 2026-11-16 トップページだけ、ヘッダー（position: sticky）を入れている .wrapper がメインビジュアルの下で終わり、PC・iPad で追随がそこで止まっていた。.wrapper を箱として扱わないようにして、ページの最後まで追随させる（石井さんの連絡） */
body.front .wrapper { display: contents; }

/* ---------- ハンバーガーのメニュー：PC で画面の高さが低いときに縦のスクロールが出ないよう、余白を詰める（2026-12-01 石井さんの指示） ---------- */
@media (min-width: 768px) and (max-height: 1000px) {
  .mdc-drawer__inner { padding: 40px 40px 32px; }
  .mdc-drawer__title { margin: 0 0 16px; font-size: 30px; }
  .mdc-drawer__btns { margin-bottom: 18px; }
  .mdc-drawer__btn a { min-height: 56px; }
  .mdc-drawer__main { margin-bottom: 18px; }
  .mdc-drawer__nav { gap: 18px; margin-bottom: 18px; }
  .mdc-drawer__box, .mdc-drawer__time { padding: 16px 24px; }
  .mdc-drawer__box li a { padding: 4px 0; }
  .mdc-drawer .mdc-hours th, .mdc-drawer .mdc-hours td { padding-top: 8px; padding-bottom: 8px; }
  .mdc-drawer__tel { margin-top: 12px; font-size: 24px; }
  .mdc-drawer__close { top: 24px; }
}
@media (min-width: 768px) and (max-height: 860px) {
  .mdc-drawer__inner { padding: 24px 40px 20px; }
  .mdc-drawer__title { margin: 0 0 10px; font-size: 26px; }
  .mdc-drawer__btns { margin-bottom: 12px; }
  .mdc-drawer__btn a { min-height: 48px; }
  .mdc-drawer__main { margin-bottom: 12px; }
  .mdc-drawer__nav { gap: 14px; margin-bottom: 12px; }
  .mdc-drawer__box, .mdc-drawer__time { padding: 12px 20px; }
  .mdc-drawer__boxtitle { margin-bottom: 4px; }
  .mdc-drawer__tel { margin-top: 8px; font-size: 22px; }
  .mdc-drawer__close { top: 16px; }
}

/* ---------- 診療時間の表：タブレット・PC で「診療時間 / 曜日」と時間（14:30～19:00）が途中で折り返さないように（2026-12-01 石井さんの指示） ---------- */
@media (min-width: 768px) {
  table.gnv_tmp_hours thead th:first-child,
  table.gnv_tmp_hours tbody th { white-space: nowrap; }
}

/* ---------- スマホ：ハンバーガーのメニューを開いているあいだは、下の「お電話はこちら」を隠す（スクロールでアドレスバーが消えるときに一瞬見えるため。2026-12-01 石井さんの指示） ---------- */
body:has(.mdc-nav-flag:checked) .fixed_box {
  visibility: hidden;
  opacity: 0;
}
/* スマホ：アドレスバーが消えて画面が伸びる一瞬に、メニューの下に白いすき間が出ないよう、メニューの背景を下へ長く敷く（2026-12-01 石井さんの指示） */
.mdc-drawer__bg {
  bottom: -200px;
}
