/* ==========================
   ✅ 基本デザイン
   ========================== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  text-align: center;
  padding-top: 50px;
}

/* ==========================
   ✅ カード風のデザイン（フォームの枠）
   ========================== */
.card {
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 15px;
  padding: 25px;
  max-width: 500px;
  margin: auto;
}

/* ==========================
   ✅ ラベルデザイン
   ========================== */
label {
  display: block;
  font-weight: bold;
  margin: 10px 0 5px;
  text-align: left;
}

/* ==========================
   ✅ 入力フィールド（名前・年齢）
   ========================== */
input {
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

/* ==========================
   ✅ ラジオボタンの配置修正（間隔を狭める）
   ========================== */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 10px auto;
  width: 100%;
  gap: 6px; /* ✅ 余白を少し縮小 */
}

/* 各ラジオボタンのラベル */
.radio-group label {
  width: 48%;               /* ✅ 2列表示 */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;                 /* ✅ ボタンとテキストの間隔を狭くする */
  white-space: nowrap;
}

/* ラジオボタンのサイズを調整 */
.radio-group input[type="radio"] {
  flex-shrink: 0;
  transform: scale(1.1); /* ✅ 少し小さくしてバランス調整 */
}

/* ==========================
   ✅ ボタンのデザイン（中央配置）
   ========================== */
button {
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  display: block;
  text-align: center;
  margin: 20px auto 0;
}

button:hover {
  background-color: #45a049;
}

/* ==========================
   ✅ スマホ対応（レスポンシブデザイン）
   ========================== */
@media (max-width: 600px) {
  .card {
    width: 90%;
    padding: 20px;
  }

  /* 📱 スマホでも2列表示を維持 */
  .radio-group label {
    width: 48%;
  }

  button {
    font-size: 16px;
  }
}