@charset "utf-8";

/* -------------
  - *メインビジュアル
  - *wrap
  - *タイトル（ブログ用も）
  - *cardList
  - *画像寄せ
  - *アンカーリンク
  - *list
  - *layout
  - *table
  - *設備紹介
  - *Q&A
  - *accordion
  - *ぱんくず
  - *お知らせページ
  - *アクセスページ
  - *医師紹介ページ
  - *医院案内ページ
  - *治療費用ページ
  - *矯正治療ページ
  - *小児歯科ページ
  - *症例ページ
  - *全体的にちゃんと治したいページ
  - *404ページ
------------- */

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

  *メインビジュアル

============================================================================*/
.mv {
  display: block;
  height: 400px;
  background: url(../images/mv_dmy.jpg) center no-repeat;
  position: relative;
  overflow: hidden;
}

.mv .inner {
  height: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  padding-top: 210px;
}

.mv_tit {
  color: #fff;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-shadow: 0 0 10px #717171;
}

@media screen and (max-width: 640px) {
  .mv {
    height: 200px;
    background-image: url(../images/mv_sp_dmy.jpg);
    background-size: cover;
  }

  .mv .inner {
    padding-top: 50px;
  }

  .mv_tit {
    font-size: 22px;
  }
}

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

  *wrap

==================================================================*/
main {
  background: url(../images/main_bg_r.png) right top no-repeat, url(../images/main_bg_l.png) left top 900px no-repeat;
}

.contents {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 20px;
  padding-bottom: 40px;
}
.contents.contents-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.contents.contents-row .breadcrumb {
  width: 100%;
}

.text:not(:last-child) {
  margin-bottom: 40px;
}
.text p {
  margin-bottom: 1em;
}
.text p:last-child {
  margin-bottom: 0;
}

.box:not(:last-child) {
  margin-bottom: 80px;
}

.inner {
  max-width: 1200px;
  margin-inline: auto;
}

@media screen and (max-width: 640px) {
  main {
    background-size: 262px auto, 300px auto;
    background-position: right top, left 400px;
  }

  .contents {
    max-width: none;
    margin-inline: 0;
    padding-inline: 5%;
  }
  .contents.contents-row {
    display: block;
  }

  .box:not(:last-child) {
    margin-bottom: 50px;
  }

  .inner {
    max-width: none;
    padding-inline: 5%;
    margin-inline: 0;
  }
}

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

  *タイトル（ブログ用も）

==================================================================*/
.tit01,
.cmn_editor h2 {
  margin-bottom: 35px;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  font-size: 150%;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  background: url(../images/tit01.png) center top no-repeat, linear-gradient(to right, #3e699d 0%, var(--main-color) 100%);
  padding: 12px 15px;
}
@media screen and (max-width: 640px) {
  .tit01,
  .cmn_editor h2 {
    background-size: 100% auto;
  }
}

.tit02,
.cmn_editor h3 {
  margin-bottom: 25px;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 138%;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.tit02::before,
.tit02::after,
.cmn_editor h3::before,
.cmn_editor h3::after {
  display: block;
  content: "";
  width: 100%;
  height: 6px;
  border-width: 1px 0;
  border-style: solid;
}
.tit02::before,
.cmn_editor h3::before {
  border-color: #a6c4d0 #fff #eddc7e;
  margin-bottom: 8px;
}
.tit02::after,
.cmn_editor h3::after {
  border-color: #eddc7e #fff #a6c4d0;
  margin-top: 8px;
}

.tit03,
.cmn_editor h4 {
  margin-bottom: 20px;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 125%;
  letter-spacing: 0.1em;
  line-height: 1.7;
  padding-left: 1em;
  position: relative;
  z-index: 0;
}
.tit03::after,
.cmn_editor h4::after {
  display: block;
  content: "";
  width: 1.7em;
  aspect-ratio: 1;
  background: url(../images/tit03.png) center/100% auto no-repeat;
  opacity: 0.5;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.tit04,
.cmn_editor h5 {
  width: fit-content;
  margin-bottom: 15px;
  color: #674632;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 113%;
  line-height: 1.7;
  border-bottom: 1px solid #d0c8bd;
}

.tit05,
.cmn_editor h6 {
  margin-bottom: 15px;
  font-weight: bold;
}

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

  *cardList

==================================================================*/
.cardList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.cardList > * {
  text-align: center;
}

.cardList img {
  width: auto;
  height: 50px;
}

.cardList_visa img {
  height: 30px;
}

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

  *画像寄せ
  共通CSSなので使っていないものも消さずに残してください

==================================================================*/
.img_fl,
.img_fr {
  max-width: 300px;
  display: block;
  text-align: center;
  margin-bottom: 1em;
  position: relative;
}
.img_fl {
  float: left;
  margin-right: 30px;
}
.img_fr {
  float: right;
  margin-left: 30px;
}

.img_center {
  max-width: 500px;
  margin: 0 auto;
}

.under_img_top {
  max-width: 640px;
  margin: 0 auto 25px;
}

@media screen and (max-width: 640px) {
  .img_fl,
  .img_fr {
    float: none;
    max-width: none;
    margin: 0 0 1em 0;
  }
}

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

  *アンカーリンク
  共通CSSなので使っていないものも消さずに残してください

==================================================================*/
/* 共通CSS */
[class^="ank0"] {
  display: flex;
  flex-wrap: wrap;
}
[class^="ank0"] li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 10px 20px;
  border: 1px solid var(--main-color);
  border-radius: 30px;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 94%;
  line-height: 1.7;
  color: var(--main-color);
  text-align: center;
  position: relative;
}
[class^="ank0"] li a::after {
  display: block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f107";
  line-height: 1;
  letter-spacing: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  margin: auto;
}

/* 2列 */
.ank02 {
  gap: 10px 2%;
}
.ank02 li {
  width: 49%;
}

/* 3列 */
.ank03 {
  gap: 10px 2%;
}
.ank03 li {
  width: 32%;
}

/* 4列 */
.ank04 {
  gap: 10px 1%;
}
.ank04 li {
  width: 24%;
}

@media (hover: hover) {
  [class^="ank0"] li a {
    transition: 0.2s ease-in-out;
  }
  [class^="ank0"] li a:hover {
    background-color: var(--main-color);
    color: #fff;
  }
}

@media screen and (max-width: 640px) {
  .ank02,
  .ank03,
  .ank04 {
    flex-flow: column;
  }
  .ank02 li,
  .ank03 li,
  .ank04 li {
    width: 100%;
  }
}

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

  *list
  共通CSSなので使っていないものも消さずに残してください

==================================================================*/
.list01:not(:last-child),
.list02:not(:last-child),
.list03:not(:last-child),
.list04:not(:last-child),
.list05:not(:last-child),
.list06:not(:last-child),
.list07:not(:last-child),
.list08:not(:last-child),
.list08-box:not(:last-child),
.list09:not(:last-child),
.list10:not(:last-child),
.list11:not(:last-child),
.list12:not(:last-child),
.list13:not(:last-child),
.list14:not(:last-child) {
  margin-bottom: 1em;
}

/* 余白のみ */
.list01 li:not(:last-child) {
  margin-bottom: 10px;
}

/* 下線 */
.list02 li {
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--border-color);
}
.list02 li:not(:last-child) {
  margin-bottom: 5px;
}

/* まる */
.list03 li {
  position: relative;
  padding-left: 15px;
  line-height: 2;
}
.list03 li:not(:last-child) {
  margin-bottom: 5px;
}
.list03 li::before {
  display: block;
  position: absolute;
  top: calc((2em - 5px) / 2);
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--main-color);
  border-radius: 50%;
  content: "";
}

