@charset "UTF-8";

/* loader
=======================================================*/
.loader {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: calc( var(--vh) * 100 );
  background-color: #fff;
  z-index: 100000;
}
.loader .txt {
    position: relative;
    font-size: clamp(1.25rem, 1.1rem + 0.09vw, 1.5rem);/*20px*/
    font-weight: 600;
    text-align: center;
    line-height: 2em;
    overflow: hidden;
}
.loader .txt::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0.1em;
    background-color: var(--color_6);
    -webkit-animation: loading-anime-line 0.8s ease-out 0.05s forwards;
            animation: loading-anime-line 0.8s ease-out 0.05s forwards;
}
@-webkit-keyframes loading-anime-line {
    0% { width: 0; }
    100% { width: 100%; }
}
@keyframes loading-anime-line {
    0% { width: 0; }
    100% { width: 100%; }
}

.loader .txt span {
    display: inline-block;
    transform: translateY(1.5em);
    -webkit-animation: loading-anime 0.4s ease-out 1.5s forwards;
            animation: loading-anime 0.4s ease-out 1.5s forwards;
}
@-webkit-keyframes loading-anime {
    0% { transform: translateY(1.5em); }
    100% { transform: translateY(0); }
}
@keyframes loading-anime {
    0% { transform: translateY(1.5em); }
    100% { transform: translateY(0); }
}

.loader .txt span:nth-of-type(2) {
    -webkit-animation-delay: 1.55s;
            animation-delay: 1.55s;
}
.loader .txt span:nth-of-type(3) {
    -webkit-animation-delay: 1.6s;
            animation-delay: 1.6s;
}
.loader .txt span:nth-of-type(4) {
    -webkit-animation-delay: 1.65s;
            animation-delay: 1.65s;
}
.loader .txt span:nth-of-type(5) {
    -webkit-animation-delay: 1.7s;
            animation-delay: 1.7s;
}
.loader .txt span:nth-of-type(6) {
    -webkit-animation-delay: 1.75s;
            animation-delay: 1.75s;
}
.loader .txt span:nth-of-type(7) {
    -webkit-animation-delay: 1.8s;
            animation-delay: 1.8s;
}
.loader .txt span:nth-of-type(8) {
    -webkit-animation-delay: 1.85s;
            animation-delay: 1.85s;
}
.loader .txt span:nth-of-type(9) {
    -webkit-animation-delay: 1.9s;
            animation-delay: 1.9s;
}
.loader .txt span:nth-of-type(10) {
    -webkit-animation-delay: 1.95s;
            animation-delay: 1.95s;
}

/*2回目以降非表示用*/

.loader.active {
  opacity: 0;
  visibility: hidden;
}

/* 固定診療時間
=======================================================*/
main {
    overflow: visible;
}

.fix-clinic-hours {
    position: fixed;
    left: 0;
    bottom: -2px;
    width: auto;
    max-width: 646px;
    min-width: 320px;
    height: auto;
    padding: 10px 30px;
    border: solid 1px var(--color_2);
    border-radius: 50px 50px 0 0;
    background-color: #ffffffe6;
    transform: translateY(0);
    z-index: 4000;
    transition: 0.3s;
    cursor: pointer;
}

.fix-clinic-hours.scroll-active {
    transform: translateY(calc(100% - 40px));
    transition: 0.5s;
    transition-delay: 0.2s;
}

.fix-clinic-hours h2 {
    font-size: clamp(14px, 1.11vw, 16px);
    line-height: 20px;
    color: var(--color_2);
    text-align: center;
}
.fix-clinic-hours:hover,
.fix-clinic-hours:active,
.fix-clinic-hours:focus {
    transform: translateY(0);
    transition: 0.5s;
}

/*fix-table*/
.fix-clinic-hours .clinic-hours-table {
    font-size: clamp(14px, 1.11vw, 16px);
}
.fix-clinic-hours .clinic-hours-table thead tr,
.fix-clinic-hours .clinic-hours-table tbody tr {
    border-bottom: var(--color_4) 0.5px solid;
}

.fix-clinic-hours p small {
    font-size: clamp(10px, 0.83vw, 12px);
    text-align: right;
}

@media screen and (max-width: 480px) {
    .fix-clinic-hours {
        display: none;
    }
}


