@charset "UTF-8";
/* ▼共通設定 */
html.modal_on,body.modal_on {
  overflow: hidden;
}
html.modal_c_on,body.modal_c_on {
  overflow: hidden;
}
/* ▲共通設定 */

/* ▼画像専用モーダル */
.modal_wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9050;
  background: rgba(50, 50, 50, 0.85);
  overflow-y: auto;
  padding: 40px 0;
  align-items: center;
}

.modal_container {
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 90%;
  width: 800px;
  /* width: fit-content; */
  height: fit-content;
}

.modal_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal_close {
  width: 126px;
  margin: 30px auto 0;
}

.modal_close img {
  width: 100%;
  height: auto;
}

.modal_close:hover {
  opacity: 0.8;
}

.modal_content .modal_img {
  width: 100%;
  height: auto;
}
/* ▲画像専用モーダル */

/* ▼汎用モーダル */
.modal_c_wrap {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9050;
  background: rgba(50, 50, 50, 0.85);
  overflow-y: auto;
  padding: 40px 0;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}
.modal_c_wrap.active {
  opacity: 1;
  visibility: visible;
}

.modal_c_container {
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 90%;
  width: 800px;
  height: fit-content;
}

.modal_c_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal_c_content_inner {
  background-color: #fff;
  padding: 2rem 2.5rem;
  width: fit-content;
}
@media screen and (max-width: 640px) {
  .modal_c_content_inner {
    padding: 0.8rem 1.2rem;
  }

}

/* ▲汎用モーダル */
