@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;
}

/* ----------------------------------------------------------------------
  ▼ 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;
  }
}
/* ----- 本文の中のボタン（btn01）：SP で文が長いと画面からはみ出すので、収まらないときだけ文節で折り返す ----- */
@media screen and (max-width: 640px) {
  .btn01 {
    max-width: 100%;
  }

  .btn01 > * {
    white-space: normal;
    text-wrap: balance;
    word-break: auto-phrase;
  }
}

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

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;
  }
}

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

  *内科小児科宮島医院：下層のデザイン（TOP に合わせる。生成りとミントの面・ロゴのマーク・緑とオレンジ・角丸・地面と動物。構成とクラスはテンプレのまま）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* ----- ページの見出し：生成りに水彩（右に黄・左にミント）、下に地面と動物（TOP の MV・セクションの終わりと同じ）。
         文字は TOP の見出しと同じ形（ロゴのマーク・英字・日本語）。写真を設定したページは、写真が水彩と地面の上にかぶさる ----- */
.mainvisual .mainvisual_container {
  background:
    url(../images/front/mv_grass@2x.png) center bottom 34px / 1920px 46px no-repeat,
    linear-gradient(rgba(181, 212, 134, 0.8), rgba(181, 212, 134, 0.8)) center bottom 37px / 100% 3px no-repeat,
    url(../images/front/ground@2x.jpg) center bottom -10px / 1920px 50px repeat-x,
    url(../images/front/wash_yellow_cream.jpg) calc(50% + 600px) -230px / 1100px 550px no-repeat,
    url(../images/front/wash_mint_cream.jpg) calc(50% - 640px) 30px / 900px 450px no-repeat,
    var(--bg-color);
}

.mainvisual .inner {
  min-height: 0;
  padding: 56px 0 96px; /* 下は地面 40px ＋ 56px（上と同じ） */
}

.main_headline {
  font-weight: 500;
  color: var(--ink-color);
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  filter: none;
}

/* 見出しの上にロゴのマーク（TOP の見出しと同じ） */
.main_headline::before {
  content: "";
  display: block;
  width: 52px;
  height: 53px;
  margin: 0 auto 7px;
  background: url(../images/front/mark@2x.png) center / contain no-repeat;
}

.main_headline_en {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--main-dark);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

/* 地面の上の動物：右にうさぎとひよこ、左にハリネズミ（ときどき跳ねる）。会社の最小幅 1240px でも切れないよう、中心から 600px 以内に置く */
.mainvisual .mainvisual_container::before, .mainvisual .mainvisual_container::after, .mainvisual .inner::before {
  content: "";
  position: absolute;
  bottom: 36px;
  z-index: 1;
  background: center bottom / contain no-repeat;
  transform-origin: center bottom;
  animation: underHop 5s ease-in-out infinite;
  pointer-events: none;
}

.mainvisual .mainvisual_container::before {
  left: calc(50% + 440px);
  width: 68px;
  height: 96px;
  background-image: url(../images/front/animal_rabbit@2x.png);
}

.mainvisual .mainvisual_container::after {
  left: calc(50% + 540px);
  width: 40px;
  height: 54px;
  background-image: url(../images/front/animal_chick@2x.png);
  animation-duration: 4.4s;
  animation-delay: 1.7s;
}

.mainvisual .inner::before {
  left: calc(50% - 600px);
  width: 72px;
  height: 50px;
  background-image: url(../images/front/animal_hedgehog@2x.png);
  scale: -1 1;
  animation-duration: 6s;
  animation-delay: 2s;
}

