@charset "UTF-8";

/* message
=======================================================*/
#message {
    padding: 6.25rem 0 5rem;
}

.message__wrap {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}


.message__title {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 5rem auto 3.125rem;
    font-size: clamp(24px, 2.2vw + 0.05rem, 56px);
    line-height: 1.5em;

}
.message__title::first-letter,
.message__title span.color {
    color: var(--color_2);
}
.message__title span.second {
    margin-left: 2em;
}


.message__contents {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 2em;
}

.message__contents .message__name {
    margin-top: 2em;
    text-align: right;
}


@media screen and (min-width: 1920px) {
    #message {
        padding: 15rem 0 10rem;
    }
}

@media screen and (max-width: 896px) {
    #message {
        padding: 5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .message__title {
        margin: 3rem auto;
        font-size: clamp(20px, 2.2vw + 0.05rem, 56px);
    }
    .message__title span.second {
        margin-left: 0;
    }
    .message__contents {
        width: 90%;
    }
}

@media screen and (max-width: 345px) {
    .message__title {
        font-size: clamp(18px, 2.2vw + 0.05rem, 56px);
    }
}


/* Doctor
=======================================================*/
#doctor {
    padding: 6.25rem 0 5rem;
}

.doctor {
    margin-top: 10rem;
}

.doctor__imgwrap {
    position: relative;
    width: 60%;
    max-width: 1100px;
    height: auto;
    aspect-ratio: 1.94 / 1;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    z-index: auto;
}

.doctor__imgwrap h3 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 46%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    border-bottom: var(--color_2) 1px solid;
}

.doctor__imgwrap h3 .d-job {
    color: var(--color_2);
    font-size: clamp(1.25rem, 1.6667vw + 0.05rem, 1.875rem);
    line-height: 2em;
    letter-spacing: 0.24em;
}

.doctor__imgwrap h3 .d-name {
    font-size: clamp(1.5rem, 2vw + 0.05rem, 2.5rem);
    line-height: 2em;
}

.doctor__imgwrap h3 small {
    line-height: 2em;
    margin-bottom: 0.625rem;
}

.doctor__imgwrap .img__container {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: auto;
    margin-right: 0 0 0 auto;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    z-index: -1;
}
.doctor__imgwrap .img__container img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.doctor__profilewrap {
    width: 80%;
    max-width: 1400px;
    margin: 3.125rem auto 0;
    padding: 0 3% 3%;
    z-index: auto;
    background-color: var(--color_5);
}

.doctor__profilewrap h4 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    padding: 0.5em 4em;
    transform: translateY(-50%);
    font-size: clamp(1.125rem, 1.3vw +0.05rem, 2rem);
    line-height: 2.5rem;
    color: var(--color_2);
    border: var(--color_2) 1px solid;
    border-radius: 10px;
    background-color: var(--color_1);
}

.doctor__profilewrap .profile__list {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    letter-spacing: -0.02em;
}

.doctor__profilewrap .profile__list .profile__item:last-of-type {
    margin-right: 0;
}

.doctor__profilewrap .profile__list .profile__item h5 {
    margin-bottom: 0.5em;
    color: var(--color_2);
}

.doctor__profilewrap .profile__list .profile__item p {
    position: relative;
    margin-left: 1em;
    line-height: 2em;
}
.doctor__profilewrap .profile__list .profile__item p::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1em;
    width: 3px;
    height: 100%;
    background-color: var(--color_2);
}

/*院長用*/
.hospital-director .doctor__profilewrap .profile__list {
    flex-direction: column;
}

.hospital-director .doctor__profilewrap .profile__list .profile__item:first-of-type {
    margin-bottom: 3rem;
}

.hospital-director .doctor__profilewrap .profile__list .profile__item p {
    display: flex;
}

