@charset "utf-8";
/*-------------- 医院ごとのパーツ -----------------*/
.banner-wrapper {
  width: 300px;
  margin: 0 auto;
}

.reservation_banner {
  margin-bottom: 6px;
}

.kajiyama_clinic_banner picture {
  display: block;
  width: auto;
}

.kajiyama_clinic_banner picture img{
  width: auto;
}

/*-------------- SP版（767px以下）--------------*/
@media only screen and (max-width: 767px) {
  /* ヘッダーロゴの大きさ調整 */
  .header-logo {
    margin: 8px 0 4px 8px;
    max-height: 32px;
    width: auto;
  }

  /* topページメイン画像の大きさ調整 */
  #main-image {
    height: 350px;
  }

  /* 下層ページメイン画像の大きさ調整 */
  @media screen and ( min-width: 441px ) {
    #sec-main-image {
      height: calc(150px + (100vw - 440px) * 0.61);
    }
  }

  /* top・アクセスページの外観画像2枚のサイズを画面100%にする */
  .access-img-A,
  .access-img-B {
    margin-right: 0;
    width: 100%;
  }

  /* アクセスページ「お電話でのお問合せ」の電話番号を中央揃えにする */
  .tell-number-B {
    margin: 0 auto 0;
    width: fit-content;
  }

  /* 採用情報ページの院長画像下部分の2枚の画像の位置を修正
 */
  .flex-box-item-2col {
    margin: 0;
  }

  @media screen and (max-width: 375px) {
    /* ロゴ調整 */
    .header-logo {
      height: auto;
      max-height: none;
      width: 80%;
    }
  }

  /* topページ「お知らせ」欄の背景が途切れるのを防止 */
  .wrapper.infomation {
    background-size: cover;
  }

  /* 料金表や採用情報ページのリスト欄を中央揃えに変更 */
  .link-in-page-list ul {
    text-align: center;
  }
}


@media only screen and (max-width: 980px) {
  /* ロゴの大きさ調整 */
  .header-logo {
    height: 40px;
    width: auto;
  }

  /* top/アクセスページの外観画像2枚の位置調整 */
  .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;
  }
}

@media only screen and (min-width: 981px) and (max-width: 1016px) {
  /* 981px以降ヘッダー部分の左右余白が無くなるため修正 */
  .header-inner {
    width: calc(100% - 40px);
  }
}

/* main画像の大きさ調整 */
@media screen and (min-width: 768px) and (max-width: 1125px) {
  #main-image,
  #sec-main-image {
    height: calc(350px + (100vw - 768px) * 0.28);
  }
}

/*---レスポンシブロゴ調整---*/
.header-logo {
  height: auto;
}

/* 428px以下 */
@media (max-width: 428px) {
  .header-logo {
    margin: 10px 0 4px 8px;
    width: 90%;
  }
}

/* 375px以下 */
@media (max-width: 375px) {
  .header-logo {
    margin: 12px 0 4px 8px;
    width: 90%;
  }
}

/* 320px以下 */
@media (max-width: 320px) {
  .header-logo {
    width: 90%;
  }
}

/*-- 診療時間背景 --*/
.wrapper.hour {
  background-image: url(../img/c5/bg-hour.jpg);
}
/*--採用ページの電話ボタンの端はみ出し防止--*/
.recruit-tell-button {
  width: auto;
  max-width: 260px;
}

@media only screen and (max-width: 428px) {
/*アクセス画像サイズ調整*/
  .access-img-A {
    width: 100%;
    margin: 0 0 20px 0;
  }
  .access-img-B {
    width: 100%;
    margin: 0 0 20px 0;
  }
/*横幅396～413pxでメインスライド画像の端が切れないようにする*/
  .slide-images {
    width: 100%;
  }
  .recruit-tell-button {
    max-width: 230px;
  }
}

/*当院の取り組みについての色変更*/
a.initiatives-link {
  color: #EBEBEB;
}

/*stickyにWEB予約ボタンを追加*/
/*--スティッキー調整--*/
@media only screen and ( max-width : 767px ) {
  .sticky-btns-area a.two-btns {
    display: inline-block;
    width: calc(100% / 2 - 35px);
    border: 1px solid;
    margin: 10px 5px 0 9px;
    font-size: 14px;
  }
}

.sticky-btns-area .remove-phone-icon:before {
  background-image: none;
  display: none;
}
