/* 孝友クリニック専用レスポンシブCSS：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}
 #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;margin:0 auto;height:auto;overflow:visible}
 #contents2 > #iryou-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}
 #iryou-box img{max-width:100%;height:auto}
 #iryou-box .i-box3,#iryou-box #i-box1,#iryou-box #i-box2,#iryou-box #i-box4,#iryou-box #i-box5{width:100%;max-width:100%;height:auto;min-width:0;overflow:visible}
 #iryou-box .i-inbox1,#iryou-box .i-inbox2,#iryou-box .i-inbox3,#iryou-box .i-inbox4,#iryou-box .i-inbox5,#iryou-box .i-inbox6,#iryou-box .i-inbox7,#iryou-box .i-inbox8,#iryou-box .i-inbox9,#iryou-box .i-inbox10{max-width:100%;height:auto}
 #iryou-box .clinick-time-box{max-width:100%;height:auto;overflow-x:auto;-webkit-overflow-scrolling:touch}
 #iryou-box .background_btn01,#iryou-box .background_btn02,#iryou-box .background_btn03,#iryou-box .background_btn04{box-sizing:border-box;width:100%;max-width:480px;white-space:normal;overflow-wrap:anywhere}
 #contents2 > .clinic-notices{grid-column:1/-1;float:none!important;width:100%;min-width:0;clear:both}
 #contents2 > .clinic-notices p{box-sizing:border-box;max-width:100%;width:100%!important;float:none!important;overflow-wrap:anywhere}
 #contents2 > .clinic-notices a{max-width:100%;width:100%!important;float:none!important;display:block;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}
 #iryou-box .i-inbox9,#iryou-box .i-inbox10,#iryou-box .i-inbox2,#iryou-box .i-inbox3,#iryou-box .i-inbox5,#iryou-box .i-inbox6,#iryou-box .i-inbox7,#iryou-box .i-inbox8{float:none!important;width:100%!important;max-width:100%;margin:0 0 16px}
 #iryou-box #i-box5,#iryou-box #i-box2,#iryou-box #i-box4{display:flow-root}
 #iryou-box .i-inbox6 img,#iryou-box .i-inbox7 img,#iryou-box .i-inbox8 img{max-width:100%;width:auto;height:auto}
 #iryou-box .i-inbox10 img{max-width:100%;height:auto}
 #iryou-box .i-inbox4{width:100%!important;min-width:0}
 #iryou-box .background_btn01,#iryou-box .background_btn02,#iryou-box .background_btn03,#iryou-box .background_btn04{font-size:15px;padding:14px 14px 14px 34px;line-height:1.5}
 #iryou-box .background_btn01::before,#iryou-box .background_btn02::before,#iryou-box .background_btn03::before,#iryou-box .background_btn04::before{left:15px}
 #iryou-box .nomal,#iryou-box .nomal2,#iryou-box .samll{overflow-wrap:anywhere;line-height:1.75}
 #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)}}
