@charset "utf-8";

.sp {
  display: none;
}
@media (max-width: 500px) {
  .sp {
    display: block;
  }
}

main {
  background-color: #f6f6f6;
  color: #454f5f;
}

.container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 40px;
}
.title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}
.message {
  width: 728px;
  margin: 0 auto 40px;
}
.step {
  margin-top: 40px;
  display: none;
  opacity: 0;
}
#step1 {
  display: block;
  opacity: 1;
}
.question {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.step .question:not(:first-child) {
  margin-top: 40px;
}
.question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  color: white;
  font-family: Inter;
  font-size: 1.2rem;
  background: linear-gradient(#17a3d2, #0c546c);
  border-radius: 50%;
  margin-right: 10px;
}
.step-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.step-option {
  flex-basis: calc(25% - 20px);
  border-radius: 12px;
}
.step-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
  z-index: 1;
  border: none;
  color: transparent;
  background-image: linear-gradient(to right, #17a3d2, #0c546c);
  -webkit-background-clip: text;
  background-clip: text;
  min-height: 64px;
  max-height: 64px;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}
.step-option-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 15px;
  padding: 3px;
  background: linear-gradient(to right, #17a3d2, #0c546c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.input-wrapper {
  width: 100%;
  border-radius: 15px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, #17a3d2, #0c546c) border-box;
  border: 3px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 0;
}
.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 16px;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 15px;
  box-sizing: border-box;
  resize: none;
  cursor: text;
}
.input-wrapper textarea {
  min-height: 280px;
}
textarea::placeholder,
input::placeholder {
  color: #a8a8a8;
}
.step-option-btn:hover,
.step-option-btn.active {
  background: linear-gradient(to right, #17a3d2, #0c546c);
  color: #fff;
  border: none;
}
.step-option-btn input[type='checkbox'],
.step-option-btn input[type='radio'] {
  display: none;
}
.step-option-btn:has(input[type='checkbox']:checked),
.step-option-btn:has(input[type='radio']:checked) {
  background: linear-gradient(to right, #17a3d2, #0c546c) !important;
  color: #fff !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  border: none;
}
.step-option-btn:has(input[type='checkbox']:checked)::before,
.step-option-btn:has(input[type='radio']:checked)::before {
  display: none;
}
.slide-in {
  display: block;
  animation: slideIn 0.5s ease-in-out forwards;
}
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.contact-info-item label {
  min-width: 200px;
  font-weight: bold;
}
.submit {
  margin-top: 40px;
  text-align: center;
}
.submit a {
  text-decoration: underline;
}
.submit input[type='checkbox'] {
  margin-right: 4px;
}
.submit button {
  margin-top: 20px;
  width: 180px;
  display: inline-block;
  padding: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(to right, #17a3d2, #0c546c);
  border: none;
  border-radius: 15px;
  transition: opacity 0.3s ease;
}
.submit button:hover {
  opacity: 0.8;
}
.submit button:disabled {
  opacity: 0.5 !important;
  cursor: default;
}

@media (max-width: 500px) {
  .container {
    max-width: 100%;
    margin: 20px auto 60px;
    padding: 10px;
  }
  .title {
    font-size: 30px;
    margin-bottom: 16px;
    padding: 0 4px;
  }
  .message {
    width: 100%;
    margin: 0 auto 24px;
    font-size: 1rem;
    padding: 0 4px;
  }
  .step-group {
    gap: 10px;
  }
  .step-option {
    flex-basis: calc(50% - 10px);
    min-width: 0;
  }
  .step-option-btn {
    min-height: 48px;
    max-height: 72px;
    font-size: 1rem;
    line-height: 1.2;
    padding: 4px 8px;
  }
  .input-wrapper textarea {
    min-height: 160px;
    font-size: 1rem;
    line-height: 1.2;
  }
  .question {
    font-size: 1.1rem;
    padding: 0 4px;
  }
  .contact-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .contact-info-item label {
    min-width: unset;
    font-size: 1rem;
  }
  .submit button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
  }
}

/* サンクスページ */
.thanks-container {
  max-width: 1000px;
  margin: 20px auto 80px;
  padding: 60px;
  background-color: #fff;
  border-radius: 20px;
  text-align: center;
}
.thanks-container h2 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}
.thanks-container p {
  font-size: 20px;
  font-weight: bold;
  line-height: 2.5;
}
.thanks-container button {
  background-color: #454f5f;
  border-radius: 35px;
  width: 380px;
  height: 80px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin: 40px 0 20px;
}
@media (max-width: 767px) {
  .thanks-container {
    margin: 20px 20px 80px;
    padding: 40px 20px;
  }
  .thanks-container h2 {
    font-size: 24px;
  }
  .thanks-container p {
    font-size: 16px;
    line-height: 1.5;
  }
  .thanks-container button {
    width: 200px;
    height: 60px;
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  .thanks-container p {
    text-align: left;
  }
}
