@charset "UTF-8";

/* ------
  - *基本設定
  - *パンくずリスト
  - *ページ内リンク
  - *ページャー
  - *タブ
  - *アコーディオン
  - *レイアウト
  - *タイトル
  - *メインビジュアル
  - *扉ページ
  - *医院案内
  - *医師紹介
  - *アクセス
  - *ブログ
  - *404
------ */
/* ==================================================================================================================================

  *基本設定

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
main section:not(:last-child) {
  margin-bottom: 100px;
}

main .wrapper {
  display: flex;
  gap: 50px;
  margin: 30px auto 100px;
}

main .contents {
  width: 100%;
}

/* ----- 1カラム用 ------ */
main .inner {
  max-width: 1200px;
}

/* ----- 2カラム用 ------ */
main .two_column.wrapper {
  max-width: 1200px;
}

main .two_column .inner {
  width: 100%;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  main section:not(:last-child) {
    margin-bottom: 80px;
  }

  main .wrapper {
    margin: 0 auto 80px;
  }

  /* ----- 1カラム用 ------ */
  main .inner {
    padding: 0 20px;
  }

  /* ----- 2カラム用 ------ */
  main .two_column.wrapper {
    flex-flow: column;
  }
}

/* ==================================================================================================================================

  *パンくずリスト

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.breadcrumb {
  margin: 0 auto 30px !important;
}

.breadcrumb_list {
  counter-reset: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
}

.breadcrumb_list li {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.breadcrumb_list li::after {
  content: "\f054";
  position: relative;
  top: -1px;
  padding: 0 10px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 70%;
}

/* 親、子、孫が複数ある場合、最後以外にカンマを表示 */
.breadcrumb_list li.parent:has(~ .parent)::after,
.breadcrumb_list li.child:has(~ .child)::after,
.breadcrumb_list li.grandchild:has(~ .grandchild)::after {
  content: ",";
  position: relative;
  top: 0;
  padding: 0 5px;
  font-family: inherit;
  font-weight: normal;
  font-size: 100%;
}

/* 最後の要素の矢印を消す */
.breadcrumb_list li:last-of-type::after {
  display: none;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .breadcrumb {
    font-size: 13px;
  }
}

/* ==================================================================================================================================

  *ページ内リンク

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.page_links {
  margin-bottom: 50px;
}

.page_links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.page_links li {
  position: relative;
  z-index: 1;
}

.page_links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 15px;
  background: var(--sub-color);
  border: 1px solid var(--sub-color);
  color: #ffffff;
  font-size: 95%;
  text-align: center;
  transition: color 0.2s, background 0.2s;
}

.page_links a:hover {
  background: #ffffff;
  color: var(--sub-color);
}

/* ----- 2列 ----- */
.twoLinks li {
  width: calc(50% - 5px);
}

