.hero-content {
  display: flex;
}

.hero-note {
  color: #000;
  text-align: center;
  font-family: "Noto Serif JP";
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.07; /* 107.692% */
  padding-top: 1.1em;
}

.form-section {
  padding: 100px 0 80px;
  background-color: #fff;
}

.form-wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  aspect-ratio: 1100/2150;
  overflow: hidden;
  border: 1px solid #000;
}

.form-iframe {
  width: 65.45%;
  transform: scale(1.35);
  transform-origin: top center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.form-iframe.loaded {
  opacity: 1;
}

.form-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.form-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.form-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f0f4fa;
  border-top-color: #6894d1;
  border-radius: 50%;
  animation: form-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes form-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-loading-text {
  color: #6894d1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
}

@media (max-width: 1200px) {
  .hero-note {
    font-size: 2.16vw;
  }
  .form-wrapper {
    aspect-ratio: unset;
    min-height: 1700px;
    width: 84%;
  }
  .form-iframe {
    width: 100%;
    transform: scale(1);
    transform-origin: top center;
  }
}

@media (max-width: 767px) {
  .hero-content {
    flex-direction: column;
  }
  .hero-subtitle {
    margin-bottom: 1vw;
  }
  .hero-note {
    font-size: 4vw;
    padding-top: 0;
    text-align: left;
    line-height: 1.8;
    margin-top: 2vw;
  }
  .form-section {
    padding: 5vw 0 10vw;
  }
  .form-wrapper {
    min-height: 1800px;
    width: 86%;
    border-width: 0.4vw;
  }
  
  .form-loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    margin-bottom: 16px;
  }
  
  .form-loading-text {
    font-size: 14px;
  }
}