/* fv
=======================================================*/
#fv {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    margin-top: 70px;
}

.title__container {
    position: absolute;
    top: 20%;
    left: 6.8%;
    width: 43%;
    max-width: 850px;
    z-index: 2;
}

.title__container .copy {
    margin-top: 3.125rem;
    font-size: clamp(1.5rem, 1.8vw + 0.1rem, 2.5rem);
    line-height: 2em;
}

.img__container {
    position: absolute;
    top: 5vh;
    right: 3%;
    width: 80%;
    height: 80vh;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
}

.img__container img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

@media screen and (max-width: 896px) {
    .title__container {
        width: 59%;
    }
    .title__container .copy {
        font-size: clamp(1.25rem, 1.8vw + 0.1rem, 2.5rem);
    }
    .img__container img {
        -o-object-position: right 34% top 10%;
           object-position: right 34% top 10%;
    }
}

@media screen and (max-width: 480px) {
    .title__container {
        top: 10%;
        width: 80%;
    }
    .title__container .copy {
        margin-top: 2rem;
        font-size: clamp(1.12rem, 1.66vw + 0.1rem, 2.5rem);
    }
    .img__container img {
        -o-object-position: right 40% top;
           object-position: right 40% top;
    }
}

/* carelink
=======================================================*/
#carelink {
    width: 80%;
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 0 30px;
    border: var(--color_2) 0.208vw solid;
    border-radius: 3.47vw;
    text-align: center;
    z-index: auto;
}

#carelink h2 {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding: 0 0.5em;
    color: var(--color_2);
    font-size: clamp(1.5rem, 1.666vw + 0.5rem, 3rem);
    line-height: 1.2em;
    transform: translateY(-60%);
    z-index: 1;
}
#carelink h2::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color_1);
    z-index: -2;
}
#carelink h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--color_5);
    z-index: -1;
}

.carelink__list {
    display: flex;
    justify-content: space-around;
}

.carelink__item {
    width: 17%;
}

.carelink__item > a {
    transition: 0.3s;
}

.carelink__item > a > div {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}
.carelink__item > a > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color_2);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.carelink__item > a > div img {
    transform: scale(1.1);
    transition: 0.5s;
}

.carelink__item > a:hover {
    color: var(--color_2);
    transition: 0.5s;
}

.carelink__item > a:hover > div::before {
    opacity: 0.5;
    transition: 0.5s;
}
.carelink__item > a:hover > div img {
    transform: scale(1.02);
    transition: 0.5s;
}

.carelink__item > a > p {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px auto 0;
    padding: 0 0.5em;
    font-size: clamp(1.25rem, 1.481vw + 0.1rem, 2.5rem);
    line-height: 1.6em;
    background-color: var(--color_5);
}

@media screen and (max-width: 896px) {
    #carelink {
        width: 90%;
    }

    .carelink__item {
        width: 25%;
    }
}

@media screen and (max-width: 480px) {
    #carelink {
        width: 80%;
        padding: 0;
    }
    .carelink__list {
        display: block;
    }
    .carelink__item {
        width: 60%;
        margin: 0 auto 2rem;
    }
}

/* t-message
=======================================================*/
#t-message {
    position: relative;
    padding: 66px 0 70px;
}
#t-message::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 190px;
    width: 50%;
    height: 100%;
    background-image: url(../img/img_hosp.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
}

#t-message .message__inner {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    height: 100%;
    margin: 0 auto 120px;
}
#t-message .message__inner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-color: var(--color_5);
    z-index: -2;
}

.message__inner h2 {
    -webkit-writing-mode: vertical-rl;
        -ms-writing-mode: tb-rl;
            writing-mode: vertical-rl;
    margin-right: 10%;
    margin-top: 60px;
}

.message__inner h2 p {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin-left: 3.125rem;
    padding-top: 0.5rem;
    color: var(--color_2);
    font-size: clamp(2.5rem, 1vw + 1.2917rem, 3rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4em;
    background-color: var(--color_1);
}
.message__inner h2 p:nth-of-type(2) {
    margin-top: 120px;
}
.message__inner h2 p:last-of-type {
    margin-top: 240px;
    margin-left: 0;
}

#t-message .message__inner .message-sub {
    margin: 15% auto 0 0;
    font-size: clamp(1.25rem, 1.111vw + 0.5rem, 2rem);
    line-height: 2em;
}

