/* 全体のベース */    
body {
  font-family: "M PLUS Rounded 1c", "Yu Gothic Rounded", sans-serif;
  background-color: #ffb9b9; /* 薄い赤色 */
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;
  -webkit-tap-highlight-color: transparent; /* ページ全体で無効化 */
}

/* 中央のカード */
.container {
  max-width: 600px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* タイトル（main-titleに統一） */
.main-title {
  font-family: "M PLUS Rounded 1c", "Yu Gothic Rounded", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #444;
  text-align: center;
  margin-bottom: 20px;
}

/* タイトル画像 */
.start-image {
  display: block;
  margin: 20px auto;
  max-width: 80%;
  height: auto;
  border-radius: 12px;
}

/* ロゴ画像 */
.logo-image {
  display: block;
  margin: 0 auto 15px;
  max-width: 150px;
  height: auto;
}

#logo {
  display: none;
}

/* 質問文 */
h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* スタートボタン */
.start-btn {
  background: #ffca28;
  color: #333;
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-family: "M PLUS Rounded 1c", "Yu Gothic Rounded", sans-serif;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.start-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

/* 共通ボタン */
button {
  background: #fffacd;
  color: #333;
  border: 2px solid #ffd700;
  padding: 12px 20px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: "M PLUS Rounded 1c", "Yu Gothic Rounded", sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ホバー */
button:hover {
  background: #ffec8b;
  transform: translateY(-2px);
}

@media (hover: none) {
  button:hover {
    transform: none !important;
  }
}

button:active {
 opacity: 0.8;
}

button:focus,
button:focus-visible {
  outline: none !important;
}

button:visited {
  background: #fffacd !important;
  color: #333 !important;
}

button.selected {
  background-color: #ffd700;
  color: #000;
}

.choice-btn,
.choice-btn:focus,
.choice-btn:active,
.choice-btn:focus-visible,
.choice-btn:visited {
  background: #fffacd !important;
  color: #333 !important;
  outline: none !important;
  box-shadow: none !important;
}

.choice-btn {
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.choice-btn:active {
  transform: scale(0.95);
}

/* 結果カード */
.result-card {
  border: 3px solid #ffd700;
  border-radius: 15px;
  background: #fff8dc;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.result-card h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #444;
}

.result-card p {
  font-size: 18px;
  margin: 10px 0;
  line-height: 1.6;
}

.result-image {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.result-image:hover {
  transform: scale(1.05);
}

.result-image:active {
  transform: scale(0.97);
}

.result-link {
  display: inline-block;
  margin-top: 18px;
  background: #ffca28;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.result-link:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スマホ向け */
@media (max-width: 600px) {
  .container {
    max-width: 95%;
    margin: 15px auto;
    padding: 15px;
  }

  .main-title {
    font-size: 20px;
    line-height: 1.4;
  }

  h2 {
    font-size: 16px;
  }

  .start-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto 10px;
  }

  .start-btn {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  button {
    display: block;
    width: 100%;
    margin: 8px 0;
    font-size: 15px;
    padding: 12px;
  }

  .logo-image {
    max-width: 100px;
    margin: 10px auto 10px;
  }
}

.subtitle {
  display: none;
}

/* ===== スコア表示（ここだけ修正） ===== */
.score-label {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-top: 20px;
  font-weight: bold;
}

.score-main {
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px 0 20px;

  font-size: 54px;
  font-weight: bold;
  color: #ff4d6d;
  animation: popIn 0.5s ease;
  text-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.score-text {
  display: inline-block;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#banner-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 30px;
}

@media (max-width: 480px) {
  #banner-area {
    transform: scale(0.65);
    transform-origin: top center;
  }
}

footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 60px; /* 上に余白を作る */
}

.back-link {
  color: #333;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.back-link:hover {
  opacity: 0.7;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 32px; 
}

#answers {
  margin-bottom: 24px;
}