/* ----- 3列 ----- */
.threeLinks li {
  width: calc(33.3333333333% - 6.6666666667px);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .page_links {
    margin-bottom: 40px;
  }

  /* ----- 2列 ----- */
  .twoLinks li {
    width: 100%;
  }

  /* ----- 3列 ----- */
  .threeLinks li {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *ページャー

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.pager {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px auto 0;
  font-size: 15px;
}

/* ----- ページャーのボタン ----- */
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 1px 2px;
  background: #d7d7d7;
  border-radius: 50%;
  color: #ffffff;
  line-height: 1;
}

/* リンクの場合  */
a.page-numbers.prev, a.page-numbers.next {
  padding: 0 0 5px 1px;
  font-size: 170%;
}

a.page-numbers:hover {
  background: #929292;
  color: #ffffff;
}

/* 開いているページ */
.page-numbers.current {
  background: var(--main-color);
  color: #ffffff;
}

/* ==================================================================================================================================

  *サイドバー

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.sidebar {
  z-index: 3;
  flex-shrink: 0;
  width: 300px;
}

.side_box {
  padding: 20px;
  background: var(--bg-color);
}

.side_box:not(:last-of-type) {
  margin-bottom: 30px;
}

.side_box .children {
  padding-left: 10px;
}

.side_box a {
  color: var(--text-color);
}

.side_box a:hover {
  color: var(--main-color);
}

.side_title {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  padding: 0 0 5px 5px;
  border-bottom: solid 2px var(--main-color);
  font-weight: bold;
  font-size: 110%;
  line-height: 1.5;
  text-align: left;
}

.side_title i {
  margin-right: 10px;
  color: var(--main-color);
}

/* ----- サイドバー（診療案内） ----- */
.sidebar_medical li {
  padding: 10px 15px;
  border-bottom: 1px solid var(--line-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .sidebar {
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .side_box:not(:last-of-type) {
    margin-bottom: 20px;
  }
}

/* ==================================================================================================================================

  *タブ

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.tab_list {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.tab_list li {
  display: flex;
  flex: 1;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 10px 20px;
  background: #a9a9a9;
  color: #ffffff;
  font-size: 140%;
  cursor: pointer;
  transition: transform 0.2s, padding 0.2s;
}

.tab_list li.is-active {
  background: var(--main-color);
}

.panel {
  display: none;
  margin: 0 !important;
  padding: 20px;
  background: var(--bg-color);
}

.panel>*:not(:last-child) {
  margin-bottom: 2em;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .tab_list {
    flex-flow: column;
  }

  .tab_list li {
    width: 100%;
  }

  .panel {
    margin-top: 20px;
    padding: 15px;
  }
}

/* ==================================================================================================================================

  *アコーディオン

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.accordion>dl:not(:last-child) {
  margin-bottom: 15px;
}

.accordion>dl>dt {
  position: relative;
  z-index: 1;
  background-color: var(--bg-color);
  font-weight: normal;
  transition: background 0.3s, color 0.2s;
}

.accordion>dl>dt:hover {
  background: #f4f4f4;
}

.accordion>dl>dt::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  z-index: 2;
  width: 15px;
  height: 2px;
  background: var(--main-color);
  transform: rotate(90deg);
  transition: transform 0.3s, opacity 0.3s;
}

.accordion>dl>dt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  z-index: 2;
  width: 15px;
  height: 2px;
  background: var(--main-color);
  transition: transform 0.3s, background 0.3s;
}

.accordion>dl>dt.is-active {
  background: var(--main-color);
  color: #ffffff;
}

.accordion>dl>dt.is-active::before {
  opacity: 0;
  transform: rotate(180deg);
}

.accordion>dl>dt.is-active::after {
  background: #ffffff;
}

.accordion>dl>dt>div {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 15px 60px 15px 25px;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion>dl>dd {
  display: none;
}

.accordion>dl>dd>div {
  position: relative;
  z-index: 1;
  padding: 15px 25px;
}

.accordion>dl>dd>div>*:not(h1, h2, h3, h4, h5) {
  margin-bottom: 2em;
}

.accordion>dl>dd>div>*:not(h1, h2, h3, h4, h5):last-child {
  margin-bottom: 0;
}

/* ----- FAQアコーディオン ----- */
.accordion.faq>dl>dt>div {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 15px 50px 15px 60px;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion.faq>dl>dt>div::before {
  content: "Q.";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 140%;
  line-height: 1;
}

.accordion.faq>dl>dd>div {
  position: relative;
  z-index: 1;
  padding: 15px 25px 15px 60px;
}

.accordion.faq>dl>dd>div:before {
  content: "A.";
  position: absolute;
  top: 20px;
  left: 20px;
  color: #c52b2b;
  font-size: 140%;
  line-height: 1;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .accordion>dl>dt::before {
    right: 20px;
    width: 12px;
  }

  .accordion>dl>dt::after {
    right: 20px;
    width: 12px;
  }

  .accordion>dl>dt>div {
    padding: 15px 40px 15px 15px;
  }

  .accordion>dl>dd>div {
    padding: 15px;
  }

  /* ----- FAQアコーディオン ----- */
  .accordion.faq>dl>dt>div {
    padding: 15px 40px 15px 50px;
  }

  .accordion.faq>dl>dt>div::before {
    top: 18px;
  }

  .accordion.faq>dl>dd>div {
    padding: 15px 15px 15px 50px;
  }
}

/* ==================================================================================================================================

  *レイアウト

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* ------ 共通 ------ */
.layout_text>*:not(:last-child) {
  margin-bottom: 1.25em;
}

.layout_text>*:last-child {
  margin-bottom: 0 !important;
}

.layout_right.text_center {
  align-items: center;
}

/* ------ layout01 ------ */
.layout01 {
  position: relative;
  z-index: 1;
}

.layout01 .layout_box {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: var(--bg-color);
}

.layout01 .layout_box:not(:last-of-type) {
  margin-bottom: 20px;
}

.layout01 .layout_img {
  display: flex;
  flex-flow: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 370px;
  padding: 10px;
  background: #ffffff;
}

.layout01 .layout_img .imgtxt {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: none;
  font-weight: bold;
  font-size: 110%;
}

.layout01 .layout_text {
  width: 100%;
}

.layout01 {
  /* タイトル */
}

.layout01 .layout_title {
  display: block;
  padding: 10px 20px;
  background: var(--main-color);
  border: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 110%;
}

.layout01 .layout_title::before, .layout01 .layout_title::after {
  display: none;
}

.layout01 .layout_title span {
  display: inline-block;
  margin-right: 10px;
}

.layout01 {
  /* サブタイトル */
}

.layout01 .layout_sub_title {
  display: block;
  width: fit-content;
  padding: 2px 15px 4px;
  background: #555555;
  border: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 110%;
}

.layout01 .layout_sub_title::before, .layout01 .layout_sub_title::after {
  display: none;
}

/* ------ layout02 ------ */
.layout02 {
  position: relative;
  z-index: 1;
}

.layout02 .layout_box {
  display: flex;
  flex-flow: wrap;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.layout02 .layout_box:not(:last-of-type) {
  margin-bottom: 20px;
}

.layout02 .layout_left {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 35%;
  padding: 40px 20px;
  background: var(--bg-color);
}

.layout02 .layout_left>*:not(:last-child) {
  margin-bottom: 1em;
}

.layout02 {
  /* タイトル */
}

.layout02 .layout_title {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--main-color);
  font-size: 110%;
}

.layout02 .layout_title::before, .layout02 .layout_title::after {
  display: none;
}

.layout02 .layout_title span {
  display: inline-block;
  margin-right: 10px;
}

.layout02 .layout_right {
  display: flex;
  flex-flow: column;
  justify-content: center;
  width: 65%;
  padding: 20px;
}

.layout02 {
  /* サブタイトル */
}

.layout02 .layout_sub_title {
  display: block;
  width: fit-content;
  padding: 2px 15px 4px;
  background: #555555;
  border: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 110%;
}

.layout02 .layout_sub_title::before, .layout02 .layout_sub_title::after {
  display: none;
}

/* ------ layout03 ------ */
.layout03 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 20px;
}

.layout03 .layout_box {
  display: flex;
  flex-flow: column;
}

.layout03 .layout_inner {
  height: auto;
  height: 100%;
  padding: 20px;
  background: var(--bg-color);
}

.layout03 {
  /* タイトル */
}

.layout03 .layout_title {
  display: block;
  margin: 0;
  padding: 10px 20px;
  background: var(--main-color);
  border: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 110%;
}

.layout03 .layout_title::before, .layout03 .layout_title::after {
  display: none;
}

.layout03 .layout_title_subcolor {
  background: var(--sub-color);
}

/* ------  flow ------  */
.flow {
  position: relative;
  z-index: 1;
  padding: 30px;
  background: var(--bg-color);
}

.flow_box {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}

.flow_box:first-of-type {
  padding-top: 0;
}

.flow_box:last-child {
  padding-bottom: 0;
}

.flow_number {
  position: relative;
  z-index: 1;
}

.flow_number::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 50%;
  z-index: -1;
  width: auto;
  height: 100%;
  border-right: var(--line-color) dashed 3px;
  transform: translateX(-50%);
}

.flow_number * {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  padding: 0 0 3px 2px;
  background: var(--main-color);
  color: #ffffff;
  font-size: 120%;
}

.flow_box:last-of-type .flow_number::before {
  display: none;
}

.flow_inner {
  width: calc(100% - 80px);
}

.flow_inner>*:not(:last-child) {
  margin-bottom: 1em;
}

.flow_title {
  display: block;
  margin-bottom: 15px;
  padding: 7px 20px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  color: var(--text-color);
  font-size: 120%;
}

.flow_sub_title {
  width: fit-content;
  margin-bottom: 15px;
  padding: 5px 20px;
  background: var(--main-color);
  border: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 100%;
}

/* ------ flexbox01（改行せずに等間隔で配置） ------ */
.flexbox01 {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.flexbox01>* {
  flex: 1;
}

/* ------ flexbox02 ------ */
.flexbox02 {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.flexbox02>* {
  width: calc(50% - 5px);
}

/* ------ flexbox03 ------ */
.flexbox03 {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.flexbox03>* {
  width: calc(33.3333333333% - 6.6666666667px);
}

/* ------ flexbox04 ------ */
.flexbox04 {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.flexbox04>* {
  width: calc(25% - 7.5px);
}

/* ------ 枠 ------ */
:is(.frame01, .frame02, .frame03)>*:not(h1, h2, h3, h4, h5) {
  margin-bottom: 2em;
}

:is(.frame01, .frame02, .frame03)>*:last-child {
  margin-bottom: 0;
}

.frame01 {
  position: relative;
  z-index: 1;
  padding: 40px 30px;
  background: var(--bg-color);
}

.frame01::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1px solid #ffffff;
  transform: translate(-50%, -50%);
}

.frame01 p {
  font-size: 120%;
  text-align: center;
}

.frame02 {
  padding: 20px 25px;
  background: var(--bg-color);
}

.frame03 {
  padding: 20px 25px;
  border: 1px solid var(--line-color);
}

.img_center {
  text-align: center;
}

.img_fl, .img_fr {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 20px;
}

.img_fl {
  float: left;
  margin-right: 30px;
  text-align: center;
}

.img_fr {
  float: right;
  margin-left: 30px;
  text-align: center;
}

.img_fl img, .img_fr img {
  width: auto;
  max-width: 400px;
  height: auto;
  max-height: 400px;
}

.imgtxt {
  margin-top: 10px;
  text-align: center;
}

.float_clear {
  float: none !important;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {

  /* ------ layout01 ------ */
  .layout01 .layout_box {
    flex-flow: wrap;
    gap: 15px;
  }

  .layout01 .layout_img {
    width: 100%;
  }

  .layout01 .layout_text {
    width: 100%;
  }

  /* ------ layout02 ------ */
  .layout02 .layout_left {
    width: 100%;
  }

  .layout02 .layout_right {
    width: 100%;
  }

  /* ------ layout03 ------ */
  .layout03 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  /* ------ flow ------ */
  .flow {
    padding: 20px;
  }

  .flow_box {
    gap: 20px;
    padding: 20px 0;
  }

  .flow_number::before {
    top: 40px;
  }

  .flow_number span {
    width: 40px;
    height: 40px;
    padding-top: 2px;
  }

  .flow_inner {
    width: calc(100% - 60px);
  }

  .flow_title {
    padding: 4px 15px;
  }

  /* ------ flexbox01（改行せずに等間隔で配置） ------ */
  .flexbox01>* {
    flex: none;
    width: 100%;
  }

  /* ------  flexbox02 ------ */
  .flexbox02>* {
    width: 100%;
  }

  /* ------  flexbox03 ------ */
  .flexbox03>* {
    width: 100%;
  }

  /* ------  flexbox04 ------ */
  .flexbox04>* {
    width: 100%;
  }

  .img_fl, .img_fr {
    float: none;
    margin: 0 auto 2.25em;
    text-align: center;
  }

  .img_fl img, .img_fr img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
  }
}

/* ==================================================================================================================================

  *タイトル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
h2, h3, h4, h5, h6 {
  position: relative;
  z-index: 1;
  margin: 50px auto 25px 0;
  line-height: 1.75;
}

h2:first-of-type, h2+h3, h3+h4, h4+h5, h5+h6 {
  margin-top: 0;
}

h2 {
  padding: 20px 30px;
  background: var(--main-color);
  color: #ffffff;
  font-size: 150%;
}

h3 {
  padding: 15px 30px;
  border: 1px solid var(--line-color);
  font-size: 120%;
}

h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  display: block;
  width: calc(100% - 7px);
  height: calc(100% - 8px);
  background: #fafafa;
  transform: translate(-50%, -50%);
}

h4 {
  position: relative;
  width: fit-content;
  padding: 10px 22px 10px 25px;
  background: #f9f9f9;
  border-left: 5px solid var(--main-color);
  font-size: 125%;
}

h5 {
  color: var(--main-color);
  font-size: 120%;
}

h6 {
  font-size: 110%;
}

/* ==================================================================================================================================

  *メインビジュアル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.mainvisual {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mainvisual .mainvisual_container {
  position: relative;
  z-index: 1;
  background: var(--main-color);
}

.mainvisual .mainvisual_bg {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

.mainvisual .mainvisual_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mainvisual .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 230px;
  padding: 50px 0;
}

/* ----- 下層ページの見出し ----- */
.main_headline {
  color: var(--text-color);
  font-size: 200%;
  line-height: 1.5;
  text-align: center;
  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 15px #ffffff);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .mainvisual .inner {
    min-height: 180px;
    padding: 30px 20px;
  }

  /* ----- 下層ページの見出し ----- */
  .main_headline {
    font-size: 150%;
  }
}

/* ==================================================================================================================================

  *扉ページ

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.custom_post_wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 100px 50px;
}

.custom_post_item .btn01 {
  margin-top: 30px;
  text-align: right;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .custom_post_wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 80px 50px;
  }
}

/* ==================================================================================================================================

  *医院案内

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.clinic_desc {
  width: 100%;
}

.clinic_desc dl {
  display: flex;
}

.clinic_desc dt {
  width: 20%;
  padding: 15px;
  border-bottom: 1px dotted var(--line-color);
  font-weight: bold;
}

.clinic_desc li:first-child dt {
  padding-top: 0;
}

.clinic_desc dd {
  width: 80%;
  padding: 15px;
  border-bottom: 1px dotted var(--line-color);
}

.clinic_desc dd .zipcode {
  margin-right: 10px;
}

.clinic_desc li:first-child dd {
  padding-top: 0;
}

.facilities_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.two_column .facilities_list {
  grid-template-columns: repeat(2, 1fr);
}

.facilities_item {
  background: var(--bg-color);
}

.facilities_item dd {
  padding: 15px 20px;
}

.facilities_item dd p {
  padding-top: 8px;
}

.facilities_item h3 {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 125%;
}

.facilities_item h3::before, .facilities_item h3::after {
  display: none;
}

/* ----- 画像がない時用 ----- */
.facilities_item.noimg {
  padding: 15px 20px;
}

.facilities_item.noimg p {
  margin-top: 5px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .clinic_desc dl {
    display: block;
  }

  .clinic_desc dt {
    width: 100%;
    padding: 15px 0 5px;
    border-bottom: none;
  }

  .clinic_desc li:first-child dt {
    padding-top: 0;
  }

  .clinic_desc dd {
    width: 100%;
    padding: 0 0 15px;
  }

  .facilities_list {
    grid-template-columns: repeat(1, 1fr);
  }

  .two_column .facilities_list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ==================================================================================================================================

  *医師紹介

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.doctor_box:not(:last-child) {
  margin: 0;
  padding: 0 0 60px;
}

.doctor_box:not(:first-child) h2 {
  margin-top: 20px;
}

.doctor_flex {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.doctor_text {
  width: 100%;
}

.doctor_text>*:not(:first-child) {
  margin-top: 30px !important;
}

.doctor_name {
  text-align: right;
}

.doctor_name .position {
  font-size: 130%;
}

.doctor_name .name {
  font-size: 150%;
}

.doctor_img {
  flex-shrink: 0;
  width: 350px;
}

.doctor_career {
  margin-top: 30px;
}

.career_box {
  padding: 30px;
  background: var(--bg-color);
}

.career_box:not(:last-of-type) {
  margin-bottom: 20px;
}

.career_box h3 {
  margin: 0 0 5px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 140%;
}

.career_box h3::before, .career_box h3::after {
  display: none;
}

/* 日付あり */
.career_box dl {
  display: flex;
  gap: 10px;
  border-bottom: 1px dashed var(--line-color);
}

.career_box dl>* {
  padding: 10px 20px;
}

.career_box dt {
  width: 15%;
}

/* 日付なし */
.career_box li {
  padding: 10px 20px;
  border-bottom: 1px dashed var(--line-color);
}

/* フリーエリア */
.doctor_freearea {
  margin-top: 30px;
}

/* ====================================================================
   医師紹介：PC表示（641px以上）のみ2番目以降を2列にする（SPは1列のまま）
==================================================================== */
@media screen and (min-width: 641px) {
  .inner:has(> .doctor_box) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px; 
  }

  .inner > .doctor_box:first-child {
    grid-column: 1 / -1;
  }

  .inner > .doctor_box:not(:last-child) {
    padding-bottom: 0;
  }

  .inner > .doctor_box:not(:first-child) h2 {
    margin-top: 0;
  }

  .inner > .doctor_box:not(:first-child) .doctor_flex {
    gap: 24px;
  }

  .inner > .doctor_box:not(:first-child) .doctor_img {
    width: 200px;
  }

  .inner > .doctor_box:not(:first-child) .career_box dt {
    width: 24%;
  }
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .doctor_flex {
    flex-flow: column;
    gap: 30px;
  }

  .doctor_img {
    order: -1;
    width: 100%;
    margin: 0 auto;
  }

  .career_box {
    padding: 20px 25px;
  }

  .career_box h3 {
    margin: 0;
  }

  /* 日付あり */
  .career_box dl {
    flex-flow: column;
    gap: 0;
  }

  .career_box dl>* {
    padding: 10px;
  }

  .career_box dt {
    width: 100%;
    padding: 10px 10px 5px;
  }

  .career_box dd {
    width: 100%;
    padding: 5px 10px 10px;
  }

  /* 日付なし */
  .career_box li {
    padding: 10px;
  }
}

/* ==================================================================================================================================

  *アクセス

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* ----- MAP ----- */
.access .googlemap iframe {
  width: 100%;
  height: 400px;
}

/* イラストマップのみ */
.access .illustmap {
  width: 100%;
  height: fit-content;
  text-align: center;
}

/* 両方を表示する時 */
.mapflex {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 30px;
}

.mapflex>* {
  display: flex;
  flex-grow: 1;
  align-items: stretch;
  width: calc(50% - 10px) !important;
}

.mapflex>.googlemap {
  position: relative;
  z-index: 1;
  flex-shrink: 1;
  width: calc(50% - 20px);
  height: auto;
}

.mapflex>.googlemap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----- 住所 ----- */
.access .location {
  position: relative;
  z-index: 1;
  padding: 0 0 0 40px;
  font-weight: bold;
}

.access .location::before {
  content: "\f3c5";
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0 0 0 2px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 13px;
}

.access span {
  display: inline-block;
  margin-right: 10px;
}

.access .btn01 {
  text-align: center;
}

/* ----- ルート案内 ----- */
.route_list {
  display: flex;
  flex-flow: wrap;
  gap: 50px 30px;
}

.route_item {
  width: calc(33.3333333333% - 20px);
}

.route_item>*:not(:last-child) {
  margin-bottom: 1em;
}

.route_title {
  position: relative;
  z-index: 1;
  min-height: 30px;
  padding: 0 0 0 40px;
  font-size: 110%;
}

.route_title .number {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: var(--main-color);
  color: #ffffff;
  line-height: 1;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .mapflex>* {
    width: 100% !important;
  }

  /* ----- ルート案内 ----- */
  .route_list {
    gap: 30px;
  }

  .route_item {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *ブログ

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* ----- 共通 ----- */
.wrapper_blog {
  display: flex;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
  margin: 30px auto 100px;
}

.blog_contents {
  width: 100%;
}

/* 日付 */
.blog_date {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.blog_date::before {
  content: "\f073";
  display: inline-block;
  margin-right: 7px;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  color: var(--main-color);
}

/* カテゴリー */
.blog_categorys {
  display: flex;
  flex-flow: wrap;
  gap: 0 5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.blog_categorys a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
}

.blog_categorys a::before {
  content: "\f02b";
  position: relative;
  top: 1px;
  display: inline-block;
  margin-right: 5px;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
}

/* ----- サイドバ（サムネイル付き） ----- */
.blog_list_thum {
  display: flex;
  flex-flow: column;
}

.blog_list_thum li {
  padding: 15px 0;
}

.blog_list_thum li:first-child {
  padding-top: 0;
}

.blog_list_thum li:last-child {
  padding-bottom: 0;
}

.blog_list_thum li:not(:last-child) {
  border-bottom: 1px dashed var(--line-color);
}

.blog_list_thum li a {
  display: flex;
  gap: 10px;
  color: var(--text-color);
  font-size: 95%;
  line-height: 1.75;
}

.blog_list_thum li a:hover {
  color: var(--main-color);
}

/* サムネイル */
.blog_item_thum {
  float: none;
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.blog_item_thum img {
  float: none;
  display: block;
  width: auto;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.2s;
}

.blog_item a:hover img {
  transform: scale(1.1);
}

/* タイトル */
.blog_item_title {
  padding: 5px 0;
}

/* カテゴリー */
.side_blog_category a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 0 0 15px;
  color: var(--text-color);
}

.side_blog_category a :hover {
  color: var(--main-color);
}

.side_blog_category a::before {
  content: "-";
  position: absolute;
  top: 0;
  left: 0;
}

/* ----- アーカイブページ ----- */
.blog_article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog_archive_box {
  display: flex;
  flex-flow: column;
  height: auto;
  background-color: #ffffff;
  border: solid 1px var(--line-color);
}

/* サムネイル */
.blog_archive_box .thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-bottom: solid 1px var(--line-color);
  text-align: center;
}

.blog_archive_box .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 13/9;
}

.blog_archive_inner {
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 15px 15px 20px;
  border-top: none;
}

/* 見出し */
.blog_archive_box h2.blog_title {
  margin: 0 0 15px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 110%;
}

.blog_archive_box h2.blog_title:before, .blog_archive_box h2.blog_title:after {
  display: none;
}

.blog_archive_box .btn01 {
  margin-top: auto;
  text-align: center;
}

.blog_archive_box .btn01>* {
  min-width: auto;
}

/* ----- 記事ページ ----- */
.blog_single_box {
  width: 100%;
}

/* サムネイル */
.blog_single_box .thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 30px;
  text-align: center;
}

/* 目次　 */
#index {
  margin: 0 0 30px;
  padding: 20px 30px;
  background: var(--bg-color);
}

#index .index_title {
  margin: 0 0 0;
  font-weight: bold;
  font-size: 110%;
}

#index a {
  color: var(--text-color);
}

#index a:hover {
  color: var(--main-color);
}

#index .index_h2 {
  position: relative;
  z-index: 1;
  padding: 5px 0 5px 20px;
  font-weight: bold;
  color: var(--text-color);
  font-size: 110%;
}

