/* オーバーレイ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  height: 100vh;
  width: 100vw;
  background-color: rgba(57, 57, 57, 0.8);
}

.modal-overlay.is-active {
  display: block;
}

/* モーダル */
.modal-important-notice-container > * {
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif !important;
}

.modal-important-notice-container {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  display: flex;
  width: 330px;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .modal-important-notice-container {
    width: 584px;
  }
}

.modal-important-notice-container .title {
  width: 100%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-color: #383333;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 2.25rem;
  padding-bottom: 1.75rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
}

@media (min-width: 1024px) {
  .modal-important-notice-container .title {
    padding-top: 3.25rem;
    padding-bottom: 2rem;
    font-size: 28px;
  }
}

.modal-important-notice-container .modal-button-container {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .modal-important-notice-container .modal-button-container {
    margin-top: 1.75rem;
  }
}

.modal-content {
  width: 100%;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  background-color: white;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .modal-content {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

.modal-content .text {
  opacity: 1;
  transition: opacity 0.3s;
  position: relative;
  display: block;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  color: #004DA0;
  text-decoration: underline;
}

.modal-content .text:hover {
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .modal-content .text {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
    text-align: center;
    font-size: 1rem;
  }
}

.modal-content .text::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  height: 12px;
  width: 7px;
  transform: translateY(-50%);
  background-image: url('/assets-static/images/common/icon-angle-right-gray.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.modal-content .last-modified {
  margin-top: 1.25rem;
  border-top: 1px solid #CCCCCC;
  padding-top: 0.625rem;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 10px;
  color: #666666;
}

@media (min-width: 1024px) {
  .modal-content .last-modified {
    margin-top: 1.875rem;
    padding-top: 0.75rem;
    font-size: 0.75rem;
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

.modal-close img {
  height: 25px;
  width: 25px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .modal-close img {
    height: 1.5rem;
    width: 1.5rem;
  }
}

.modal-button-container {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .modal-button-container {
    margin-top: 1.5rem;
  }
}

.modal-close-button2 {
  opacity: 1;
  transition: opacity 0.3s;
  display: flex;
  height: 44px;
  width: 184px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid #cccccc;
  font-size: 0.875rem;
  color: #666666;
}

.modal-close-button2:hover {
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .modal-close-button2 {
    height: 64px;
    width: 246px;
    font-size: 1rem;
  }
}