@keyframes underHop {
  0%, 80%, 100% {
    transform: translateY(0) scaleY(1);
  }

  85% {
    transform: translateY(-10px) scaleY(1.02);
  }

  89% {
    transform: translateY(0) scaleY(0.94);
  }

  92% {
    transform: translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mainvisual .mainvisual_container::before, .mainvisual .mainvisual_container::after, .mainvisual .inner::before {
    animation: none;
  }
}

/* ----- パンくず ----- */
.breadcrumb {
  color: var(--gray-color);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.breadcrumb_list li::after {
  color: var(--main-color);
}

/* ----- ページ内リンク：白いピル（ミントの枠）、右に緑の丸い下向きの矢印（TOP のボタンと同じ形） ----- */
.page_links ul {
  gap: 12px;
}

.twoLinks li {
  width: calc(50% - 6px);
}

.threeLinks li {
  width: calc((100% - 24px) / 3);
}

.page_links a {
  position: relative;
  min-height: 56px;
  padding: 10px 52px;
  background: #ffffff;
  border: 2px solid var(--main-color);
  border-radius: 28px;
  font-weight: 700;
  color: var(--main-deep);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  /* 2行になるときは行の長さをそろえ、文節で折り返す */
  text-wrap: balance;
  word-break: auto-phrase;
}

.page_links a::after {
  content: "\f078";
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding-top: 1px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0;
  transform: translateY(-50%);
}

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

/* ----- 本文の折り返し：英単語の途中では折り返さない。長い URL などがはみ出すときだけ途中で折る ----- */
.text {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 本文の中の文字のリンクは、下線でリンクだと分かるように */
.text :is(p, td, th) a:not([class]) {
  color: var(--main-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text :is(p, td, th) a:not([class]) + a:not([class]) {
  margin-left: 0.5em;
}


/* ----- 見出し（本文の中だけ。h2〜h5） ----- */
/* h2 は、医師紹介（.doctor_box と「準備中」）・医院案内（概要の section.clinic、院内・設備の section.facilities）・診療案内の扉ページ（.custom_post_item）の h2 も同じ見た目にする（どれも .text の外にあるため） */
.text :is(h2, h3, h4, h5) {
  text-wrap: balance;
}

/* 見出し・アコーディオンの題・表の見出しは、文節の切れ目で折り返す（Chrome・Edge だけ。Safari は要る所に <br class="sp">） */
.text :is(h2, h3, h4, h5), .accordion > dl > dt > div, .text th {
  word-break: auto-phrase;
}

/* h2：左にロゴのマーク。下にミントの線、その左端に緑とオレンジの短い線（ロゴの2色） */
:is(.text h2:not([class]), .doctor_box > h2, main section > .inner > h2:not([class]), .custom_post_item > h2) {
  margin-bottom: 32px;
  padding: 0 0 16px 58px;
  background: none;
  border-bottom: 2px solid var(--line-mint);
  font-weight: 500;
  color: var(--ink-color);
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

:is(.text h2:not([class]), .doctor_box > h2, main section > .inner > h2:not([class]), .custom_post_item > h2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 43px;
  background: url(../images/front/mark@2x.png) center / contain no-repeat;
}

:is(.text h2:not([class]), .doctor_box > h2, main section > .inner > h2:not([class]), .custom_post_item > h2)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--main-color) 0 70px, transparent 70px 76px, var(--sub-color) 76px 100px);
}

/* h3：ミントの角丸の帯。左に緑の輪（TOP のバッジの丸と同じ形） */
.text h3:not([class]):not(.accordion h3) {
  padding: 13px 24px 13px 50px;
  background: var(--bg-mint);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: var(--main-dark);
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.text h3:not([class]):not(.accordion h3)::before {
  top: 21px;
  left: 20px;
  z-index: auto;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 4px solid var(--main-color);
  border-radius: 50%;
  transform: none;
}

/* h4：左にオレンジの丸、下にミントの点線（アコーディオンの中の h3 も同じ見た目。dt が見出しタグではないので、h2 の下は h3 にして順番を飛ばさない） */
:is(.text h4:not([class]), .accordion > dl > dd h3:not([class])) {
  width: auto;
  padding: 0 0 10px 26px;
  background: none;
  border: none;
  border-bottom: 2px dotted var(--line-mint);
  font-weight: 700;
  color: var(--ink-color);
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

:is(.text h4:not([class]), .accordion > dl > dd h3:not([class]))::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  z-index: auto;
  width: 10px;
  height: 10px;
  background: var(--sub-color);
  border-radius: 50%;
  transform: none;
}

/* h5：緑の文字 */
.text h5:not([class]) {
  font-weight: 700;
  color: var(--main-dark);
  font-size: 17px;
  letter-spacing: 0.05em;
}

/* クラス付きの見出し（layout_title・flow_title など）は、それぞれの部品の見た目のまま。テンプレの h3::before の面も出さない */
.text h3[class]::before {
  display: none;
}

/* クラス付きの見出しは、テンプレの h3〜h5 の幅（fit-content）と上の余白も打ち消す */
.text :is(h3, h4, h5)[class] {
  width: auto;
  margin-top: 0;
}

/* ----- タブ：白いピル（緑の枠）。選んでいるタブは緑、パネルはミントの面 ----- */
.tab_list li {
  padding: 10px 20px;
  background: #ffffff;
  border: 2px solid var(--main-color);
  border-radius: 28px;
  font-weight: 700;
  color: var(--main-deep);
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}

.tab_list li:hover {
  background: var(--bg-mint);
}

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

.panel_wrapper {
  margin-top: 14px;
}

.panel {
  padding: 28px 30px;
  background: var(--bg-mint);
  border-radius: 16px;
}

/* ----- アコーディオン：白い角丸のボタン（ミントの枠と影）。右の＋はミントの丸の中。開いた見出しは緑 -----
   見出し h3（ミントの帯）と見分けがつくように、押せるものは白いボタンの見た目にする */
.accordion > dl > dt {
  background-color: #ffffff;
  border: 2px solid var(--line-mint);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(60, 107, 87, 0.06);
  font-weight: 700;
  color: var(--ink-color);
}

.accordion > dl > dt:hover {
  background: var(--bg-mint);
}

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

/* ＋・－の線（テンプレの dt::before・::after）のうしろに丸 */
.accordion > dl > dt > div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  z-index: -1;
  width: 32px;
  height: 32px;
  background: var(--bg-mint);
  border-radius: 50%;
  transform: translateY(-50%);
}

.accordion > dl > dt:hover > div::after {
  background: #ffffff;
}

.accordion > dl > dt.is-active > div::after {
  background: rgba(255, 255, 255, 0.25);
}

.accordion > dl > dd {
  background: #ffffff;
  border: 2px solid var(--line-mint);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

/* 最初から開いておく項目：見出し（dt）と中身（dd）の両方に class="is-active" を付ける（表示の印は JS が触らない dd に付ける） */
.accordion > dl > dd.is-active {
  display: block;
}

/* よくある質問：Q は緑の丸、A はオレンジの線の丸 */
.accordion.faq > dl > dt > div {
  padding: 15px 50px 15px 66px;
}

.accordion.faq > dl > dt > div::before {
  content: "Q";
  top: 15px;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding-bottom: 1px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

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

.accordion.faq > dl > dd > div {
  padding: 18px 25px 18px 66px;
}

.accordion.faq > dl > dd > div::before {
  content: "A";
  top: 18px;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding-bottom: 1px;
  background: #ffffff;
  border: 2px solid var(--sub-color);
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--sub-dark);
  font-size: 16px;
  line-height: 1;
}

/* ----- サブタイトルのラベル（layout01・layout02・flow 共通）：オレンジの丸いラベル（TOP の WEB予約と同じ色） ----- */
.layout01 .layout_sub_title, .layout02 .layout_sub_title, .flow_sub_title {
  padding: 3px 16px 4px;
  background: var(--sub-color);
  border-radius: 14px;
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* ----- layout01：ミントのカード。見出しは TOP の特徴と同じ、緑の文字と区切り線 ----- */
.layout01 .layout_box {
  gap: 30px;
  padding: 24px;
  background: var(--bg-mint);
  border-radius: 20px;
}

.layout01 .layout_img {
  width: 360px;
  padding: 0;
  background: none;
}

.layout01 .layout_img img {
  border-radius: 14px;
}

.layout01 .layout_title {
  padding: 0 0 12px;
  background: none;
  border-bottom: 1px solid var(--line-mint);
  font-weight: 700;
  color: var(--main-dark);
  font-size: 21px;
  line-height: 1.5;
}

/* ----- layout02：角丸の枠。左はミント ----- */
.layout02 .layout_box {
  overflow: hidden;
  border: 2px solid var(--line-mint);
  border-radius: 16px;
}

.layout02 .layout_left {
  padding: 36px 24px;
  background: var(--bg-mint);
}

.layout02 .layout_title {
  font-weight: 700;
  color: var(--main-dark);
  font-size: 19px;
}

.layout02 .layout_right {
  padding: 24px 30px;
}

/* ----- layout03：角丸のカード。見出しの帯（緑・サブカラーはオレンジ）の下はミント・淡い黄 ----- */
/* カードがちょうど3枚のときは3列で横に並べる（それ以外はテンプレどおり2列） */
.layout03:has(> .layout_box:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

.layout03 .layout_box {
  overflow: hidden;
  border-radius: 16px;
}

.layout03 .layout_title {
  padding: 12px 22px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
}

.layout03 .layout_inner {
  padding: 20px 22px;
  background: var(--bg-mint);
}

.layout03 .layout_title_subcolor + .layout_inner {
  background: var(--bg-yellow);
}

/* ----- flow：生成りの角丸。番号は緑の丸（Quicksand）、間はミントの点線 ----- */
.flow {
  padding: 36px 40px;
  background: var(--bg-color);
  border-radius: 20px;
}

.flow_number::before {
  top: 58px;
  border-right: 2px dashed #b9dccb;
}

.flow_number * {
  width: 52px;
  height: 52px;
  padding: 0 0 2px 1px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
}

.flow_title {
  padding: 10px 22px;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink-color);
  font-size: 19px;
}

/* ----- 画像：角丸 ----- */
:is(.flexbox01, .flexbox02, .flexbox03, .flexbox04, .img_center, .img_fl, .img_fr) img {
  border-radius: 16px;
}

/* img_fr・img_fl の横の文は、写真の下に回り込ませず、写真の横の1列に収める（SP は写真が上・文が下の縦並び） */
.clearfix > .text {
  display: flow-root;
}

/* ----- 枠：frame01 は生成りに内側の線、frame02 はミントの面、frame03 はミントの線 ----- */
.frame01 {
  padding: 44px 36px;
  border-radius: 20px;
}

.frame01::before {
  border-radius: 14px;
}

.frame02 {
  padding: 24px 30px;
  background: var(--bg-mint);
  border-radius: 16px;
}

.frame03 {
  padding: 24px 30px;
  border: 2px solid var(--line-mint);
  border-radius: 16px;
}

/* ----- 医師紹介：写真は角丸（TOP のごあいさつと同じ）、経歴・資格は白いカード ----- */
.doctor_img img {
  border-radius: 24px;
}

.doctor_career {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.career_box {
  padding: 30px 34px 24px;
  background: #ffffff;
  border: 2px solid var(--line-mint);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(60, 107, 87, 0.06);
}

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

/* 題：左に緑の縦線、下に細い線 */
.career_box h3 {
  margin: 0 0 12px;
  padding: 0 0 14px 18px;
  border-bottom: 1px solid var(--line-mint);
  font-weight: 700;
  color: var(--ink-color);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.career_box h3::before {
  display: block;
  top: 2px;
  left: 0;
  z-index: 0;
  width: 5px;
  height: 1.5em;
  background: var(--main-color);
  border-radius: 3px;
  transform: none;
}

/* 行：左に小さな丸の印。区切りの線は消す */
.career_box ul {
  --py: 9px;
  position: relative;
}

/* 「学会名 資格名」の間などの空白で折り返す（語の途中で切らない）。1語が行より長いときだけ途中で切る */
.career_box li {
  position: relative;
  padding: var(--py) 0 var(--py) 26px;
  border-bottom: none;
  line-height: 1.7;
}

.career_box li::before {
  content: "";
  position: absolute;
  top: calc(var(--py) + 0.85em - 4px);
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
}

/* 資格・所属学会（2つ目からの箱）は行が多いので、うすい点線で区切る */
.career_box:not(:first-child) li:not(:last-child) {
  border-bottom: 1px dashed var(--line-mint);
}

/* 経歴（1つ目の箱）は年表のように：白い丸を縦の線でつなぎ、いまの勤め先（最後の行）を強調する */
.career_box:first-child ul::before {
  content: "";
  position: absolute;
  top: calc(var(--py) + 0.85em);
  bottom: calc(var(--py) + 0.85em);
  left: 6px;
  width: 2px;
  background: var(--line-mint);
}

.career_box:first-child li::before {
  top: calc(var(--py) + 0.85em - 7px);
  left: 0;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid var(--main-color);
  box-sizing: border-box;
}

.career_box:first-child li:last-child {
  font-weight: 700;
  color: var(--main-dark);
}

.career_box:first-child li:last-child::before {
  background: var(--sub-color);
  border: none;
}

/* あいさつの最初の見出し（キャッチコピー）は上を空けない（写真の上端とそろえる） */
.doctor_text .text > :first-child {
  margin-top: 0;
}

/* ----- 医院案内：院内・設備のカードは角丸（写真の下にミントの面） ----- */
.facilities_item {
  overflow: hidden;
  background: var(--bg-mint);
  border-radius: 16px;
}

.facilities_item dt img {
  display: block;
  width: 100%;
}

.facilities_item h3 {
  font-weight: 700;
  color: var(--ink-color);
  font-size: 17px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* ページの見出し：水彩は小さく、動物は画面の端から（3/4 の大きさ） */
  .mainvisual .mainvisual_container {
    background:
      url(../images/front/mv_grass@2x.png) center bottom 34px / 1920px 46px no-repeat,
      linear-gradient(rgba(181, 212, 134, 0.8), rgba(181, 212, 134, 0.8)) center bottom 37px / 100% 3px no-repeat,
      url(../images/front/ground@2x.jpg) center bottom -10px / 1920px 50px repeat-x,
      url(../images/front/wash_yellow_cream.jpg) calc(50% + 200px) -150px / 600px 300px no-repeat,
      url(../images/front/wash_mint_cream.jpg) calc(50% - 220px) 40px / 500px 250px no-repeat,
      var(--bg-color);
  }

  .mainvisual .inner {
    padding: 36px 20px 76px;
  }

  .main_headline {
    font-size: 26px;
  }

  .main_headline::before {
    width: 42px;
    height: 43px;
    margin-bottom: 6px;
  }

  .main_headline_en {
    font-size: 15px;
  }

  .mainvisual .mainvisual_container::before {
    right: 22px;
    left: auto;
    width: 51px;
    height: 72px;
  }

  .mainvisual .mainvisual_container::after {
    right: 84px;
    left: auto;
    width: 30px;
    height: 40px;
  }

  .mainvisual .inner::before {
    left: 18px;
    width: 54px;
    height: 38px;
  }

  .twoLinks li, .threeLinks li {
    width: 100%;
  }

  .page_links a {
    min-height: 50px;
    font-size: 14px;
  }

  :is(.text h2:not([class]), .doctor_box > h2, main section > .inner > h2:not([class]), .custom_post_item > h2) {
    padding: 0 0 14px 46px;
    font-size: 22px;
  }

  :is(.text h2:not([class]), .doctor_box > h2, main section > .inner > h2:not([class]), .custom_post_item > h2)::before {
    top: 0;
    width: 34px;
    height: 35px;
  }

  .text h3:not([class]):not(.accordion h3) {
    padding: 12px 18px 12px 42px;
    font-size: 18px;
  }

  .text h3:not([class]):not(.accordion h3)::before {
    top: 19px;
    left: 16px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  :is(.text h4:not([class]), .accordion > dl > dd h3:not([class])) {
    font-size: 17px;
  }

  :is(.text h4:not([class]), .accordion > dl > dd h3:not([class]))::before {
    top: 9px;
  }

  .tab_list li {
    font-size: 15px;
  }

  .panel {
    padding: 20px 16px;
  }

  .accordion > dl > dt > div::after {
    right: 12px;
    width: 28px;
    height: 28px;
  }

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

  .accordion.faq > dl > dt > div::before, .accordion.faq > dl > dd > div::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .accordion.faq > dl > dd > div {
    padding: 18px 16px 18px 56px;
  }

  .layout01 .layout_box {
    gap: 18px;
    padding: 18px;
  }

  .layout01 .layout_img {
    width: 100%;
  }

  .layout01 .layout_title {
    font-size: 19px;
  }

  .layout03:has(> .layout_box:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }

  .layout02 .layout_left {
    padding: 24px 20px;
  }

  .layout02 .layout_right {
    padding: 20px;
  }

  .flow {
    padding: 24px 18px;
  }

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

  .flow_number * {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .flow_title {
    font-size: 17px;
  }

  .frame01 {
    padding: 32px 22px;
  }

  .frame02, .frame03 {
    padding: 20px;
  }

  .doctor_career {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }

  .career_box {
    padding: 22px 20px 16px;
  }

  .career_box h3 {
    margin: 0 0 8px;
    padding: 0 0 10px 16px;
    font-size: 17px;
  }

  .career_box ul {
    --py: 8px;
  }

  .career_box li {
    padding-left: 24px;
  }
}