#index .index_h2::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  display: block;
  width: 8px;
  height: 8px;
  background: var(--main-color);
}

#index .index_h3 {
  position: relative;
  z-index: 1;
  padding: 5px 0 5px 25px;
}

#index .index_h3::before {
  content: "-";
  position: absolute;
  top: 5px;
  left: 10px;
}

.blog_single_box .blog_text>*:not(h1, h2, h3, h4, h5) {
  margin-bottom: 2em;
}

.blog_single_box .blog_text>*:not(h1, h2, h3, h4, h5):last-child {
  margin-bottom: 2em;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {

  /* ----- 共通 ----- */
  .wrapper_blog {
    flex-flow: column;
    gap: 50px;
    width: 100%;
    margin: 30px auto 80px;
  }

  /* ----- アーカイブページ ----- */
  .blog_article {
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }

  .blog_archive_box {
    width: 100%;
  }

  /* サムネイル */
  .blog_archive_box .thumbnail {
    height: auto;
    min-height: auto;
  }

  .blog_archive_box .thumbnail img {
    width: 100%;
    height: auto;
  }
}

/* ==================================================================================================================================

404

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.error404 main>.inner {
  padding: 20px 0 80px;
}

.error404 main p {
  text-align: center;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .error404 main>.inner {
    padding: 0px 20px 60px;
  }
}
/* ====================================================================
   きむら歯科・矯正歯科 デザイン01：下層の全体トーン（2026-10-29）
   見出しの「濃い茶のベタ帯」をやめ、淡いグレージュの面＋細いアクセントで
   本文の読みやすさを優先する。セレクタは既存（素の h2〜h4 等）と同じ詳細度で並べ、
   class 付きの個別指定（フッター・お知らせ・経歴など）より強くしない。
==================================================================== */

/* ----- 下層 MV：濃い茶の面をやわらかいグレージュのグラデーションに ----- */
.mainvisual .mainvisual_container {
  background: linear-gradient(120deg, #f3ebe2 0%, #ece1d5 55%, #e6d8ca 100%);
}

.main_headline {
  color: var(--main-color);
  letter-spacing: 0.16em;
}

/* 下層 MV に画像が無いときは白いにじみ（画像上の可読性用の drop-shadow）を外す。画像を設定すれば標準どおり出る */
.mainvisual_container:not(:has(.mainvisual_bg)) .main_headline {
  filter: none;
}

.main_headline::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--sub-color);
  border-radius: 2px;
}

