@charset "UTF-8";
#feature2024summer .main-img {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.card-container {
  cursor: pointer;
  position: relative;
  width: 100%;
  padding-top: 75%;
  max-width: 600px;
  margin: 2rem auto 2rem;
}

.card-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100%);
  height: calc(100%);
  background-color: #78F6FF;
  border-radius: 15px;
  z-index: 1;
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100%);
  height: calc(100%);
  margin: -10px 10px 10px -10px;
  z-index: 2;
  border-radius: 15px;
  border: 0.3rem solid;
  overflow: hidden;
}

.card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-text {
  padding: 20px;
  text-align: center;
  font-size: 1.2rem;
}

.card-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  margin-bottom: 0px;
  background-image: url('/common/img/feature2024summer/card.png');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.card-container:hover .card-wrapper {
  opacity: 0;
}

.card-container:hover .card-image {
  opacity: 1;
}

/* モーダルのスタイル */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 5px;
}

.modal__content {
  line-height: 1.5;
  padding: 0;
  color: rgba(0, 0, 0, .8);
}

.modal-photo {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
}

/* レスポンシブ調整 */
@media only screen and (max-width: 575px) {
  .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media only screen and (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media only screen and (max-width: 575px) {
  .modal__container {
    padding: 15px;
  }

  .modal__title {
    font-size: 1.1rem;
  }

  .modal-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}