.grid-container{
    max-width: inherit !important;
    width: 100% !important;
}


.main{
    width: 100% !important;
    overflow: hidden;
}

/*メインビジュアル*/
.mv{
    display: flex;
    gap: 20px;
    width: calc(100% - 11rem);
    margin: 0 auto;
    padding-top: 10rem;
}

.mv-image{
   width: 74.5%;
}
.right_banner{
    width: 25.5%;
}

.splide__slide {
    position: relative;
    display: inline-block;
}

.splide__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.splide__slide img {
    height: auto;
    width: 100%;
}

.slide-text{
    position: absolute;
    top: 65%;
    left: 7%;
}

.slide-text h2{
    font-size: 2rem;
    letter-spacing: 0.2em;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    padding: 0.2em 0.4em;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 2px 2px 4px #333;
}

.info-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 30px 10px;
    background-color: #fff;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 150px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1500px) {
    .mv {
        padding-top: 9.5rem;
    }
}

@media (max-width: 1279px) {
    .mv {
        display: inherit;
        width: 100%;
        padding-top: 6rem;
    }
    .mv-image {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }


    .features-and-hours .container {
        padding: 15rem 0 6rem!important;
    }

    .splide__track--draggable{
        overflow: visible;
    }
    .right_banner {
        display: none;
    }
    .slide-text {
        top: 57%;
        left: 5%;
    }
}

@media (max-width: 1023px) {
    .features-and-hours .container {
        padding: 10rem 0 0!important;
    }
}

@media (max-width: 829px) {

    .mv{
        padding-top: 4rem;
    }


    .slide-text h2{
        font-size: 1.5rem;
    }
    .features-and-hours .container {
        padding: 10rem 0 14rem!important;
    }
}

@media (max-width: 480px) {

    .mv{
        padding-top: 5rem;
    }

    .features-and-hours .container {
        padding: 6rem 0 0!important;
    }

    .slide-text{
        top: 56%;
        left: 3%;
    }

    .slide-text h2{
        font-size: 1rem;
    }

    .news-tabs{
        margin: 2rem auto 0!important;
    }
}



/*Features + 診療時間 横並びセクション*/

.news-tabs{
    max-width: 77.8125rem;
    width: calc(100% - 7rem);
    margin: 10rem auto 0;
}
.features-and-hours,.news-section {
    background-color: #e8f7f9;
    margin: -12%;
}


.features-hours-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.features-box {
    flex: 1 1 50%;
}

.features.grid {
    display: grid;
    grid-row: span 3;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 207px 207px;
    gap:15px;
}

.feature-card {
    height: auto;
}

.feature-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    color: #333;
    position: relative;
}

.features.grid .feature-card{
    padding: 40px 20px 20px;
}

.features-and-hours .container {
    max-width: 80.8125rem;
    width: calc(100% - 2rem);
    margin-right: auto;
    margin-left: auto;
    padding: 13rem 0 5rem;
}

.feature-card .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.feature-card .arrow{
    position: absolute;
    right: 1rem;
    bottom: 1.5rem;
}

.feature-card .arrow img{
    width: 25px;
    height: 25px;
}

.feature-card .f_ico_01 img,.feature-card .f_ico_03 img ,.feature-card .f_ico_04 img, .feature-card .f_ico_05 img, .feature-card .f_ico_06 img  {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.feature-card .f_ico_02 img{
    width: 40px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 20px;
}

@media (max-width: 1279px) {
    .features-and-hours {
        margin: -15% 0;
    }
    .features-hours-flex {
        padding-top: 160px;
    }
}

@media (max-width: 1024px) {
    .features-and-hours {
        margin: -15% 0 0;
        padding-bottom: 50px;
    }

    .features-box h3{
        font-size: 1.2rem;
    }

}

@media (max-width: 1023px) {
    .news-tabs {
        margin: 2rem auto 0!important;
    }
}

@media (max-width: 480px) {
    .footer-right ul {
        margin: 0 0 1.5em 1em!important;
    }

    .features.grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: inherit;
    }

    .features-box .feature-card{
        padding: 10px;
        height: 140px;
    }

    .feature-card .arrow {
        right: 0.6rem;
        bottom: 0.6rem;
    }

    .feature-card .arrow img {
        width: 20px;
        height: 20px;
    }

    .features.grid .feature-card{
        padding: 20px 20px 20px;
    }

}

/* 診療時間横ボックス */
.clinic-hours-box {
    flex: 1 48.2%;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    height: 430px;
}