/* ----- ページ内ナビ：ベタ塗りの箱から白地＋細枠＋下向き矢印へ ----- */
.page_links a {
  position: relative;
  padding: 12px 40px 12px 20px;
  background: #ffffff;
  border-color: var(--line-color);
  border-radius: 8px;
  color: var(--main-color);
}

.page_links a::after {
  content: "\f107";
  position: absolute;
  top: 50%;
  right: 16px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--sub-color);
  transform: translateY(-50%);
}

.page_links a:hover {
  background: var(--bg-color);
  border-color: var(--sub-color);
  color: var(--main-color);
}

/* ----- 見出し h2：淡い面＋左の縦アクセント ----- */
h2 {
  padding: 18px 30px 18px 38px;
  background: var(--bg-color);
  border-radius: 8px;
  color: var(--main-color);
  letter-spacing: 0.12em;
}

h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 4px;
  height: 1.3em;
  background: var(--main-color);
  border-radius: 2px;
  transform: translateY(-50%);
}

/* ----- 見出し h3：二重枠をやめ、下線＋短いアクセント線 ----- */
h3 {
  padding: 8px 0 12px;
  border: none;
  border-bottom: 1px solid var(--line-color);
  color: var(--main-color);
  letter-spacing: 0.1em;
}

h3::before {
  top: auto;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 60px;
  height: 2px;
  background: var(--sub-color);
  transform: none;
}