/* 矢印 */
.list04 li {
  position: relative;
  padding-left: 16px;
  line-height: 2;
}
.list04 li:not(:last-child) {
  margin-bottom: 5px;
}
.list04 li::before {
  display: block;
  content: "";
  width: 6px;
  height: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--main-color);
  position: absolute;
  top: calc((2em - 10px) / 2);
  left: 0;
}

/* 矢印2 */
.list05 li {
  position: relative;
  padding-left: 16px;
  line-height: 2;
}
.list05 li:not(:last-child) {
  margin-bottom: 5px;
}
.list05 li:before {
  content: "";
  height: 6px;
  width: 6px;
  transform: rotate(45deg);
  background-color: transparent;
  border-width: 1px 1px 0 0;
  border-color: var(--main-color);
  border-style: solid;
  position: absolute;
  top: calc((2em - 8px) / 2);
  left: 0;
}

/* まる & 背景 */
.list06 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  padding: 30px;
  background-color: var(--bg-color);
}
.list06 li {
  position: relative;
  padding-left: 15px;
  line-height: 2;
}
.list06 li::before {
  display: block;
  position: absolute;
  top: calc((2em - 5px) / 2);
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--main-color);
  border-radius: 50%;
  content: "";
}

/* まる & 枠 */
.list07 {
  border: 2px solid var(--border-color);
  background: #fff;
  padding: 30px;
}
.list07 li {
  position: relative;
  padding-left: 15px;
  line-height: 2;
}
.list07 li:not(:last-child) {
  margin-bottom: 5px;
}
.list07 li::before {
  display: block;
  position: absolute;
  top: calc((2em - 5px) / 2);
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--main-color);
  border-radius: 50%;
  content: "";
}

/* チェック */
.list08 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  padding: 30px;
  background-color: var(--bg-color);
}
.list08 li {
  position: relative;
  margin-left: 28px;
  border-bottom: 1px dotted var(--border-color);
}
.list08 li:before {
  display: block;
  font-family: "Font Awesome 6 Free";
  font-size: 18px;
  font-weight: 900;
  content: "\f00c";
  color: var(--main-color);
  letter-spacing: 0;
  position: absolute;
  top: -2px;
  left: -28px;
}

/* チェック装飾囲み */
.list08-box {
  position: relative;
  padding: 30px;
  background: var(--bg-color);
}
.list08-box .list08 {
  background-color: #fff;
}
.list08-box::before {
  position: absolute;
  width: 65px;
  height: 50px;
  top: -5px;
  left: -5px;
  margin: auto;
  clip-path: polygon(0 0, 0 85%, 100% 0);
  background-color: var(--main-color);
  z-index: 0;
  content: "";
}
.list08-box::after {
  position: absolute;
  width: 65px;
  height: 50px;
  bottom: -5px;
  right: -5px;
  margin: auto;
  clip-path: polygon(0 100%, 100% 100%, 100% 15%);
  background-color: var(--main-color);
  z-index: 0;
  content: "";
}

/* 点線 & 横並び */
.list09 {
  padding: 30px;
  background-color: var(--bg-color);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.list09 li {
  border-bottom: 1px dotted var(--border-color);
}

/* 線で囲む & 横並び */
.list10 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 5px;
}
.list10 li {
  padding: 3px 8px;
  border: 1px solid var(--border-color);
}

/* 数字＋背景色 */
.list11 {
  padding: 25px;
  background: var(--bg-color);
  counter-reset: section;
}
.list11 > li {
  padding-left: calc(1.6em + 5px);
  padding-bottom: 8px;
  border-bottom: var(--border-color) 1px solid;
  position: relative;
}
.list11 > li:not(:last-child) {
  margin-bottom: 10px;
}
.list11 > li::before {
  counter-increment: section;
  content: counter(section);
  font-size: 106%;
  font-weight: bold;
  letter-spacing: 0;
  color: var(--main-color);
  position: absolute;
  left: 5px;
  top: 0;
}

/* ●の数字＋背景色 */
.list12 {
  padding: 25px;
  background: var(--bg-color);
  counter-reset: section;
}
.list12 > li {
  padding-left: calc(1.6em + 15px);
  padding-bottom: 8px;
  border-bottom: var(--border-color) 1px solid;
  position: relative;
}
.list12 > li:not(:last-child) {
  margin-bottom: 10px;
}
.list12 > li::before {
  display: flex;
  flex-flow: column;
  justify-content: center;
  counter-increment: section;
  content: counter(section);
  width: 1.6em;
  height: 1.6em;
  font-size: 106%;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  background-color: var(--main-color);
  border-radius: 50%;
  position: absolute;
  left: 5px;
  top: 0;
}

/* 数字の右側に）＋背景色 */
.list13 {
  padding: 25px;
  background: var(--bg-color);
  counter-reset: section;
}
.list13 > li {
  padding-left: calc(2.4em + 5px);
  padding-bottom: 8px;
  border-bottom: var(--border-color) 1px solid;
  position: relative;
}
.list13 > li:not(:last-child) {
  margin-bottom: 10px;
}
.list13 > li::before {
  counter-increment: section;
  content: counter(section) " )";
  font-size: 106%;
  font-weight: bold;
  letter-spacing: 0;
  color: var(--main-color);
  position: absolute;
  left: 5px;
  top: 0;
}

/* 米印 */
.list14 > * {
  color: #888;
  font-size: 95%;
  padding-left: 1em;
  text-indent: -1em;
}
.list14 > *:not(:last-child) {
  margin-bottom: 5px;
}
.list14 > *::before {
  content: "※";
}

