@charset "UTF-8";

/* =========================================
   背景用ラッパーの設定
========================================= */
#diagnosis-bg-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 40px 20px;
  
  /* デフォルトの背景（水彩クマのパターン） */
  background-image: url('https://www.ptl.co.jp/images/lp/DSC_0070.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  
  /* クマの画像に合わせたクリーム系の背景色 */
  background-color: #f7e6dc; 
  transition: background 0.3s ease;
}

/* 結果画面専用の背景（お祝いの枠） */
.bg-result {
  background-image: url('https://www.ptl.co.jp/images/lp/27808441.jpg') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: top center !important;
  background-color: white !important;
}

/* =========================================
   診断枠（カード）の設定
========================================= */
.diagnosis-container {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 700px;
  padding: 40px;
  text-align: center;
  box-sizing: border-box;
  position: relative; 
  z-index: 1;
}

/* 各画面の切り替え用 */
.step {
  display: none;
}
.step.active {
  display: block;
}

/* 見出し・テキスト */
h2 {
  color: #333;
  font-size: 1.6rem;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: bold;
}
p {
  color: #666;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* 診断結果のベア名（強調） */
#result-name {
  font-weight: 900 !important;
  font-size: 2.2rem !important;
  display: inline-block;
  margin-top: 10px;
}

/* 画像プレースホルダー */
.image-placeholder {
  width: 120px;
  height: 120px;
  background-color: #f0f0f0;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  font-size: 0.9rem;
}

/* 結果表示用の大きめ画像枠 */
.result-image-placeholder {
  width: 250px;
  height: 250px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  font-size: 1rem;
  /* アニメーションの適用（1回だけ実行して元に戻す 1.5秒） */
  animation: fluffUp 1.5s ease-in-out;
}

/* ふわっと大きくなって戻るアニメーションの定義 */
@keyframes fluffUp {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15); /* 1.15倍の大きさに拡大 */
  }
  100% {
    transform: scale(1);
  }
}

/* ボタンの設定 */
.btn {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 0 auto 15px;
  padding: 18px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.8;
}

/* ボタンのカラーバリエーション */
.btn-start { background-color: #B33D64; color: white; }
.btn-choice1 { background-color: #B33D64; color: white; }
.btn-choice2 { background-color: #6EB5D2; color: white; }
.btn-result { background-color: #333; color: white; margin-top: 25px;}

/* ▼ 変更：結果リンク（テキストリンク） ▼ */
.result-link {
    display: inline-block;
    margin-top: 15px;
    color: #B33D64; /* ピンクのカラー */
    text-decoration: underline; /* 下線 */
    font-weight: bold; /* 太字 */
    font-size: 1.5rem; /* 大きめ */
    transition: opacity 0.3s ease;
}

/* ホバー時の動き（少し薄くする） */
.result-link:hover {
    opacity: 0.7;
}

/* =========================================
   スマホ（SP）向けの表示調整（画面幅768px以下）
========================================= */
@media screen and (max-width: 768px) {
  #diagnosis-bg-wrapper {
    padding: 20px 10px;
  }
  .diagnosis-container {
    max-width: 95%;
    padding: 30px 20px;
  }
  h2 {
    font-size: 1.2rem;
  }
  /* スマホサイズのベア名 */
  #result-name {
    font-size: 1.6rem !important; 
  }
  p {
    font-size: 0.95rem;
  }
  .image-placeholder {
    width: 100px;
    height: 100px;
  }
  .result-image-placeholder {
    width: 200px;
    height: 200px;
  }
  .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
  
  /* ▼ 変更：スマホサイズのリンクテキスト ▼ */
  .result-link {
    font-size: 1.3rem;
  }
}