/* リハビリページ専用。common.css / layout.css の後に読み込む */
.mobile-nav-label { display:none; }
@media screen and (max-width:980px) {
 html,body {width:100%;min-width:0;overflow-x:clip;}
 #header,#header_0,#top2,#top_2,#nav,#nav .button,#contents2 {width:100%;max-width:960px;}
 #header {height:auto;}
 #header_0 {height:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;box-sizing:border-box;}
 #header_0 .inner_left,#header_0 .inner_right {float:none;margin:0;width:auto;max-width:100%;height:auto;}
 #header_0 .inner_right .conte {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;width:auto;height:auto;}
 #header_0 .inner_right .conte .contact,#header_0 .inner_right .conte .siryou {float:none;width:auto;height:auto;margin:0;}
 #header_0 img,#top2 img,#top_2 img {max-width:100%;height:auto;}
 #top2,#top_2 {height:auto;}
 #top_2 img {display:block;width:100%;}
 /* トップページと同一のグローバルメニュー指定 */
 #nav {overflow:visible;}
 #nav .button {float:none;height:auto;}
 #nav .button ul {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
 #nav .button li {width:auto;float:none;min-width:0;}
 #nav .button li a {display:block;}
 #nav .button li img {display:block;width:100%;height:auto;}
 #contents2 {display:grid;grid-template-columns:minmax(0,716fr) minmax(180px,210fr);gap:20px;align-items:start;padding:20px 16px;box-sizing:border-box;margin:0 auto;height:auto;overflow:visible;}
 #contents2 > #rihabiri-box {float:none!important;width:100%!important;max-width:716px;min-width:0;margin:0!important;}
 #contents2 > #box6 {float:none!important;width:100%!important;min-width:0;margin:0!important;display:block;}
 #contents2 #box6 .side {float:none;width:100%;height:auto;max-width:211px;margin-bottom:8px;}
 #contents2 #box6 .side img {display:block;width:100%;max-width:211px;height:auto;}
 #rihabiri-box {min-width:0;}
 #rihabiri-box img {max-width:100%;height:auto;}
 #rihabiri-box .r-box1,#rihabiri-box #i-box3,#rihabiri-box .i-inbox4 {max-width:100%;height:auto;min-width:0;}
 #rihabiri-box .r-box1 {display:flow-root;}
 #rihabiri-box .nomal3 {overflow-wrap:anywhere;}
 #gra {height:auto;min-height:300px;padding:0 16px 24px;}
 #gra #under_nav {width:100%;max-width:700px;padding-top:115px;}
 #gra .f_credit img {max-width:100%;height:auto;}
}
@media screen and (max-width:600px) {
 #header_0 {justify-content:center;text-align:center;}
 #header_0 .inner_left,#header_0 .inner_right {width:100%;display:flex;justify-content:center;}
 #header_0 .inner_right .conte {justify-content:center;}
 #header_0 .inner_right .conte .contact,#header_0 .inner_right .conte .siryou {width:min(46%,220px);}
 #nav .button ul {grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#ddd;}
 #nav .button li {background:#fff;box-shadow:none;}
 #nav .button li a {padding:11px 5px;text-align:center;color:#534741;font-size:14px;font-weight:bold;}
 #nav .button li img {display:none;}
 #nav .button li .mobile-nav-label {display:inline;}
 #contents2 {grid-template-columns:minmax(0,1fr);gap:24px;padding:16px 12px;}
 #rihabiri-box .r-box1 {width:100%!important;max-width:100%;height:auto;display:flow-root;}
 #rihabiri-box .r-box1 > div[class^="r-inbox"],#rihabiri-box .r-box1 > div[class*=" r-inbox"] {float:none!important;width:100%!important;max-width:100%;height:auto;margin:0 0 18px;}
 #rihabiri-box .r-box1 img {display:block;max-width:100%;height:auto;}
 #rihabiri-box .r-box1 p {line-height:1.75;}
 #rihabiri-box #i-box3,#rihabiri-box .i-inbox4 {width:100%!important;max-width:100%;}
 #contents2 #box6 {display:grid;grid-template-columns:repeat(2,minmax(0,211px));gap:8px;justify-content:center;}
 #contents2 #box6 .side {margin:0;}
 #gra #under_nav {padding-top:85px;}
 #gra .add2 {line-height:1.9;font-size:12px;}
 .copy-right {height:auto;min-height:60px;padding:18px 12px;text-align:center;font-size:12px;}
}
@media screen and (max-width:390px) {#contents2 #box6 {grid-template-columns:minmax(0,211px);}}
