@charset "utf-8";
/*-------------- 医院ごとのパーツ -----------------*/
a.initiatives-link {
  color: #EBEBEB;
}

.wrapper.hour {
  background-image: url(../img/bg-hour.jpg);
}

/* main画像の大きさ調整 */
@media screen and ( min-width: 768px ) and ( max-width: 1125px ) {
  #main-image,
  #sec-main-image {
    height: 40vw;
  }
}

/* 981px以降画面幅に対してヘッダーエリアの左右の余白が無くなるのを防止 */
@media only screen and ( min-width: 981px ) and ( max-width: 1016px ) {
  .header-inner {
    width: calc(100% - 40px);
  }
}

@media only screen and ( max-width : 980px ) {
  .header-logo {
    height: 40px;
    margin-bottom: 4px;
    width: auto;
  }

  .access-text {
    margin-right: 0px;
  }

  /* 768～980px範囲でtopページ「医院の特徴」欄の各ナンバーが画面から少し見切れるのを防止 */
  @media screen and ( min-width: 768px ) {
    .feature .box-920px {
      padding-left: 75px;
    }
  
    .feature .box-920px::before {
      left: -20px;
    }
  }

  /* topページ/診療時間・アクセスページのアクセス欄にある外観画像2枚の間隔を調整 */
  .flex-box.access {
    justify-content: flex-start;
  }
  
  .slide-images {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }
}


/*-------------- SP版レイアウト修正 -----------------*/
@media screen and ( max-width: 767px ) {
  .header-logo {
    margin-bottom: 0;
    margin: 7px 0 4px 8px;
    max-height: 32px;
    width: auto;
  }

  @media only screen and ( max-width : 375px ) {
    .header-logo {
      height: auto;
      margin-bottom: 0;
      margin: 8px 0 4px 8px;
      max-height: none;
      width: 80%;
    }
  }

  .access-img-A,
  .access-img-B {
    margin-right: 0;
    width: 100%;
  }

  /* 下層ページmain画像の大きさ調整 */
  @media screen and ( min-width: 441px ) {
    #sec-main-image {
      height: 40vw;
    }
  }

  /* 診療時間・アクセスページにある「お電話でのお問合せ」欄の電話番号を中央揃えにする */
  .tell-number-B {
    margin: 0 auto 0;
    width: fit-content;
  }

  /* topページ「お知らせ」欄の背景が途切れるのを防止 */
  .wrapper.infomation {
    background-size: cover;
  }

  .link-in-page-list ul {
    text-align: center;
  }

  .flex-box-item-2col {
    margin: 0;
  }
}