/* カラー変更 */

:root {
    --content-width: 1200px;
    --main-color01: #2D4D7F;
    --main-color02: #9F8B4C;
    --sub-color: #D62F2F;
    --accent-color: #F2EFEB;
}


/* コンテンツレイアウト */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    word-break: break-all;
    border-spacing: 0;
    border-collapse: collapse;
    text-indent: initial;
    text-decoration: none;
    line-height: 1.5em;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: "Noto Sans JP", sans-serif, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "游ゴシック体", "Yu Gothic", YuGothic, Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", sans-serif;
}

main {
    padding-top: 155px;
}

@media (min-width: 1024px) and (max-width: 1360px) {
    main {
        padding-top: 210px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    main {
        padding-top: 80px;
    }
}

main:before {
    content: "";
    display: block;
    position: fixed;
    background: url(/wp-content/uploads/BG.jpg) no-repeat;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
}

.home main {
    padding-top: 0;
}

@media (max-width: 767px) {
    main {
        padding-top: 80px;
    }
}

ul {
    padding-left: 20px;
}

li::marker {
    color: var(--main-color02);
}

/*a:hover {
    opacity: 0.7;
}*/

section {
    padding: 60px 0;
}

section:first-of-type {
    padding-top: 0px;
}

@media (max-width: 767px) {
    section {
        padding: 30px 0;
    }
}

.home section:first-of-type {
    padding-top: 60px;
}

@media (max-width: 767px) {
    .home section:first-of-type {
        padding-top: 30px;
    }
}

.container {
    margin: 0 auto;
    max-width: var(--content-width);
}

.home .container {
    max-width: 1400px;
}

@media (max-width: 1400px) {
    .home .container {
        padding-right: calc(30px / 2);
        padding-left: calc(30px / 2);
        margin: 0 auto;
        max-width: var(--content-width);
    }

    .home .container:first-child {
        margin-top: 0;
    }
}

@media (max-width: 1200px) {
    .container {
        padding-right: calc(30px / 2);
        padding-left: calc(30px / 2);
        margin: 0 auto;
        max-width: var(--content-width);
    }

    .container:first-child {
        margin-top: 0;
    }
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .row {
        display: block;
        margin-top: 0;
    }

    .row.sp-2row {
        display: flex;
    }
}

.container>.row:last-of-type {
    margin-bottom: 60px;
}

.row.reverse {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.row .span_1 {
    width: calc(100% / 12 * 1);
}

.row .span_2 {
    width: calc(100% / 12 * 2);
}

.row .span_3 {
    width: calc(100% / 12 * 3);
}

.row .span_4 {
    width: calc(100% / 12 * 4);
}

.row .span_5 {
    width: calc(100% / 12 * 5);
}

.row .span_6 {
    width: calc(100% / 12 * 6);
}

.row .span_7 {
    width: calc(100% / 12 * 7);
}

.row .span_8 {
    width: calc(100% / 12 * 8);
}

.row .span_9 {
    width: calc(100% / 12 * 9);
}

.row .span_10 {
    width: calc(100% / 12 * 10);
}

.row .span_11 {
    width: calc(100% / 12 * 11);
}

.row .span_12 {
    width: 100%;
}

.row>.col {
    margin-top: 30px;
    margin-left: 0;
    padding-right: calc(30px / 2);
    padding-left: calc(30px / 2);
}

@media (max-width: 767px) {
    .row>.col {
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        padding-right: calc(30px / 2);
        padding-left: calc(30px / 2);
        width: 100%;
    }

    .row.sp-2row>.col {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .row .span_1 {
        width: auto;
    }

    .row>.col:not(:first-child) {
        margin-top: 20px;
    }
}

[id] {
    scroll-margin-top: 170px;
}

@media (max-width: 767px) {
    [id] {
        scroll-margin-top: 90px;
    }
}

a {
    color: var(--main-color01);
}

/* ヘッダー */

header {
    /*position: fixed;*/
    width: 100%;
    z-index: 100;
    /*padding: 10px 30px;*/
    top: 0;
}

.header-wrap {
    position: relative;
    width: auto;
    margin: 0 auto;
}

.header-top {
    padding: 16px 24px;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    width: 100%;
}

/*.header-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}*/

.header-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /*justify-content: flex-end;*/
    justify-content: space-between;
}

.header_nav-wrap {
    display: flex;
    justify-content: space-between;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.logo-wrap img {
    /*max-width: 402px;
    width: 100%;*/
    height: clamp(32px, 6vw, 72px);
    width: auto;
    max-width: none;

}

.header-address {
    font-family: "Yu Mincho", "YuMincho", serif;
    padding-bottom: 16px;
    font-size: 18px;
}

.header-address p {
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .header-main {
        display: none;
    }
}

@media(max-width:1023px) {
    .header-top {
        padding: 0;
        padding-left: 10px;
        height: 80px;
        background-color: #fff;
    }

    .logo-wrap img {
        height: 40px;
        width: auto;
    }
}

@media(max-width:768px) {
    .logo-wrap {
        width: calc(100% - 80px);
    }
}

.header-head a {
    display: inline-block;
}

.header-copy:not(.title) {
    color: #fff;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 4px 0;
    text-align: left;
    position: relative;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.header-copy:not(.title) {
    font-size: 12px;
    color: #494949;
    margin: 0;
    /* margin-top: 10px; */
}

@media (max-width: 960px) {
    .header-copy:not(.title) {
        font-size: 12px;
        line-height: 1;
        margin-top: 5px;
    }
}

.header-btn {
    position: relative;
    cursor: pointer;
    width: 80px;
    height: 80px;
    z-index: 999999999;
    background-color: var(--main-color01);
}

.header-btn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 26px;
    height: 3px;
    border-radius: 2px;
    background: #FFF;
    width: 30px;
}

.header-btn span:nth-of-type(1) {
    top: 24px;
}

.header-btn span:nth-of-type(2) {
    top: 32px;
}

.header-btn span:nth-of-type(3) {
    top: 40px;
}

.header-btn span:nth-of-type(4) {
    top: 48px;
    background: none;
    font-size: 14px;
    color: #fff;
    left: 18px;
    width: 60px;
    font-family: "Cinzel", serif;
}

.header-btn.active span:nth-of-type(1) {
    top: 24px;
    left: 26px;
    transform: translateY(6px) rotate(-45deg);
    width: 40%;
}

.header-btn.active span:nth-of-type(2) {
    opacity: 0;
}

.header-btn.active span:nth-of-type(3) {
    top: 36px;
    left: 26px;
    transform: translateY(-6px) rotate(45deg);
    width: 40%;
}

.header_nav {
    margin-right: 0px;
    border-top: 1px solid #B7B7B7;
    font-size: clamp(13px, 0.6vw + 0.6rem, 18px);

}

@media (min-width: 1023px) {
    .header-btn {
        display: none;
    }
}

/* グローバルメニュー */

.header_nav ul {
    display: flex;
    justify-content: right;
    /*flex-wrap: wrap;*/
    flex-wrap: nowrap;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 0px;
    list-style: none;
}

.header_nav ul li a {
    /*padding: 5px 40px 5px 0;*/
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1;
    color: #000;
    /*font-weight: bold;*/
    /*font-size: 18px;*/
    font-size: 1em;
    padding: clamp(0.3em, 0.6vw, 0.6em) clamp(1.6em, 2.4vw, 2.4em) clamp(0.3em, 0.6vw, 0.6em) 0;
}

/*.header_nav ul li a span {
  font-weight: normal;
  color: var(--main-color02);
  font-family: "Marcellus", serif;
  font-size: 16px;
}*/

.header_nav ul li {
    position: relative;
}

/*.header_nav ul li a:hover {
  text-decoration: underline;
}*/

nav li.has-child {
    position: relative;
}

nav li.has-child::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    position: absolute;
    /*right: 35px;
    bottom: -8px;*/
    /*right: clamp(0.8em, 1.8vw, 2.2em);*/
    right: clamp(0.8em, 1.4vw, 2.2em);
    bottom: -0.5em;
    transform: translateY(-50%);
    color: var(--main-color02);
}

nav li.has-child.active::after {
    content: '\f106';
}

nav li.has-child a {
    cursor: pointer;
    /*padding: 5px 56px 5px 0;*/
    padding: clamp(0.3em, 0.6vw, 0.6em) clamp(2.2em, 2.8vw, 3.2em) clamp(0.3em, 0.6vw, 0.6em) 0;
}

nav li.has-child.active a .nav-title {
    color: var(--main-color02);
    border-bottom: 1px solid;
}



nav li.has-child ul.single {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /*top: 70px;*/
    top: 3.8em;
    z-index: 4;
    /*visibility: hidden;
  opacity: 0;*/
    /*transition: all .3s;*/
    background: #fff;
    /*font-size: 18px;*/
    font-size: 1em;
    padding: 0;
    font-family: "Yu Mincho", "YuMincho", serif;
}


/*nav li.has-child div {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  background: #fff;
  padding: 20px;
  display: flex;
  gap: 0 20px;
  font-size: 1rem;
}

nav li.has-child div ul {
  display: flex;
  flex-direction: column;
}

nav li.has-child div ul p {
  border-bottom: 2px solid var(--main-color01);
  color: var(--main-color01);
  font-weight: bold;
}

nav li.has-child div ul p span {
  padding: 0 10px;
  border-radius: 50px;
  font-size: 12px;
  color: #fff;
  background: var(--main-color01);
  margin-left: 10px;
}*/

nav li.has-child ul:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 160px;
    top: -20px;
}

nav li.has-child ul li a {
    color: #000;
    display: block;
    /*width: 170px;*/
    width: auto;
    text-decoration: none !important;
    /*padding: 10px;*/
    padding: 0.6em 0.8em 0.6em 1.8em;
    border-bottom: 1px dashed #AAAAAA;
    line-height: 1.2;
    position: relative;
    min-width: 200px;
}

nav li.has-child ul li a::before {
    content: '';
    width: 9px;
    height: 9px;
    background-color: var(--main-color01);
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
}

/*nav li.has-child ul li a:hover {
    background-color: #EFF8EA;
}*/


nav li.has-child ul {
    display: none;
}

.header_nav .has-child ul {
    display: none;
}

.header_nav ul li a:hover .underline {
    display: inline;
    text-decoration: underline;
}

.nav-title {
    text-align: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    line-height: 1.1;
}

.nav-title span {
    font-family: "Cinzel", serif;
    font-size: 12px;
    color: var(--main-color02);

}

.endoscopy-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 70px;
    z-index: 4;
    /* transition: all .3s; */
    background: #fff;
    font-size: 18px;
    padding: 16px 24px;
    width: auto;
}

