.form-container {
  max-width: 800px;
  margin: auto;
  padding: 25px;

}

.form-container a{
  color: #2f8790;
  text-decoration: underline;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.form-container a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: #2f8790c;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
}

.form-note {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

textarea {
  min-height: 150px;
  resize: vertical; /* 縦方向のみ拡大可能 */
  white-space: pre-wrap; /* 改行と折り返しを保持 */
  word-wrap: break-word; /* 長い単語も折り返す */
}

button {
  width: 120px;
  padding: 12px;
  background: #2f8790;
  border: none;
  color: white;
  font-size: 1.1em;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #abd9d8;
}

.radio-group {
  display: flex;
  flex-direction: row; 
  gap: 20px;         /* ボタン同士の間隔 */
  margin: 5px 0 15px; /* 上下の余白 */
}

.radio-group label {
  display: flex;
  align-items: center; 
  white-space: nowrap;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin-right: 5px; /* ボタンと文字の間隔 */
}

.required {
  color: red;
}

@media (max-width: 480px) {
  .form-container {
    padding-left: 20px;
	padding-right: 40px;
  }
}