@charset "UTF-8";
/* ************************************** _
タイトル：modal.css
概要：モーダル用css
更新：2025.08.01
_ ************************************** */

.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  font-family: 'Rounded M+ 1c', sans-serif;
}

.modal__content {
  background: #fff;
  padding: 80px 0;
  width: 90%;
  max-width: 1500px;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
  height: 80vh;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 42px;
  cursor: pointer;
}

.modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal__header-image {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.modal__title {
  font-size: 32px;
  color: #cc0000;
  font-weight: bold;
  margin-bottom: 40px;
}

.modal__body {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.modal__col {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 80%;
  margin: 0 auto 60px;
}

.modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__row:nth-child(even) {
  flex-direction: row-reverse;
}

.modal__img {
  width: 50%;
}

.modal__img img {
  border-radius: 2.0rem;
  border: 1px solid #ccc;
}

.modal__txt {
  width: calc(50% - 40px);
}

.modal__lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 2.0;
}

.modal__num {
  color: #cc0000;
  display: block;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 30px;
  margin-bottom: 5px;
}

.modal__parag {
  font-size: 18px;
  margin-top: 20px;
  line-height: 2.0;
  margin-bottom: 0;
}

.open-modal-btn,
.btn--more.kodomo {
  z-index: 99;
  font-size: 20px;
  cursor: pointer;
  /*width: 220px;*/
	width:100%;
}

.open-modal-btn a,
.btn--more.kodomo a {
  font-size: 20px;
  width: 100%;
  padding: 15px 20px;
}


@media screen and (max-width: 1200px) {
  .modal__content {
    padding: 60px 0;
  }

  .modal__title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .modal__col {
    gap: 40px;
    width: 90%;
  }

  .modal__lead {
    font-size: 20px;
    line-height: 1.8;
  }

  .modal__num {
    font-size: 25px;
  }

  .modal__lead {
    font-size: 20px;
    line-height: 1.8;
  }

  .modal__parag {
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.8;
  }
}


@media screen and (max-width: 768px) {
  .modal__content {
    padding: 50px 0;
  }

  .modal__title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .modal__txt {
    width: calc(50% - 25px);
  }

  .modal__num {
    font-size: 21px;
    margin-bottom: 0;
  }

  .modal__lead {
    font-size: 18px;
  }

  .modal__parag {
    font-size: 15px;
    margin-top: 5px;
  }
}

@media screen and (max-width: 600px) {

  .modal__content {
    padding: 50px 0;
    height: 70vh;
  }

  .modal__col {
    gap: 30px;
    margin: 0 auto 40px;
  }

  .modal__row {
    flex-direction: column;
    gap: 20px;
  }

  .modal__row:nth-child(even) {
    flex-direction: column;
    gap: 20px;
  }

  .modal__img {
    width: 100%;
  }

  .modal__txt {
    width: 100%;
  }

  .modal__title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .modal__num {
    line-height: 1;
    margin-bottom: 5px;
  }

  .modal__close {
    font-size: 32px;
  }

  .open-modal-btn,
  .btn--more.kodomo {
    /*width: 220px;*/
  }

  .open-modal-btn a,
  .btn--more.kodomo a {
    font-size: 18px;
    padding: 10px 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-inner {
  z-index: 0 !important;
}