.endoscopy-menu-inner {
    display: flex;
    justify-content: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    gap: 0 40px;
}

.endoscopy-menu-inner p {
    background-color: var(--main-color01);
    color: #fff;
    text-align: center;
    padding: 10px;
}

.endoscopy-menu-inner ul {
    display: block !important;
}

@media(max-width: 1445px) {
    .header_nav ul li a {
        /*padding: 5px 30px 5px 0;*/
        padding-right: clamp(1.2em, 2vw, 1.8em);
    }

    nav li.has-child a {
        /*padding: 5px 36px 5px 0;*/
        padding-right: clamp(1.6em, 2.4vw, 2.2em);
    }

    nav li.has-child::after {
        /*right: 18px;*/
        /*right: clamp(0.6em, 1.4vw, 1.2em); */
        right: clamp(0.6em, 1.2vw, 1.2em);
    }
}

@media(max-width:1360px) {
    .header_nav-wrap {
        flex-wrap: wrap;
    }

    .header-right {
        width: 100%;
        margin-top: -42px;
    }
}

@media (max-width: 1023px) {
    .header-right {
        display: none;
    }
}



/* スライドナビゲーション */

.slide {
    background-color: #fff;
    /*width: 300px;*/
    width: 360px;
    min-height: 100vh;
    position: fixed;
    right: -100%;
    top: 0;
    z-index: 10;
    overflow: scroll;
    padding-top: 100px;
}

.slide-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: -100%;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 767px) {
    .slide {
        padding-top: 80px;
    }
}

@media (max-width: 375px) {
    .slide {
        width: 100%;
    }
}

.slide-menu {
    list-style: none;
    /*border-top: 2px solid #fff;*/
    padding: 0;
    padding: 40px 20px;
}

.slide-menu>ul {
    padding: 0;
    list-style: none;
}

.slide-menu>ul>li {
    border-bottom: 2px solid var(--main-color02);
}

.slide-menu>ul>li>a {
    text-decoration: none;
    color: #000;
    padding: 20px;
    display: block;
    font-size: 20px;
    font-family: "Yu Mincho", "YuMincho", serif;
}

/*.slide-menu>ul>li>a:hover {
    background-color: var(--main-color02);
    box-shadow: inset 0px 5px 10px -5px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease 0s;
    opacity: 1;
}*/

.slide-menu>ul>li.menu-item-has-children>a {
    position: relative;
}

.slide-menu>ul>li.menu-item-has-children>a::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    display: block;
    position: absolute;
    top: 50%;
    right: 6%;
    font-size: 20px;
    transform: translate(0px, -50%);
    margin: auto;
    transition: 0.2s;
}

.slide-menu>ul>li.menu-item-has-children.active {
    border-bottom: none;
}

.slide-menu>ul>li.menu-item-has-children.active>a {
    color: var(--main-color02)
}

.slide-menu>ul>li.menu-item-has-children.active>a::after {
    transform: translate(0, -50%) rotate(180deg);
    transition: transform 0.3s ease;
}

.sub-menu {
    width: 100%;
    padding: 0;
    background: #fff;
    display: none;
    list-style: none;
    overflow: hidden;
}

.sub-menu>li {
    display: block;
}

.sub-menu>li.sub-menu-head {
    background-color: var(--main-color01);
    color: #fff;
    padding: 10px;
    font-family: "Yu Mincho", "YuMincho", serif;
    text-align: center;
}

.sub-menu>li>a {
    text-decoration: none;
    color: var(--text-color);
    padding: 20px 10px;
    display: block;
    border-bottom: 1px dashed #ddd;
    font-size: 18px;
    font-family: "Yu Mincho", "YuMincho", serif;
    padding-left: 2em;
    position: relative;
}