@media screen and (max-width: 640px) {
  .list06,
  .list07,
  .list08,
  .list08-box,
  .list09,
  .list11,
  .list12,
  .list13 {
    padding: 20px;
  }
}

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

  *layout
  共通CSSなので使っていないものも消さずに残してください

==================================================================*/
/* --------------layout共通タイトル-------------- */
.layout_tit {
  font-size: 125%;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.8;
}
.layout_tit:not(:last-child) {
  margin-bottom: 15px;
}
.layout_tit em,
.layout_tit span {
  margin-right: 10px;
  color: var(--main-color);
  font-family: "josefin-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 170%;
  line-height: 1;
}

/* layout小タイトル */
.layout_tit_02 {
  color: #674632;
  font-size: 113%;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.layout_tit_02:not(:last-child) {
  margin-bottom: 15px;
}

.layout01:not(:last-child),
.layout02:not(:last-child),
.layout03:not(:last-child),
.layout04:not(:last-child),
.layout05:not(:last-child),
.layout06:not(:last-child),
.layout07:not(:last-child),
.layout08:not(:last-child),
.layout09:not(:last-child),
.layout10:not(:last-child),
.layout11:not(:last-child),
.layout12:not(:last-child),
.layout13:not(:last-child),
.layout14:not(:last-child) {
  margin-bottom: 1em;
}

/* 左にタイトル、右に文章 */
.layout01 {
  position: relative;
}
.layout01::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
  content: "";
}
.layout01 .layout01_box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: 5px 0;
}
.layout01 .layout01_box::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
  content: "";
}
.layout01 .layout01_title {
  width: 30%;
  background-color: var(--bg-color);
  text-align: center;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 20px;
}
.layout01 .layout01_title.layout_tit,
.layout01 .layout01_title .layout_tit {
  margin-bottom: 0;
}
.layout01 .layout01_title.layout_tit em,
.layout01 .layout01_title .layout_tit em {
  display: block;
  margin-right: 0;
}
.layout01 .layout01_text {
  width: 70%;
  padding: 20px;
  background: #fff;
}

/* 2列 */
.layout02 {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 2%;
}
.layout02 .layout02_box {
  width: 49%;
  padding: 30px;
  background-color: var(--bg-color);
}

/* 画像が左、右にタイトル、タイトル下に文章 */
.layout03 .layout03_box {
  display: flex;
  background-color: var(--bg-color);
  padding: 2%;
}
.layout03 .layout03_box:not(:last-child) {
  margin-bottom: 20px;
}
.layout03 .layout03_title {
  width: 27%;
  padding: 2%;
  background-color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
}
.layout03 .layout03_text {
  width: 73%;
  padding: 1% 3%;
}

/* 画像が左、右にタイトル、タイトル下に文章、タイトルと文章のエリアは背景色が別の色 */
.layout04 .layout04_box {
  display: flex;
  background-color: var(--bg-color);
  padding: 2%;
}
.layout04 .layout04_box:not(:last-child) {
  margin-bottom: 20px;
}
.layout04 .layout04_title {
  width: 27%;
  padding-right: 2%;
  display: flex;
  align-items: center;
}
.layout04 .layout04_text {
  width: 73%;
  padding: 3%;
  background-color: #fff;
}

/* 3列に区切られたレイアウト。画像が左、画像の下にタイトル、右に文章 */
.layout05 .layout05_box {
  display: flex;
  background-color: var(--bg-color);
  padding: 2%;
}
.layout05 .layout05_box:not(:last-child) {
  margin-bottom: 20px;
}
.layout05 .layout05_title {
  padding: 2%;
  width: 25%;
  background-color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}
.layout05 .layout05_title img {
  padding-bottom: 10px;
  display: block;
}
.layout05 .layout05_text {
  padding: 1% 3%;
  width: 40%;
}
.layout05 .layout05_text:last-child {
  border-left: 1px solid var(--border-color);
}

/* 3列に区切られたレイアウト。左がタイトル、真ん中と右に文章 */
.layout06 .layout06_box [class^="list0"] {
  padding: 0;
  background: none;
}
.layout06 .layout06_box {
  display: flex;
  position: relative;
}
.layout06 .layout06_box:not(:last-child) {
  padding-bottom: 5px;
}
.layout06 .layout06_box::before,
.layout06 .layout06_box:last-child::after {
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
  content: "";
}
.layout06 .layout06_box::before {
  top: -3px;
}
.layout06 .layout06_box:last-child::after {
  bottom: -3px;
}
.layout06 .layout06_title {
  width: 30%;
  background-color: var(--bg-color);
  text-align: center;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 20px;
}
.layout06 .layout06_title.layout_tit,
.layout06 .layout06_title .layout_tit {
  margin-bottom: 0;
}
.layout06 .layout06_title.layout_tit em,
.layout06 .layout06_title .layout_tit em {
  display: block;
  margin-right: 0;
}
.layout06 .layout06_text {
  width: 35%;
  padding: 2% 3%;
  background: #fff;
}
.layout06 .layout06_text:last-child {
  border-left: 1px solid var(--border-color);
}

/* 3列 */
.layout07 {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 20px 2%;
}
.layout07 .layout07_box {
  width: 32%;
  padding: 3%;
  background-color: var(--bg-color);
}
.layout07 .layout07_box .layout07_title {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

/* 下矢印付き */
.layout08 .layout08_box {
  position: relative;
  padding: 3%;
  background-color: var(--bg-color);
}
.layout08 .layout08_box:not(:last-child) {
  margin-bottom: 25px;
}
.layout08 .layout08_box:not(:last-child)::before {
  position: absolute;
  right: 0px;
  left: 0;
  height: 7px;
  width: 7px;
  transform: rotate(135deg);
  background-color: transparent;
  border-top: 2px solid var(--main-color);
  border-right: 2px solid var(--main-color);
  content: "";
  bottom: -16px;
  margin: auto;
}
.layout08 .layout08_box .layout08_title {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

/* 画像が左、画像の下にタイトル、右に文章 */
.layout09 .layout09_box {
  display: flex;
  background: var(--bg-color);
  padding: 2%;
}
.layout09 .layout09_box:not(:last-child) {
  margin-bottom: 20px;
}
.layout09 .layout09_title {
  padding: 2%;
  width: 27%;
  background-color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}
.layout09 .layout09_title img {
  padding-bottom: 10px;
  display: block;
}
.layout09 .layout09_text {
  padding: 1% 3%;
  width: 73%;
}

/* 流れ */
.layout10 .flow_box {
  position: relative;
  display: flex;
  padding: 30px;
  background: var(--bg-color);
}
.layout10 .flow_box:nth-child(even) {
  background: #f8f7f4;
}
.layout10 .flow_box::before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--sky-color);
  position: absolute;
  top: 0;
  left: 58px;
}
.layout10 .flow_box:first-child::before {
  top: 32px;
  height: calc(100% - 32px);
}
.layout10 .flow_box:last-child::before {
  height: 32px;
}
.layout10 .flow_box .number {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-bottom: 0;
  margin-right: 4%;
  background: var(--main-color);
  border-radius: 50%;
  line-height: 1;
  color: #fff;
  font-size: 28px;
  font-family: "josefin-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.layout10 .flow_box .layout10_box {
  width: 100%;
}

