/* topリハビリ */
.riha_block {
    h3 {
        color: var(--main_color);
    }
    p {
        padding-bottom: 1rem;
    }
}
@media screen and (max-width: 768px) {
    /* タイトル共通 */
    .Top_title {
        padding-bottom: 10px !important;
        padding-top: 10px !important;
        background-size: cover !important;
        background-position: top left !important;
    }
    .riha_block_tex {
        background-color: #eef8ffdb;
        padding: 1rem;
    }
    .riha_block_space {
        height: calc(100vh / 4) !important;
    }
    .riha_block_img1 {
        background-image: url(/wp-content/themes/orthopedic-surgery/common/picture/pic129.webp) !important;
        background-position: top;
        background-size: contain !important;
        background-repeat: no-repeat;
    }
    .riha_block_img2 {
        background-image: url(/wp-content/themes/orthopedic-surgery/common/picture/pic58.webp) !important;
        background-position: top;
        background-size: contain !important;
        background-repeat: no-repeat;
    }
    .riha_block_img2 .wp-block-columns {
        flex-direction: column-reverse;
    }
    .riha_block_img3 {
        background-image: url(/wp-content/themes/orthopedic-surgery/common/picture/pic56.webp) !important;
        background-position: top;
        background-size: contain !important;
        background-repeat: no-repeat;
    }
    section#topRiha {
        margin-bottom: 0 !important;
    }
    /* Features */
    .features_block {
        gap: 0;
    }
    .features_block p {
        padding-bottom: 0;
    }
    .Features_section.wp-block-group.is-style-tri_background {
        padding: 1rem 1rem 4px;
        padding-top: 0px;
    }
}
.allRiha_section .wp-block-group.is-layout-constrained {
    margin-block-end: 0 !important;
}

.underLine_list td {
    border: none !important;
    border-bottom: 1px solid #cfcfcf !important;
    padding-top: 1.75rem !important;
}
.underLine_list td:first-child {
    width: 200px;
}