.sub-menu>li>a::before {
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    background-color: var(--main-color01);
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

.sub-menu>li:first-child {
    border-top: 2px solid var(--main-color02);
}



/* ぱんくず */

.bread_wrap {
    margin-top: 0;
    margin-bottom: 0;
}

.bread {
    overflow: hidden;
}

.bread ul {
    margin: 0 auto;
    float: none;
    display: flex;
    justify-content: end;
}

@media (max-width: 767px) {
    .bread ul {
        padding: 15px 0;
        flex-wrap: wrap;
    }
}

.bread ul li {
    list-style: none;
    position: relative;
    float: left;
    margin-right: 20px;
    padding-right: calc(20px + 9px);
}

@media (max-width: 767px) {
    .bread ul li {
        margin-right: 15px;
        padding-right: calc(15px + 9px);
    }
}

.bread ul li a {
    padding: 0;
    text-decoration: underline;
    color: var(--main-color02);
}

.bread ul li a:hover {
    color: #1b1b1b;
    text-decoration: none;
}

.bread ul li:after {
    content: '>';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.bread ul li:last-child {
    padding-right: 0;
    margin-right: 0;
}

.bread ul li:last-child:after {
    content: none;
}

.medicalinfo {
    background-color: var(--accent-color);
}


/* 画像のフィックス */

figure {
    margin: 0;
    text-align: center;
}

img {
    vertical-align: middle;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.recruit-info-container img,
.news-item img {
    width: auto;
}

figure img {
    width: inherit;
}


/* 投稿 */

.article_list {
    padding: 30px;
    border: 1px solid var(--main-color02);
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .article_list {
        padding: 20px;
    }
}

.article_list:first-child {
    margin-top: 0;
}

.article_list:nth-child(n+2) {
    margin-top: 30px;
}

.article_date {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article_detail {
    padding: 4%;
    margin-bottom: 4%;
    font-size: 1.2rem;
}

.article_detail img {
    width: auto;
}

.article_detail .span_12 {
    margin: 2% 0;
}

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

@media (max-width: 767px) {
    .article_button {
        margin-top: 20px;
    }
}

.more {
    display: inline-block;
    overflow: hidden;
    margin: auto;
}

.more.btn_ss a,
.more.btn_ss span {
    padding: 0.3em 2.1em 0.3em 1.4em;
}

.more.btn_s a,
.more.btn_s span {
    padding: 0.5em 2.1em 0.5em 1.4em;
}

.more.btn_m a,
.more.btn_m span {
    padding: 0.5em 2.1em 0.5em 1.4em;
}

.more a,
.more span {
    display: inline-block;
    letter-spacing: normal;
    color: var(--main-color02);
    border: 1px solid var(--main-color02);
    padding: 0.9em 1.6em;
    margin-bottom: 1px;
    text-decoration: none;
}

.more a:after,
.more span:after {
    border-color: var(--main-color02);
}

.more a:hover,
.more span:hover {
    color: #333;
    border-color: #333;
}

.more a:hover:after,
.more span:hover:after {
    border-color: #333;
}

.more a.add_arrow,
.more span.add_arrow {
    padding-right: 1.9em;
}

.add_arrow {
    display: block;
    position: relative;
}

.add_arrow:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 5%;
    margin: auto;
    width: 6px;
    height: 6px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    -webkit-transform: translate(0, -50%) rotate(45deg);
    transform: translate(0, -50%) rotate(45deg);
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.add_arrow:hover:after {
    right: 3%;
    border-color: #fff;
}

.more {
    display: inline-block;
    overflow: hidden;
    margin: auto;
}

.more a {
    display: inline-block;
    letter-spacing: normal;
    border: 1px solid var(--main-color02);
    color: var(--main-color02);
    padding: 0.3em 1.3em 0.3em 1em;
    margin-bottom: 1px;
    text-decoration: none;
    font-size: 1.2rem;
}

.pager {
    overflow: hidden;
    margin-bottom: 5%;
}

.pager .pager_prev {
    float: left;
}

.pager .pager_prev a {
    display: block;
    position: relative;
    padding-left: 15px;
    text-decoration: none;
}

.pager .pager_prev a:before,
.pager .pager_prev a:after {
    content: "";
    display: block;
    position: absolute;
    left: 2px;
    margin: auto;
    width: 8px;
    height: 1px;
    background: var(--main-color02);
    -webkit-transition: .2s;
    transition: .2s;
}

.pager .pager_prev a:before {
    -webkit-transform: translateY(-50%) rotate(-45deg);
    transform: translateY(-50%) rotate(-45deg);
    top: calc(50% - 2px);
}

.pager .pager_prev a:after {
    -webkit-transform: translateY(-50%) rotate(-135deg);
    transform: translateY(-50%) rotate(-135deg);
    top: calc(50% + 3px);
}

.pager .pager_prev a:hover {
    text-decoration: underline;
}

.pager .pager_prev a:hover:before {
    left: 0;
}

.pager .pager_prev a:hover:after {
    left: 0;
}

.pager .pager_next {
    float: right;
}

.pager .pager_next a {
    display: block;
    position: relative;
    padding-right: 15px;
    text-decoration: none;
}

.pager .pager_next a:before,
.pager .pager_next a:after {
    content: "";
    display: block;
    position: absolute;
    right: 2px;
    margin: auto;
    width: 8px;
    height: 1px;
    background: var(--main-color02);
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transition: .2s;
    transition: .2s;
}

.pager .pager_next a:before {
    -webkit-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
    top: calc(50% - 2px);
}

.pager .pager_next a:after {
    -webkit-transform: translateY(-50%) rotate(135deg);
    transform: translateY(-50%) rotate(135deg);
    top: calc(50% + 3px);
}

.pager .pager_next a:hover {
    text-decoration: underline;
}

.pager .pager_next a:hover:before {
    right: 0;
}

.pager .pager_next a:hover:after {
    right: 0;
}

/*.top-news,
.top-doctor,
.top-diagnosis,
.top-recruit {
    background: var(--accent-color);
}

.top-clinic {
    background: #AB9D83;
}*/

.top-news .container {
    max-width: 1400px;
    padding: 0 20px;
}

.news-inner {
    display: flex;
    gap: 0 80px;
}

.news-items-outer {
    width: calc(100% - 265px);
}

.news-items {
    background: #fff;
}

.news-item {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0 15px;
}

.news-items-inner {
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 5px 20px;
    align-items: center;
    position: relative;
    padding-right: 30px;
    padding: 15px;
    /*border-bottom: 1px solid #C1C1C1;*/
    background: #FFFFFF;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.news-items-inner:before {
    content: '';
    background-image: url(/wp-content/uploads/arrow.png);
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    width: 14px;
    color: #AAAAAA;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

@media(max-width:960px) {
    .news-items-inner {
        flex-wrap: wrap;
    }

    .news-item {
        width: 100%;
    }
}

@media(min-width:768px) {
    .news-items-inner:hover {
        border-bottom: 2px solid var(--main-color02);
    }

    .news-items-inner:hover::before {
        right: 25px;
    }
}

.news-item img {
    width: 100px;
}

.cat {
    background: #89B6CE;
    padding: 0 10px;
    color: #fff;
    margin: 2px;
}

time {
    color: #89B6CE;
    font-family: "Cinzel", serif;
}

.post-title {
    font-size: 18px;
    line-height: 1.3;
    color: #000;
}

.news-item time {
    width: 100%;
    color: #575757;
}

.news-item a {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    color: #000;
    line-height: 0;
}

.news-content {
    width: 100%;
    margin: 15px 0 0;
    line-height: 1.5;
}

.top-news figure img {
    max-width: 820px;
    width: 100%;
}

.top-news figure:hover {
    opacity: 0.7;
}

/*.news-item a:hover {
    text-decoration: underline;
    opacity: .7;
}*/

@media (max-width: 767px) {
    .news-item {
        width: 100%;
        flex: auto;
    }

    .news-inner {
        flex-wrap: wrap;
    }

    .news-items-outer {
        width: 100%;
    }

    .post-title {
        padding-right: 20px;
    }

    .news-items-inner:before {
        right: 15px;
    }
}


/* コンタクトフォーム */

span[class^="cf-"] {
    display: block;
}

.form-wrap dl {
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0;
    gap: 0;
    align-items: stretch;
}

.form-wrap dl:last-child {
    margin-bottom: 0;
}

.form-wrap dl dt {
    font-weight: bold;
    width: 240px;
    background: var(--main-color01);
    padding: 10px;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.form-wrap dl dd {
    padding: 10px;
    margin-left: 0;
    width: calc(100% - 240px);
    background: #fff;
}

.reqired {
    color: #f00;
}

input[type=text],
input[type=number],
input[type=date],
input[type=tel],
input[type=url],
input[type=email] {
    width: 100%;
    font-size: 20px;
    border: none;
    background: #ececec;
    height: 100%;
}

.submit {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    text-decoration: none;
    border: none;
    outline: 0;
    color: #fff;
    cursor: pointer;
    background: none;
    padding: 23px 20px 23px 20px;
    width: 100%;
}

button:hover {
    color: #FFF;
}

select {
    font-size: 20px;
    border: none;
    background: #ececec;
    height: 100%;
}

textarea {
    width: 100%;
    border: none;
    background: #ececec;
    height: 100%;
}

@media (max-width: 820px) {
    .form-wrap dl dd {
        width: 100%;
    }

    .form-wrap dl dt {
        width: 100%;
    }
}


/* カレンダー */

.calendars {
    display: flex;
    gap: 20px 2%;
}

.xo-event-calendar .calendar:first-child .month-next {
    visibility: hidden;
}

.xo-event-calendar .calendar:nth-child(n+2) .month-next {
    visibility: visible;
}

.xo-event-calendar table.xo-month .month-header>span {
    margin: 0 20px;
    flex-grow: 0;
}

@media (max-width: 480px) {
    .calendars {
        flex-wrap: wrap;
    }

    .xo-event-calendar .calendar:first-child .month-next {
        visibility: visible;
    }

    .xo-event-calendar .calendar:nth-child(n+2) .month-next {
        visibility: hidden;
    }
}

.xo-event-calendar table.xo-month td,
.xo-event-calendar table.xo-month th {
    border: none;
}

.xo-event-calendar table.xo-month {
    border: none;
}

.xo-event-calendar table.xo-month .month-dayname td div {
    text-align: center;
}

.holiday-titles {
    display: flex;
    flex-wrap: wrap;
}

.xo-event-calendar p.holiday-title {
    margin-right: 20px;
}

.xo-event-calendar table.xo-month button {
    background: var(--main-color02);
    width: 32px;
    border-radius: 50%;
}

.xo-event-calendar table.xo-month button span.nav-next {
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    margin-right: 5px;
}

.xo-event-calendar table.xo-month button span.nav-prev {
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin-left: 5px;
}

.xo-event-calendar table.xo-month .month-event-title {
    background: var(--main-color01) !important;
    text-align: center;
}


/* Slider */

.mv {
    position: relative;
    height: 100vh;
    /*display: flex;*/
}

.mv-image {
    height: 100vh;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mv-image.mv01 {
    background-image: url(/wp-content/uploads/MV-1.jpg);
}

.mv-image.mv02 {
    background-image: url(/wp-content/uploads/mv02.png);
}

.mv-image.mv03 {
    background-image: url(/wp-content/uploads/mv03.png);
}

.mv-image.mv04 {
    background-image: url(/wp-content/uploads/mv04.jpg);
}

@media(max-width:768px) {
    .mv-image.mv01 {
        background-image: url(/wp-content/uploads/MV-sp-1.jpg);
    }

    .mv {
        margin-top: 80px;
    }
}

.slider01 {
    width: 100%;
}

.catch {
    position: absolute;
    /*top: 200px;*/
    top: 30%;
    /*bottom: 0;*/
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    font-family: "Yu Mincho", "YuMincho", serif;
    width: 100%;
}


.catch-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.catch-inner p {
    /*font-size: 28px;*/
    font-size: clamp(16px, 1.2vw + 0.6rem, 28px);
    color: #000;
}

.catch-head {
    /*font-size: 86px!important;*/
    /*font-size: clamp(28px, 5.5vw, 86px) !important;*/
    font-size: clamp(28px, 4vw, 86px) !important;
    font-weight: 600;
}

.achievement {
    /*margin-top: 90px;*/
    display: flex;
    font-family: "Yu Mincho", "YuMincho", serif;
    /*gap: 0 40px;*/
    margin-top: clamp(40px, 6vw, 90px);
    gap: 0 clamp(10px, 3vw, 40px);
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.achievement div {
    border: 2px solid var(--main-color02);
    width: 48%;
}

.achievement p {
    /*font-size: 26px;*/
    text-align: center;
    background-color: #fff;
    /*padding: 40px 40px 0 40px;*/
    font-size: clamp(14px, 1.2vw + 0.3rem, 26px);
    /*padding: clamp(16px, 3.2vw, 40px) clamp(16px, 3.2vw, 40px) 0 clamp(16px, 3.2vw, 40px);*/
    /*padding: clamp(16px, 3.2vw, 16px) clamp(16px, 3.2vw, 16px) 0 clamp(16px, 3.2vw, 16px);*/
    padding: clamp(16px, 3.2vw, 16px);
    white-space: nowrap;
    line-height: 1;
}

.achievement-head {
    /*font-size: 30px!important;*/
    background-color: var(--main-color02) !important;
    /*padding: 16px!important;*/
    font-size: clamp(18px, 1.6vw + 0.2rem, 30px) !important;
    padding: clamp(10px, 1.4vw, 16px) !important;
    color: #fff;
}

.achievement span {
    /*font-size: 20px;*/
    font-size: clamp(12px, 1vw + 0.2rem, 20px);
    color: #494949;
    line-height: 1;
}

.achievement-no {
    /*font-size: 60px!important;*/
    font-size: clamp(28px, 4.5vw, 60px) !important;
    font-weight: bold;
    font-family: "Cinzel", serif;
    color: var(--main-color02) !important;
}

.achievement-month {
    padding-top: 0 !important;
    /*padding-bottom: 40px!important;*/
    padding-bottom: 16px !important;
}

.slick-prev {
    left: 1% !important;
}

.slick-next {
    right: 1% !important;
}

.slick-prev:before,
.slick-next:before {
    color: #000 !important;
}

/*@media(max-width:1360px) {
    .catch-head {
        font-size: 72px!important;
    }
    .catch {
        top: 260px;
    }
}*/

@media (max-width: 767px) {
    .catch-inner p {
        font-size: 18px;
    }

    .catch-head {
        font-size: 32px !important;
        margin-bottom: 10px;
    }

    .catch {
        width: 80%;
        top: 120px;
    }

    .catch-inner {
        background-color: rgba(255, 255, 255, 0.7);
        min-width: 284px;
        padding: 16px;
        /*align-items: flex-start;*/
        align-items: center;
    }

    .achievement {
        width: 90%;
    }
    .achievement p {
        font-size: 14px;
        /*padding: 24px 24px 0 24px;*/
        padding: 24px;
    }

    .achievement-head {
        font-size: 20px !important;
    }

    .achievement-no {
        font-size: 40px !important;
    }

    .achievement-month {
        text-align: right !important;
        padding-top: 0 !important;
        padding-bottom: 24px !important;
    }

    .achievement span {
        font-size: 14px;
        line-height: 1.3;
    }
}

@media(max-width: 480px) {
    .achievement-no {
        font-size: 26px !important;
    }
}


/* 見出し */

h2.heading-1 {
    margin: 2em 0 0.5em;
    position: relative;
    border: 0;
    word-wrap: break-word;
    font-weight: 700;
    font-size: 40px;
    color: var(--main-color02);
    letter-spacing: 3px;
    border-bottom: none;
    line-height: 1;
    font-family: "Cinzel", serif;
    text-align: center;
}

h2.heading-1 span {
    display: block;
    font-size: 24px;
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #000;
    font-weight: 400;
}

h2.heading-1::before {
    content: '';
    width: 80px;
    height: 2px;
    background-color: var(--main-color01);
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
}

h2.heading-1.left {
    text-align: left;
}

h2.heading-1.left.end,
h2.heading-1.left.end span {
    color: #fff;
}

h2.heading-1.left::before {
    left: 0;
    transform: none;
}

h2.heading-1.left.end::before {
    background-color: #fff;
    ;
}

/* お知らせページ用 */
#archive h2 {
    margin: 1em 0px 0em;
    font-size: 2rem;
}

@media (max-width: 767px) {
    #archive h2 {
        margin: 1.5em 0px 0em;
        font-size: 20px;
    }

    h2.heading-1::before {
        top: -24px;
    }
}

h2>a {
    color: var(--main-color02);
}

/*h2.heading-1:after {
    display: block;
    content: '';
    position: absolute;
    width: 300px;
    height: 1px;
    background: #1A1131;
    top: 50%;
    transform: translateY(-50%);
    right: 101%;
}

h2.heading-1 a {
    color: var(--main-color02);
}*/

h3.heading-1 {
    margin: 0 0 0.5em;
    position: relative;
    border: 0;
    word-wrap: break-word;
    font-weight: bold;
    padding-top: 0;
    font-size: 1.4rem;
    color: var(--main-color02);
    padding-left: 1em;
}

h3.heading-1:after {
    display: block;
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    background: linear-gradient(to top, #D9D1C1 50%, var(--main-color02) 50%);
    ;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

h4.heading-1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--main-color02);
    border-bottom: 3px solid #e3e3e3;
    padding: 0.3em;
    position: relative;
    margin: 1em 0;
}

h4.heading-1::after {
    content: "";
    background-color: var(--main-color02);
    width: 2em;
    height: 3px;
    position: absolute;
    bottom: -3px;
    left: 0;
    z-index: 1;
}

h5.heading-1 {
    margin: 0 0 0.5em;
    font-size: 1rem;
    position: relative;
    color: var(--main-color02);
    font-weight: normal;
    line-height: 1.5em;
}

#pagetitle {
    position: relative;
    color: #fff;
    padding: 2em 0.5em;
    background: var(--main-color01);
}

#pagetitle:after {
    content: '';
    position: absolute;
}

#pagetitle span {
    text-align: center;
    font-size: 2.0rem;
    font-weight: normal;
    display: block;
    box-sizing: border-box;
    /* border:3px solid #fff; */
    line-height: 1.5em;
}

@media (max-width: 480px) {
    h2.heading-1 {
        letter-spacing: 0;
        white-space: nowrap;
    }

    h3.heading-1 {
        font-size: 1.4rem;
    }
}


/* ボタン */

.btn-1 {
    color: #000;
    display: block;
    width: 185px;
    margin-left: auto;
    height: auto;
    padding: 20px;
    padding-left: 40px;
    background: #fff;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    position: relative;
    text-align: center;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 18px;
}

.btn-1::before {
    content: '';
    display: block;
    width: 15px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    transition: all 0.2s ease-out;
}

.btn-1:hover {
    box-shadow: 0 0 0 3px var(--sub-color);
}

.btn-1:hover::before {
    width: 10px;
    height: 10px;
    background-color: var(--sub-color);
}

.btn-2 {
    color: #fff;
    display: block;
    width: 180px;
    height: auto;
    padding: 23px 20px 23px 20px;
    background: var(--main-color02);
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    position: relative;
    border-radius: 50px;
    text-align: center;
}

.btn-2:hover {
    color: #fff;
    background: #B28575;
}

@media(max-width:767px) {
    .btn-1 {
        margin: 0 auto;
    }
}


/* テーブル */

.table-schedule {
    width: 100%;
    table-layout: fixed;
}

.table-schedule td,
.table-schedule th {
    border-bottom: 1px solid #C9D6DF;
    padding: 1em 0.3em;
    text-align: center;
    font-weight: 500;

}

.table-schedule td {
    color: var(--main-color01);
    width: calc((100% - 117px) / 7);
}

.table-schedule thead th {
    background-color: #D7E9F3;
    font-weight: 500;
}

.table-schedule tbody {
    background-color: #fff;
}

.table-schedule tbody th {
    text-align: left;
}

.table-schedule thead th:first-of-type,
.table-schedule tbody th {
    width: 117px;
    padding: 0 8px;
}


@media (max-width: 480px) {

    .table-schedule td,
    .table-schedule th {
        padding: 0.7em 0;
        white-space: nowrap;
    }

    .table-schedule thead th:first-of-type,
    .table-schedule tbody th {
        padding: 0 5px;
    }

    .table-schedule thead th:nth-child(8) {
        width: 2em;
    }

    .top-clinic .table-schedule thead th:first-of-type,
    .top-clinic .table-schedule tbody th {
        width: 100px;
    }
}

.table-default {
    width: 100%;
}

.table-default td,
.table-default th {
    padding: 0.7em 1em;
    border: 1px solid #C9D6DF;
    vertical-align: middle;
}

.table-default th {
    background: var(--pale-color);
}


/* 流れ1 */

.bg {
    background: #e8f6fb;
    padding: 10px 15px;
    display: block;
    border: 1px solid #fff;
    box-shadow: 0 3px 3px #ebeae8;
    border-radius: 13px 0;
    margin-right: 10px;
}

span.bg {
    background: var(--main-color02);
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    display: block;
}

.indent {
    margin-left: 2em;
    text-indent: -2em;
}

.indent span.bg {
    display: inline;
}

.frame {
    border: 1px solid var(--main-color02);
    border-radius: 6px;
    padding: 1em 0;
    position: relative;
    display: flex;
}

.frame>.col {
    padding-right: calc(30px / 2);
    padding-left: calc(30px / 2);
}

.span_6 .frame,
.span_4 .frame {
    margin-top: 30px;
}

@media (max-width: 767px) {

    .span_6 .frame,
    .span_4 .frame {
        margin-top: 20px;
    }

    .frame {
        display: block;
    }

    .frame .span_2,
    .frame .span_3,
    .frame .span_4,
    .frame .span_5,
    .frame .span_6,
    .frame .span_7,
    .frame .span_8,
    .frame .span_9,
    .frame .span_10 {
        width: 100% !important;
    }
}

.frame.arrow:after {
    border-color: transparent transparent transparent var(--main-color02);
    border-style: solid;
    border-width: 26px 0 26px 18px;
    content: '';
    margin-top: -11px;
    position: absolute;
    right: 50%;
    bottom: -36px;
    transform: rotate(90deg);
}

.frame.arrow.end:after {
    display: none;
}

/* 流れ2 */
.flow-box {
    margin-bottom: 50px;
}

.flow-block {
    border: 1px solid var(--main-color02);
    background: #fff;
    border-radius: 0px;
    margin-top: 82px;
    padding: 50px 34px;
    position: relative;
}

.flow-block:first-child {
    margin-top: 0;
}

@media screen and (min-width: 1250px) {
    .flow-block {
        padding: 50px;
    }
}

.flow-block .title {
    padding: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    text-align: left;
    font-family: "Times New Roman", "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", serif;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.flow-block .title .num {
    display: block;
    background: var(--main-color02);
    margin-right: .5em;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    font-style: normal;
    line-height: 30px;
    letter-spacing: 1px;
}

.flow-block .title .number_text {
    padding-top: 3px;
}

.flow-block::after {
    content: "";
    bottom: -95px;
    border: 32px solid transparent;
    border-top-color: var(--main-color02);
    left: 50%;
    margin-left: -32px;
    position: absolute;
}

.flow-block:last-of-type::after {
    content: none;
}

.clearfix {
    overflow: hidden;
    line-height: 2em;
}

@media only screen and (min-width: 768px) {
    .flow-block ul li {
        line-height: 2em;
    }

    .alignright {
        float: right;
        margin-left: 30px;
        max-width: 34%;
    }
}

@media screen and (max-width: 767px) {
    .flow-box:last-child {
        margin-bottom: 0;
    }

    .flow-block {
        padding: 24px 16px;
    }

    .flow-block .title {
        padding: 0;
        font-size: 18px;
    }

    .flow-block::after {
        bottom: -95px;
    }

    .clearfix img {
        margin-bottom: 10px;
    }
}


/* リスト */

dl {
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0;
    align-items: flex-start;
    gap: 10px;
}

dl dt {
    font-weight: bold;
    width: 180px;
}

dl dd {
    width: calc(100% - 200px);
}

.clinic-info dt {
    background: var(--main-color02);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    line-height: 2;
}

@media(max-width:767px) {
    .clinic-info dt,.clinic-info dd {
        width: 100%
    }
}

.access-map {
    width: 100%;
}

.access-info {
    gap: 0;
}

.access-info dt {
    background: var(--main-color02);
    color: #fff;
    text-align: center;
    width: auto;
    padding: 6px;
    font-weight: 400;
}

.access-info dd {
    width: 100%;
    margin-bottom: 15px;
}

.access-info ul li {
    border-bottom: 1px dashed #bababa;
}

.top-recruit {
    background-color: var(--accent-color);
}

.recruit-info dd {
    background-color: #fff;
}

.recruit-info dl {
    align-items: stretch;
}

.recruit {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1A1131;
    padding: 10px 40px;
    border: solid 5px var(--main-color01);
    position: relative;
}

.recruit ::before {
    content: "";
    position: absolute;
    border: solid 1px var(--main-color01);
    top: 5px;
    left: 5px;
    bottom: 5px;
    right: 5px;
}

.recruit-info dl dt {
    background-color: var(--main-color01);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #fff;
}

.recruit-info dl dd {
    display: flex;
    align-items: center;
    padding: 20px;
}

.history {
    display: flex;
    gap: 5px 0;
    flex-wrap: wrap;
    padding-left: 0;
}

.history li {
    border-bottom: 1px dotted #b4b4b4;
    flex-grow: 1;
    width: 100%;
    list-style: none;
}

/* ページトップ */

/*.pagetop {
    position: fixed;
    bottom: 98px;
    right: 5%;
    z-index: 1;
}

.pagetop a {
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    width: 70px;
    height: 70px;
    padding: 0;
    background: #504C44;
    border: 1px solid #fff;
}

.pagetop a:after {
    content: "";
    display: block;
    position: absolute;
    top: 42%;
    left: 50%;
    margin: auto;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translate(-50%, -20%) rotate(45deg);
    transform: translate(-50%, -20%) rotate(45deg);
    -webkit-transition: .2s;
    transition: .2s;
}

.pagetop a:hover:after {
    top: 30%;
}

.pagetop a:before {
    position: absolute;
    content: 'TOP';
    bottom: 5px;
    left: -1px;
    color: #fff;
    font-size: 12px;
}*/

.pagetop {
    position: fixed;
    bottom: 120px;
    right: 5%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    /* 非表示時にクリック無効化 */
    width: 50px;
}

.pagetop.visible {
    opacity: 1;
    pointer-events: auto;
    /* 表示時にクリック有効化 */
}

@media(max-width:767px) {
    .pagetop {
        bottom: 130px;
    }
}


/* フッター */
footer {
    background: var(--main-color01);
}

.home footer {
    margin-top: -180px;
}

.footer-top {
    height: 180px;
}

.footer-wrap {
    /*max-width: var(--content-width);*/
    margin: 0 auto;
    padding: 80px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
}

.footer__links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer__links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 10px 0;
}

.footer__links ul li {
    position: relative;
}

.footer__links ul li:before {
    position: absolute;
    content: '';
    height: 18px;
    right: 0;
    top: 4px;
    width: 1px;
    background-color: #fff;
}

.footer__links ul li:last-child:before {
    content: '';
}

.footer__links ul li a {
    padding: 10px;
    color: #fff;
}

.footer-info {
    display: flex;
    gap: 60px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-info-inner {
    width: 50%;
    color: #fff;
}

.footer-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--main-color01);
}

.sns_icon {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 10px;
    justify-content: flex-end;
}

.clinic_sns_icon {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 10px;
}

.footer-policy-link {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 20px;
    justify-content: flex-end;
}

.footer-policy-link a {
    color: #000;
}

.footer-info-l {
    text-align: center;
    max-width: 420px;
}

.footer-info-l p:nth-of-type(2) {
    line-height: 3;
    margin-top: 30px;
    font-size: 20px;
    white-space: nowrap;
}

.f-tel {
    color: var(--main-color02);
    font-size: 32px;
    font-weight: bold;
    font-family: "Cinzel", serif;
}

.subject {
    margin-top: 16px;
}

.subject span {
    padding: 8px;
    background-color: var(--main-color01);
    color: #fff;
    display: inline-block;
    margin-right: 0.5em;
    line-height: 1;
}

.holiday-wrap {
    line-height: 1;
    margin-top: 40px;
}

.holiday {
    background-color: var(--sub-color);
    color: #fff;
    letter-spacing: 4px;
    padding: 2px 10px;
    line-height: 1;
    font-size: 14px;
    display: inline-block;
    margin-right: 0.5em;
}

.time-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
}

.time-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.time-list li::before {
    content: '';
    display: block;
    width: 13px;
    height: 13px;
    background-color: var(--sub-color);
    position: absolute;
    left: 0;
    top: 7px;
}

.rsv-btn {
    margin-top: 24px;
}

.rsv-btn a {
    border: 2px solid var(--sub-color);
    position: relative;
    display: flex;
    width: 172px;
    align-items: center;
    background-color: #fff;
    margin: 0 auto;
}

.rsv-btn-i {
    background-image: url(/wp-content/uploads/cal-icon.png);
    background-color: var(--sub-color);
    width: 50px;
    height: 50px;
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
}

.rsv-btn-t {
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #000;
    font-weight: 600;
    text-align: center;
    width: 122px;
}

.triangle:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-bottom: 14px solid var(--sub-color);
    border-left: 14px solid transparent;
    position: absolute;
    right: 0;
    bottom: 0;
}