/* 症例 */
.layout11_wrap {
  display: grid;
  grid-template-columns: (2 1fr);
  grid-template-columns: repeat(2, 1fr);
  gap: 2%;
}
.layout11 {
  position: relative;
}
.layout11_box {
  padding: 8px;
  background: var(--bg-color);
}
[class^="layout11_image"] img {
  width: 100%;
}
[class^="layout11_text"] {
  margin-top: 8px;
}
[class^="layout11_text"] dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
[class^="layout11_text"] dl dt,
[class^="layout11_text"] dl dd,
[class^="layout11_text"] .desc {
  border: 1px solid var(--main-color);
}
[class^="layout11_text"] dl dt,
[class^="layout11_text"] dl dd {
  margin-bottom: 2px;
  padding: 12px;
}
[class^="layout11_text"] dl dt {
  background: var(--main-color);
  color: #fff;
  font-weight: bold;
  text-align: center;
  width: 20%;
}
[class^="layout11_text"] dl dd {
  background: #fff;
  width: 80%;
}
[class^="layout11_text"] .desc {
  background: #fff;
  padding: 16px;
}

/* 症例 ver.2 */
.layout11_image02 {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.layout11_image02 span {
  display: block;
  width: 47%;
}
.layout11_image02 span:last-child::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: auto;
  display: flex;
  align-items: center;
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  color: var(--main-color);
  line-height: 1;
}
.layout11_text02 dl dt {
  margin-left: 2px;
  width: 15%;
}
.layout11_text02 dl dt:nth-of-type(odd) {
  margin-left: 0;
}
.layout11_text02 dl dd {
  width: calc(35% - 1px);
}

/* 注意書き */
.layout12 {
  background: var(--bg-color);
  display: block;
  position: relative;
  padding: 25px;
}
.layout12 .layout12_mark {
  width: 55px;
  height: 55px;
  background: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  position: absolute;
  top: -15px;
  left: -5px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}
.layout12 .layout12_mark::before {
  position: absolute;
  width: 15px;
  height: 20px;
  bottom: -3px;
  right: -3px;
  margin: auto;
  clip-path: polygon(100% 85%, 40% 0, 0 53%);
  background-color: var(--main-color);
  z-index: 1;
  content: "";
}
.layout12 .layout_tit {
  padding-left: 40px;
}

.layout13 {
  padding: 30px;
  background: var(--bg-color);
}
.layout13 .layout02_box {
  background: #fff;
}

.layout14 {
  padding: 30px;
  border: 1px solid var(--border-color);
}

@media screen and (max-width: 640px) {
  /* 左にタイトル、右に文章 */
  .layout01 .layout01_box {
    display: block;
  }

  .layout01 .layout01_title {
    display: block;
    width: 100%;
    padding-block: 10px;
  }

  .layout01 .layout01_text {
    width: 100%;
  }

  /* 2列 */
  .layout02 {
    display: block;
  }

  .layout02 .layout02_box {
    width: 100%;
    padding: 20px;
  }

  .layout02 .layout02_box:not(:last-child) {
    margin-bottom: 20px;
  }

  .layout02 .layout02_box img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  /* 画像が左、右にタイトル、タイトル下に文章 */
  .layout03 .layout03_box {
    display: block;
    padding-bottom: 20px;
  }

  .layout03 .layout03_title {
    width: 100%;
  }

  .layout03 .layout03_title img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .layout03 .layout03_text {
    width: 100%;
    padding: 20px 3% 0;
  }

  /* 画像が左、右にタイトル、タイトル下に文章、タイトルと文章のエリアは背景色が別の色 */
  .layout04 .layout04_box {
    display: block;
  }

  .layout04 .layout04_title {
    width: 100%;
    padding: 2%;
  }

  .layout04 .layout04_title img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .layout04 .layout04_text {
    width: 100%;
  }

  /* 3列に区切られたレイアウト。画像が左、画像の下にタイトル、右に文章 */
  .layout05 .layout05_box {
    display: block;
    padding-bottom: 20px;
  }

  .layout05 .layout05_title {
    width: 100%;
    display: block;
  }

  .layout05 .layout05_title img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .layout05 .layout05_text {
    width: 100%;
    padding-bottom: 0;
    padding-top: 0;
    margin-top: 20px;
  }

  .layout05 .layout05_text:last-child {
    border-left: none;
  }

  /* 3列に区切られたレイアウト。左がタイトル、真ん中と右に文章 */
  .layout06 .layout06_box {
    display: block;
  }

  .layout06 .layout06_title {
    display: block;
    width: 100%;
  }

  .layout06 .layout06_title img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .layout06 .layout06_text {
    width: 100%;
    padding-bottom: 0;
    padding-top: 0;
    margin-top: 20px;
  }

  .layout06 .layout06_text:last-child {
    border: none;
    padding-bottom: 20px;
  }

  /* 3列 */
  .layout07 {
    display: block;
  }

  .layout07 .layout07_box {
    width: 100%;
    padding: 20px;
  }

  .layout07 .layout07_box:not(:last-child) {
    margin-bottom: 20px;
  }

  /* 下矢印付き */
  .layout08 .layout08_box {
    padding: 20px;
  }

  /* 画像が左、画像の下にタイトル、右に文章 */
  .layout09 .layout09_box {
    display: block;
    padding-bottom: 20px;
  }

  .layout09 .layout09_title {
    width: 100%;
    display: block;
  }

  .layout09 .layout09_title img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .layout09 .layout09_text {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 20px;
  }

  /* 流れ */
  .layout10 .flow_box {
    padding: 20px;
  }

  .layout10 .flow_box::before {
    display: none;
  }

  .layout10 .flow_box .number {
    width: 42px;
    height: 42px;
    margin-right: 20px;
    font-size: 20px;
  }

  /* 症例 */
  [class^="layout11_text"] dl dt,
  [class^="layout11_text"] dl dd {
    margin-left: 0;
    width: 100%;
  }

  [class^="layout11_text"] dl dt {
    margin-bottom: 0;
  }

  [class^="layout11_text"] dl dd {
    margin-bottom: 10px;
  }

  .layout11_wrap {
    display: initial;
  }
  .layout11_image02 {
    flex-wrap: wrap;
  }

  .layout11_image02 span {
    width: 100%;
  }

  .layout11_image02 span:last-child {
    margin-top: 40px;
  }

  .layout11_image02 span:last-child::before {
    top: -32px;
    bottom: auto;
    left: 0;
    right: 0;
    justify-content: center;
    content: "\f078";
  }

  .layout13,
  .layout14 {
    padding: 20px;
  }
}

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

  *table
  共通CSSなので使っていないものも消さずに残してください

