@charset "utf-8";

/* ---------------------------------------------------------------
レスポンシブ対応
--------------------------------------------------------------- */


@media only screen and (min-width: 48em) { /* PC 768px～ */
  .pc_n {
    display: none;
  }
  body {
    min-width: 1000px;
  }
}


@media only screen and (max-width: 47.938em) { /* SP ～767px */

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    height: auto;
  }

  iframe {
    width: 100%;
  }

  table {
    width: 100%;
  }

  .sp_n {
    display: none;
  }
  
  #wrapper {
    width: 100%;
  }
  
  .imgl, .imgr {
    float: none;
    display: block;
    margin: 0 auto 20px !important;
    text-align: center;
  }


/* styleseet.css　レスポンシブ対応 ----------------------------------------- */
  

/* ヘッダー周り */

  #header {
    width: 100%;
    height: auto;
    background: transparent;
  }
  #header #first {
    float: none;
    height: auto;
    font-size: 10px;
    padding: 2px 15px;
    margin: 0;
    background: #f2f9fc;
    overflow: hidden;
  }
  #header #first h1 {
    font-weight: normal;
  }
  #header #logo {
    float: none;
    margin: 10px 0 0;
    width: 100%;
    height: auto;
  }
  
  div#headnavi, div#sidenavi { /* Gナビ・サイドバー */
    display: none;
  }


/* SP ヘッダー ---------------------------------------------------- */

.s_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  .s_header .item {
    width: 48%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 45px;
    align-items: center;
    align-content: center;
    color: #fff;
    border-radius: 4px;
    background: #038ece;
    text-decoration: none;
    border: 0;
  }

  .s_header .item img {
    width: 20px;
  }
  .s_header .item span {
    display: block;
    text-align: center;
    line-height: 1;
    font-size: 13px;
    margin-left: 10px;
  }


/* drawer ---------------------------------------------------- */
  
  html {
    overflow-y: scroll;
  }

  .Drawer {
    position: fixed;
    z-index: 11;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .Drawer-backdrop {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .Drawer-nav {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    background: #fdf9f3;
  }

  .Nav {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .Drawer[aria-expanded] {
    transition-property: visibility;
    transition-duration: 0.25s;
  }

  .Drawer[aria-expanded] .Drawer-backdrop {
    transition-property: opacity;
    transition-duration: 0.25s;
    transition-timing-function: linear;
  }

  .Drawer[aria-expanded] .Drawer-nav {
    transition-property: transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;
  }

  /* 開いているとき */
  .Drawer[aria-expanded="true"] {
    visibility: visible;
    transition-duration: 0s;
  }

  .Drawer[aria-expanded="true"] .Drawer-backdrop {
    opacity: 1;
  }

  .Drawer[aria-expanded="true"] .Drawer-nav {
    transform: translateX(0);
  }

  /* 閉じているとき */
  .Drawer[aria-expanded="false"] {
    visibility: hidden;
  }

  .Drawer[aria-expanded="false"] .Drawer-backdrop {
    opacity: 0;
  }

  .Drawer[aria-expanded="false"] .Drawer-nav {
    transform: translateX(100%);
  }

  .Nav-button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 30%;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: #fff;
    background: #038ece;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.25s;
    transition-timing-function: linear;
  }

  .Nav-button img {
    width: 20px;
    display: block;
  }

  .Nav-button span {
    margin-top: 5px;
    display: block;
    width: 100%;
    line-height: 1;
    font-size: 10px;
  }

  .Drawer[aria-expanded="true"] .Nav-button {
    opacity: 1;
  }

  .Nav-list {
    margin: 100px 0 0;
    padding: 0 10px;
    text-align: left;
    list-style-type: none;
  }

  .Nav-item {
    margin: 0;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: #f2e9de;
  }

  .Nav-item.bdb0 {
    border-bottom: 0;
  }

  .Nav-item:first-child {
    border-top-width: 1px;
  }

  .Nav-link {
    display: block;
    position: relative;
    padding: 1rem;
    line-height: 1.2;
    text-decoration: none;
    font-weight: bold;
    color: #038ece;
  }
  .Nav-link:active {
    padding: 1rem;
    margin: 0;
  }
  a.Nav-link {
    color: #038ece;
  }

  a.Nav-link:after {
    content: "";
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-width: 1px 1px 0 0;
    border-style: solid;
    border-color: #038ece;
    transform: rotate(45deg);
    top: calc(50% - 4px);
  }

  span.Nav-link {
    text-align: center;
    padding: 1.2rem 0;
  }

  .Nav-link:before {
    color: #f9f15c;
  }

  .Nav-listBoxIn {
    position: absolute;
    width: 70%;
    height: 100px;
    background: #fff;
    top: -100px;
    left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
  .Nav-listBoxIn::after {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
  }

  .Nav-listBoxIn a {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 10px;
    align-items: center;
    text-align: center;
  }

  .Nav-listBox {
    position: relative;
    background: #fff;
  }

  .sub_menu {
    max-width: none;
    margin-right: -10px;
    margin-left: -10px;
    padding: 10px 15px;
    text-align: center;
    background: #fdf9f3;
  }

  .sub_menu > a {
    display: block;
    width: 100%;
    text-align: left;
  }

  .sub_menu > a img {
    width: 50%;
    margin: 0 auto 10px;
  }

  .Nav-list {
    height: 100%;
    overflow-y: auto;
  }

  .Nav-listIn {
    margin: 0 auto;
    list-style: none;
    padding-left: 2rem;
    text-align: left;
  }

  .Nav-listIn .Nav-link {
    position: relative;
    padding: 1rem 1rem 1rem 0;
    color: #038ece;
    font-weight: normal;
  }

  .Nav-listIn .Nav-item:first-of-type {
    border-top: 0;
  }
  .Nav-listIn .Nav-item:last-of-type {
    border-bottom: 0;
  }

  .Nav-bn { /*  サブナビ */
    max-width: none;
    margin: 10px -10px;
    border: 0;
    padding: 1em;
    background: #f4f9fc;
  }
  .Nav-bn > div {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-size: 18px;
  }
  .Nav-bn ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .Nav-bn ul li {
    border-bottom: 1px solid #f2e9de;
  }
  .Nav-bn a {
    display: flex;
    justify-content: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    color: #666;
    position: relative;
  }
  .Nav-bn a::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-width: 1px 1px 0 0;
    border-style: solid;
    border-color: #038ece;
    transform: rotate(45deg);
    top: calc(50% - 4px);
  }


/* 医院概要 ---------------------------------------------------- */

  #main .box {
    width: 100%;
    background: none;
    padding: 10px;
  }
  #main .box #map {
    float: none;
    width: 100%;
    padding: 0;
  }
  #main .box p {
    margin: 0;
  }
  #main .box table {
    width: 100%;
  }
  .boxbottom {
    display: none;
  }
  #main h3 {
    width: 100%;
    text-align: center;
  }
 #main h3 img {
   width: 95%;
}