.rsv-btn02 {
    margin-top: 24px;
}

.rsv-btn02 {
    border: 2px solid var(--main-color01);
    position: relative;
    display: flex;
    width: 210px;
    align-items: center;
    background-color: #fff;
    margin: 24px auto 0;
}

.rsv-btn-i02 {
    background-image: url(/wp-content/uploads/p-icon.png);
    background-color: var(--main-color01);
    width: 50px;
    height: 50px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.rsv-btn-t02 {
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #000;
    font-weight: 600;
    text-align: center;
    width: 160px;
}

.triangle02:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-bottom: 14px solid var(--main-color01);
    border-left: 14px solid transparent;
    position: absolute;
    right: 0;
    bottom: 0;
}

.footer-info-r {
    max-width: 902px;
    width: 100%;
}

.footer-map {
    margin-top: 20px;
}


@media (max-width: 768px) {
    .footer-info {
        flex-wrap: wrap;
        padding: 0;
        gap: 40px 0;
    }

    .footer-info-inner {
        width: 100%;
    }

    .footer-menu {
        display: none;
    }

    .footer-wrap {
        padding: 40px 16px;
    }

    .footer-top {
        height: 347px;
    }

    .home footer {
        margin-top: -340px;
    }
}

@media (max-width: 480px) {
    .sns_icon {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sns_icon li {
        width: 80px;
    }

    .footer-policy-link {
        display: block;
    }

    .footer-info-l {
        width: 100%;
    }

    .footer-info-l p:nth-of-type(2) {
        white-space: wrap;
        line-height: 1.2;
        text-align: left;
    }

    .f-tel {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .subject {
        text-align: left;
        display: flex;
        align-items: center;
    }

    .subject span {
        white-space: nowrap;
    }

    .holiday-wrap {
        display: flex;
        align-items: center;
        line-height: 1.3;
    }

    .holiday {
        white-space: nowrap;
    }
}

.copy {
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #fff !important;
    background-color: var(--main-color01) !important;
    border-top: 1px solid #fff;
}

@media(max-width:767px) {
    .copy-over {
        background-color: var(--main-color01);
        height: 40px;
    }
}


@media (max-width: 480px) {
    .copy {
        margin-bottom: 80px;
        text-align: left !important;
    }
}

/* 予約ボタン */

.reservation_area {
    position: fixed;
    top: 170px;
    right: 0;
    z-index: 1;
}

.reservation_area ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.reservation_area li {
    /*-ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    -webkit-text-orientation: upright;
    text-orientation: upright;*/
    list-style: none;
    /*letter-spacing: 2px;*/
}

.reservation_area li a {
    display: block;
    /*padding: 25px 10px;*/
    transition: all 0.2s ease-out;
    width: 80px;
    height: 80px;
    color: #fff;
    padding: 16px 0;
    text-align: center;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.reservation_area li a img {
    width: 30px;
    height: 30px;
}

.reservation_area li a span {
    padding: 4px;
    display: inline-block;
}

.reservation_area li a:hover {
    opacity: 0.7;
}

/*@media (hover: hover) {
    .reservation_area li:nth-child(1) a:hover,
    .reservation_area li:nth-child(2) a:hover,
    .reservation_area li:nth-child(3) a:hover {
        padding-right: 30px;
    }
}*/

.reservation_area li:nth-child(1) a {
    background: var(--main-color01);
}

.reservation_area li:nth-child(2) a {
    background: var(--sub-color)
}

.reservation_area li:nth-child(3) a {
    background: var(--main-color02);
}

@media (min-width: 480px) and (max-width: 1360px) {
    .reservation_area {
        top: 280px;
    }
}

@media (max-width: 480px) {
    .reservation_area {
        bottom: 0px;
        top: auto;
        width: 100%;
    }

    .reservation_area ul {
        flex-direction: row;
    }

    .reservation_area ul li {
        width: 33.3%;
        writing-mode: horizontal-tb;
        text-align: center;
    }

    .reservation_area li a {
        padding: 10px 5px;
        width: auto;
    }
}


/* トグル */


.icon {
    display: block;
    position: relative;
    width: 24px;
    margin-left: 6px;
    flex-shrink: 0;
    transform-origin: center 43%;
    transition: transform 0.4s;
}

.icon:before {
    left: 0;
    transform: rotate(45deg);
}

.icon:after {
    right: 0;
    transform: rotate(-45deg);
}

.icon:before,
.icon:after {
    content: "";
    position: absolute;
    display: block;
    width: 15px;
    height: 3px;
    background-color: var(--main-color02);
}

details {
    border-top: 1px solid;
}

details:hover {
    background: var(--accent-color);
}

details:last-child {
    border-bottom: 1px solid;
}

summary {
    display: block;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.toggle-head.qa {
    position: relative;
}

.toggle-head.qa:before {
    position: absolute;
    content: "Q.";
    top: 13px;
    left: 20px;
    font-weight: bold;
    color: var(--main-color01);
    font-family: serif;
    font-size: 24px;
}

.toggle_inner {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px 15px 50px;
    font-weight: bold;
    color: var(--main-color01);
}

.toggle_inner-icon {
    display: block;
    position: relative;
    width: 24px;
    margin-left: 6px;
    flex-shrink: 0;
    transform-origin: center 43%;
    transition: transform 0.4s;
}

.toggle_inner-icon:before {
    left: 0;
    transform: rotate(45deg);
}

.toggle_inner-icon:after {
    right: 0;
    transform: rotate(-45deg);
}

.toggle_inner-icon:before,
.toggle_inner-icon:after {
    content: "";
    position: absolute;
    display: block;
    width: 15px;
    height: 3px;
    background-color: var(--main-color01);
}

.toggle-content p {
    padding: 20px 20px 20px 60px;
    background: #fff;
    margin: 0;
    position: relative;
}

.toggle-content p a {
    color: var(--main-color01);
    text-decoration: underline;
}

.answer:before {
    position: absolute;
    content: "A.";
    top: 18px;
    left: 30px;
    font-weight: bold;
    color: var(--main-color01);
    font-family: serif;
    font-size: 24px;
}

details[open] .toggle_inner-icon {
    transform: rotate(180deg);
}

/* 設備紹介 */

.facility-warap {
    max-width: 100%;
}

.facility-slider img,
.facility-slider-sub img {
    width: 100%;
    height: auto;
}

.slick-prev,
.slick-next {
    z-index: 1;
}

.facility-thumb>.slick-prev:before,
.facility-thumb>.slick-next:before,
.facility-thumb-sub>.slick-prev:before,
.facility-thumb-sub>.slick-next:before {
    color: #000 !important;
}

.facility-thumb img,
.facility-thumb-sub img {
    transition: all ease-in-out .3s;
    opacity: .2;
}

.slick-current img {
    opacity: 1;
}

.facility-thumb,
.facility-thumb-sub {
    margin: 10px 0 0;
}

.facility-thumb,
.facility-thumb-sub {
    cursor: pointer;
}

.facility-caption {
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
}

/* 料金表 */

.price-wrap {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--main-color01);
    margin-bottom: 20px;
}

.price-wrap:last-of-type {
    margin-bottom: 0px;
}

.price-name {
    border-right: 1px solid var(--main-color01);
    width: 300px;
    background: var(--accent-color);
    padding: 5px;
    font-weight: bold;
}

.price-fee {
    width: calc(100% - 300px);
    padding: 5px;
    display: flex;
    justify-content: flex-end;
}

.price-disc,
.price-term,
.price-risk {
    width: 100%;
    padding: 5px;
    border-top: 1px solid var(--main-color01);
    display: flex;
    gap: 10px;
}

.price-head {
    width: 125px;
    border-right: 1px solid;
}

.price-text {
    width: calc(100% - 135px);
}


@media (max-width: 480px) {
    .price-name {
        border-right: none;
        width: 100%;
    }

    .price-fee {
        width: 100%;
    }
}


/* 汎用クラス */

.bg-red {
    background-color: #fe266d !important;
}

.bg-blue {
    background-color: #1646b1 !important;
}

.bg-green {
    background-color: #5fcf32 !important;
}

.bg-orange {
    background-color: #ffa204 !important;
}

.text-red {
    color: var(--sub-color) !important;
}

.text-blue {
    color: var(--main-color01) !important;
}

.text-green {
    color: #6ddb20 !important;
}

.text-orange {
    color: #E1AB3A !important;
}

.text-pink {
    color: #db20b2 !important;
}

.text-black {
    color: #000000 !important;
}

.text-brown {
    color: #937437 !important;
}

.text-gray {
    /*color: #555555!important;*/
    color: #494949 !important;
}

.text-white {
    color: #FFFFFF !important;
}

.mt0 {
    margin-top: 0px !important;
}

.mb0 {
    margin-bottom: 0px !important;
}

.mt10 {
    margin-top: 10px !important;
}

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

.mt30 {
    margin-top: 30px !important;
}

.mt40 {
    margin-top: 40px !important;
}

.mt50 {
    margin-top: 50px !important;
}

.mt60 {
    margin-top: 60px !important;
}

.mr10 {
    margin-right: 10px !important;
}

.mr20 {
    margin-right: 20px !important;
}

.mr30 {
    margin-right: 30px !important;
}

.mr40 {
    margin-right: 40px !important;
}

.mr50 {
    margin-right: 50px !important;
}

.mr60 {
    margin-right: 60px !important;
}

.mb10 {
    margin-bottom: 10px !important;
}

.mb20 {
    margin-bottom: 20px !important;
}

.mb30 {
    margin-bottom: 30px !important;
}

.mb40 {
    margin-bottom: 40px !important;
}

.mb50 {
    margin-bottom: 50px !important;
}

.mb60 {
    margin-bottom: 60px !important;
}

.ml10 {
    margin-left: 10px !important;
}

.ml20 {
    margin-left: 20px !important;
}

.ml30 {
    margin-left: 30px !important;
}

.ml40 {
    margin-left: 40px !important;
}

.ml50 {
    margin-left: 50px !important;
}

.ml60 {
    margin-left: 60px !important;
}

.pt10 {
    padding-top: 10px !important;
}

.pt20 {
    padding-top: 20px !important;
}

.pt30 {
    padding-top: 30px !important;
}

.pt40 {
    padding-top: 40px !important;
}

.pt50 {
    padding-top: 50px !important;
}

.pt60 {
    padding-top: 60px !important;
}

.pr10 {
    padding-right: 10px !important;
}

.pr20 {
    padding-right: 20px !important;
}

.pr30 {
    padding-right: 30px !important;
}

.pr40 {
    padding-right: 40px !important;
}

.pr50 {
    padding-right: 50px !important;
}

.pr60 {
    padding-right: 60px !important;
}

.pb10 {
    padding-bottom: 10px !important;
}

.pb20 {
    padding-bottom: 20px !important;
}

.pb30 {
    padding-bottom: 30px !important;
}

.pb40 {
    padding-bottom: 40px !important;
}

.pb50 {
    padding-bottom: 50px !important;
}

.pb60 {
    padding-bottom: 60px !important;
}

.pl10 {
    padding-left: 10px !important;
}

.pl20 {
    padding-left: 20px !important;
}

.pl30 {
    padding-left: 30px !important;
}

.pl40 {
    padding-left: 40px !important;
}

.pl50 {
    padding-left: 50px !important;
}

.pl60 {
    padding-left: 60px !important;
}

.text-bold {
    font-weight: bold !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-xlarge {
    font-size: 1.6rem !important;
}

.text-large {
    font-size: 1.4rem !important;
}

.w100 {
    width: 100% !important;
}

@media (max-width: 767px) {
    .pc-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .text-xlarge {
        font-size: 2.0rem;
    }

    .text-large {
        font-size: 1.6rem;
    }

    .sp-only {
        display: none !important;
    }
}

@media (min-width: 767px) and (max-width: 1023px) {
    .tablet-hide {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .tablet-only {
        display: none !important;
    }
}

.top-diagnosis {
    padding: 0 0 60px;
}

.diagnosis-bg {
    width: 90%;
    height: 600px;
    background: url(/wp-content/uploads/medical-menu-bg.jpg);
    padding: 60px 0;
    background-size: cover;
}

.diagnosis-content {
    width: 90%;
    margin-left: auto;
}

.diagnosis-inner {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    padding: 80px 260px 80px 180px;
    margin-top: -320px;
}

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

.diagnosis-inner > .diagnosis-wrap:nth-child(2),
.diagnosis-inner > .diagnosis-wrap:nth-child(3) {
    margin-top: 40px;
}

.diagnosis-item {
    flex:1;
}

.diagnosis-item a {
    display: block;
    background-color: #fff;
    text-align: center;
    color: #000;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 20px;
    position: relative;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    padding: 0 24px 24px;
    height: 100%;
}

.diagnosis-item.line1 a {
    border: 6px solid var(--main-color01);
}

.diagnosis-item.line2 a {
    border: 6px solid var(--main-color02);
}

.diagnosis-item a::after {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-size: cover;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.diagnosis-item.line1 a::after {  
    background-image: url(/wp-content/uploads/rectangle.png);
}

.diagnosis-item.line2 a::after {  
    background-image: url(/wp-content/uploads/Rectangle.png);
}

.diagnosis-item p {
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
    text-align: left;
}

.medical-icon {
    width: 146px;
    height: 146px;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
    line-height: 146px;
}

.medical-icon.item01 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-01.png);
}

.medical-icon.item02 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-02.png);
}

.medical-icon.item03 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-03.png);
}