==================================================================*/
/* tb01 */
.tb01 {
  width: 100%;
}
.tb01 th,
.tb01 td {
  border-bottom: 1px solid var(--border-color);
  padding: 5px 0;
}
.tb01 th:not(:first-child),
.tb01 td:not(:first-child) {
  padding-left: 1em;
}
.tb01 th {
  font-weight: bold;
  width: 26%;
}

/* tb02 */
.tb02 {
  width: 100%;
}
.tb02 td,
.tb02 th {
  padding: 10px;
  border: 1px solid var(--border-color);
}
.tb02 thead td,
.tb02 thead th {
  background: var(--main-color);
  color: #fff;
  text-align: center;
}
.tb02 th {
  font-weight: bold;
  background-color: var(--bg-color);
}
.tb02 th span {
  font-size: 13px;
}
.tb02 td {
  background-color: #ffffff;
}

@media screen and (max-width: 640px) {
  /* tb02 縦積み */
  .tb02.ver {
    border-top: 1px solid var(--border-color);
  }
  .tb02.ver th,
  .tb02.ver td {
    display: block;
    width: 100%;
    border-top: none;
  }
  .tb02.ver thead {
    display: none;
  }
  .tb02.ver th {
    background: var(--main-color);
    color: #fff;
    text-align: center;
  }
  .tb02.ver td:last-child {
    background-color: var(--bg-color);
  }

  /* 横スクロール */
  .scroll_tb {
    overflow-x: scroll;
  }
  .scroll_tb table {
    width: 816px;
  }
  /* .scroll_tb table th {
    position: sticky;
    left: 0;
  }
  .scroll_tb table th::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: 1px solid var(--border-color);
  } */
}

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

  *設備紹介

==================================================================*/
/* 共通CSS */
[class^="facilities_equip"] dl {
  background-color: var(--bg-color);
}
[class^="facilities_equip"] dd {
  padding: 20px;
}
[class^="facilities_equip"] .title {
  text-align: center;
  font-size: 18px;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.7;
}
[class^="facilities_equip"] .title:not(:last-child) {
  margin-bottom: 15px;
}

/* 2列　上部ライン装飾 */
.facilities_equip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px 3%;
}
.facilities_equip dl {
  width: 42%;
  padding: 30px;
  border-top: 2px solid var(--main-color);
}
.facilities_equip dd {
  padding: 0;
}
.facilities_equip_img {
  text-align: center;
  /*margin-bottom: 15px;*/
}

/* 3列 */
.facilities_equip2 {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 2%;
}
.facilities_equip2 dl {
  width: 32%;
}

/* 2列 */
.facilities_equip3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 4%;
}
.facilities_equip3 dl {
  width: 48%;
}

@media screen and (max-width: 640px) {
  /* 2列　上部ライン装飾 */
  .facilities_equip {
    display: block;
  }
  .facilities_equip dl {
    width: 100%;
    padding: 20px;
  }
  .facilities_equip dl:not(:last-child) {
    margin-bottom: 20px;
  }

  /* 3列・2列 */
  .facilities_equip2,
  .facilities_equip3 {
    display: block;
    width: 90%;
    margin-inline: auto;
  }
  .facilities_equip2 dl,
  .facilities_equip3 dl {
    width: 100%;
  }
  .facilities_equip2 dl:not(:last-child),
  .facilities_equip3 dl:not(:last-child) {
    margin-bottom: 20px;
  }
}

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

  *Q&A

==================================================================*/
.qa > * {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}
.qa > *:not(:last-child) {
  margin-bottom: 25px;
}
.qa_tit,
.qa_text {
  padding-left: 40px;
  position: relative;
}
.qa_tit:before,
.qa_text:before {
  font-family: "josefin-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
}
.qa_tit {
  margin-bottom: 15px;
  font-weight: bold;
}
.qa_tit:before {
  color: var(--main-color);
  content: "Q.";
}
.qa_text:before {
  color: var(--sub-color);
  content: "A.";
}

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

  *accordion

==================================================================*/
.accordion_tit {
  background-color: var(--bg-color);
  padding: 15px 50px 15px 20px;
  cursor: pointer;
  position: relative;
  margin-bottom: 15px;
  transition: background-color 0.3s, color 0.2s;
}
.accordion_tit::before,
.accordion_tit::after {
  display: block;
  content: "";
  width: 16px;
  height: 2px;
  background: var(--main-color);
  position: absolute;
  right: 20px;
  top: 50%;
  transition: transform 0.3s, opacity 0.3s;
}
.accordion_tit::before {
  transform: rotate(90deg);
}
@media (hover: hover) {
  .accordion_tit {
    transition: background-color 0.3s;
  }
  .accordion_tit:hover {
    background-color: #f8f7f4;
  }
}
.accordion_tit.open {
  color: #fff;
  background: var(--main-color);
}
.accordion_tit.open::before {
  opacity: 0;
  transform: rotate(180deg);
}
.accordion_tit.open::after {
  background: #fff;
}
.accordion_text {
  display: none;
  padding: 0 20px 30px;
}

/* Q&A */
.accordion.accordion-qa .accordion_tit,
.accordion.accordion-qa .accordion_text {
  padding-left: 55px;
  position: relative;
}
.accordion.accordion-qa .accordion_tit > *:before,
.accordion.accordion-qa .accordion_text:before {
  font-family: "josefin-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 175%;
  line-height: 1;
  position: absolute;
  left: 20px;
}
.accordion.accordion-qa .accordion_tit > *:before {
  color: var(--main-color);
  content: "Q.";
  top: 15px;
  transition: color 0.2s;
}
.accordion.accordion-qa .accordion_tit.open > *:before {
  color: #fff;
}
.accordion.accordion-qa .accordion_text:before {
  color: var(--sub-color);
  content: "A.";
  top: 0;
}

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

  *ぱんくず

