* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Meiryo", sans-serif;
  background-color: rgb(221, 221, 221);
  line-height: 1.6;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

.main-title {
  display: flex;
  border-radius: 0 0 50px 50px;
  padding: 90px 30px;
  justify-content: center;
  background-color: #367cff;
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: -.1rem;
  text-align: center;
}

.form-sec {
  background: white;
  border-radius: 30px 30px 0 0;
  width: 90%;
  margin: -3rem auto 0;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-sec p {
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 25px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #367cff;
  background: white;
  box-shadow: 0 0 0 2px rgba(54, 124, 255, 0.1);
}

.form-input::placeholder {
  color: #999;
  text-align: center;
}

.radio-group {
  margin-bottom: 25px;
}

.radio-wrapper {
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  display: flex;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.radio-label:hover {
  background: #f0f0f0;
}

.radio-input {
  margin-right: 6px;
  accent-color: #367cff;
}

.radio-input:checked + span {
  font-weight: 600;
}

.radio-label:has(.radio-input:checked) {
  background: #367cff;
  color: white;
  border-color: #367cff;
}

/* 特別セクション共通スタイル */
.special-section,
.agreement-section {
  background: #f8f9ff;
  padding: 20px;
  border-radius: 15px;
  margin: 25px 0;
  text-align: center;
}

.special-section {
  border: 1px solid #e0e6ff;
}

.agreement-section {
  border: 2px solid #367cff;
}

.special-section .section-title,
.agreement-section .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.agreement-section .section-title {
  margin-bottom: 10px;
}

.agreement-section a {
  color: #367cff;
  text-decoration: none;
  font-weight: 500;
}

.agreement-section a:hover {
  text-decoration: underline;
}

.agreement-section .radio-wrapper {
  justify-content: center;
  margin-top: 10px;
}

.submit-wrapper {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background: #367cff;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(54, 124, 255, 0.3);
}

.submit-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(54, 124, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .main-title {
    border-radius: 0;
    font-size: 1.5rem;
    padding: 60px 20px;
  }

  .form-sec {
    width: 100%;
    padding: 2rem;
  }

  .radio-wrapper {
    flex-direction: column;
  }
}