.medical-icon.item04 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-04.png);
}

.medical-icon.item05 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-05.png);
}

.medical-icon.item06 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-06.png);
}

.medical-icon.item07 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-07-1.png);
}

.medical-icon.item08 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-08.png);
}

.medical-icon.item09 {
    background-image: url(/wp-content/uploads/sub-btn-new-icon-09.png);
    width: auto;
    background-position: center;
    white-space: nowrap;
}

@media(min-width:1200px) {
        .diagnosis-wrap {
        flex-wrap: nowrap; /* すでにflex-wrap: wrap; があるので、上書きが必要な場合があります */
    }
    .diagnosis-item {
        flex-shrink: 0; 
    }
}

@media(min-width:768px) {
    .diagnosis-item.line1 a:hover {
        background-color: rgba(45, 77, 127, 0.6);
        color: #fff;
    }

    .diagnosis-item.line2 a:hover {
        background-color: rgba(159, 139, 76, 0.6);
        color: #fff;
    }

    .diagnosis-item a:hover::after {
        background-image: url(/wp-content/uploads/rectangle-w.png);
    }

    .diagnosis-item a:hover .medical-icon.item01 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-01.png);
    }

    .diagnosis-item a:hover .medical-icon.item02 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-02.png);
    }

    .diagnosis-item a:hover .medical-icon.item03 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-03-1.png);
    }

    .diagnosis-item a:hover .medical-icon.item04 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-04.png);
    }

    .diagnosis-item a:hover .medical-icon.item05 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-05.png);
    }

    .diagnosis-item a:hover .medical-icon.item06 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-06.png);
    }

    .diagnosis-item a:hover .medical-icon.item07 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-07.png);
    }

    .diagnosis-item a:hover .medical-icon.item08 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-08.png);
    }

    .diagnosis-item a:hover .medical-icon.item09 {
        background-image: url(/wp-content/uploads/sub-btn-new-icon-hover-09.png);
    }
}