==================================================================*/
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  position: relative;
  margin-bottom: 30px;
  font-size: 14px;
}
.breadcrumb i {
  margin-right: 5px;
}
.breadcrumb li:after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0;
  content: "\f054";
  padding-left: 5px;
  padding-right: 5px;
}
.breadcrumb li:last-child:after {
  content: "";
}

@media (hover: hover) {
  .breadcrumb a:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 640px) {
  .breadcrumb {
    margin-bottom: 40px;
  }
}

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

  *お知らせページ

==================================================================*/
.news_text p {
  margin-bottom: 1em;
}
.news_text p:last-child {
  margin-bottom: 0;
}
.news_text .news_text_list > dt {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 10px;
}
.news_text .news_text_list > dd {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}
.news_text .news_text_list > dd:not(:last-of-type) {
  margin-bottom: 30px;
}
.news_text .news_text_desc {
  margin-bottom: 20px;
}
.news_text .news_text_date {
  margin-right: 15px;
}
.news_text .news_text_desc em {
  display: inline-block;
  min-width: 75px;
  padding: 0 10px;
  font-style: normal;
  text-align: center;
}

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

  *アクセスページ

==================================================================*/
.access_img_flex {
  display: grid;
  gap: 2%;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
}
.access_img_flex img {
  width: 100%;
  aspect-ratio: 588 / 391;
  object-fit: cover;
}
.access_map {
  text-align: center;
}
.access_iframe iframe {
  width: 100%;
}
.access_add {
  margin-top: 10px;
}
.access_add i {
  color: var(--main-color);
  margin-right: 0.5em;
}
.access_info {
  border: 2px solid var(--border-color);
  background: #fff;
  padding: 30px;
  margin-top: 30px;
}
.access_info > *:not(:last-child) {
  margin-bottom: 25px;
}
.access_info i {
  color: var(--main-color);
  margin-right: 0.5em;
}
.access_info_tit {
  font-size: 18px;
  line-height: 1.7;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ルート */
.access_route {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 2%;
  counter-reset: section;
}
.access_route > * {
  width: 32%;
}
.access_route dt {
  text-align: center;
}
.access_route dd {
  margin-top: 20px;
  padding-left: 40px;
  position: relative;
}
.access_route dd::before {
  counter-increment: section;
  content: counter(section);
  width: 1.7em;
  height: 1.7em;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1;
  background: var(--main-color);
  position: absolute;
  left: 0;
  top: 0;
}

@media screen and (max-width: 640px) {
  .access_img_flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .access_iframe iframe {
    height: 300px;
  }
  .access_info {
    padding: 20px;
  }

  /* ルート */
  .access_route {
    display: block;
  }
  .access_route > * {
    width: 100%;
  }
  .access_route > *:not(:last-child) {
    margin-bottom: 30px;
  }
}

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

  *医師紹介ページ

==================================================================*/
/* .doctor_flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}
.doctor_flex .doctor_imgArea {
  width: 28%;
}
.doctor_imgArea_text {
  margin-top: 15px;
} */
.doctor_position,
.doctor_name {
  font-family: "shippori-mincho", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
}
.doctor_position {
  font-size: 125%;
  line-height: 1.7;
}
.doctor_name {
  font-size: 26px;
  line-height: 1.5;
}
/* .doctor_flex .doctor_text {
  width: 70%;
}
.doctor_text p:not(:last-child) {
  margin-bottom: 1em;
}

.doctor_carr {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 4%;
}
.doctor_carr_sec {
  width: 48%;
  padding: 30px;
  background-color: var(--bg-color);
}
.doctor_carr_sec table {
  width: 100%;
} */

@media screen and (max-width: 640px) {

.doctor_name {
  font-size: 23px;
}

  /* .doctor_flex {
    display: block;
  }
  .doctor_flex .doctor_imgArea,
  .doctor_flex .doctor_text {
    width: 100%;
  }
  .doctor_imgArea {
    text-align: center;
    margin-bottom: 20px;
  }
  .doctor_img img {
    width: 60%;
  }

  .doctor_carr {
    display: block;
  }
  .doctor_carr_sec {
    width: 100%;
    padding: 30px 20px;
  }
  .doctor_carr_sec:not(:last-child) {
    margin-bottom: 30px;
  } */
}

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

  *医院案内ページ

==================================================================*/
[class^="clinic_slider"]:not(.clinic_slider_flex) {
  max-width: 80%;
  margin: auto;
}

/* 院内スライド 共通 */
.clinic_slider_flex .slide-item {
  position: relative;
}
.clinic_slider_flex .slide-item img {
  width: 100%;
}
.clinic_slider_flex .slide_text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgb(255 255 255 / 0.8);
  padding: 10px;
  font-weight: bold;
}
.clinic_slider_flex .slick-dots {
  display: flex;
  flex-wrap: wrap;
}
.clinic_slider_flex .slick-dots li {
  position: relative;
  transition: opacity 0.3s;
  cursor: pointer;
}
.clinic_slider_flex .slick-dots li:hover {
  opacity: 0.8;
}
.clinic_slider_flex .slick-dots li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.4);
  transition: 0.3s opacity linear;
}
.clinic_slider_flex .slick-dots li.slick-active::before {
  opacity: 0;
}
.clinic_slider_flex .slick-dots li img {
  width: 100%;
}

/* 院内スライド サムネイル下 */
.clinic_slider {
  position: relative;
}
.clinic_slider :focus {
  outline: none;
}
.clinic_slider #slider {
  width: 100%;
}
.clinic_slider .clinic_slider_flex .slick-dots {
  gap: 10px 1%;
}

.is-clinic .slick-dots {
  margin-top: 20px !important;
}

.clinic_slider .clinic_slider_flex .slick-dots li {
  width: 15.8%;
}
.clinic_slider .caption {
  width: 100%;
  position: absolute;
  left: 0;
}

/* 院内スライド サムネイル横 */
.clinic_slider2 .clinic_slider_flex {
  margin-bottom: 15px;
}

.clinic_slider2 .clinic_slider_flex .slick-slider {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
}

.clinic_slider2 .clinic_slider_flex .slick-list {
  width: 83%;
}
.clinic_slider2 .clinic_slider_flex .slick-dots {
  width: 15%;
  gap: 5px 4%;
}
.clinic_slider2 .clinic_slider_flex .slick-dots li {
  width: 48%;
}

