


/* top */

.top {
    padding: 90px 20px;
    position: relative;

}

.swiper {
    border-radius: 20px;
    width: 100%;
    height: 90vh;
}

@keyframes zoomUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.20);
    }
}

/* アクティブなスライドの画像にズームアップアニメーション */
.swiper-slide-active .swiper-img,
.swiper-slide-duplicate-active .swiper-img,
.swiper-slide-prev .swiper-img {
    animation: zoomUp 6s linear both;
}

.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* タイトルの配置 */
.top h2 {
    position: absolute;
    z-index: 300;
    font-size: 65px;
    top: 240px;
    left: 100px;
    color: #fff;
    font-weight: normal;
    line-height: 45px;
    font-family: serif;
    margin: 0;
}

.top h2 p {
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

/* ■ レスポンシブ対応 ■ */

/* iPad用（1024px以下） */
@media (max-width: 1024px) {
    .swiper {
        height: 80vh;
    }

    .swiper-slide img {
        height: 80vh;
    }

    .top h2 {
        font-size: 50px;
        top: 200px;
        left: 50px;
        line-height: 40px;
    }

    .top h2 p {
        font-size: 16px;
    }
}

/* スマートフォン用（768px以下） */
@media (max-width: 768px) {
    .top {
        padding: 80px 10px;
    }


    .swiper {
        height: 75vh;
    }

    .swiper-slide img {
        height: 75vh;
    }

    .top h2 {
        font-size: 30px;
        top: 230px;
        left: 50px;
        line-height: 30px;
        text-align: center;
    }

    .top h2 p {
        font-size: 10px;
    }
}








/* トップ　診療時間の動くボード */

.ch {
    font-size: 20px;
    position: fixed;
    right: 0;
    top: 400px;
    display: flex;
    transition: top 0.3s ease, right 0.3s ease;
}

.consultation_hour {
    z-index: 100;
}

.consultation_hour_2nd {
    z-index: 90;
}


.chb {
    border: 0.3px solid #fff;
    background-color: #161666;
    color: #fff;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    font-size: 25px;
    
    writing-mode: vertical-rl;
    padding: 20px 10px;
    letter-spacing: 6px;
    cursor: pointer;
}

.chb i {
    font-size: 20px;
    margin: 0;
}

.ch table {
    background-color: #a3a3a3;
}


.ch th,
.ch td {
    padding: 0 30px;
    text-align: center;
}

.ch td {
    background-color: #fff;
}

.ch table thead {
    background-color: #626370;
    font-size: 20px;
    color: #fff;
}


.consultation_hour.scrolled {
    right: -925px;
}

.consultation_hour.open {
    right: -1025px;
}

.consultation_hour_2nd.closed {
    right: -836px;
}

.consultation_hour_2nd.open {
    top: 400px;
    right: 0;
}


@media (max-width: 1024px) {

.ch {
        top: 400px;
    }

.chb {
        font-size: 20px;
        padding: 12px 10px;
    }

  .ch th,
   .ch td {
        padding: 0 20px;
        font-size: 18px;
    }

    .consultation_hour_2nd.closed {
        right: -680px;
    }

    .consultation_hour_2nd.open {
        top: 400px;
        right: 0;
    }


}


@media (max-width: 768px) {

.ch {
        top: 350px;
        display: none;
    }

.chb {
        font-size: 18px;
        padding: 10px 8px;
        display: none;
    }


   .ch th,
    .ch td {
    padding: 0 15px;
   font-size: 16px;
    }
}



/* スクロールダウン */


.scroll_down {
    display: none;
}


@media (max-width: 768px) {

    .scroll_down {
        display: block;
        position: absolute;
        width: 80%;
        height: 100vh;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        background-size: cover;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        z-index: 10;
    }

    .scroll_down:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        background: linear-gradient(180deg, rgba(#000, 0) 0, rgba(#000, .8) 80%, rgba(#000, .8) 100%);
    }

    .scroll_down a {
        display: inline-block;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        width: 13px;
        padding: 10px 10px 110px;
        color: #3B3D6A;
        font-size: 14px;
        font-family: 'Josefin Sans', sans-serif;
        line-height: 1;
        letter-spacing: .2em;
        text-transform: uppercase;
        text-decoration: none;
        writing-mode: vertical-lr;
        transition: .2s;
        overflow: hidden;
        margin: auto;
    }

    .scroll_down a:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 1px;
        height: 100px;
        background: #ddd;
    }

    .scroll_down a:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 1px;
        height: 100px;
        background: #3B3D6A;
    }

    .scroll_down a:hover {
        opacity: .5;
    }

    #type01 a:after {
        animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
    }

    @keyframes sdl01 {
        0% {
            transform: scale(1, 0);
            transform-origin: 0 0;
        }

        50% {
            transform: scale(1, 1);
            transform-origin: 0 0;
        }

        50.1% {
            transform: scale(1, 1);
            transform-origin: 0 100%;
        }

        100% {
            transform: scale(1, 0);
            transform-origin: 0 100%;
        }
    }


}


