footer {
  position: absolute;
  /*←絶対位置*/
  bottom: 0;
  /*下に固定*/
  z-index: 100;
  /*最前面表示*/
}

.authority-item {
  text-align: center;
}

.authority {
  margin-top: 0.5rem;
  width: 100%;
}

/* モーダルのスタイル */
#customModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  background-image: url(../img/browser_back.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 70vh;
  width: 50vh;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#cancelBack {
  position: absolute;
  top: -30px;
  right: -30px;
  z-index: 1000;
  cursor: pointer;
}

#cancelBack img {
  width: 30px;
  height: 30px;
}

/* 電話番号文字列化 */

.inquiry-call-button__text {
  position: absolute;
  /*重ねたい子要素にabsolute*/
  top: 75%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  /*ベンダープレフィックス*/
  -webkit-transform: translate(-50%, -50%);
  /*ベンダープレフィックス*/
  transform: translate(-50%, -50%);
  /*センター寄せの修正*/
  color: #273461;
  font-size: 2.9rem;
  margin: 0 !important;
  /*文字がずれている場合や*/
  padding: 0 !important;
  /*文字が折り返される場合*/
  font-weight: bold;
  text-decoration: none;
}

.inquiry-call-button__text a {
  text-decoration: none;
  color: #273461;
}

.modal-inquiry-call-button__text {
  position: absolute;
  /*重ねたい子要素にabsolute*/
  top: 75%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  /*ベンダープレフィックス*/
  -webkit-transform: translate(-50%, -50%);
  /*ベンダープレフィックス*/
  transform: translate(-50%, -50%);
  /*センター寄せの修正*/
  color: #273461;
  font-size: 1.8rem;
  margin: 0 !important;
  /*文字がずれている場合や*/
  padding: 0 !important;
  /*文字が折り返される場合*/
  font-weight: bold;
  text-decoration: none;
  width: 100%;
}

.modal-inquiry-call-button__text a {
  text-decoration: none;
  color: #273461;
}

@media screen and (max-width: 768px) {
  .inquiry-call-button img {
    width: 70%;
  }

  .inquiry-call-button__text {
    font-size: 2.2rem;
  }
}

.modal-inquiry-call-button {
  position: fixed;
  top: 88%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.modal-inquiry-call-button img {
  max-width: 400px;
  margin: 0 auto 0.5rem auto;
}

@media screen and (max-width: 681px) {
  .inquiry-call-button__text {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .inquiry-call-button__text {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 550px) {
  .inquiry-call-button__text {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 500px) {
  .inquiry-call-button__text {
    font-size: 1.5rem;
    top: 72%;
  }

  .modal-inquiry-call-button__text {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 450px) {
  .inquiry-call-button__text {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 400px) {
  .inquiry-call-button__text {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 350px) {
  .inquiry-call-button__text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 325px) {
  .inquiry-call-button__text {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 285px) {
  .inquiry-call-button__text {
    font-size: 0.8rem;
  }
}

.modal-inquiry-call-button {
  position: fixed;
  top: 88%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.modal-inquiry-call-button img {
  max-width: 400px;
  margin: 0 auto 0.5rem auto;
}

@media screen and (max-width: 950px) {
  .modal-inquiry-call-button img {
    max-width: 40vh;
  }
}

@media screen and (max-width: 500px) {
  #cancelBack img {
    width: 20px;
    height: 20px;
  }

  #customModal {
    height: 65vh;
    width: 40vh;
  }

  .modal-inquiry-call-button img {
    max-width: 35vh;
  }

  #cancelBack {
    top: -20px;
    right: -20px;
  }
}