@media(max-width: 1500px) {
    .diagnosis-inner {
        padding: 80px 140px 80px 120px;
    }
    .diagnosis-content {
        width: 95%;
    }
    .diagnosis-bg {
        width: 95%;
    }
}

@media(max-width:1200px) {
    .diagnosis-inner {
        padding: 80px 100px 80px 80px;
    }
}

@media(max-width:767px) {
    .diagnosis-bg {
        width: 100%;
        height: 260px;
        padding: 30px 0;
    }

    .diagnosis-content {
        margin: 0 auto;
        width: calc(100% - 32px);
    }

    .diagnosis-item {
        width: 100%;
    }

    .diagnosis-inner {
        margin-top: -35px;
        padding: 40px 16px;
    }
}


/*.diagnosis-item {
    width: 30%;
}

.diagnosis-item a {
    display: block;
    background-color: #fff;
    border: 3px solid var(--main-color01);
    text-align: center;
    color: #000;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 20px;
    position: relative;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.diagnosis-item a::after {
    content: '';
    display: block;
    width: 27px;
    height: 27px;
    background-image: url(/wp-content/uploads/rectangle.png);
    position: absolute;
    right: 0;
    bottom: 0;
    background-size: cover;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.medical-icon {
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
}

.medical-icon.item01 {
    background-image: url(/wp-content/uploads/icon-01.png);
}

.medical-icon.item02 {
    background-image: url(/wp-content/uploads/icon-02.png);
}

.medical-icon.item03 {
    background-image: url(/wp-content/uploads/icon-03.png);
}

.medical-icon.item04 {
    background-image: url(/wp-content/uploads/icon-04.png);
}

.medical-icon.item05 {
    background-image: url(/wp-content/uploads/icon-05.png);
}

.medical-icon.item06 {
    background-image: url(/wp-content/uploads/icon-06.png);
}

@media(min-width:768px) {
    .diagnosis-item a:hover {
        background-color: var(--main-color01);
        color: #fff;
    }

    .diagnosis-item a:hover::after {
        background-image: url(/wp-content/uploads/rectangle-w.png);
    }

    .diagnosis-item a:hover .medical-icon.item01 {
        background-image: url(/wp-content/uploads/icon-01-hover.png);
    }

    .diagnosis-item a:hover .medical-icon.item02 {
        background-image: url(/wp-content/uploads/icon-02-hover.png);
    }

    .diagnosis-item a:hover .medical-icon.item03 {
        background-image: url(/wp-content/uploads/icon-03-hover.png);
    }

    .diagnosis-item a:hover .medical-icon.item04 {
        background-image: url(/wp-content/uploads/icon-04-hover.png);
    }

    .diagnosis-item a:hover .medical-icon.item05 {
        background-image: url(/wp-content/uploads/icon-05-hover.png);
    }

    .diagnosis-item a:hover .medical-icon.item06 {
        background-image: url(/wp-content/uploads/icon-06-hover.png);
    }
}

@media(max-width: 1400px) {
    .diagnosis-wrap {
        padding: 80px;
    }

    .diagnosis-item {
        width: 29%;
    }
}

@media(max-width: 880px) {
    .diagnosis-wrap {
        padding: 30px;
    }

    .diagnosis-item {
        width: 28%;
    }
}

@media(max-width:767px) {
    .diagnosis-bg {
        width: 100%;
        height: 260px;
        padding: 30px 0;
    }

    .diagnosis-content {
        margin: 0 auto;
    }

    .diagnosis-item {
        width: 44%;
    }

    .diagnosis-wrap {
        margin-top: -35px;
    }
}

@media (max-width: 480px) {
    .diagnosis-item {
        width: 100%;
    }
}*/