/* 医院概要 */
.clinic_sec {
  max-width: 80%;
  margin-inline: auto;
}
.clinic_sec > ul li:not(:last-child) {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}
.clinic_sec dl {
  display: flex;
  flex-wrap: wrap;
}
.clinic_sec dt {
  width: 25%;
  padding-right: 20px;
  font-weight: bold;
  color: var(--main-color);
}
.clinic_sec dd {
  width: 75%;
}
.clinic_sec dd a,
.clinic_sec dd a:hover {
  color: inherit;
}

/* 医院概要の診療時間表 */
.clinic_sec .hours {
  width: 75%;
  margin-left: auto;
  margin-top: 20px;
}

@media screen and (max-width: 640px) {
  [class^="clinic_slider"]:not(.clinic_slider_flex) {
    max-width: 100%;
  }

  /* 院内スライド サムネイル下 */
  .clinic_slider .clinic_slider_flex .slick-dots {
    gap: 5px 2.5%;
  }
  .clinic_slider .clinic_slider_flex .slick-dots li {
    width: 18%;
  }

.slick-dots {
  margin-top: 20px !important;
}

  /* 院内スライド サムネイル横 */
  .clinic_slider2 .clinic_slider_flex .slick-slider {
    display: block !important;
  }
  .clinic_slider2 .clinic_slider_flex .slick-list {
    width: 100%;
  }
  .clinic_slider2 .clinic_slider_flex .slick-dots {
    margin-top: 20px;
    width: 100%;
    gap: 5px 2.5%;
  }
  .clinic_slider2 .clinic_slider_flex .slick-dots li {
    width: 18%;
  }

  /* 医院概要 */
  .clinic_sec {
    max-width: 100%;
  }
  .clinic_sec dl {
    display: block;
  }
  .clinic_sec dt,
  .clinic_sec dd {
    width: 100%;
  }
  .clinic_sec dt {
    padding-right: 0;
    margin-bottom: 5px;
  }

  /* 医院概要の診療時間表 */
  .clinic_sec .hours {
    width: 100%;
    margin-left: 0;
  }
}

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

  *治療費用ページ

==================================================================*/
.subPage_price .tb02 td:last-child {
  text-align: center;
}

@media print, screen and (min-width: 641px) {
  .subPage_price .tb02 th {
    width: 20%;
  }

  .subPage_price .tb02 th + td {
    width: 60%;
  }

  .subPage_price .tb02 th + td + td {
    width: 20%;
  }
}

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

  *矯正治療ページ

==================================================================*/
.subPage_invisalign .tb02 tr > * {
  width: 25%;
}

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

  *小児歯科ページ

==================================================================*/
.text.pediatric-point {
  overflow: hidden;
}

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

  *症例ページ

==================================================================*/
/* リスト全体のレイアウト（PCでは2列並び） */
#engage .viCaseList {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, minmax(47%, 1fr)); */ /* 横に2つ並ぶ設定 */
  /*justify-content: center;*/
  gap: 35px 3%;
  /*margin-top: 50px;*/
}

/* BeforeとAfterを横に並べる設定 */
#engage .viCaseList ul {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48%, 1fr)); /* Before/Afterを50%ずつ */
  gap: 2%;
}

#engage .viCaseList ul li {
  background: var(--main-color);
  color: #fff;
}

#engage .viCaseList ul li p {
  color: #fff;
  padding: 5px 10px;
  text-align: center;
  position: relative;
  font-weight: bold;
}

/* Beforeラベルの横線装飾 */
#engage .viCaseList ul li p:before {
  content: "";
  width: 30px;
  height: 3px;
  background: #fff;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#engage .viCaseList ul li.before p:before {
  right: 0;
  width: 40px;
}

/* Afterラベルの矢印装飾 */
#engage .viCaseList ul li.after p:before {
  left: 0;
  content: "";
  width: 30px;
  height: 3px;
  background: #fff;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#engage .viCaseList ul li.after p:after {
  content: "";
  width: 15px;
  height: 15px;
  aspect-ratio: 0.8660254038;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%); /* 三角形の矢印 */
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 30px;
}

.layout11_text02 dl dd.cell_big {
  width: 85%;
}

@media screen and (max-width: 640px) {
  #engage .viCaseList {
    display: block; /* スマホでは1列に */
  }
  #engage .viCaseList ul li {
    margin-bottom: 30px;
  }
  .layout11_text02 dl dd.cell_big {
    width: 100%;
  }
  .layout11_wrap #engage .viCaseList ul li {
    margin-bottom: 0px;
  }
}

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

  *全体的にちゃんと治したい

==================================================================*/
/* 噛み合わせ 吹き出し */
.dc-comment {
  display: flex;
  align-items: center;
  margin: 40px 0;
}

.dc-comment img {
  width: 110px;
  height: 110px;
}

.dc-balloon-box {
  position: relative;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  width: 97%;
  padding: 1rem;
  margin-left: 3%;
  border-radius: 30px;
}

.dc-balloon-box p {
  display: inline-block;
}

.dc-balloon-box:after,
.dc-balloon-box:before {
  right: 100%;
  top: 52%;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.dc-balloon-box:after {
  border-color: rgba(255, 215, 139, 0);
  border-right-color: var(--bg-color);
  border-width: 12px;
  margin-top: -12px;
}

.dc-balloon-box:before {
  border-color: rgba(0, 0, 0, 0);
  border-right-color: var(--main-color);
  border-width: 15px;
  margin-top: -15px;
}

.dc-case_allows {
  text-align: center;
}
.dc-case_allows .allow img {
  transform: rotate(90deg);
}

.dc-case {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  align-items: center;
  gap: 1em;
}
.dc-case .l-center {
  width: 40%;
}
.dc-case .allow {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 900px) {
  .dc-comment {
    flex-direction: column;
  }
  .dc-balloon-box:after,
  .dc-balloon-box:before {
    display: none;
  }
  .dc-balloon-box {
    margin-top: 15px;
  }
  .dc-case {
    display: block;
    margin-bottom: 32px;
  }
  .dc-case > * {
    text-align: center;
  }
  .dc-case .l-center {
    width: 100%;
  }
  .dc-case .allow {
    display: block;
  }
  .dc-case .allow img {
    transform: rotate(90deg);
  }
  .dc-case .left-1 {
    padding: 5px 0;
  }
}

/* 症例比較ボックスのベース（Before/Afterの並び） */
#engage .engage_case_box {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 50px;
}

#engage .engage_case_box > div {
  width: calc(50% - 5px);
  padding: 5px;
  background: var(--main-color); /* 枠の色 */
  color: #fff;
}

#engage .engage_case_box > div p {
  padding: 15px 10px 5px;
  text-align: center;
  position: relative;
  font-weight: bold;
}