.message-sub .br__tab {
    display: none;
}

.message-sub .br__sp {
    display: none;
}

#t-message .link__wrap {
    margin-bottom: 41px;
}

#t-message .link__wrap p {
    padding-left: 3%;
    line-height: 80px;
    color: #C0D7C6;
    color: var(--color_6);
    background-color: var(--color_5);
}

#t-message .link__wrap button {
    width: 80%;
    max-width: 16.25rem;
    margin: -2.5rem 20% 0 auto;
    float: right;
    border-radius: 6.94vw;
}

#t-message .link__wrap button a {
    position: relative;
    display: block;
    padding: 0 12%;
    line-height: 5rem;
    color: var(--color_1);
    background-color: var(--color_2);
    border: var(--color_2) 0.1388vw solid;
    border-radius: 6.94vw;
    transition: 0.3s;
}
#t-message .link__wrap button a::before {
    content: "▶";
    position: absolute;
    top: 50%;
    top: 0;
    right: 10%;
    transition: 0.3s;
}

#t-message .link__wrap button a:hover {
    color: var(--color_2);
    background-color: var(--color_6);
    transition: 0.3s;
}
#t-message .link__wrap button a:hover::before {
    transform:  translateX(5px);
    transition: 0.3s;
}

@media screen and (min-width: 1920px) {
    #t-message {
        padding: 160px 0 70px;
    }
}

@media screen and (max-width: 1024px) {    
    #t-message::before {
        width: 60%;
    }
}

@media screen and (max-width: 896px) {
    #t-message .message__inner {
        display: block;
    }
    .message__inner h2 {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 90%;
        -webkit-writing-mode: unset;
            -ms-writing-mode: unset;
                writing-mode: unset;
        margin-right: auto;
        margin-left: auto;
    }
    .message__inner h2 p {
        margin-left: 0;
        padding-top: 0;
        padding-left: 0.5em;
    }
    .message__inner h2 p:nth-of-type(2),
    .message__inner h2 p:last-of-type {
        margin-top: 0.5em;
    }

    #t-message .message__inner .message-sub {
        margin: 10% auto 0 0;
    }

    .message-sub .br__tab {
        display: block;
    }

    #t-message .link__wrap p {
        color: transparent;
        white-space: nowrap;
    }

    #t-message .link__wrap button {
        margin: -2.5rem 5% 0 auto;
    }
}

@media screen and (max-width: 480px) {
    #t-message::before {
        width: 90%;
    }
    #t-message .message__inner {
        margin: 0 auto 10rem;
    }

    .message__inner h2 {
        margin-top: 2rem;
    }

    .message__inner h2 p {
        font-size: clamp(1.5rem, 1vw + 1.2917rem, 3rem);
    }

    .message-sub .br__sp {
        display: block;
    }

    .message-sub .br__sp-none {
        display: none;
    }

    #t-message .link__wrap button,
    #t-message .link__wrap button a {
        border-radius: 14vw;
    }
}

/* guidance
=======================================================*/
#guidance {
    position: relative;
    padding: 130px 0;
    background-color: var(--color_5);
}
#guidance::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    height: 35%;
    transform: rotate(180deg);
    background-image: url(../img/bg_motif.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    opacity: 0.3;
}

#guidance h2 {
    margin-left: 40%;
    color: var(--color_2);
    font-size: clamp(1.25rem, 1.55vw + 0.5rem, 2.25rem);
    line-height: 2em;
}

.guidance-details {
    position: relative;
    height: 100%;
    margin: 3.125rem auto 0;
}

.details__inner {
    position: relative;
    display: flex;
    margin: 0 auto 5%;
    z-index: 0;
}


.details__inner::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8.8vw;
    height: 12.1vw;
    background-image: url(../img/pinkribon.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.7;
    transform: rotate(20deg);
    z-index: -1;
}
.guidance-details:last-of-type .details__inner::before {
    display: none;
}

.details__img {
    width: 35%;
    height: auto;
    border-radius: 3.472vw;
    overflow: hidden;
}
.details__img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.details__text {
    width: 50%;
    margin-left: 8%;
    line-height: 2.5em;
}

.details__text span {
    border-bottom: var(--color_3) 0.208vw solid;
}