/* ----- 見出し h4：太い縦線を細くし、面をグレージュに ----- */
h4 {
  padding: 8px 22px 8px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--sub-color);
  border-radius: 0 6px 6px 0;
}

/* ----- 表・枠 ----- */
table th {
  background: var(--bg-color);
}

/* 医院案内の表の中の診療時間：外側の表と区別して白い面にする */
.clinic_desc .office_hour .table_wrapper {
  background: #ffffff;
  border: 1px solid var(--line-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  h2 {
    padding: 14px 18px 14px 30px;
  }

  h2::before {
    left: 14px;
  }

  .page_links a {
    padding: 10px 36px 10px 14px;
  }
}

/* ====================================================================
   きむら歯科・矯正歯科 デザイン02：下層本文の文字と装飾（2026-10-30 指示書041）
   方針：公式テンプレートの幅・余白・高さ・列数は変えず、文字と装飾だけを整える。
   （039 の本文 800px・余白・ナビの高さ・MV の高さ、040 の写真の色の重ねは撤回した）
   範囲：main の .inner.text（本文ブロック）、ページ内ナビ、下層 MV のタイトル。
==================================================================== */

/* ----- 本文の文字：16px（依頼書の SP 16px に PC も合わせる。行間・字間は公式のまま） ----- */
main .inner.text {
  font-size: 16px;
}

/* ----- 見出しの文字の大きさ：h2 > h3 > h4 の順に（公式の % 指定だと h4 が h3 より大きいため px で指定） ----- */
main .inner.text > h2 {
  font-size: 23px;
}

main .inner.text > h3 {
  font-size: 20px;
}

/* h4：面を外し、左の細い線と字の太さだけで h3 より控えめに（幅・余白は公式とデザイン01のまま） */
main .inner.text > h4 {
  background: none;
  border-radius: 0;
  color: var(--main-color);
  font-size: 17px;
  font-weight: bold;
}

/* ----- 本文リンク：色だけでなく下線で示す（ボタン・画像リンクは除く） ----- */
main .inner.text a:not([class]):not(:has(img)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

main .inner.text a:not([class]):not(:has(img)):hover {
  text-decoration-thickness: 2px;
}

main .inner.text a:focus-visible,
.page_links a:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}

/* ----- 下層 MV：写真は元の色のまま。タイトルだけに細い白のふちを付けて読みやすく ----- */
.mainvisual_container:has(.mainvisual_bg) .main_headline {
  filter: none;
  text-shadow: 0 0 2px #ffffff, 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  main .inner.text > h2 {
    font-size: 19px;
  }

  main .inner.text > h3 {
    font-size: 17px;
  }

  main .inner.text > h4 {
    font-size: 16px;
  }
}