/*.medical-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 2%;
}

.medical-item {
    width: 49%;
    background: linear-gradient(90deg, #797265, #9F9177);
    padding: 10px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.medical-item a {
  display: flex;
  color: #fff;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  padding: 20px;
}

.medical-content {
  width: 200px;
}

.medical-name {
    font-weight: bold;
    font-size: 1.4rem;
}

@media (max-width: 820px) {
    .medical-item {
        width: 100%;
    }
}
@media (max-width: 480px) {
  .medical-item a {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    position: relative;
  }
  .medical-item:nth-child(1):before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 163px;
    height: 163px;
    background-image: url(/wp-content/uploads/top_diagnosis_01.png);
  }
  .medical-item:nth-child(2):before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 163px;
    height: 163px;
    background-image: url(/wp-content/uploads/top_diagnosis_02.png);
  }
  .medical-item:nth-child(3):before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 163px;
    height: 163px;
    background-image: url(/wp-content/uploads/top_diagnosis_03.png);
  }
  .medical-item:nth-child(4):before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 163px;
    height: 163px;
    background-image: url(/wp-content/uploads/top_diagnosis_04.png);
  }
}*/

.top-endoscopy {
    background-image: url(/wp-content/uploads/endoscopy-bg-01.png), url(/wp-content/uploads/endoscopy-bg-02-1.jpg), url(/wp-content/uploads/endoscopy-bg-03-1.png);
    background-position: left center, right top, right bottom;
    background-repeat: no-repeat;
    background-size: 50% 100%, 50% 50%, 50% 50%;
    /*height: 140vh;*/
}

.top-endoscopy .container {
    max-width: 1400px;
    padding: 0 20px;
}

.endoscopy-wrap {
    display: flex;
    color: #fff;
}

.endoscopy-container-r,
.endoscopy-container-l {
    width: 50%;
}

.endoscopy-container-l {
    padding-right: 40px;
}

.em-l,
.em-r {
    width: auto;
}

.scopy-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 32px;
}

.scopy-title span {
    font-size: 20px;
    padding-left: 1em;
    font-family: "Cinzel", serif;
}

.endoscopy-text p {
    line-height: 1.8;
}

