/* --- 全体の基本設定（現在のデザインを維持） --- */
body {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 850px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 15px;
}

/* メインカードの質感を向上 */
.lucky-row {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden; /* 中身の飛び出し防止 */
}

/* 1. TOPに戻るボタンの配置調整 */
.top-link-area,
div[style*="text-align: right"] {
  margin: 10px 0 20px 0 !important;
}

a[href*="masatheaterlab.com"] {
  transition: all 0.2s ease;
}

a[href*="masatheaterlab.com"]:hover {
  background: #5c6bc0;
  color: #fff !important;
}

/* 2. 入力エリアの並びを整える */
#step-birth {
  padding: 20px 0;
}

input[type="number"] {
  width: 80px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  margin: 0 5px;
  text-align: center;
}

/* 3. ボタンのデザインを統一 */
button {
  margin-top: 15px;
  background: #5c6bc0;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px; /* 少し丸めて柔らかく */
  cursor: pointer;
  font-size: 1.05em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(92, 107, 192, 0.2);
  transition: 0.3s;
}

button:hover:not(:disabled) {
  background: #4a59a7;
  transform: translateY(-1px);
}

/* 4. 結果表示エリア（青い枠の質感） */
.result-card {
  border: 2px solid #5c6bc0 !important;
  background: #ffffff !important;
  border-radius: 15px !important;
  padding: 20px !important;
  margin-top: 25px !important;
}

/* 「メッセージ」ボックスの可読性 */
div[style*="background: #f5f7ff"] {
  background: #f0f3ff !important;
  border: 1px solid #c5cae9 !important;
  border-radius: 12px !important;
  padding: 20px !important;
}

/* 5. 自分を守るためのきっかけ（オレンジ枠） */
div[style*="background: #fff3e0"] {
  background: #fffdf9 !important;
  border: 1.5px solid #ffcc80 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin: 20px 0 !important;
}

button {
  margin-top: 10px;
  width: 100%;
  background: #5c6bc0;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}

/* --- モバイル対応（スマホ表示） --- */
@media screen and (max-width: 600px) {
  body {
    padding: 10px;
  }

  /* 選択ボタンを2列に */
  #emotion-selector,
  #intent-selector {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  #emotion-selector div,
  #intent-selector div {
    padding: 12px 4px !important;
    font-size: 0.85em !important;
  }

  /* 生年月日入力欄の崩れ防止 */
  input[type="number"] {
    width: 65px !important;
    font-size: 1em !important;
    margin: 5px 2px !important;
  }

  /* 結果カードの余白調整 */
  .result-card {
    padding: 15px !important;
  }

  h1 {
    font-size: 1.2em !important;
  }
  button {
  margin-top: 10px;
  width: 100%;
  background: #5c6bc0;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}
}
