
/* スマホ対応 */
@media screen and (max-width: 1180px) {
    .mean-container .mean-nav ul{
        background: #FFF6E5 !important;
    }
    .mean-container .mean-nav ul li a, .mean-container .mean-nav ul li span.pre{
            color: #31383E !important;
    }
    .meanmenu-reveal span:nth-of-type(1),
    .meanmenu-reveal span:nth-of-type(2),
    .meanmenu-reveal span:nth-of-type(3){
        background: #e17900 !important;
    }
    .meanmenu-reveal:after{
            color: #e17900 !important;
    }
}
@media screen and (max-width: 768px) {

    /* =====================================
       全ページ共通
    ===================================== */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .rehabilitationcontent *,
    .insidecontent *,
    .insidrehabilitation * {
        box-sizing: border-box;
    }

    .rehabilitationcontent img,
    .insidecontent img,
    .insidrehabilitation img {
        max-width: 100%;
    }

    .mean-container .mean-nav{
        margin-top: 77px !important;
    }


    /* =====================================
       ヘッダー
    ===================================== */
    
    #h_top > div:first-child{
        display: block;
    }
    .reha-search {
        display: flex;
        height: 24px;
        margin: 10px 0;
        width: 200px;
        min-width: auto;
        z-index: 100;
        position: relative;
    }
    .reha-search input[type="search"] {
        font-size: 8px;
        padding: 0 6px;
    }
    #h_top > div:first-child{
        min-height: 68px;
    }
    .reha-search button{
        width: 43px;
        font-size: 12px;   
    }

    /* 検索結果 */
    .reha-search-page {
        padding: 40px 20px 70px;
        box-sizing: border-box;
        width: auto;
        margin: 20px;
    }

    .reha-search-heading {
        margin-bottom: 30px;
        font-size: 23px;
    }

    .reha-search-list {
        gap: 30px;
    }

    .reha-search-item {
        padding-bottom: 25px;
    }

    .reha-search-title {
        font-size: 19px;
    }

    .reha-search-url {
        font-size: 13px;
    }

    .reha-search-description {
        font-size: 15px;
    }

    /* =====================================
       リハビリテーション トップページ
    ===================================== */
    .rehabilitationcontent {
        padding: 8px 20px 10px;
        background: linear-gradient(to bottom, #fff 35%, #FFEECC 65%);
    }

    .mv {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 260px 135px;
        gap: 8px;
        width: 100%;
        height: auto;
        margin: 8px auto;
    }

    .main {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .thumb2 {
        grid-column: 1;
        grid-row: 2;
    }

    .thumb3 {
        grid-column: 2;
        grid-row: 2;
    }

    .thumb img,
    .main img,
    .thumb .slide,
    .main .slide {
        border-radius: 14px;
    }

    .rehabilicopy {
        top: 39%;
        width: calc(100% - 40px);
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }

    .rehabilicopy2 {
        top: 35%;
        font-size: clamp(38px, 13vw, 58px);
        white-space: nowrap;
    }

    /* トップページの紹介ブロック */
    .rehaimgbox,
    .rehaimgbox1 {
        min-height: 0;
        margin: 0;
        padding: 20px 20px 40px 20px;
    }

    .rehaimgbox {
        background: linear-gradient(to bottom, #FFEECC 98%, #fff 2%);
    }

    .rehaimgboxinner,
    .rehaimgbox2 .rehaimgboxinner2 {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0;
    }

    .rehaimg-wrap,
    .rehaimg-wrap_l,
    .rehaimgbox1 .rehaimg-wrap {
        position: relative;
        right: auto;
        left: auto;
        display: block;
        width: 100%;
        border-radius: 18px;
    }

    .rehaimg,
    .rehaimg_main,
    .slideshow .rehaimg {
        display: block;
        width: 100%;
        max-width: none;
        height: 240px;
        object-fit: cover;
    }

    .rehasub_main_wrap {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin: 18px 0 0;
        transform: none;
    }

    .rehasub_main {
        padding: 20px;
        border-radius: 18px;
        font-size: 14px;
        line-height: 1.9;
                box-sizing: border-box;
    }

    .rehasub,
    .rehasub1 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: none;
        margin: -48px 0 0;
        padding: 20px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0);
        font-size: 14px;
        line-height: 1.9;
        box-sizing: border-box;
    }

    .rehasub0 {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin: 22px 0 0;
        padding: 7px 17px;
        font-size: 16px;
        line-height: 1.5;
    }

    .rehasub1_1 {
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        line-height: 1.9;
    }

    .heading-label {
        margin: 0 0 15px;
    }

    .heading-label span.point {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        margin-bottom: 10px;
        padding: 4px;
        background: #FFEECC;
        color: #f5a200;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .heading-label span.midashi {
        display: block;
        margin: 0;
        color: #31383E;
        font-size: clamp(20px, 3vw, 34px);
        line-height: 1.35;
    }

    .heading-label span.orange {
        color: #f5a200;
    }

    .rehamainbox,
    .rehamainbox1 {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 18px;
    }

    .rehamain {
        padding: 5px 12px;
        font-size: 25px;
        line-height: 1.45;
    }

    .rehaimgbox2 p:first-child {
        font-size: 27px;
        line-height: 1.45;
    }

    .rehaimgbox2 .rehaimgboxinner2 img {
        margin-bottom: 25px;
    }

    .rehasection {
        height: auto;
        padding: 50px 0;
    }

    .content_reha {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .heading-25{
        line-height: 1.2;
    }
    .bg-title {
        font-size: 30px;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .rehamenu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 25px 0;
    }

    .rehamenu a {
        padding: 10px 7px;
        border-radius: 14px;
    }

    .rehamenu a p {
        padding-left: 19px;
        font-size: 12px;
    }

    .rehamenu a img {
        width: 66%;
    }
    .arrow_r_b:before{
        width: 13px;
        height: 13px;
    }
    .arrow_r_b:after{
        width: 4px;
        height: 4px;
        left: 4px;
    }

    /* =====================================
       下層ページ 共通メインビジュアル
    ===================================== */
    .insidecontent {
        padding: 25px 0 50px;
        background: #fff;
        overflow: hidden;
    }

    .insidecontent::before {
        width: 280px;
        height: 280px;
        right: -110px;
        bottom: -135px;
    }

    .insideheader {
        width: 100%;
        height: 335px;
        min-height: 0;
        padding: 0;
    }

    /* 新しい下層ヘッダー */
    .insideheader-img {
        position: absolute;
        top: 0;
        left: 0;
        width: calc(100% - 28px);
        height: 230px;
        overflow: hidden;
        border-radius: 0 14px 70px 0;
    }

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

    .insideheader-title {
        position: absolute;
        z-index: 3;
        bottom: 0;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .insideheader-no {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 7px;
        padding: 0;
        color: #f5a200;
        font-size: 10px;
        letter-spacing: 0.12em;
        text-shadow: none;
    }

    .insideheader-no::before {
        content: "";
        width: 26px;
        height: 2px;
        background: #f5a200;
    }

    .insideheader-title p {
        position: static;
        max-width: 100%;
        margin: 0;
        padding: 9px 16px;
        transform: none;
        background: #fff;
        color: #31383E;
        box-shadow: 0 8px 24px rgba(49, 56, 62, 0.12);
        font-size: clamp(16px, 5vw, 31px);
        line-height: 1.35;
        letter-spacing: 0.02em;
    }

    .insideheader-en {
        position: absolute;
        z-index: 2;
        top: 20px;
        right: 14px;
        max-width: 55%;
        padding: 0;
        transform: none;
        color: #31383E;
        font-size: clamp(24px, 8vw, 36px);
        line-height: 1;
        text-align: right;
        white-space: normal;

    }

    .insideheader-en em {
        color: #f5a200;
        font-style: normal;
    }

    .insideheader-en::after {
        width: 42px;
        height: 3px;
        margin: 12px 0 0 auto;
    }

    /* 旧HTMLの下層ヘッダーにも対応 */
    .insideheader > img {
        display: block;
        width: calc(100% - 28px);
        height: 230px;
        object-fit: cover;
        border-radius: 0 0 70px 0;
    }

    .insideheader > p {
        top: auto;
        right: auto;
        bottom: 18px;
        left: 20px;
        max-width: calc(100% - 40px);
        margin: 0;
        padding: 9px 16px;
        transform: none;
        font-size: clamp(24px, 7vw, 31px);
        line-height: 1.35;
    }

    .insideheader > span {
        z-index: 2;
        top: 20px;
        right: 14px;
        padding: 0;
        transform: none;
        font-size: 14px;
        line-height: 1.4;
    }

    /* =====================================
       下層ページ メイン画像・説明文
    ===================================== */
    .insidrehabilitation {
        padding-bottom: 30px;
        /* overflow: hidden; */
        /* margin-bottom: 30px; */
    }

    .insidrehaslide {
        margin: 30px 0 35px;
    }

    .insidrehaslide .rehaimgbox1 {
        padding: 0px 20px 35px;
    }

    .slideshow .rehaimg:not(:first-child) {
        top: 0;
        left: 0;
    }

    /* =====================================
       各ページ本文
    ===================================== */
    .list {
        width: auto;
        margin: 30px 20px 0;
        padding-bottom: 20px;
    }

    .list .box {
        max-width: 100%;
    }

    .komidashiwrap {
        width: 100%;
        padding: 0px 20px;
        box-sizing: border-box;
    }
    .list > .komidashiwrap{
        padding: 0px 0px;
    }
    .list > .box .komidashiwrap{
        padding: 0px 0px;
    }

    .komidashi {
        padding-left: 7px;
        font-size: 13px;
        line-height: 1.6;
        letter-spacing: 0.12em;
    }

    .list .txttitle {
        margin: 30px 0 8px;
        padding: 3px 0 3px 10px;
        font-size: 22px;
        line-height: 1.45;
    }

    .list .txttitle2 {
        margin-top: 10px;
        padding: 5px 15px;
        font-size: 17px;
        line-height: 1.5;
    }

    .list .txtbox {
        margin: 10px auto 10px;
        font-size: 14px;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .list ul {
        column-count: 1;
        margin-top: 0;
        padding-left: 22px;
        margin: 20px 0px 30px;
    }

    .rehaflex,
    .rehaflex:nth-child(odd) {
        display: block;
        margin: 35px 0;
    }

    .rehaflex img {
        display: block;
        width: 100%;
        height: 220px;
        margin: 12px 0 18px;
        object-fit: cover;
        border-radius: 14px;
    }

    .imgdesign img,
    .list .table-scroll img {
        height: 220px;
    }

    /* 職種・資格、先進機器、目的別カード */
    .rehastaff,
    .office-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        width: 100%;
        padding: 10px 20px;
    }

    .office-card {
        width: 100%;
        padding-top: 10px;
    }

    .office-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        border-radius: 12px;
    }

    .office-area {
        margin-top: 14px;
        font-size: 17px;
        line-height: 1.5;
    }

    .office-name {
        font-size: 18px;
    }

    .office-info {
        font-size: 14px;
        line-height: 1.85;
    }

    .rehaimgpurpose {
        width: auto;
        margin: 25px 20px;
        padding: 18px;
        border-radius: 18px;
    }

    /* 電話案内 */
    .tel_wrap {
        width: auto;
        margin: 35px 18px 20px;
        padding: 22px 14px;
        border-radius: 18px;
    }

    .tel_wrap p:nth-child(1) {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .tel_wrap p:nth-child(4) {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 10px;
    }

    .tel_wrap .tel_an_no {
        font-size: clamp(26px, 7vw, 43px);
        line-height: 1.35;
        white-space: nowrap;
    }

    .tel_wrap .tel_an_no span {
        font-size: 13px;
    }

    /* 表組みは内容を潰さず横スクロールで表示 */
    .list .table-scroll {
        width: 100%;
        margin-top: 22px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .list .table-scroll table {
        width: 100% !important;
        min-width: 560px;
    }

    .list .table-scroll th,
    .list .table-scroll td {
        padding: 10px;
        font-size: 13px;
        line-height: 1.65;
    }

    /* 通所リハビリテーション */
    .leaflet{
        display: block;
        text-align: center;
    }
    .leaflet img{
        width: 100px;
        margin-bottom: 10px;
    }
    .btn-flat-logo{
            padding: 10px 30px;
    }

    /* 通所リハビリ ご利用の流れ */
    .flow-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
        width: 100%;
        margin: 24px auto 45px;
    }

    .flow-item {
        width: 100%;
    }

    .flow-item::after {
        display: none;
    }

    .flow-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .flow-title {
        margin-top: 12px;
        font-size: 15px;
    }

    .flow-icon {
        height: 85px;
    }

    .flow-icon img {
        max-width: 90px;
        max-height: 90px;
    }

    /* 通所リハビリ 1日のスケジュール */
    .day-schedule {
        width: 100%;
        margin: 25px auto 45px;
    }

    .day-schedule .txttitle {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .schedule-item {
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 80px;
    }

    .schedule-item.schedule-bg::before {
        left: 0px;
        width: 100%;
    }

    .schedule-time {
        padding: 31px 10px 0 0;
        font-size: 13px;
    }

    .schedule-content {
        min-height: 80px;
        padding: 12px 66px 10px 20px;
    }

    .schedule-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .schedule-content::before {
        top: 31px;
        left: -8px;
        width: 15px;
        height: 15px;
    }

    .schedule-content img {
        right: 5px;
        width: 62px;
        max-height: 70px;
    }

    /* News&Topics 横スクロール画像 */
    .listslide {
        width: 100%;
        margin: 24px 0 45px;
        overflow: hidden;
    }

    .listslide-track {
        display: flex;
        width: max-content;
        gap: 12px;
        animation: listslide-scroll 20s linear infinite;
    }

    .listslide-track img,
    .listslide > img {
        display: block;
        position: static;
        width: 240px;
        max-width: none;
        height: 160px;
        flex-shrink: 0;
        opacity: 1;
        object-fit: cover;
        border-radius: 12px;
    }

    @keyframes listslide-scroll {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(calc(-50% - 6px));
        }
    }

    .spacer1 {
        padding-bottom: 10px;
    }
}