/* mv */
@media screen and (max-width: 768px) {
    .underLine_list td:first-child {
        width: 100px;
    }
    .mv_info_title-sp {
        background-color: #ffffffab;
        padding: 0 0.5rem;
        position: absolute;
        z-index: 1;
        right: 0;
        top: 5%;
        width: 100%;
    }
    .mv_info {
        max-width: 100% !important;
        bottom: 0;
    }
    .mv {
        /* 背景グラデーション */
        background: linear-gradient(to bottom, var(--sub_color), #fff 100%);
    }
}

.mv_schedule {
    max-width: 1280px;
    padding: 1rem;
}
.mv_schedule_title {
    font-size: 2rem;
    text-align: center !important;
}

.mv_section.wp-block-group.is-style-full_wide {
    padding-top: 0;
    padding-bottom: 0 !important;
}

.mv img {
    width: 100%;
    height: calc(100vh - 100px);
    object-position: center center;
    object-fit: cover;
}

.mv_info_title h2 {
    font-size: 2.5rem;
}

.mv_info {
    z-index: 1;
    max-width: 380px;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 1rem;
    width: 100%;
}

.mv_info_title {
    position: absolute;
    top: 20%;
    left: 2%;
    padding: 1rem;
    z-index: 1;
    background-color: #ffffffab;
}

.mv_text {
    color: #fff;
}
.mv_info {
    .clinic_schedule,
    .memo_red,
    .memo_gray {
        font-size: 0.7rem;
    }
    .memo_red,
    .memo_gray {
        padding: 0 0.3rem;
    }
    .rsvp_info_block {
        margin-bottom: 0.5rem;
    }
}

.mv_wrapper {
    position: relative;
}

.letsriha {
    text-align: center;
}

.another_wrapper h2 {
    text-align: left;
}
.another_wrapper h2::before {
    left: 0;
    transform: translateX(0%);
}

.underLine_list td {
    border: none;
    border-bottom: 1px solid #cfcfcf;
    padding-top: 1.75rem;
}

.mv_text {
    color: #fff;
}
.mv_info {
    .clinic_schedule,
    .memo_red,
    .memo_gray {
        font-size: 0.7rem;
    }
    .memo_red,
    .memo_gray {
        padding: 0 0.3rem;
    }
    .rsvp_info_block {
        margin-bottom: 0.5rem;
    }
}

.mv_wrapper {
    position: relative;
}

.letsriha {
    text-align: center;
}

.another_wrapper h2 {
    text-align: left;
}
.another_wrapper h2::before {
    left: 0;
    transform: translateX(0%);
}

/* トップメディカルコンテンツ */
.medi_phy_content {
    margin: auto;
    width: 100%;
    max-width: 1280px;
}

.meph_titl {
    margin-top: 2rem !important;
    text-align: center;
    margin-bottom: 1rem !important;
}
.meph_titl h2 {
    background-color: var(--main_color);
    display: inline-block;
    padding: 0 2rem;
}
.phySection_wrap {
    .meph_titl h2 {
        background-color: var(--green);
        display: inline-block;
        padding: 0 2rem;
    }
}

.medi_phy_inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

.medicalSection_wrap .medi_phy_inner {
    grid-template-columns: repeat(3, 1fr);
}

.medi_phy_item {
    position: relative;
    display: flex;
}

.medi_phy_item a {
    border: solid 1px var(--main_color);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 8px;
    transition: 0.3s;
    color: var(--main_color);
    text-decoration: unset;
    justify-content: space-around;
    align-items: center;
    flex: 1;
    background-color: #fff;
}

.medi_phy_item a:hover {
    background: var(--sub_color);
}

.medi_phy_item:before {
    content: "";
    position: absolute;
    border-bottom: 1.5em solid transparent;
    border-left: 1.5em solid var(--main_color);
    z-index: 1;
    top: 6px;
    left: 6px;
    transition: 0.5s ease;
}

.medi_phy_item:hover::before {
    top: 0;
    left: 0;
}

.physical_img {
    max-width: 90px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 部位ごと */
.physical_h2 h2 {
    background-color: var(--green) !important;
    display: inline-block;
    padding: 0.5rem calc(100vw / 6 - 1rem);
}
.physical_h2 {
    text-align: center;
}
.physical_content .medi_phy_item a {
    border: solid 1px var(--green);
}
.physical_content .medi_phy_item:before {
    border-left: 1.5em solid var(--green);
}
.physical_content .medi_phy_item a {
    color: var(--green);
}
.physical_content .medi_phy_item a:hover {
    background: #dbefe9;
}

@media screen and (max-width: 768px) {
    .medi_phy_inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .medicalSection_wrap .medi_phy_inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .medi_phy_item {
        display: flex;
    }

    .medi_phy_item a {
        flex: 1;
    }

    .medi_phy_content h3 {
        line-height: 1.1;
        text-align: center;
    }
}

/* topリハビリ */
.topRiha_section.wp-block-group.is-style-full_wide {
    padding-top: 0 !important ;
}

@media screen and (max-width: 768px) {
    /* .topRiha_section .wp-block-group.is-style-full_wide {
        padding-top: 0 !important ;
    } */
    .topVisit_section.wp-block-group.is-style-full_wide {
        padding-bottom: 0 !important;
    }
}

/* タイムスケジュール */
/* 全体 */
.schedule_section {
    background-color: var(--sub_color);
    padding: 40px 20px;
}

.schedule_title {
    text-align: center;
}

/* タイムライン本体 */
.schedule_list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* 縦のライン */
.schedule_list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 100px;
    width: 1px;
    height: 100%;
    background-color: #999999;
}

/* 各項目 */
.schedule_item {
    display: flex;
    padding: 20px 0;
    align-items: center;
}
.schedule_item img {
    width: 100%;
    padding-top: 0.5rem;
}

/* スケジュールモバイルサイズ */
@media screen and (max-width: 768px) {
    .schedule_section {
        padding: 0.5rem;
    }
    .schedule_item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .schedule_time {
        width: 100% !important;
        padding-left: 1.5rem;
    }
    .schedule_time::before {
        top: 10px !important;
        left: 9px !important;
    }
    .schedule_list::before {
        left: 8px !important;
    }
    .schedule_content {
        z-index: 1;
        width: 100%;
    }
}

/* マーカー（丸） */
.schedule_time::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 100px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--main_color);
}

/* 時刻部分 */
.schedule_time {
    width: 120px;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
}