.clinic-hours-box .section-title {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

.hours-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hours-box  .hours .add br{
    display: none;
}

.remarks{
    font-size: 0.8rem!important;
}

@media (max-width: 1279px) {
    .clinic-hours-box {
        background: inherit;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
.clinic-hours-box{
    height: auto;
}
    .hours h2, .closed-days h2 {
        font-size: 1.5rem;
    }

    .hours p, .closed-days p{
        font-size: 1.3rem!important;
    }

    .closed-days p.remarks{
        font-size: 1rem!important;
    }

    .hours-box {
        gap: 50px;
    }

    .hours-box  .hours p br{
        display: inherit;
    }


}

/*初めて受診される方へ_医療・福祉に関するご相談*/

.consult-section {
    padding: 4rem 1rem;
    background-color: #f7fcfe;
    text-align: center;
}

.consult-title {
    margin-bottom: 1rem;
    position: relative;
}

/*.consult-title::before{*/
/*    content: url(../img/top/ico_beginner.svg);*/
/*    position: absolute;*/
/*    width: 30px;*/
/*    top: 50%;*/
/*    margin-top: -24px;*/
/*    left: 10%;*/
/*}*/

.consult-title h3,.consult-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}


.consult-boxes {
    width: 100%;
    margin: 0 auto 2%;
    display: grid;
    grid-template-columns: 50% auto;
    gap: 1rem;
}

.consult-boxes .icon{
    width: 50px;
}

.consult-boxes .feature-card {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    height: 120px;
}

.consult-boxes .feature-card h3{
    margin-bottom: 0;
}

.consult-boxes h3 br{
    display: none;
}

/*.consult-box {*/
/*    background-color: #ffffff;*/
/*    border-radius: 20px;*/
/*    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);*/
/*    padding: 2.5rem 3rem;*/
/*    max-width: 510px;*/
/*    margin: 0 auto;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

/*.consult-box p {*/
/*    margin-bottom: 1.5rem;*/
/*    text-align: left;*/
/*}*/

/*.consult-box .btn-blue{*/
/*    margin: 20px auto 10px;*/
/*}*/

@media (max-width: 1279px) {
    .consult-title::before {
        left: 15%;
    }
}


@media (max-width: 480px) {
    .consult-boxes {
        display: inline-block;
    }

    .consult-boxes .feature-card{
        width: 100%;
        margin-bottom: 20px;
    }

    .consult-boxes h3 br{
        display: inherit;
    }

    /*.consult-box{*/
    /*    margin-bottom: 20px;*/
    /*    padding: 2rem;*/
    /*}*/

    /*.consult-title::before {*/
    /*    width: 20px;*/
    /*    top: 84%;*/
    /*    margin-top: -24px;*/
    /*    left: 7% !important;*/
    /*}*/

    /*.btn-blue {*/
    /*    font-size: 1rem!important;*/
    /*    padding: 0.3rem 2.5rem 0.3rem 1.5rem;*/
    /*}*/

}


/*病院案内*/


.hospital-info.ttl_contentWrapper {
margin-top: 350px;
}

.hospital-info .bk_c{
    background-color: #E8F7F9;
    padding-top: 4%;
}

.hospital-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hospital-info-wrapper .btn-blue{
    margin: 0;
}

.hospital-text {
    flex: 1;
    max-width: 400px;
}


.title_maru {
    font-size: 1.8rem!important;
    letter-spacing: 0.2rem;
    color: #036CEA;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 5.5rem;
    z-index: 1;
}

.title_maru::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    left: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: #F9F3CA;
    border-radius: 50%;
    margin-top: 40px;
    z-index: -1;
}

.hospital-text h3 {
    font-size: 1.5rem!important;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
    line-height: 1.5;
    padding-bottom: 5%;
}

.hospital-image-box {
    flex: 1;
    position: relative;
    max-width: 730px;
    margin-top: -18%;
}

