/* スマートフォン用スタイル */
@media screen and (max-width: 767px) {
  /* コンテナの幅を調整 */
  #container {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: block;
  }

  /* ヘッダー画像の調整 */
  #header img {
    width: 100%;
    height: auto;
  }
  #header {
    display: none !important;
  }
  #footer {
    display: none !important;
  }

  /* メインコンテンツの調整 */
  #main {
    width: 100%;
    background-image: none;
  }

  /* 科目部分の調整 */
  #kamoku{
    width: auto;
    padding: 5px 0 0 0;
  }

  #kamoku .kamoku {
    padding: 1px 8px;
    margin-bottom: 5px;
  }

  /* 左右のカラムを縦並びに */
  #main2 {
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin: 0;
  }

  #left, #right {
    width: 100%;
    float: none;
  }

  #copyright {
    width: 100%;
  }

  /* テーブルのレスポンシブ対応 */
  table {
    width: 100%;
    font-size: 14px;
  }

  /* 診療時間表の調整 */
  .shinryotime table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* 画像サイズの調整 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* フォントサイズの調整 */
  body {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  #container h1 {
    width: 100%;
    background-size: contain;
  }
  #container h2,
  #container h3,
  #container h4,
  #container h5 {
    width: auto;
    background-size: auto;
  }

  /* パディングとマージンの調整 */
  #data dl {
    margin: 10px 0;
  }

  #data dt {
    margin-bottom: 5px;
  }

  #data dd {
    margin-left: 6em;
    margin-bottom: 0;
  }

  #data .time {
    white-space: break-spaces;
    font-size: 0.7em;
    width: 4em;
  }

  #data .shinryotime table {
    width: 100%;
    display: table;
  }

  #data .shinsatsu, #data .yasumi {
    white-space: pre-wrap;
  }

  #data .shinsatsu span, #data .yasumi  span {
    font-size: 0.8em;;
  }

  #right {
    margin: 0;
  }

  #right > #column {
    width: 100%;
  }

  #right > #column > .column_inside {
    margin-top: -2px;
    width: auto;
  }

  #photo .main img {
    width: 100% !important;
  }
  #accessmap iframe{
    width: 100%;
  }

  #photo .thumb {
    display: inline-flex;
  }

  #photo .thumb img {
      width: calc(20% - 5px);
  }

  #info .contents {
    height: 250px;
    overflow: scroll;
  }

  .shinryo-kamoku {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
  }
  /*スクロールバー全体の高さ*/
  .shinryo-kamoku::-webkit-scrollbar {
    height: 4px;
  }
  /*スクロールバー全体の背景*/
  .shinryo-kamoku::-webkit-scrollbar-track {
    background: #eee;
  }
  /*スクロールバーの動く部分*/
  .shinryo-kamoku::-webkit-scrollbar-thumb {
    background: #aaa;
    border: none;
  }
  /*スクロールバーの動く部分のホバー（マウスオーバー）*/
  .shinryo-kamoku::-webkit-scrollbar-thumb:hover {
    background: #999;
  }
  td span.notes{
    font-size: 0.8em;
  }
}