.fixedBox {
  top: 65%;
}

.fixedBox .goBtn {
  right: 0;
}

.fixedBox .goBtn img {
  width: 80%;
}

#kv {
  margin: -10px 0;
}

.kv-container {
  position: relative;
  width: 100%;
  height: auto;
}

.kv-toggle {
  position: relative;
  width: 100%;
}

.kv-toggle img {
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.evt-banner {
  text-align: center;
  margin-top: 2.2917vw;
  margin-bottom: 1vw;
}

@media (max-width: 767px) {
  .evt-banner {
    margin-top: 6vw;
    margin-bottom: 2vw;
  }
}

.evt-banner a {
  display: inline-block;
  margin: 0 auto;
  border-radius: 1.6em;
  box-shadow: 0 0 8px 3px rgba(0,0,0,0.3);
}

.evt-banner img {
  width: 100%;
}

.evt-banner img.for-pc {
  max-width: 75.8854vw;
}

.evt-banner img.for-m {
  max-width: 91.5vw;
}

.part0 {
  width: 100%;
}

.part0-container {
  background-color: #cfe8f3;
  padding: 16px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.part0-image {
  max-width: 100%;
  height: auto;
  display: none;
}

.part1 {
  background: linear-gradient(to right, #78b9f9, #87d2fb);
}

.part1 .newCard:after {
  top: 0;
  width: 90%;
  left: 5%;
  background: linear-gradient(180deg, #79cff2 0%, #0072b5 100%);
  border-radius: 48px;
}

.part1 .childBox .each .imgFont {
  width: 50%;
}

.part1 .aside {
  display: block;
  text-align: left;
  font-size: 18px;
  color: white;
  line-height: 1.5em;
  font-weight: bold;
  margin: 2% 18%;
  width: 70%;
  list-style-type: disc;
}

#page2 {
  background: linear-gradient(to right, #78b9f9, #87d2fb);
}

.part2 .partWrap .itemBox{
  background: linear-gradient(
    135deg,
    rgba(78, 152, 206, 0.8),    /* Turquoise/blue */
    rgba(99, 165, 220, 0.8),    /* Mid transition */
    rgba(120, 140, 198, 0.8),   /* Blue/purple transition */
    rgba(132, 124, 185, 0.8)    /* Purple */
  );
  padding: 40px;
  border-radius: 48px;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1000;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Modal content */
.modal-content {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  width: 90%;
  max-width: 500px;
  aspect-ratio: 375/667;
  /* Adjust based on your image ratio */
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modal-backdrop.show .modal-content {
  opacity: 1;
  transform: scale(1);
}

/* Close button - optional */
.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: white;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  background-color: #333;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

/* Desktop styles */
@media screen and (min-width: 768px) {
  .kv-toggle img.desktop {
    opacity: 1;
    visibility: visible;
    position: relative;
    /* Needed to maintain layout flow */
  }

  .part0-image.desktop {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
  }

  .part0-image.mobile {
    display: none;
  }
/*
  .modal-content {
    background-image: url('modal_apply_go_pc.png');
  }
*/
  .part1 .eachBox .each .ttImg {
    margin: 80px 10px 10px 0;
  }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
  .headerWrap .fixedBox_m .goBtn {
    right: 6px;
    top: 6px;
  }

  .kv-toggle img.mobile {
    opacity: 1;
    visibility: visible;
    position: relative;
    /* Needed to maintain layout flow */
  }

  .part0-image.mobile {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
  }

  .part0-image.desktop {
    display: none;
  }
/*
  .modal-content {
    background-image: url('modal_apply_go_mb.png');
  }
}
*/
/* Optional: Add more sophisticated animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply the animation when images become visible */
.kv-toggle img.desktop:not([style*='visibility: hidden']),
.kv-toggle img.mobile:not([style*='visibility: hidden']) {
  animation: fadeIn 0.5s ease-out forwards;
}
