/* 結果ページ専用スタイル */

/* ヘッダー */
.header {
  text-align: center;
  padding: 20px 0 40px;
  margin: 0 calc(50% - 50vw);
  position: relative;
  background-image: url("../../assets/bg_top_circle_pc.png");
  background-repeat: no-repeat;
  background-position: center -285px;
}
.main-title-image {
  max-width: 767px;
  width: 100%;
  height: auto;
}

/* ヘッダー画像 */
.header-image {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}

.header-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}



/* 結果サブタイトル（下部） */
.result-subtitle-bottom {
  text-align: center;
  margin: 40px 0 20px;
}

.result-subtitle-bottom img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: inline-block;
}

/* 結果メインエリア */
.result-main {
  max-width: 1000px; /* キャラクター画像が大きくなったため調整 */
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 結果カード */
.result-card {
  text-align: center;
  margin-bottom: 40px;
}

/* キャラクター結果 */
.character-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

.character-image-area {
  text-align: center;
}

/* キャラクター画像 */
#character-image {
  width: 100%;
  max-width: 1000px; /* 400px × 1.5 = 600px */
  height: auto;
  display: block;
  margin: 0 auto;
}

.character-placeholder {
  width: 100%;
  max-width: 600px; /* 400px × 1.5 = 600px */
  height: 750px; /* 500px × 1.5 = 750px */
  background: linear-gradient(135deg, var(--light-pink) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 2px dashed var(--primary-pink);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
}

/* アクションボタン群 */
.action-buttons {
  text-align: center;
  margin-bottom: 40px;
}

.share-button,
.retry-button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 auto 20px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  -webkit-tap-highlight-color: transparent; /* Safari タップハイライト無効化 */
  -webkit-touch-callout: none; /* Safari 長押しメニュー無効化 */
  user-select: none; /* テキスト選択無効化 */
  touch-action: manipulation; /* タッチ操作の最適化 */
  position: relative; /* z-indexのため */
  z-index: 10; /* 他の要素より前面に */
}

.share-button img,
.retry-button img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.share-button:hover,
.retry-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.share-button:active,
.retry-button:active {
  transform: scale(0.98);
}

/* 配信サービスボタン */
.streaming-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto 0;
}

.streaming-link {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.streaming-link img {
  width: 100%;
  height: auto;
  display: block;
}

.streaming-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}





/* キャンペーンフロー画像 */
.campaign-flow {
  text-align: center;
  margin: 20px 0 40px;
}

.campaign-flow img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: inline-block;
}

/* ナビゲーション */
.navigation {
  text-align: center;
  margin-top: 20px;
}

/* アニメーション */

/* レスポンシブ対応 */
@media (max-width: 767px) {

  .header {
    padding: 5vw 2vw 6vw;
    background-image: url("../../assets/bg_top_circle_sp.png");
    background-repeat: no-repeat;
    background-position: center -31vw;
    background-size: cover;
  }

  .result-main {
    padding: 20px 0;
  }

  /* キャラクター画像のモバイル対応 */
  #character-image {
    max-width: none; /* 300px × 1.5 = 450px */
  }

  .character-placeholder {
    max-width: 450px; /* 300px × 1.5 = 450px */
    height: 600px; /* 400px × 1.5 = 600px */
    font-size: 16px;
  }

  /* ボタンのモバイル対応 */
  .share-button img,
  .retry-button img {
    max-width: 300px;
  }

  .streaming-link img {
    max-width: 300px;
  }



  .streaming-buttons {
    gap: 10px;
  }

  .streaming-link {
    font-size: 14px;
    padding: 0;
    margin: 0 auto 12px;
  }

  /* 結果サブタイトル（下部）のモバイル対応 */
  .result-subtitle-bottom {
    margin: 30px 0 15px;
  }

  .result-subtitle-bottom img {
    max-width: 100%;
  }

  /* キャンペーンフローのモバイル対応 */
  .campaign-flow {
    margin: 15px 0 30px;
  }

  .campaign-flow img {
    max-width: 100%;
  }
}
