/* モーダル全体 */
.modal-all {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 251;
  width: 100%;
  height: 100%;
  visibility: visible;
}

.modal-all.hidden {
  visibility: hidden;
  transition-duration: 0.5s;
  transition-property: opacity visibility;
}

/* 金融機関モーダル全体 */
.modal-bank-all {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 251;
  width: 100%;
  height: 100%;
  visibility: visible;
}

.modal-bank-all.hidden {
  visibility: hidden;
  transition-duration: 0.5s;
  transition-property: opacity visibility;
}

/* モーダル背景 */
.modal-overlay {
  height: 100%;
  background-color: var(--ion-modal-backdrop-color);
  visibility: visible;
  animation-name: fadeIn;
  animation-duration: 0.5s;
}

.hidden .modal-overlay {
  visibility: hidden;
  animation-name: fadeOut;
  animation-duration: 0.5s;
}

/* モーダル閉じるボタン */
.modal-white-button {
  position: relative;
  width: 100%;
  height: 40px;
  text-align: right;
  background-color: transparent;
  border: none;
}

.modal-white-button .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 6px;
  display: block;
  color: var(--ion-color-custom-white);
  font-size: var(--font-size-30);
}

.modal-white-button svg polygon {
  fill: #fff; 
  transition: fill 0.2s ease;
}

/* モーダル本体 */
.modal-content {
  position: absolute;
  top: calc(50% + 56px);
  right: 0;
  left: 0;
  z-index: 252;
  display: inline-block;
  width: calc(384 / 414 * 100%);
  max-height: 380px;
  margin: auto;
  opacity: 1;
  animation: slideUp 0.2s ease-in-out forwards;
}

.hidden .modal-content {
  opacity: 0;
  animation: slideDown 0.2s ease-in-out forwards;
}

.modal-wrapper {
  position: absolute;
  box-sizing: border-box;
  padding: 0 var(--space-size-20) var(--space-size-40);
  overflow: auto;
  background-color: var(--ion-color-custom-white);
  border-radius: 10px;
  width: 100%;
  height: 100%;
}

.modal-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* コール部分 */
.modal-wrapper .icon-call-box {
  margin: var(--space-size-30) 0 0;
  padding: 0;
  border: none;
}

.icon-call-modal-box {
  max-width: 384px;
  --detail-icon-color: var(--ion-call-box-chevron-icon-color);
}

.icon-call-modal-box a {
  text-decoration: none;
}

.icon-call-modal-box .item-inner {
  position: relative;
  display: flex;
  flex: 110%;
}

.icon-call-modal-box .call-box-sub-title {
  color: var(--ion-default-text-color);
  font-weight: bold;
  font-size: var(--font-size-14);
  font-family: var(--hiragino-font-6);
}

.icon-call-modal-box .call-description {
  margin-top: var(--space-size-10);
  color: var(--ion-default-text-color);
  font-size: var(--font-size-12);
  font-family: var(--hiragino-font-3);
  line-height: 14px;
}

.icon-call-modal-box .input-wrapper {
  width: calc(100% - 1em);
}

.icon-call-modal-box .item-detail-icon {
  position: absolute;
  top: calc(50% - 10px);
  right: 0;
  display: inline-block;
  box-sizing: content-box !important;
  width: 1em;
  height: 1em;
  color: var(--detail-icon-color);
  contain: strict;
  font-size: var(--font-size-20);
}

.ladies p,
.ladies ion-icon {
  color: var(--ion-color-custom-light-red);
}

/* モーダルアニメーション */

/*下から上*/
@keyframes slideUp {
  0% {
    transform: translateY(-50%);
    opacity: 0;
  }
  100% {
    transform: translateY(-80%);
    opacity: 1;
  }
}

/*上から下*/
@keyframes slideDown {
  0% {
    transform: translateY(-80%);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%);
    opacity: 0;
  }
}

/* フェードイン */
@keyframes fadeIn {
  0% {
    visibility: hidden;
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
}

/* フェードアウト */
@keyframes fadeOut {
  0% {
    visibility: visible;
    opacity: 1;
  }

  100% {
    visibility: hidden;
    opacity: 0;
  }
}

.bank-modal-height {
  height: 570px;
  padding: 0 var(--space-size-16) var(--space-size-16);
  @media (max-height: 667px) {
    height: calc((610 / 667 * 100%) - 40px);
  }
}

.hidden .modal-bank-content {
  opacity: 0;
}

/* モーダル本体 */
.modal-bank-content {
  position: absolute;
  top: calc(50% - 610px / 2);
  right: 0;
  left: 0;
  z-index: 252;
  display: inline-block;
  width: calc(374 / 414 * 100%);
  height: 610px;
  margin: auto;
  opacity: 1;
  @media (max-height: 667px) {
    top: calc(50% - 610 / 667 * 100% / 2);
    height: calc(610 / 667 * 100%);
  }
}

.modal-movie-content {
  position: absolute;
  top: calc(50% - 570px / 2);
  right: 0;
  left: 0;
  z-index: 252;
  display: inline-block;
  width: auto;
  height: 610px;
  margin: auto;
  opacity: 1;
  @media (max-height: 667px) {
    top: calc(50% - 610 / 667 * 100% / 2);
    height: calc(610 / 667 * 100%);
  }
}

.modal-movie-button {
  position: relative;
  left: 10px;
  width: 100%;
  height: 40px;
  text-align: right;
  background-color: transparent;
  border: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.3);
}

.popup {
  position: fixed;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 1000;
  display: none;
  width: calc(374 / 414 * 100%);
  max-width: 80%;
  height: 62vh;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translate(7%, -50%);
}

.popup2 {
  position: fixed;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 1000;
  display: none;
  width: calc(374 / 414 * 100%);
  max-width: 80%;
  height: 65vh;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translate(7%, -50%);
}

.popup-content{
  box-sizing: border-box;
}
/* iframe */
.popup iframe {
  width: 100%;
  border: none;
}

.popup2 iframe {
  width: 100%;
  border: none;
}

.responsive-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