.hospital-image {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.hospital-image-box:hover .hospital-image {
    transform: scale(1.05);
}

@media (max-width: 1279px) {
    .hospital-info-wrapper {
        padding: 0 20px;
        gap: 1rem;
    }

    .hospital-image-box{
        margin-top:  20px;
    }


}


@media (max-width: 1024px) {
    .hospital-info.ttl_contentWrapper {
        margin-top: 70px;
    }
}


@media (max-width: 480px) {
    .hospital-info-wrapper {
        display: inline-block;
    }

    .title_maru::before {
        top: -4rem;
        left: 1rem;
        width: 4rem;
        height: 4rem;
    }

    .title_maru {
        padding-left: 2.5rem!important;
    }


    .hospital-info .title_maru {
        padding-left: 2.5rem!important;
        margin-bottom: -5rem!important;
    }


    .hospital-info .bk_c {
        padding-top: 31%;
    }

    .hospital-info.ttl_contentWrapper,.ttl_contentWrapper {
        margin-top: 0;
    }

    .hospital-text{
        text-align: center;
    }

    .hospital-text a{
        margin: 0 auto!important;
    }


}
/*各診療科のご案内*/

.departments-section {
    padding: 5rem 1rem;
    text-align: center;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.department-card {
    background-color: #ffffff;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    padding: 2rem 1rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.department-card:hover h3,.features a:hover h3,.section-link:hover h3,.related-links-boxes a:hover h3 {
   color: #036CEA;
}

.department-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.department-card  .arrow-icon{
    width: 20px;
    height: 20px;
    margin-top:10px;
}

.department-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sub-title{
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0.1rem;
    line-height: 1.5;
    padding-bottom: 3%;
}

.sub-title:first-letter{
    color: #036CEA;
}


@media (max-width: 480px) {

    .departments-section {
        padding: 4rem 0;
    }

    .department-card img {
        max-width: 50px;
        max-height: 50px;
    }

    .department-card h3 {
        font-size: 1rem!important;
        margin-bottom: 0.4rem;
    }

    .departments-grid{
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(3, 1fr); /* スマホ: 3列 */
        justify-items: center;
        align-items: center;
    }

    a.department-card.b_btm_next.btn_up {
        white-space: nowrap;
        aspect-ratio: 1 / 1;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
        width: 112px;
        height: auto;
    }

    .b_btm_next::after {
        width: 16px;
        height: 16px;
        bottom: 7%;
        right: 43%;
    }

    .departments-section .sub-title,.sections-section .sub-title{
        padding-bottom: 8%;
    }

    .sections-grid {
        display: grid!important;
        gap: 1rem!important;
        grid-template-columns: 1fr 1fr;
    }

    .sections-section .section-card {
        width: auto;
    }

    .sections-section {
        padding: 1rem 0!important;
    }

    .b_right_next::after{
        width: 15px;
        height: 15px;
    }


}

/*各部門のご案内*/

.sections-section {
    padding: 4rem 1rem;
    text-align: center;
}

.sections-grid {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-flow:row wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.section-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 1.5rem 1rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-around;
    place-items: center;
    width: 315px;
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.section-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sections-grid .arrow-icon {
    width: 20px;
    height: auto;
}


/*VRによる院内公開*/

.vr-tour-section {
    padding: 60px 20px;
    text-align: center;
}

.vr-tour-section .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.vr-tour-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
}

.vr-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.vr-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.vr-image-wrapper img:hover {
    transform: scale(1.02);
}

.vr-tour-section .section-title {
    font-size: 1.5rem;
    width: 30%;
    margin: 0 auto 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 30px;
    border-bottom: 3px solid #1e2428;
}

.vr-icon {
    width: 108px;
    height: 82px;
}
.vr-image-wrapper iframe{
    transition: transform 0.3s ease;
}

.vr-image-wrapper iframe:hover {
    transform: scale(1.05);
}

@media (max-width: 1279px) {
    .vr-tour-section .section-title {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .vr-tour-section .section-title{
        display: inline-block;
    }

    .vr-icon {
        width: 68px;
        height: auto;
        margin: 0 auto 15px;
    }

    .vr-tour-section .section-subtitle{
        text-align: left;
    }
    .vr-tour-section .section-subtitle br{
        display: none;
    }
}


/*動画情報*/
.sub_ttl{
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.video-layout {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    background:#e8f7f9;
    border-radius: 30px;
    padding: 30px;
}

/* 左のメイン動画（最新） */
.main-video {
    flex: 1 1 60%;
    max-width: 50%;
}

.bk_video{
    background: url("../img/top/bc_main-video.webp") no-repeat;
    background-size: contain;
    height: 100%;
    padding: 37px;
}

.main-video iframe,
.main-video .wp-oembed-responsive {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    height: 65%;
}

.video-grid {
    flex: 1 1 38%;
    max-width: 38%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 111px;
}

.video-item {
    display: flex;
    flex-direction: column;
}

.video-item iframe,
.video-item .wp-oembed-responsive {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-title {
    margin-top: 8px;
    font-size: 0.9rem!important;
    font-weight: bold;
    text-align: center;
}

.video-item .embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-item .embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-layout .btn-consult{
    margin: 50px auto 20px;
}


@media (max-width: 1279px) {

    .sub_ttl{
        font-size: 1.3rem;
    }

    .video-title{
        font-size: 1.2rem!important;
    }

    .video-layout{
        display: inherit;
        background: #ffffff;
    }
    .main-video{
        background: #e8f7f9;
        padding: 60px 60px 0px;
        max-width: 100%;
        border-radius: 30px;
    }

    .bk_video{
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 73.25%;
        overflow: hidden;
        margin-bottom: 4rem;
    }

    .video-grid{
        max-width: 100%;
        padding-top: 0;
    }

    .main-video iframe{
        position: absolute;
        top: 30px;
        left: 5%;
        width: 90% !important;
        pointer-events: auto!important;
        z-index: 0;
    }

}

/* スマホ対応（オプション） */
@media (max-width: 768px) {
    .video-layout {
        flex-direction: column;
    }

    .main-video,
    .video-grid {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .video-title{
        text-align: left;
        font-size: 1rem!important;
    }
    .main-video iframe {
        top: 8px;
        height: 64%;
    }

    .main-video{
        background: #e8f7f9;
        padding: 30px 20px 0;
        max-width: 100%;
        border-radius: 30px;
    }

    .video-layout{
        padding: 0;
    }
}


/*地域医療連携*/

.medical-cooperation {
    background-image: url("../img/top/bg-medical.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    margin-top: 4rem;
    color: #fff; /* 背景が濃い場合は文字色を白に */
}

.cooperation-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.cooperation-item {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cooperation-boxes .icon {
    padding: 20px 0 0;
    background: #ffffff;
    width: 120px;
    height: 120px;
    margin: -6rem auto 0;
    border-radius: 100%;
}

.cooperation-item .icon img {
    width: 60px;
    margin: 0 auto 15px;
}

.cooperation-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1e2428;
}

.cooperation-item p {
    text-align: left;
    color: #1e2428;
}

.cooperation-item .btn-blue{
    margin-top: auto;
}


/* ボタングループ（複数ボタン用） */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    align-items: center;
}

.medical-cooperation .button-group a:last-child{
    display: block;
}


/* ボタン共通 */

.button-group a span{
    font-size: 0.7rem;
}


@media (max-width: 1279px) {
    .cooperation-item{
        padding: 25px;
        margin-top: 80px;
    }

    .cooperation-item .btn-blue {
        font-size: 1rem!important;
        margin: 10px auto;
        width: 100%;
        padding: 1rem 1rem 1rem 0;
        justify-content: center;
    }
    .cooperation-item .button-group{
        margin-top: 0;
        flex-wrap: inherit;
    }


}

@media (max-width: 480px) {
    .medical-cooperation {
        background-image: url("../img/top/bg-medical_sp.webp");
        background-size: contain;
        background-position: top;
    }

    /*.cooperation-item .w_right_arrow::after {*/
    /*    width: 15px;*/
    /*    height: 15px;*/
    /*    top: 77%;*/
    /*    margin-top: -12px;*/
    /*    right: 4%;*/
    /*}*/

}



/*大阪医療センター関連リンク*/

.related-links {
    padding: 60px 20px;
}

.related-links .container {
    max-width: 1300px;
    margin: 0 auto;
}

.related-links h2 {
    font-size: 1.3rem!important;
    margin-bottom: 40px;
    text-align: center;
    color: #036CEA;
}

.related-links-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
}

.related-link-item{
    padding: 1rem 2rem;
}

.related-links-boxes a{
    height: 70px;
}

.related-link-item h3{
    font-size: 1rem!important;
}

@media (max-width: 480px) {
    .related-links h2 {
        font-size: 1.2rem!important;
    }

    .related-links {
        padding: 30px 0;
        margin-bottom: 50px;
    }

    .related-links-boxes {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0;
    }

    .ico_link::after {
        width: 15px;
        height: 15px;
        right: 5%;
    }

}

/*50年のあゆみ*/
.history-section {
    padding: 60px 20px;
    text-align: center;
}

.history-image-wrapper {
    position: relative;
    display: inline-block;
}

.history-image-link img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    display: block;
}

.history-overlay-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.history-overlay-link img {
    width: 16px;
    height: auto;
}