/* ====================================================================
   きむら歯科・矯正歯科 デザイン03：下層の見出し・ページ内リンク・院長紹介・画像横の本文（2026-10-30 指示書042）
   方針：公式の幅・列数・配置は変えない（041）。042 でユーザーが明示した
   h3 の上余白・院長紹介の h3・画像横の本文の流れだけを、該当箇所に限って調整する。
==================================================================== */

/* ----- 見出し：h3 は太字でセクションの区切りに、h4 は細字＋細い線で控えめに ----- */
main .inner.text > h3 {
  margin-top: 64px;
  font-weight: bold;
}

/* h2 の直後の h3 は公式どおり上余白なし */
main .inner.text > h2 + h3 {
  margin-top: 0;
}

main .inner.text > h4 {
  border-left-width: 2px;
  font-weight: 500;
}

/* ----- ページ内リンク：淡いグレージュの面＋枠でボタンと分かるように（高さ・幅・列は公式のまま） ----- */
.page_links a {
  background: var(--bg-color);
  border-color: rgba(125, 80, 57, 0.28);
  font-weight: bold;
}

.page_links a:hover {
  background: #ffffff;
  border-color: var(--sub-color);
}

/* ----- 院長紹介 ----- */
/* ご挨拶の最初の h3「納得と安心、上質な先端医療を。」だけ上余白をなくす（写真の上端とそろえる） */
.doctor_box .doctor_text > .text > h3:first-child {
  margin-top: 0;
}