.guidance-details:last-of-type {
    position: relative;
}
.guidance-details:last-of-type::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    max-width: 900px;
    height: 100%;
    border-radius: 50px 0 0 50px;
    background-image: url(../img/guidance_doctor.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.guidance-details:last-of-type .details__inner {
    display: block;
    margin: 10rem auto 0;
}

.guidance-details:last-of-type .details__inner h3 {
    color: var(--color_2);
    font-size: clamp(1.25rem, 1.55vw + 0.5rem, 2.25rem);
    line-height: 2.6em;
}

.guidance-details:last-of-type .details__inner h3 span {
    position: relative;
    display: inline-block;
    z-index: 0;
}
.guidance-details:last-of-type h3 span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 0.8em;
    background-color: var(--color_1);
    z-index: -1;   
}

.addition {
    width: clamp(20rem, 30vw, 40rem);
    min-width: 400px;
    margin-top: clamp(5rem, 8.33vw + 0.5rem, 10rem); 
    padding: 1.25rem 1.25rem 1.25rem 1rem; 
    border: var(--color_4) 0.0625rem solid;
    background-color: var(--color_1);
    font-size: 90%;
}
.addition ul li {
    position: relative;
    margin-left: 1.5em;
    margin-bottom: 1em;
}
.addition ul li:last-of-type {
    margin-bottom: 0;
}
.addition ul li::before {
    content: "■";
    position: absolute;
    top: 0;
    left: -1.5em;
    font-size: 60%;
}

/*button*/
#guidance button {
    width: 80%;
    max-width: 16.25rem;
    margin: -2.5rem 11.25% 0 auto;
    float: right;
    border-radius: 6.94vw;
    z-index: 2;
}

#guidance button a {
    position: relative;
    display: block;
    padding: 0 12%;
    line-height: 5rem;
    color: var(--color_1);
    background-color: var(--color_2);
    border: var(--color_2) 0.125rem solid;
    border-radius: 6.94vw;
    transition: 0.3s;
}
#guidance button a::before {
    content: "▶";
    position: absolute;
    top: 0;
    right: 10%;
    transition: 0.3s;
}

#guidance button a:hover {
    color: var(--color_2);
    background-color: var(--color_6);
    transition: 0.3s;
}
#guidance button a:hover::before {
    transform:  translateX(5px);
    transition: 0.3s;
}

@media screen and (min-width: 1920px) {
    .details__inner::before {
        right: 0;
        bottom: 0;
        width: 6vw;
        height: 9vw;
    }
}

@media screen and (max-width: 896px) {
    #guidance {
        padding: 80px 0;
    }
    #guidance h2 {
        margin-left: 20%;
        font-size: clamp(1.25rem, 1.55vw + 0.5rem, 2.25rem);
    }
    .details__inner {
        display: block;
    }
    .details__inner::before {
        bottom: -2rem;
        width: 15%;
        height: 30%;
    }
    .details__img {
        width: 60%;
    }
    .details__text {
        width: 90%;
        margin: 2.5rem auto 0 0;
    }
    .guidance-details:last-of-type::before {
        position: relative;
        top: 0;
        margin: 3rem 0 0 auto;
        width: 70%;
        height: 22rem;
        display: block;
    }
    .guidance-details:last-of-type .details__inner {
        margin: 5rem auto 0;
    }
    .guidance-details:last-of-type .details__inner h3 {
        font-size: clamp(1.125rem, 1.55vw + 0.5rem, 2.25rem);
    }
    .addition {
        width: 100%;
        max-width: 550px;
        margin: 2.5rem auto 3rem 0;
    }
    #guidance button {
        margin: 2rem 5% 0 auto;
    }
}

@media screen and (max-width: 480px) {
    #guidance h2 {
        margin-left: 5%;
    }
    .guidance-details:last-of-type::before {
        width: 95%;
    }
    .details__img {
        width: 75%;
    }
    .addition {
        min-width: auto;
        padding: 1.25rem 2% 1.25rem; 
    }
    #guidance button, #guidance button a {
        border-radius: 14vw;
    }
}

/* contact
=======================================================*/
#contact {
    padding: 10rem 0 7.5rem;
    background-color: var(--color_1);
}