.hospital-director .doctor__profilewrap .profile__list .profile__item p span:first-of-type {
    display: inline-block;
    width: 120px;
}
.hospital-director .doctor__profilewrap .profile__list .profile__item p span:last-of-type {
    display: inline-block;
    width: calc(100% - 120px);
}

/*.doctor偶数番目用*/
.doctor:nth-of-type(odd) .doctor__imgwrap h3 {
    left: auto;
    right: 0;
}
.doctor:nth-of-type(odd) .doctor__imgwrap h3 .d-job,
.doctor:nth-of-type(odd) .doctor__imgwrap h3 .d-name,
.doctor:nth-of-type(odd) .doctor__imgwrap h3 small {
    text-align: right;
}

.doctor:nth-of-type(odd) .doctor__imgwrap .img__container {
    right: auto;
    left: 0;
}

.doctor__comment {
    width: 60%;
    max-width: 1100px;
    margin: 1.25rem auto;
    line-height: 2em;
}
@media screen and (max-width: 1024px) {  
    .doctor {
        margin-top: 5rem;
    }
    .doctor:last-of-type {
        margin-top: 10rem;
    }
    .doctor__imgwrap {
        width: 80%;
    }
    .doctor__profilewrap {
        width: 90%;
    }
    /*院長用*/
    .hospital-director .doctor__profilewrap .profile__list .profile__item p span:first-of-type {
        width: 100px;
    }
    .hospital-director .doctor__profilewrap .profile__list .profile__item p span:last-of-type {
        width: calc(100% - 100px);
}
}
@media screen and (max-width: 896px) {
    #doctor {
        padding: 5rem 0;
    }
    .doctor__imgwrap h3 {
        top: 25%;
    }
    .doctor__profilewrap .profile__list {
        display: grid;
        grid-template-columns: 2fr 1fr;
        padding: 0 5% 5% 5%;
    }
    .doctor__profilewrap .profile__list .profile__item:first-of-type,
    .doctor__profilewrap .profile__list .profile__item:nth-of-type(3) {
        padding-right: 10%;
    }
    .doctor__profilewrap .profile__list .profile__item:nth-of-type(3),
    .doctor__profilewrap .profile__list .profile__item:last-of-type {
        margin-top: 2em;
    }
    .doctor__profilewrap .profile__list .profile__item p {
        line-height: 1.2em;
        padding-top: 0.5em;
    }
    .doctor__comment {
        width: 80%;
    }
    /*院長用*/
    .hospital-director .doctor__profilewrap .profile__list {
        grid-template-columns: 1fr;
    }
    .hospital-director .doctor__profilewrap .profile__list .profile__item:first-of-type {
        margin-bottom: 1.5rem;
        padding-right: 0;
    }
}
@media screen and (max-width: 480px) {
    .doctor:last-of-type {
        margin-top: 5rem;
    }
    .doctor__imgwrap {
        width: 90%;
    }
    .doctor__imgwrap h3 {
        top: 15%;
    }
    .doctor__imgwrap h3 .d-name {
        font-size: clamp(1.5rem, 2vw + 0.05rem, 2.5rem);
    }
    .doctor__imgwrap h3 .d-name {
        font-size: clamp(1.125rem, 2vw + 0.05rem, 2.5rem);
    }
    .doctor__imgwrap h3 small {
        font-size: 80%;
        line-height: 1.5em;
    }
    .doctor__imgwrap .img__container {
        width: 62%;
    }
    
    .doctor__profilewrap h4 {
        padding: 0.25em 2em;
    }

    .doctor__profilewrap .profile__list {
        grid-template-columns: 1fr;
        padding: 0 1% 10% 3%;
    }      
    .doctor__profilewrap .profile__list .profile__item:nth-of-type(2),
    .doctor__profilewrap .profile__list .profile__item:nth-of-type(3),
    .doctor__profilewrap .profile__list .profile__item:last-of-type {
        margin-top: 1em;
    }
    /*院長用*/
    .hospital-director .doctor__profilewrap .profile__list .profile__item p {
        display: block;
    }
    .hospital-director .doctor__profilewrap .profile__list .profile__item p span:first-of-type {
        width: 100%;
    }
    .hospital-director .doctor__profilewrap .profile__list .profile__item p span:last-of-type {
        width: 100%;
        margin: 0.5em 0;
    }
}