/* 署名：医院名・役職は小さく控えめに、氏名を主役に */
.doctor_name .position {
  color: var(--text-color);
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.doctor_name .name {
  margin-top: 4px;
  color: var(--main-color);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.14em;
}

/* 経歴・資格など：ベージュの大きな面をやめ、白地＋細い枠＋見出しの下線で区切る */
.career_box {
  background: #ffffff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
}

.career_box h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-color);
  color: var(--main-color);
  font-size: 20px;
  font-weight: bold;
}

.career_box dl,
.career_box li {
  border-bottom-style: solid;
}

.career_box dl:last-of-type,
.career_box li:last-child {
  border-bottom: none;
}

.career_box dt {
  color: var(--main-color);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------
  ▼ PC：画像の横の本文（.clearfix の img_fr／img_fl）
  公式の .clearfix:after が回り込みを閉じるため、.clearfix の外にある続きの段落が
  画像の下に送られる。続きが段落のときだけ回り込みを続け、見出し・リスト等の前と
  ブロックの終わりで回り込みを解除する。SP（640px 以下）は公式の縦積みのまま。
---------------------------------------------------------------------- */
@media screen and (min-width: 641px) {
  main .inner.text > .clearfix:has(> .img_fr, > .img_fl):has(+ p)::after {
    display: none;
  }

  main .inner.text > .clearfix:has(> .img_fr, > .img_fl) ~ :not(p) {
    clear: both;
  }

  main .inner.text:has(> .clearfix > .img_fr, > .clearfix > .img_fl)::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  main .inner.text > h3 {
    margin-top: 56px;
  }

  main .inner.text > h2 + h3 {
    margin-top: 0;
  }

  .doctor_name .position {
    font-size: 13px;
  }

  .doctor_name .name {
    font-size: 21px;
  }

  .career_box h3 {
    font-size: 18px;
  }
}

/* ====================================================================
   きむら歯科・矯正歯科 デザイン04：院長紹介・アクセスの案内文（2026-10-30 指示書043）
   方針：公式テンプレートの幅・列・行間は変えず、文字と装飾だけを整える。
   範囲：院長紹介のご挨拶の本文・署名のふりがな・経歴などの箱、アクセスの地図の節の直後の案内文。
==================================================================== */

/* ----- 院長紹介：ご挨拶の本文を 16px に（.inner.text の外なので個別に指定。行間・段落の余白は公式のまま） ----- */
.doctor_box .doctor_text > .text p {
  font-size: 16px;
}

/* 署名のふりがな：氏名の入力値の <span>（ACF「院長名」）。色・太さは氏名と同じ、大きさだけ小さく（044） */
.doctor_name .name span {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--main-color);
  font-size: 16px;
  font-weight: inherit;
  letter-spacing: 0.08em;
}