/* ■ 基本スタイル ■ */
.message {
    width: 100%;
    overflow: hidden;
}

.message h3 {
    text-align: center;
    font-weight: normal;
    line-height: 70px;
    letter-spacing: 2px;
    /* 必要に応じて font-size も追加可能 */
}

/* スワイパーのコンテナ */
.message-container {
    width: 100%;
    height: fit-content;
    /* コンテンツに合わせた高さ */
    margin: 150px auto;
}

/* 各スライド内の画像 */
.message-slide img {
    width: 90%;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
}

/* スライドの上下オフセット（凸凹効果） */
.message-slide:nth-child(odd) {
    transform: translateY(-60px);
}

.message-slide:nth-child(even) {
    transform: translateY(60px);
}

/* スワイパーラッパーのトランジション */
.message .swiper-wrapper {
    transition-timing-function: linear;
}

/* ■ レスポンシブ対応 ■ */

/* iPad用（1024px 以下） */
@media (max-width: 1024px) {
    .message h3 {
        line-height: 60px;
        font-size: 1.2em;
        /* 調整例 */
    }

    .message-container {
        margin: 100px auto;
    }

    .message-slide img {
        height: 350px;
    }

    .message-slide:nth-child(odd) {
        transform: translateY(-40px);
    }

    .message-slide:nth-child(even) {
        transform: translateY(40px);
    }
}

/* スマートフォン用（768px 以下） */
@media (max-width: 768px) {
    .message h3 {
        line-height: 45px;
        font-size: 0.9em;
        /* さらに小さめに */
    }

    .message-container {
        margin: 100px auto 50px;
    }

    .message-slide img {
        height: 200px;
    }

    .message-slide:nth-child(odd) {
        transform: translateY(-20px);
    }

    .message-slide:nth-child(even) {
        transform: translateY(20px);
    }
}

/* ■ 基本スタイル ■ */
.Topics {
    margin: 50px auto;
    font-family: serif;
    background-color: #161666;
    color: #f3f3f3;
    padding: 100px 4% 50px;
    display: flex;
    position: relative;
    align-items: flex-start;
}

.Topics h3 {
    writing-mode: vertical-rl;
    font-size: 40px;
    letter-spacing: 15px;
    margin: 0 20px 0 0;
}

.Topics ul {
    width: 90%;
    margin: auto;
    list-style: none;
    padding: 0;
}

.Topics ul .alert {
    width: fit-content;
    background-color: #C22E2E;
    padding: 1px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    border: none;
}

.Topics ul .alert img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.Topics ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;
    padding: 15px 10px;
}

.Topics ul li h4 {
    margin: 15px 0;
    font-size: 25px;
    font-weight: normal;
}

.Topics ul li .text {
    line-height: 40px;
    color: #a3a3a3;
}

.Topics .topics_btn {
    display: flex;
    justify-content: flex-end;
    margin: 50px 0 0;
}