/* gallery
=======================================================*/
#gallery { 
    padding: 10rem 0;
    background-image: url(../img/gallery_bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 50%;
}

#gallery .contents__wrap {
    width: 80%;
    max-width: 2200px;
    margin: 0 auto;  
}

.slick-slide {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 5px; 
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.85);
    opacity: 0.7;
}

.slick-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

/* .slick-center 以外のすべてのスライドに適用 */
.slick-slide:not(.slick-center) {
    transform: scale(0.8);
    opacity: 0.7;
}

/* 3. 中央（アクティブ）の状態 */
.slick-slide.slick-center {
    margin: 0 5px; 
    transform: scale(1);
    opacity: 1.0;
}

.arrow__box {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 1.25rem 0 0;
    text-align: center;
}

.slide__arrow {
    display: inline-block;
    width: 20px;
    height: 24px;
    background-color: var(--color_4);
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
            clip-path: polygon(0 0, 100% 50%, 0 100%);
    cursor: pointer;
}

.prev__arrow {
    transform: rotate(180deg);
    margin-right: 5rem;
}

@media screen and (max-width: 1024px) {  
    #gallery .contents__wrap {
        width: 90%;
    }
}

@media screen and (max-width: 896px) {  
    #gallery { 
        padding: 5rem 0;
    }
}
@media screen and (max-width: 480px) {
}

/* history（沿革）
=======================================================*/
#history {
    padding: 6.25rem 0 10rem;
}

#history .contents__wrap {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

#history .contents__wrap h2 {
    margin-left: 0;
}

#history .contents__wrap h2 .ja {
    padding: 0.8em 2em;
}

.history__list {
    margin-top: 2.5rem;
    line-height: 1.5em;
}

.history__list div {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    margin-bottom: 3.125rem;
    border-left: #D9D9D9 0.125rem solid;
}

.history__list dt {
    width: 17.5rem;
    font-weight: 700;
}

.history__list dt p {
    display: inline-block;
    letter-spacing: -0.04em;
}

.history__list dt p.year {
    width: 58%;
    padding-left: 1.5em;
}

.history__list dt p.date {
    width: 42%;
}

.history__list dd {
    width: calc(100% - 17.5rem);
}

.about-employment-environment {
    margin-top: 10rem;
    padding: 0 3% 2%;
    background-color: #FFFBF2;
    border-radius: 1vw;
}

.about-employment-environment h3 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    transform: translateY(-0.6em);
    line-height: 1.2em;
    color: var(--color_2);
    font-size: clamp(1.125rem, 1.3888vw, 1.75rem);
    font-weight: 700;
}

.about-employment-environment p {
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.about-employment-environment ol li {
    list-style: decimal;
    margin-left: 2em;
}


@media screen and (min-width: 1920px){
    .history__list dt {
        width: 25rem;
    }
    .history__list dd {
        width: calc(100% - 25rem);
    }
}

@media screen and (max-width: 896px) { 
    .history__list dt {
        width: 15rem;
    } 
    .history__list dd {
        width: calc(100% - 15rem);
    }
    .about-employment-environment {
        margin-top: 5rem;
        padding: 0 3% 5%;
    }
}
@media screen and (max-width: 480px) {
    #history {
        padding: 5rem 0;
    }
    #history .contents__wrap {
        width: 90%;
    }
    #history .contents__wrap h2 {
        margin-left: auto;
    }
    .history__list div {
        display: block;
        margin-bottom: 2rem;
    }
    .history__list dd {
        width: 100%;
        padding-top: 1em;
        padding-left: 1.5em;
    }
}