.scopy-head {
    font-size: 28px;
    font-weight: 600;
    font-family: "Yu Mincho", "YuMincho", serif;
    border-bottom: 3px solid #fff;
    padding-bottom: 32px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.endoscopy-point {
    margin-top: 60px;
}

.endoscopy-point-item {
    background-color: #fff;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.25));
    padding: 40px 16px;
    text-align: center;
    position: relative;
    font-size: 24px;
    color: var(--main-color01);
    font-weight: 600;
    margin-bottom: 40px;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.endoscopy-point-item p:nth-of-type(2) {
    line-height: 1;
}

.point-icon {
    width: 80px;
    height: 80px;
    background: rgba(159, 139, 76, 0.8);
    position: absolute;
    left: -20px;
    top: -20px;
    color: #fff;
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 400;
    padding: 12px;
    line-height: 1.2;
}

.point-icon span {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.endoscopy-link a {
    display: block;
    color: #fff;
    padding: 24px;
    border-bottom: 1px solid #fff;
    position: relative;
    line-height: 1;
}

.endoscopy-link a::after {
    content: '';
    background-image: url(/wp-content/uploads/arrow-w.png);
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    width: 14px;
    color: #AAAAAA;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: center;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

@media (min-width: 768px) {
    .endoscopy-link a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .endoscopy-link a:hover::after {
        right: 25px;
    }
}

.accordion-container {
    padding: 50px 40px;
    /*height: 565px;*/
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.accordion-container_02 {
    margin-top: 30px;
}

.accordion-title {
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    position: relative;
    padding: 16px;
    border-bottom: 2px solid rgba(255, 255, 255);
    transition: all 0.3s;
    font-family: "Yu Mincho", "YuMincho", serif;
}


.accordion-title::before {
    position: absolute;
    content: "";
    right: 20px;
    background: #fff;
    border-radius: 1px;
    width: 18px;
    height: 2px;
    top: 50%;
    display: block;
}

.accordion-title::after {
    position: absolute;
    content: "";
    right: 20px;
    background: #fff;
    border-radius: 1px;
    width: 18px;
    height: 2px;
    transform: rotate(90deg);
    transition: 0.3s;
    top: 50%;
    display: block;
}

.accordion-title.open::after {
    transform: rotate(0);
}

.accordion-content {
    /*display: none; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-title.open+.accordion-content {
    /*display: block; */
    max-height: 1000px;
    /* 十分な高さを指定 */
}


.accordion-content_ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content_ul li a {
    color: #fff;
    padding: 24px;
    display: inline-block;
    line-height: 1;
    border-bottom: 1px solid #fff;
    width: 100%;
    position: relative;
}

.accordion-content_ul li a::after {
    content: '';
    background-image: url(/wp-content/uploads/arrow.png);
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    width: 14px;
    color: #AAAAAA;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}


@media (min-width: 768px) {
    .accordion-content_ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .accordion-content_ul li a:hover::after {
        right: 25px;
    }
}

.accordion-container.grade {
    position: relative;
}

.accordion-container.grade::before {
    opacity: 0.4;
}

.accordion-container.grade02 {
    position: relative;
}

.accordion-container.grade02::before {
    opacity: 0.4;
}


@media(max-width:767px) {
    .top-endoscopy {
        background: none;
        height: auto;
    }

    .endoscopy-wrap {
        display: block;
    }

    .top-endoscopy .container {
        padding: 0;
    }

    .endoscopy-container-l {
        background-image: url(/wp-content/uploads/endoscopy-bg-01.png);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .scopy-box:nth-of-type(1) {
        background-image: url(/wp-content/uploads/endoscopy-bg-02-1.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .scopy-box:nth-of-type(2) {
        background-image: url(/wp-content/uploads/endoscopy-bg-03-1.png);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .endoscopy-container-r,
    .endoscopy-container-l {
        width: 100%;
    }

    .endoscopy-container-l {
        padding: 40px 16px;
    }

    .endoscopy-point {
        margin: 60px 20px 0 20px;
    }

    .endoscopy-point-item {
        font-size: 20px;
    }

    .scopy-title {
        line-height: 1;
        margin-bottom: 20px;
    }

    .scopy-title span {
        padding: 0;
    }

    .accordion-title {
        padding: 16px 16px 16px 0;
    }

    .accordion-title::before,
    .accordion-title::after {
        right: 0;
    }

    .accordion-container {
        padding: 40px 16px;
    }
}

.feature-wrap {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-content {
    width: 48%;
}

.feature-head {
    margin-top: 180px;
    background: rgba(45, 77, 127, 0.8);
    color: #fff;
    font-family: "Cinzel", serif;
    text-align: center;
    position: relative;
}

.feature-img {
    position: absolute;
    top: -42%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.feature-head-inner {
    height: 233px;
}

.feature-no {
    color: #FFFFFF;
    font-size: 120px;
    position: relative;
}

.feature-no img {
    height: 84px;
}

.feature-title {
    font-size: 32px;
    margin-top: -20px;
    word-break: normal;
    overflow-wrap: break-word;
}

.feature-text {
    color: #000;
    padding-bottom: 40px;
}

.feature-text-head {
    text-align: center;
    font-size: 32px;
    padding: 40px 0;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.feature-link a {
    color: #fff;
    padding: 24px 32px 24px 16px;
    display: inline-block;
    line-height: 1.2;
    width: 100%;
    position: relative;
    background-color: var(--main-color01);
    margin-bottom: 20px;
    border-bottom: 2px solid #2D4D7F;
}

.feature-link a::after {
    content: '';
    background-image: url(/wp-content/uploads/arrow-w.png);
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 14px;
    color: #AAAAAA;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}


@media (min-width: 768px) {
    .feature-link a:hover {
        background: rgba(45, 77, 127, 0.2);
        border-bottom: 2px solid #2D4D7F;
    }

    .feature-link a:hover::after {
        right: 15px;
    }
}

@media (min-width: 768px) {
    .feature-content {
        display: flex;
        flex-direction: column; 
    }

    .feature-text {
        flex-grow: 1;
        padding-bottom: 40px; 
    }
    
    .feature-link {
        margin-top: auto; 
    }
}

@media(max-width:1200px) {
    .feature-content {
        width: 47%;
    }

    .feature-head {
        margin-top: 90px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-head-inner {
        height: 278px;
    }

    .feature-img {
        top: -25%;
    }
}

@media(max-width:960px) {
    .feature-img {
        top: -15%;
    }
}

@media(max-width:767px) {
    .feature-wrap {
        flex-wrap: wrap;
    }

    .feature-content {
        width: 100%;
    }

    .feature-img {
        top: -130%;
    }

    .feature-head {
        margin-top: 385px;
    }

    .feature-title {
        margin-top: -40px;
    }

    .feature-link a::after {
        right: 15px;
    }
}

@media (max-width: 675px) {
    .feature-img {
        top: -120%;
    }

    .feature-head {
        margin-top: 340px;
    }
}

@media (max-width: 575px) {
    .feature-img {
        top: -80%;
    }

    .feature-head {
        margin-top: 255px;
    }
}

@media (max-width: 480px) {
    .feature-img {
        top: -70%;
    }

    .feature-head {
        margin-top: 230px;
    }

    .feature-title {
        font-size: 20px;
        margin-top: -25px;
    }

    .feature-head-inner {
        height: 233px;
    }
}

@media (max-width: 430px) {
    .feature-img {
        top: -60%;
    }
}

@media (max-width: 375px) {
    .feature-img {
        top: -55%;
    }

    .feature-head {
        margin-top: 155px;
    }
}

.doctor-wrap {
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 60px;
    /*justify-content: flex-end;*/
    position: relative;
    flex-direction: row-reverse;
}

/*.doctor-wrap:before {
    content: '';
    position: absolute;
    right: 0;
    width: 588px;
    height: 418px;
    background-image: url(/wp-content/uploads/doctor-img.png);
    background-size: cover;
    background-position: center;
}*/

.doctor-img {
    /* display: none; */
    width: 45%;
    margin-right: -60px;
}

.doctor-content {
    position: relative;
    /*width: 700px;*/
    max-width: 784px;
    padding: 5px;
    /*margin-top: 140px;*/
    /*border: solid 8px var(--main-color02);
    background-color: rgba(255, 255, 255, 0.8);*/
    width: 50%;
}

/*.doctor-content > div {
    padding: 20px;
    border: solid 2px var(--main-color02);
}*/

.doctor-content p {
    font-size: 18px;
}

.doctor-content p span {
    display: block;
}

.doctor-heading {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 27px !important;
    padding-bottom: 32px;
    border-bottom: 3px solid var(--main-color02);
    font-weight: 600;
    margin-bottom: 40px;
}

.dr-name-box {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 20px !important;
    margin-top: 40px;
}

.dr-name {
    font-size: 30px !important;
    display: inline !important;
}

@media (max-width: 1400px) {
    .doctor-img {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .doctor-wrap {
        flex-direction: column-reverse;
        flex-wrap: wrap;
    }

    .doctor-wrap:before {
        display: none;
    }

    .doctor-content {
        margin-top: 0px;
    }

    .doctor-img {
        display: block;
        width: 100%;
    }

    .doctor-content {
        width: 100%;
    }

    .dr-name {
        display: block !important;
    }
}

.top-clinic {
    background-color: #fff;
}

.clinic-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    /*filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.25));*/
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.8);
    /*margin-top: -180px;*/
}

.clinic-map {
    display: flex;
    gap: 40px;
    padding-top: 80px;
}

.map-wrap {
    width: calc(100% - 458px);
}

.clinic-access {
    width: 418px;
}

.access-heading {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--main-color01);
    position: relative;
    font-family: "Yu Mincho", "YuMincho", serif;
}

.access-heading::before,
.access-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--main-color01);
}

.access-heading::before {
    margin-right: 1em;
}

.access-heading::after {
    margin-left: 1em;
}

.clinic-address {
    font-size: 20px;
    padding: 30px 0;
}

@media(max-width:768px) {
    .clinic-slider {
        margin-top: 30px;
    }

    .clinic-wrap {
        width: 90%;
        padding: 40px 16px;
        /*margin-top: -100px;*/
    }

    .clinic-map {
        flex-wrap: wrap;
        padding: 30px 0 0;
    }

    .map-wrap,
    .clinic-access {
        width: 100%;
    }
}

/*@media(max-width:480px) {
    .clinic-wrap {
        margin-top: -85px;
    }
}*/

.trouble-wrap {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.trouble-container {
    /*width: 30%;*/
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.trouble-head {
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #fff;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.trouble-head p {
    background-color: var(--main-color01);
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding-left: 40px;
}

.trouble-icon {
    width: 60px !important;
    height: 60px;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    position: relative;
}

.trouble-head span {
    font-family: "Cinzel", serif;
    font-size: 16px;
    padding-left: 1.5em;
}

.trouble-icon::before {
    content: '';
    width: 60px;
    height: 60px;
    background-size: cover;
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.trouble-icon.item01::before {
    background-image: url(/wp-content/uploads/trouble-icon-1.png);
}

.trouble-icon.item02::before {
    background-image: url(/wp-content/uploads/trouble-icon-2.png);
}

.trouble-icon.item03::before {
    background-image: url(/wp-content/uploads/trouble-icon-3.png);
}

.trouble-list-wrap {
    flex-grow: 1;
}

.trouble-list {
    list-style: none;
    padding: 16px 24px;
    background-color: #fff;
    margin-top: 16px;
    height: 100%;
}

.trouble-list li {
    position: relative;
    padding: 12px 0 12px 60px;
    border-bottom: 1px dashed #C3C3C3;
}

.trouble-list li::before {
    position: absolute;
    content: '';
    display: block;
    background-image: url(/wp-content/uploads/checkmark.png);
    background-size: cover;
    width: 27px;
    height: 26px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media(max-width:960px) {
    .top-trouble {
        background-color: #fff;
    }

    .trouble-wrap {
        flex-wrap: wrap;
        gap: 10px;
    }

    .trouble-container {
        width: 100%;
        flex: auto;
    }

    .trouble-head {
        margin-top: 10px;
    }

    .top-trouble .trouble-container:first-of-type .trouble-head {
        margin-top: 40px;
    }
}

/* 下層用 */
.trouble-list-under {
    list-style: none;
    padding: 16px 24px;
    margin-top: 16px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    border: 2px solid var(--main-color01);
}

.trouble-list-under li {
    position: relative;
    padding: 12px 0 12px 60px;
    border-bottom: 1px dashed #C3C3C3;
    width: 50%;
}

@media(max-width:767px) {
    .trouble-list-under li {
        width: 100%;
    }
}

.trouble-list-under li::before {
    position: absolute;
    content: '';
    display: block;
    background-image: url(/wp-content/uploads/checkmark.png);
    background-size: cover;
    width: 27px;
    height: 26px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.link-wrap {
    padding: 40px;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
}

.link-container.item01 a {
    width: 31%
}

.link-container.item02 a {
    width: 48%
}

.link-container a::after {
    content: none !important;
}

@media(max-width:767px) {

    .link-container.item01 a,
    .link-container.item02 a {
        width: 100%;
    }

    .link-wrap {
        padding: 40px 16px;
    }

    .top-link {
        background-color: #fff;
        padding: 0 0 30px;
        margin-top: 50px;
    }
}

.access-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}


.pdf-name-box {
    border: 1px solid rgb(204, 204, 204);
    display: inline-block;
    padding: 15px 55px 15px 10px;
}

.pdf-img {
    width: 30px;
    height: 30px;
}

.pdf-name {
    color: #5b5b5b;
}

.js-fade {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 1.5s, visibility 1.5s, transform 1.5s;
}

.scroll {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.js-fade-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.js-fade-stagger.scroll {
    opacity: 1;
    transform: translateY(0);
}

.fa-map-marker-alt:before {
    color: var(--main-color02);
}

section a[target="_blank"] {
    &:after {
        font-family: "Font Awesome 6 Free";
        content: "\f08e";
        font-weight: 900;
        margin: 0 0.25rem;
    }
}

.not-blank::after {
    content: none !important;
}

.accesiblity-bnr {
    width: 80px;
}

@media(max-width:768px) {
    .accesiblity-bnr {
        bottom: 80px;
        z-index: 9;
        width: 50px;
    }
}

#medical-infomation-1,
#medical-infomation-2,
#medical-infomation-3,
#medical-infomation-4 {
    padding-top: 120px;
    margin-top: -120px;

}

@media(max-width:960px) {

    #medical-infomation-1,
    #medical-infomation-2,
    #medical-infomation-3,
    #medical-infomation-4 {
        padding-top: 80px;
        margin-top: -80px;

    }
}

/* 院長からのアドバイス */
.style_box {
    border: 20px solid #babdd0;
}

.style_title {
    font-family: "Yu Mincho", "YuMincho", sans-serif;
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    border-bottom: 5px solid #babdd0;
    padding: 25px 20px;
    margin: 0;
    text-align: center;
    color: #203664;
    font-weight: 500;
}

.style_box .inner {
    padding: 35px;
}

@media screen and (max-width: 767px) {
    .style_title {
        font-size: 21px;
    }

    .style_box .inner {
        padding: 20px;
    }
}

/* faq */
.cp_qa01 {
    border-top: 1px solid var(--main-color01);
}

.cp_qa01 .cp_actab input {
    display: none;
}

/*質問テキスト*/
.cp_qa01 .cp_actab {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1px;
    color: #000;
}

.cp_qa01 .cp_actab label {
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 0 0;
    padding: 1em 2em 1em 1em;
    cursor: pointer;
    border-bottom: 1px solid var(--main-color01);
}

.cp_qa01 .cp_actab .cp_actab-content p {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 1em;
}

.cp_qa01 .cp_actab label:hover {
    color: var(--main-color01);
}

.cp_qa01 .cp_actab input:checked~label {
    color: var(--main-color01);
}

/*答えテキスト*/
.cp_qa01 .cp_actab .cp_actab-content {
    overflow: hidden;
    max-height: 0;
    color: #000;
    background: rgb(197, 196, 175, 0.5);
    transition: max-height 0.5s ease;
}

.cp_qa01 .cp_actab input:checked~.cp_actab-content {
    max-height: 40em;
}

/*アイコン*/
.cp_qa01 .cp_actab label::after {
    position: absolute;
    content: '';
    right: 10px;
    width: 15px;
    height: 10px;
    background: var(--main-color01);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transition: all 0.5s ease;
}

.cp_qa01 .cp_actab label:hover::after {
    background: var(--main-color01);
}

.cp_qa01 .cp_actab input[type=checkbox]:checked+label::after {
    transform: rotateX(180deg);
    background: var(--main-color01);
}

.cp_qa01 .cp_actab label::before {
    content: "Q";
    color: #fff;
    background: var(--main-color01);
    font-size: 1.5em;
    border-radius: 50%;
    width: 1.8em;
    height: 1.8em;
    display: flex;
    margin-right: 0.6em;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    font-family: "Times New Roman", "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", serif;
    flex-shrink: 0;
}

.cp_qa01 .cp_actab .cp_actab-content p::before {
    content: "A";
    color: #fff;
    background: var(--sub-color);
    font-size: 1.5em;
    border-radius: 50%;
    width: 1.8em;
    height: 1.8em;
    display: flex;
    margin-right: 0.6em;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    font-family: "Times New Roman", "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", serif;
    flex-shrink: 0;
}

.ibd-heading {
    font-weight: bold;
    color: var(--main-color01);
    font-size: 1.4rem;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .cp_qa01 .cp_actab label {
        padding: 1em 2em 1em 0.3em;
    }

    .cp_qa01 .cp_actab .cp_actab-content p {
        margin: 1em;
        gap: 5px;
        align-items: flex-start;
    }

    .cp_qa01 .cp_actab .cp_actab-content p::before {
        font-size: 1.3em;
        margin-right: 0.3em;

    }
    
    .ibd-heading {
        text-align: left;
    }
}