/* 段階的表示制御のスタイル */

.language-length-selection {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.language-length-selection h4 {
  margin: 0 0 16px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
}

.selection-group {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.selection-group .input-group {
  flex: 1;
  min-width: 200px;
}

.selection-group .input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.radio-option:hover {
  background-color: #e9ecef;
}

.radio-option input[type="radio"] {
  margin-right: 8px;
  margin: 0;
  margin-right: 8px;
}

.radio-option span {
  font-size: 14px;
  color: #495057;
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 500;
  color: #007bff;
}

/* 段階的表示のアニメーション */
.pre-guide,
.language-length-selection,
.form-sections {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pre-guide[aria-hidden="true"],
.language-length-selection[aria-hidden="true"],
.form-sections[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(-10px);
}

.pre-guide[aria-hidden="false"],
.language-length-selection[aria-hidden="false"],
.form-sections[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .selection-group {
    flex-direction: column;
    gap: 16px;
  }
  
  .selection-group .input-group {
    min-width: auto;
  }
}