/* フッター回り ---------------------------------------------------- */

  .scroll {
	width: 95%;
    margin: 0 auto;
  }
  #footer{
    padding: 10px 0;
  }
  #footer #footerleft {
    float: none;
    margin: 0;
  }
  #footer #footerleft p {
    width: 80%;
    margin: 0 auto;
  }
  #footer #footerlink {
    width: 100%;
    margin: 0 0 20px;
  }
  #footer #footerlink p {
    width: 80%;
    margin: 0 auto;
  }
  #footer #smoothScrolls {
    width: 100%;
    padding: 0;
  }
  #footer #smoothScrolls #footerlink .foottitle {
    width: 80%;
    margin: 0 auto; 
  }
  .copy {
    margin: 10px !important;
  }


/* トップ ---------------------------------------------------- */

  #flash {
    height: auto !important;
    margin: 0 0 30px;
  }
  #news {
    float: none;
    padding: 0 !important;
  }
  #news .news-title {
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.8;
  }
  #news .news-title .date {
    display: block;
    font-size: 14px !important;
  }
  #news .news-caption {
    width: 100% !important;
    margin: 0;
  }
  #main .topics {
    width: 95%;
    margin: 20px auto 0;
  }
  #main .topics p {
    width: 100%;
    margin: 0;
  }
  #main .topics img {
    display: block;
    max-width: 90%;
    margin: 0 auto 10px;
  }
  

/* 下層 ---------------------------------------------------- */

  #picture {
    float: none;
    width: 95%;
    height: auto;
    margin: 0 auto 1.0rem;
  }

/* 診療のご案内　ライン */
  img[src*="glay.gif"] {
    max-height: 40px;
  }

/* 在宅医療のご案内 */
  #main .box .answer {
    margin: 0 0 20px;
    padding: 10px;
  }

/* 診療時間・アクセス */
  #main .box .summarytable {
    width: 100%;
    margin: 0 0 20px;
  }
  #main .box .summarytable tr .tableleft,
  #main .box .summarytable tr .tableleft2,
  #main .box .summarytable tr .day,
  #main .box .summarytable tr td {
    width: auto;
    height: auto;
    padding: 4px;
  }
  #main .box .accesspic {
    float: none;
    padding: 0;
    margin: 0;
  }

/* 消化器内科 */
  .nofloat {
    float: none !important;
  }

/* その他の診療について */
  #main .box .platable {
    width: 100%;
    margin: 10px 0 20px;
  }
  #main .box .platable tr .right_table {
    padding: 6px;
  }

/* サイトマップ */
  #main .sitemapbox p {
    height: auto;
    margin: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  #main .sitemapbox .redpoint + p {

  }
}