/* 内容カード */
.schedule_content {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* リストのスタイルナンバー */
.privacy_list {
    list-style: numbers;
    padding-left: 1.75rem;
}

/* 通所リハ */
.Daycare_contact {
    max-width: 600px;
    margin: auto;
}
.Daycare_contact_inner {
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
}

.Daycare_contact_inner a {
    background: var(--sub_color2);
    padding: 1rem;
    color: #fff;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0px 8px 0px 0px #d06f00;
    transition: 0.5s;
}
.Daycare_contact_time {
    margin: 1rem;
}
.Daycare_contact_inner a:hover {
    opacity: 100;
    box-shadow: 0px 3px 0px 0px #d06f00;
    transform: translateY(10px);
}

@media screen and (max-width: 521px) {
    .Daycare_contact_inner a {
        font-size: 5vw;
        padding: 1rem 0;
    }
    .Daycare_contact_info {
        font-size: 3vw;
    }
    .Daycare_contact_telicon {
        width: 4vw;
    }
}

.wsp-container ul {
    padding: 1.5rem;
}

.wsp-container h2 {
    padding-top: 2rem;
}

.wsp-container {
    max-width: 900px;
    margin: auto;
}

.top_scroll_swiper_wrapper.swiper-wrapper {
    transition-timing-function: linear;
}

.top_scroll_section img {
    aspect-ratio: 3 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media screen and (max-width: 768px) {
    .top_scroll_section img {
        aspect-ratio: 3 / 4;
    }
}

.Riha_scroll_section img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: var(--main_color);
    padding: 12px;
    color: #fff !important;
    border-radius: 50%;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: var(--main_color) !important;
}

.Doctor_img::before {
    position: absolute;
    content: "";
    bottom: -30px;
    left: -30px;
    height: calc(100vh / 2.5);
    width: calc(100vw / 2.5);
    clip-path: polygon(0% 0, 0% 100%, 100% 100%);
    aspect-ratio: 1;
    background-color: #9fd0f8;
    mix-blend-mode: multiply;
}
.Doctor_img {
    position: relative;
}

.mv_wrapper {
    position: relative;
}

@media screen and (max-width: 768px) {
    .Doctor_img::before {
        width: 100vw !important;
        height: calc(100vh / 4) !important;
        bottom: -10px !important;
    }

    /* トップ診療案内背景の変更 */
    .medicalSection_wrap {
        background-image: url(/wp-content/themes/orthopedic-surgery/common/img/medical/medical_sp.png) !important;
        background-size: cover !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        position: relative;
    }
    .medicalSection_wrap::before {
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: 100%;
        content: "";
        background-image: url(/wp-content/themes/orthopedic-surgery/common/img/medical/medtext.png) !important;
        background-repeat: no-repeat;
        background-size: contain;
    }
    .phySection_wrap {
        background-image: url(/wp-content/themes/orthopedic-surgery/common/img/phy/physical_sp.png) !important;
        background-size: cover !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        position: relative;
    }
    .phySection_wrap::before {
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: 100%;
        content: "";
        background-image: url(/wp-content/themes/orthopedic-surgery/common/img/phy/phytext.png) !important;
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.Doctor_img::before {
    position: absolute;
    content: "";
    bottom: -30px;
    left: -30px;
    height: calc(100vh / 2.5);
    width: calc(100vw / 2.5);
    clip-path: polygon(0% 0, 0% 100%, 100% 100%);
    aspect-ratio: 1;
    background-color: #9fd0f8;
    mix-blend-mode: multiply;
}
.Doctor_img {
    position: relative;
}

.mv_wrapper {
    position: relative;
}

.mv_wrapper::before {
    position: absolute;
    content: "";
    bottom: 6px;
    right: 0;
    height: calc(100vh / 2.5);
    width: calc(100vw / 2.5);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    aspect-ratio: 1;
    background-color: #207ac4;
    mix-blend-mode: multiply;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .mv_wrapper::before {
        height: calc(100vh / 2.5);
        width: 100vw !important;
    }
    .mv_info .rsvp_info_btn {
        max-width: 100%;
    }
    .rsvp_info_btn {
        padding: 0.5rem 0 !important;
    }
}

@media screen and (max-width: 900px) {
    .font_size_switcher {
        display: block;
    }
    .header_inner {
        align-items: stretch;
        padding: 0 0.5rem;
    }
    .header_inner_item {
        justify-content: space-between;
    }
    .hamburger_menu {
        margin-bottom: 0.5rem;
    }
}
@media screen and (max-width: 1080px) {
    .allRiha_section_title {
        font-size: 3vw !important;
    }
}
@media screen and (max-width: 768px) {
    .allRiha_section_title {
        font-size: 2rem !important;
    }
}

/* 表 */
.plan_Table_org tr,
.plan_Table_org td,
.plan_Table_org th {
    text-align: center;
    vertical-align: middle;
}
.plan_Table_org .wp-block-table thead tr {
    background-color: #fff400;
}
.marktable {
    background: var(--sub_color);
}
.marktable_red {
    color: red;
}

@media screen and (max-width: 768px) {
    .plan_Table_org tr,
    .plan_Table_org td,
    .plan_Table_org th {
        font-size: 2vw;
        padding: 0.3vw;
    }
}