/* Before側の矢印装飾 */
#engage .engage_case_box > div.before p:before {
  content: "";
  width: 50px;
  height: 5px;
  background: #fffbf3;
  display: block;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
}

/* After側の矢印装飾 */
#engage .engage_case_box > div.after p:before {
  content: "";
  width: 40px;
  height: 5px;
  background: #fffbf3;
  display: block;
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

#engage .engage_case_box > div.after p:after {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  display: block;
  position: absolute;
  top: 50%;
  left: 35px;
  transform: translateY(-50%);
}

/* 9枚グリッドレイアウト（CSS Grid） */
#engage .nine-block-case {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "area1-A area2-A area3-A"
    "area1-B area2-B area3-B"
    "area1-C area2-C area3-C";
  gap: 1%;
}

#engage .nine-block-case .photo01 {
  grid-area: area1-A;
}
#engage .nine-block-case .photo02 {
  grid-area: area2-A;
}
#engage .nine-block-case .photo03 {
  grid-area: area3-A;
}
#engage .nine-block-case .photo04 {
  grid-area: area1-B;
}
#engage .nine-block-case .photo05 {
  grid-area: area2-B;
}
#engage .nine-block-case .photo06 {
  grid-area: area3-B;
}
#engage .nine-block-case .photo07 {
  grid-area: area1-C;
}
#engage .nine-block-case .photo08 {
  grid-area: area2-C;
}
#engage .nine-block-case .photo09 {
  grid-area: area3-C;
}

#engage .nine-block-case img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 900px) {
  #engage {
    /*padding: 30px 0;*/
  }
  #engage .viCaseList {
    display: block;
  }
  #engage .viCaseList ul li {
    margin-bottom: 30px;
  }
  #engage .engage-case-wrap .cosmetic-content {
    padding: 24px 10px;
  }
  #engage .engage_case_box {
    display: block;
    margin-bottom: 50px;
  }
  #engage .engage_case_box > div {
    width: 100%;
    margin-bottom: 10px;
  }
  #engage .engage_case_box > div p {
    width: 100%;
    padding: 15px 10px 5px;
    text-align: center;
    position: relative;
    font-weight: bold;
  }
  #engage .engage_case_box > div p:before {
    content: "";
    width: 5px;
    height: 30px;
    background: #fffbf3;
    display: block;
    position: absolute;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  #engage .engage_case_box > div.before {
    padding-bottom: 0;
    flex-direction: row-reverse;
  }
  #engage .engage_case_box > div.before p {
    padding-bottom: 30px;
  }
  #engage .engage_case_box > div.before p:before {
    bottom: 0;
    width: 7px;
    height: 30px;
    top: 80%;
    left: 49%;
  }
  #engage .engage_case_box > div.after {
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
  #engage .engage_case_box > div.after p {
    width: 100%;
    padding-top: 30px;
  }
  #engage .engage_case_box > div.after p:before {
    left: 49%;
    top: 0;
    height: 20px;
  }
  #engage .engage_case_box > div.after p:after {
    content: "";
    width: 20px;
    height: 10px;
    aspect-ratio: 1/0.8660254038;
    background: #fff;
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    display: block;
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    left: 50%;
  }

  #engage .engage_case_box > div.after p::before {
    top: 10%;
    height: 30px;
    width: 7px;
    left: 49%;
  }

  #engage .engage_case_box > div.after p::after {
  }
  #engage .engage-content-header {
    display: flex;
    align-items: center;
    gap: 0 20px;
    margin-bottom: 30px;
    position: relative;
  }
  #engage .engage-content-header h3 {
    color: #ff8881;
    font-size: 20px;
  }
  #engage .engage-content-header h3 span {
    margin-top: 10px;
    display: block;
    color: #333;
  }
  #engage .engage-content-header .age {
    position: absolute;
    top: 0;
    right: 0;
  }
  #engage .engage-price-list {
    gap: 0px;
  }
  #engage .engage-price-list h3 {
    color: #ff8881;
    font-size: 14px;
    margin-bottom: 0px;
  }
  #engage .engage-price-list .pricelistlinkbtn a {
    font-size: 14px;
    padding: 8px 10px;
    gap: 5px;
  }
  #engage .engage-price-list .pricelistlinkbtn a:before {
    content: "";
    width: 16px;
    height: 20px;
    display: block;
    background: url("/img/icon_price.png") no-repeat center center/contain;
  }
  #engage .engage-price-list .pricelist {
    width: fit-content;
  }
  #engage .engage-price-list .pricelist li {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px dotted #ccc;
    font-weight: bold;
  }
  #engage .engage-price-list .notes {
    font-size: 13px;
  }
  #engage .nine-block-case {
    margin-bottom: 1%;
  }
}

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

  *404ページ

==================================================================*/
.none_page_p {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.6;
}

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

  *お問い合わせ

==================================================================*/
/*.contact {
  width: 100%;
}
.contact th,
.contact td {
  padding: 20px;
  border: 1px solid var(--border-color);
}
.contact th {
  font-weight: bold;
  background-color: var(--bg-color);
}
.contact th .required {
  display: inline-block;
  color: #fff;
  background: #f33;
  font-size: 13px;
  line-height: 1;
  padding: 3px;
  margin-left: 5px;
}
.contact td {
  background-color: #fff;
}
.contact input{
  max-width: 400px;
  width: 100%;
  font-size: 100%;
  padding: 8px 5px;
}
.contact input[type="date"] {
  width: auto;
  padding: 6px 5px 5px;
}
.contact select {
  padding: 9px 5px!important;
}
.contact textarea {
  max-width: 400px;
  width: 100%;
}
.submit_btn{
  margin-top: 40px;
  text-align: center;
}
.submit_btn input {
  cursor: pointer;
  border: none;
  padding: 15px 20px;
  transition: 0.2s ease-in-out;
  max-width: 150px;
  width: 100%;
  font-size: 100%;
  margin: 0 10px 10px;
}
.submit_btn input:hover {
  opacity: 0.8;
}
.submit_btn input[type="reset"] {
  color: #fff;
  background: #888;
}
.submit_btn input[type="submit"] {
  color: #fff;
  background: var(--main-color);
}

@media screen and (max-width: 640px) {
  .contact th,
  .contact td {
    display: block;
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--main-color);
    padding: 10px 5%;
  }

  .contact tr:last-child td {
    border-bottom: none;
  }

  .contact input[type="date"] {
    display: block;
    margin-bottom: 10px;
  }

  .contact select {
    display: block;
    margin-bottom: 20px;
  }

  .submit_btn input {
    max-width: 110px;
  }
}*/