.Topics .topics_btn a {
    border: 1px solid #fff;
    width: fit-content;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

/* ■ iPad向け（1024px以下） ■ */
@media (max-width: 1024px) {
    .Topics {
        padding: 80px 4% 40px;
        /* スタック表示に変更 */
        flex-direction: column;
        align-items: center;
    }

    .Topics h3 {
        /* 縦書きを横書きに変更すると見やすい場合も */
        writing-mode: horizontal-tb;
        font-size: 35px;
        letter-spacing: 15px;
        margin-bottom: 20px;
        text-align: center;
    }

    .Topics ul {
        width: 100%;
    }

    .Topics ul li {
        padding: 12px 10px;
        margin-bottom: 15px;
    }

    .Topics ul li h4 {
        font-size: 22px;
        margin: 12px 0;
    }

    .Topics ul li .text {
        line-height: 35px;
        font-size: 16px;
    }

    .Topics .topics_btn {
        margin: 40px 0 0;
        justify-content: center;
    }

    .Topics .topics_btn a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ■ スマートフォン向け（768px以下） ■ */
@media (max-width: 768px) {
    .Topics {
        padding: 50px 4% 30px;
        flex-direction: column;
        align-items: center;
    }

    .Topics h3 {
        writing-mode: horizontal-tb;
        font-size: 30px;
        letter-spacing: 5px;
        margin-bottom: 20px;
        text-align: center;
    }

    .Topics ul {
        width: 100%;
    }

    .Topics ul li {
        padding: 10px 8px;
        margin-bottom: 12px;
    }

    .Topics ul li h4 {
        font-size: 18px;
        margin: 10px 0;
    }

    .Topics ul li .text {
        line-height: 25px;
        font-size: 13px;
    }

    .Topics .topics_btn {
        margin: 30px 0 0;
        justify-content: center;
    }

    .Topics .topics_btn a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ■ 基本スタイル ■ */
.Medical {
    padding: 100px 6%;
}

.Medical h3 {
    font-size: 40px;
    margin: 10px auto 20px;
    letter-spacing: 10px;
    color: #161666;
    text-align: center;
}

.Medical h3 span {
    font-size: 20px;
    color: #333;
}

.Medical .text {
    width: fit-content;
    margin: auto;
    line-height: 30px;
    color: #161666;
    margin-bottom: 40px;
}

.Medical ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 auto 50px;
}

.Medical ul li {
    width: 32.3%;
    margin: 10px 0;
    padding: 130px 10px 10px 0;
    background-size: cover;
    position: relative;
    box-sizing: border-box;
    border-radius: 10px;
}

.Medical ul li a {
    text-decoration: none;
    color: inherit;
}

.Medical ul li h4 {
    background-color: #ffffff;
    width: fit-content;
    padding: 3px 5px;
    font-size: 20px;
    margin: 0 0 10px;
}

.Medical ul li p {
    background-color: #fff;
    padding: 3px 5px;
    width: fit-content;
    margin: 0;
    font-size: 14px;
}



/* 背景画像指定 */
.m_1 {

    animation-duration: 1s;
    background-image: url("../img/top/Services_01.JPG");
}

.m_2 {
    animation-duration: 1.5s;
    background-image: url("../img/top/Services_02.webp");
}

.m_3 {
    animation-duration: 2s;
    background-image: url("../img/top/Services_03.webp");
}

.m_4 {
    animation-duration: 2.5s;
    background-image: url("../img/top/Services_04.webp");
}

.m_5 {
    animation-duration: 3s;
    background-image: url("../img/top/Services_05.webp");
}

.m_6 {
    animation-duration: 3.5s;
    background-image: url("../img/top/Services_06.webp");
}

.m_7 {
    animation-duration: 4s;
    background-image: url("../img/top/Services_07.webp");
}

.m_8 {
    animation-duration: 4.5s;
    background-image: url("../img/top/Services_08.webp");
}

.m_9 {
    animation-duration: 5s;
    background-image: url("../img/top/Services_09.webp");
}

.m_10 {
    animation-duration: 5.5s;
    background-image: url("../img/top/Services_10.JPG");
}

.m_11 {
    animation-duration: 6s;
    background-image: url("../img/top/Services_11.webp");
}

.m_12 {
    animation-duration: 6.5s;
    background-image: url("../img/top/Services_12.webp");
    background-position: center;
}



.Medical .m_ather {
    background-image: url("../img/top/md_ather.png");
    background-size: cover;
    padding: 40px;
    box-shadow: 10px 10px 15px -10px;
    margin-top: 20px;
}


.last-service-item{
background-position: center;
background-image: url("../img/top/md_ather.png");
}



.Medical .m_ather h4 {
    text-align: right;
    width: fit-content;
    margin: 0 0 0 auto;
    color: #161666;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 3px;
    line-height: 40px;
}

.Medical .top_click {
    text-align: center;
    margin: 10px auto;
    letter-spacing: 5px;
}

/* ■ iPad向け（1024px以下） ■ */
@media (max-width: 1024px) {
    .Medical {
        padding: 80px 4%;
    }

    .Medical h3 {
        font-size: 35px;
        letter-spacing: 8px;
    }

    .Medical h3 span {
        font-size: 18px;
    }

    .Medical .text {
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 30px;
        text-align: center;
    }

    .Medical ul li {
        width: 45%;
        padding: 80px 8px 8px 0;
        margin: 10px 0;
    }

    .Medical ul li h4 {
        font-size: 22px;
    }

    .Medical ul li p {
        font-size: 14px;
    }

    .Medical .m_ather {
        padding: 30px;
    }

    .Medical .m_ather h4 {
        font-size: 18px;
        line-height: 34px;
        letter-spacing: 2px;
    }

    .Medical .top_click {
        font-size: 16px;
    }
}

/* ■ スマートフォン向け（768px以下） ■ */
@media (max-width: 768px) {
    .Medical {
        padding: 0 4%;
    }

    .Medical h3 {
        font-size: 30px;
        letter-spacing: 6px;
        text-align: center;
    }

    .Medical h3 span {
        font-size: 16px;
    }

    .Medical .text {
        font-size: 12px;
        line-height: 24px;
        text-align: center;
        margin-bottom: 20px;
    }

    .Medical ul {
        justify-content: space-between
    }

    .Medical ul li {
        width: 48%;
        padding: 60px 3px 3px;
        margin: 5px 0;
        border-radius: 10px;
    }

    .Medical ul li h4 {
        font-size: 16px;
        font-weight: normal;
    }

    .Medical ul li p {
        display: none;
    }

    .Medical .Medicals_btn a {
        font-size: 14px;
        padding: 5px 8px;
    }

    .Medical .m_ather {
        display: none;
    }

    .Medical .top_click {
        display: none;
    }



}





/* ■ 基本スタイル ■ */
.feature {
    background-color: #161666;
    color: #fff;
    padding: 100px 4%;
}

.feature h3 {
    font-size: 40px;
    letter-spacing: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature .feature_img {
    width: 70px;
    margin-bottom: 10px;
}

.feature .feature_img img {
    width: 100%;
    height: auto;
}

.feature .text {
    width: fit-content;
    margin: 0 auto 40px;
    line-height: 30px;
    text-align: center;
    width: 80%;
}

.feature ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px auto;
    padding: 0;
    list-style: none;
}

.feature ul li {
    width: 32%;
    background-color: #fff;
    color: #333;
    margin: 10px 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 5px;
}

.feature ul li img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.feature ul li h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    font-size: 18px;
}

.feature ul li h4 .btn {
    border-radius: 10px;
}


.feature ul li h4 .feature_li_title{
    border-radius: 10px;
    font-weight: normal;
    padding: 0px 10px;
    font-size: 13px;
    background-color: #3b3d6ab1;
    color: #fff;

    
}

.feature ul li h4 a {
    color: #161666;
    background-color: #f3f3f3;
    padding: 3px 5px;
    text-decoration: none;
    font-size: 14px;
}

.feature .feature_btn {
    text-align: center;
    margin: 50px auto 20px;
}

.feature .feature_btn a {
    border: 1px solid #fff;
    padding: 10px 40px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

.feature .feature_btn a:hover {
    background-color: #fff;
    color: #161666;
}

/* ■ iPad向け（1024px以下） ■ */
@media (max-width: 1024px) {
    .feature {
        padding: 80px 4%;
    }

    .feature h3 {
        font-size: 32px;
        letter-spacing: 8px;
    }

    .feature .text {
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 30px;
    }

    .feature ul li {
        width: 48%;
        margin: 10px 1%;
    }

    .feature ul li h4 {
        font-size: 16px;
        margin: 8px;
    }

    .feature ul li h4 a {
        font-size: 13px;
        padding: 2px 4px;
    }

    .feature .feature_btn a {
        padding: 8px 30px;
        font-size: 16px;
    }
}

/* ■ スマートフォン向け（768px以下） ■ */
@media (max-width: 768px) {
    .feature {
        padding: 20px 4% 40px;
    }

    .feature h3 {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .feature .text {
        font-size: 15px;
        line-height: 27px;
        margin-bottom: 20px;
        width: 80%;
    }

    .feature ul {

        align-items: center;
        flex-wrap: wrap;
        margin: 20px auto 0;
        padding: 0;
    }

    .feature ul li {
        width: 48%;
        margin: 10px 0;
    }

    .feature ul li img {
        height: 130px;
    }

    .feature ul li h4 {
        font-size: 13px;
        text-align: center;
        margin: 10px;
        letter-spacing: -1px;
        display: block;
        height: 100%;

    }

    .feature ul li h4 .btn {
        text-align: center;
        margin: 10px auto;
    }

    .feature ul li h4 a {
        font-size: 13px;
        padding: 3px 6px;
    }

    .feature .feature_btn {
        margin: 30px auto 10px;
    }

    .feature .feature_btn a {
        padding: 8px 20px;
        font-size: 15px;
    }
}