#contact h2 {
    margin: 0 auto 3.125rem;
    font-size: clamp(1.25rem, 1.111vw + 0.5rem, 2rem);
    color: var(--color_2);
}

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

.contact__contents-left {
    width: 40%;
    line-height: 1.5em;
}

.contact__contents-left p {
    margin-bottom: 3.125rem;
}

.contact__contents-left ul li {
    position: relative;
    margin-bottom: 2em;
    margin-left: 1.1em;
}
.contact__contents-left ul li::before {
    content: "※";
    position: absolute;
    top: 0;
    left: -1.1em;
}

.contact__contents-right {
    width: 45%;
}

.contact__contents-right dl dt {
    line-height: 1.8em;
}

.contact__contents-right dl dt span {
    color: var(--color_3);
    font-size: 80%;
    margin-left: 0.5em;
}

.contact__contents-right dl dd {
    margin-bottom: 1.25rem;
}

.contact__contents-right dl dd input {
    width: 100%;
    padding: 0.1875rem 0.3125rem;
}

.contact__contents-right dl dd textarea {
    width: 100%;
    overflow-y: scroll;
    resize: none;
}

/*承諾確認*/
.wpcf7-list-item {
    display: block;
    line-height: 1;
    margin-left: 0;
}

.wpcf7-list-item + .wpcf7-list-item {
    margin-top: 1.5rem;
}

input[type="checkbox"] {
    display: none;
}

.wpcf7-list-item-label {
    position: relative;
    display: inline-block;
    height: 1.25rem;
    line-height: 1.25rem;
    padding-left: 1.5625rem;
}
.wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: block;/*
    width: 20px;
    height: 20px;*/
    width: 1.25rem;
    height: 1.25rem;
    border: 0.125rem solid #d2d2d2;
    background: var(--color_1);
    box-sizing: border-box;
}
input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    content: "";
    display: block;
    width: 8px;
    height: 6px;
    border-top: 3px solid var(--color_2);
    border-right: 3px solid var(--color_2);
    transform: rotate(135deg);
    position: absolute;
    left: 5px;
    top: 4px;
}

/*プライバシーポリシーリンク*/
.contact__contents-right .check a {
    border-bottom: 1px solid var(--color_4);
    transition: 0.1s;
}

.contact__contents-right .check a:hover {
    transition: 0.1s;
    opacity: 0.5;
}

.contact__contents-right .submit__wrap {
    position: relative;
    width: 80%;
    max-width: 16.25rem;
    height: 5rem;
    margin: 3.125rem 0 0 auto;
    color: var(--color_1);
    background-color: var(--color_2);
    border: var(--color_2) 0.125rem solid;
    border-radius: 6.94vw;
}

.contact__contents-right .submit__wrap input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1.25rem;
    width: 100%;
    line-height: 5rem;
    padding: 0 12%;
    border-radius: 6.94vw;
    transition: 0.3s;
    cursor: pointer;
}

.contact__contents-right .submit__wrap input[type="submit"]:disabled {
    pointer-events: none;
    opacity: 0.6; 
    background-color: transparent; 
}
.contact__contents-right .submit__wrap:has(input[type="submit"]:disabled) {
    background-color: #d2d2d2;
    border-color: #d2d2d2;
    cursor: not-allowed;
}

span.wpcf7-spinner {
  display: none;
}

input.wpcf7-submit {
    background-color: transparent; 
}

.contact__contents-right .submit__wrap::before {
    content: "▶";
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    transition: 0.3s;
}

.contact__contents-right .submit__wrap:hover {
    color: var(--color_2);
    background-color: var(--color_6);
    transition: 0.3s;
}

.contact__contents-right .submit__wrap:has(input[type="submit"]:disabled):hover {
    color: var(--color_1);
    background-color: #d2d2d2;
}

.contact__contents-right .submit__wrap:has(input[type="submit"]:disabled):hover::before {
    transform: translateX(0) translateY(-50%);
}

@media screen and (max-width: 1024px) {
    .contact__contents-right {
        width: 50%;
    }
}

@media screen and (max-width: 896px) {
    .contact__inner {
        display: block;
    }

    .contact__contents-left,
    .contact__contents-right {
        width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .contact__contents-right .submit__wrap,
    .contact__contents-right .submit__wrap input[type="submit"] {
        border-radius: 14vw;
    }
}