/* 経歴・資格など：ごく淡い生成りの面を戻す（042 の枠・角丸・見出しの下線・実線の区切りは維持） */
.career_box {
  background: color-mix(in srgb, var(--bg-color) 55%, #ffffff);
}

.career_box h3 {
  border-bottom-color: rgba(125, 80, 57, 0.15);
}

/* ----- アクセス：地図の節（テンプレート出力）と、直後の見出しの無い案内文の節の間を詰める -----
   案内文はフリーエリア（下）の 1 行目。テンプレートの節の中には入力欄が無いため、節の間隔だけを段落の間隔にする。 */
main section#information.access:has(+ section:not([id]):not([class])) {
  margin-bottom: 30px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .doctor_name .name span {
    font-size: 15px;
  }

  main section#information.access:has(+ section:not([id]):not([class])) {
    margin-bottom: 25px;
  }
}

/* ----- 医療コラムの記事本文の見出し（検品シート行120、指示書048）：下層ページ（main .inner.text > h2〜h4）と同じ大きさ・太さ・h4 の線にそろえる。余白・配置は変えない ----- */
.blog_single_box .blog_text > h2 {
  font-size: 23px;
}

.blog_single_box .blog_text > h3 {
  font-size: 20px;
  font-weight: bold;
}

.blog_single_box .blog_text > h4 {
  background: none;
  border-left-width: 2px;
  border-radius: 0;
  color: var(--main-color);
  font-size: 17px;
  font-weight: 500;
}

@media screen and (max-width: 640px) {
  .blog_single_box .blog_text > h2 {
    font-size: 19px;
  }

  .blog_single_box .blog_text > h3 {
    font-size: 17px;
  }

  .blog_single_box .blog_text > h4 {
    font-size: 16px;
  }
}
