@charset "utf-8";

.modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.modal_wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal_container {
  width: calc(100% - 30px);
  max-width: 600px;
  height: auto;
  min-height: 200px;
  margin: 0;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  position: relative;
  overflow-y: scroll;
}

.modal_close_btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 4px 6px;
}

/* ── ユーザープロフィールモーダル ── */
.up_modal_container {
  max-width: 360px;
  width: 100%;
}

.up_header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.up_avatar_wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.up_avatar_wrap.rank0 { background-image: url("../images/rank_00_beginner.svg"); }
.up_avatar_wrap.rank1 { background-image: url("../images/rank_01_bronze.svg"); }
.up_avatar_wrap.rank2 { background-image: url("../images/rank_02_silver.svg"); }
.up_avatar_wrap.rank3 { background-image: url("../images/rank_03_gold.svg"); }
.up_avatar_wrap.rank4 { background-image: url("../images/rank_04_platinum.svg"); }
.up_avatar_wrap.rank5 { background-image: url("../images/rank_05_diamond.svg"); }

.up_avatar {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light-gray, #f5f5f5);
}

.up_name_wrap {
  min-width: 0;
}

.up_name {
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.up_rank {
  font-size: 12px;
  color: var(--dark-gray, #888);
  margin-top: 2px;
}

.up_userid {
  font-size: 11px;
  color: var(--dark-gray, #888);
  margin-top: 2px;
}

.up_bio {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}

h2 {
  width: 100%;
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

p {
  line-height: 1.5;
}

.op_wrap {
  margin: 20px auto;
}

.op_wrap::before,
.op_wrap::after {
  content: none;
}
  
.vote-selected-choice {
  width: 100%;
  font-size: var(--font14-16);
  font-weight: 700;
  text-align: center;
  margin: 0;
}


.bet_header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.bet_header h3 {
  font-size: 15px;
  font-weight: 700;
}

.bet_header .my_yosopo {
  padding: 5px 20px 5px 10px;
  background: var(--light-gray);
  border-radius: 30px;
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.bet_header .my_yosopo::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../images/icon_yosopo.png") center no-repeat;
  background-size: contain;
}

.bet_header .my_yosopo span::before {
  content: "所持ヨソポ";
  display: inline-block;
  font-size: var(--font-12-14);
  color: var(--dark-gray);
  padding-right: 10px;
}

.bet_form {
  width: 100%;
  height: 40px;
  background: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.bet {
  width: 100%;
  margin-bottom: 15px;
}

.inputNum {
  display: block;
  width: 100%;
  height: 40px;
  text-align: center;
  background: var(--light-gray);
  border:1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
}

.inputNum::-webkit-inner-spin-button,
.inputNum::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  -moz-appearance:textfield;
}

.inputRange {
  -webkit-appearance: none;
  appearance: none;
  background: var--(medium-gray);
  cursor: pointer;
  border-radius: 10px;
  width: 100%;
  height: 10px;
  margin: 23px auto 20px;
}

/* Chrome, Safari, Edge */
.inputRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--green);
  border-radius: 24px;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 3px rgba(172,172,172,0.70);
}
.inputRange:active::-webkit-slider-thumb {
  background: var(--lightgreen);
}

/* Firefox */
.inputRange::-moz-range-thumb {
  background: var(--green);
  border-radius: 24px;
  width: 24px;
  height: 24px;
  border: none;
  box-shadow: 0 0 3px rgba(172,172,172,0.70);
}
.inputRange:active::-moz-range-thumb {
  background: var(--lightgreen);
}

/* 倍率変動ラベルは details.css の #odds-change-hint::before のみ（.bet 配下の全 span に付けない） */

.bet_footer {
  width: 100%;
}

.bet_footer h4 {
  font-size: var(--font-12-14);
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 8px;
}

.correct_wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap:10px;
}

.correct_l,
.correct_r {
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 gap:5px;
 width: 100%;
}

.correct_l .bonus{
  font-weight: 700;
  color: var(--red);
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--red);
  border-radius: 4px;
  align-self: flex-end;
}

.assumption {
  width: 100%;
  height: 40px;
  padding: 0;
  line-height: 40px;
  border-radius: 40px;
  background: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.assumption span {
  display: flex;
  align-items: center;
  padding-left: 5px;
  font-size: 16px;
  font-weight: 900;
}


.assumption span::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

.correct_l .assumption.yosopo span::before {
  background: url("../images/icon_yosopo.png") no-repeat;
  background-size: contain;
}

.correct_r .assumption.gold span::before {
  background: url("../images/icon_gold.png") no-repeat;
  background-size: contain;
}

.ad {
width: 100%;
min-height: 100px;
display: flex;
justify-content: center;
align-items: center;
}

/*---------------------------------------
コメント報告
----------------------------------------*/
.comment_inform {
  width:  100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 30px auto 0;
}

.comment_inform #inform{
  resize: none;
  width: 100%;
  margin: 10px auto 0;
  padding: 10px;
  height: 100px;
  font-size: 16px;
  line-height: 20px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  background: var(--light-gray);
}

.center {
  text-align: center;
}


@media screen and (max-width: 339px) {
.correct_wrap {
  display: flex;
  flex-direction: column;
}
}



@media screen and (min-width: 768px) {
.modal_container {
  padding: 50px 30px;
}

h2 {
  margin-bottom: 40px;
}


#yosoku_option {
  padding-left: 20px;
}

.assumption {
  font-size: 16px;
}

}

/*---------------------------------------
ヨソポ／ゴールドとは
----------------------------------------*/
.modal_body {
  margin-bottom: 24px;
}

.modal_body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 16px;
}

.rank_img_placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--light-gray);
  border-radius: 4px;
  margin-top: 8px;
}

.modal_section_title {
  font-weight: 700;
  font-size: 15px !important;
  margin-bottom: 8px !important;
}

.yosopo-gold-comparison-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

/*---------------------------------------
ギフト履歴
----------------------------------------*/
.possession {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.exchange_gold.history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  width: auto;
  border-radius: 30px;
  background: var(--light-gray);
  padding: 0 12px;
  margin-bottom: 10px;
}

.exchange_gold.history li:first-child::before {
  display: none;
}

.exchange_gold.history::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../images/icon_gold.png") no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.exchange_gold.history li:first-child {
  font-size: 14px;
  color: var(--dark-gray);
}

.exchange_gold.history li:last-child {
  font-weight: 700;
}

.no_history {
  margin: 20px auto;
  text-align: center;
}

.scroll_wrap {
  width: 100%;
  height: auto;
  max-height: 40vh;
  overflow-y: scroll;
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
  background: var(--light-gray);
}

.scroll_inner {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exchange_history_wrap,
.exchange_history_wrap ul {
  display: flex;
  font-size: 14px;
  line-height: 30px;
}

.exchange_history_wrap ul {
  gap: 10px;
}

.exchange_history_wrap {
  justify-content: space-between;
}

.exchange_history_wrap .use {
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .scroll_inner {
    padding: 20px 30px;
    gap: 15px;
  }

  .exchange_history_wrap,
  .exchange_history_wrap ul {
    font-size: 16px;
  }
}

/*---------------------------------------
マイページ_アイコン
----------------------------------------*/
.icon_trimming {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

/*---------------------------------------
予測投票モーダル
----------------------------------------*/
.question-vote-modal {
  width: min(100% - 24px, 580px);
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 28px 26px 26px;
}

.question-vote-modal > p {
  margin: 0 0 30px;
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.question-vote-modal .op_wrap {
  margin: 0 auto 50px;
}

.question-vote-modal .vote-selected-choice {
  font-size: 18px;
  color: var(--black);
}

.question-vote-modal .bet_header {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  column-gap: 10px;
  margin-bottom: 12px;
}

.question-vote-modal .bet_header h3 {
  font-size: 19px;
  line-height: 1.2;
  white-space: nowrap;
}

.question-vote-modal .bet_header .my_yosopo {
  min-width: 0;
  padding: 5px 12px 5px 9px;
  column-gap: 4px;
}

.question-vote-modal .bet_header .my_yosopo::before {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.question-vote-modal .bet_header .my_yosopo span {
  display: flex;
  align-items: center;
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.question-vote-modal .bet_header .my_yosopo span::before {
  font-size: 14px;
  font-weight: 500;
  padding-right: 6px;
}

.question-vote-modal .vote-bet-input-wrap {
  position: relative;
}

.question-vote-modal .vote-bet-input-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--vote-bet-icon-left, calc(50% - 38px));
  width: 28px;
  height: 28px;
  background: url("../images/icon_yosopo.png") center no-repeat;
  background-size: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.question-vote-modal .inputNum {
  -webkit-appearance: none;
  appearance: none;
  height: 48px;
  box-sizing: border-box;
  padding: 0 42px 0 var(--vote-bet-input-left, 42px);
  border-radius: 10px;
  font-family: inherit;
  font-size: 24px;
  line-height: 46px;
  text-align: left;
}

.question-vote-modal .inputRange {
  height: 10px;
  margin: 48px auto 26px;
}

.question-vote-modal .inputRange::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
}

.question-vote-modal .inputRange::-moz-range-thumb {
  width: 34px;
  height: 34px;
}

.question-vote-modal #odds-change-hint {
  display: block;
  margin: 0 0 30px;
  color: var(--dark-gray);
  font-size: 16px;
  line-height: 1.45;
  text-align: right;
}

.question-vote-modal #odds-change-hint::before {
  content: "この予測による倍率変動： ";
}

.question-vote-modal #odds-before,
.question-vote-modal #odds-after {
  color: var(--dark-gray);
}

.question-vote-modal #odds-before {
  display: none;
}

.question-vote-modal .odds-arrow {
  display: none !important;
}

.question-vote-modal .bet_footer h4 {
  margin-bottom: 38px;
  color: var(--dark-gray);
  font-size: 17px;
  font-weight: 500;
}

.question-vote-modal .correct_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.question-vote-modal .correct_l,
.question-vote-modal .correct_r {
  width: 100%;
  align-items: center;
}

.question-vote-modal .correct_l {
  position: relative;
  padding: 22px 14px 16px;
  border: 2px solid var(--red);
  border-radius: 14px;
}

.question-vote-modal .correct_l.correct_l--no-bonus {
  padding: 0;
  border: none;
}

.question-vote-modal .correct_l .bonus {
  position: absolute;
  top: -16px;
  left: 50%;
  min-width: 120px;
  padding: 0 14px;
  border: none;
  background: var(--white);
  color: var(--red);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.question-vote-modal .assumption {
  width: min(78%, 390px);
  height: 46px;
  line-height: 46px;
  font-size: 18px;
  white-space: nowrap;
}

.question-vote-modal .assumption span {
  font-size: 22px;
}

.question-vote-modal .assumption span::before {
  width: 28px;
  height: 28px;
}

.question-vote-modal #vote-limit-hint {
  display: none !important;
}

.question-vote-modal #vote-confirm-error {
  margin: 22px 0 0 !important;
  font-size: 15px !important;
}

.question-vote-modal .btn_wrap {
  flex-direction: column;
  margin-top: 46px;
  gap: 22px;
}

.question-vote-modal .btn_wrap.change3-2 .btn3 {
  order: 1;
}

.question-vote-modal .btn_wrap.change3-2 .btn2 {
  order: 2;
}

.vote-complete-static-banner {
  width: min(100%, 300px);
  margin: 0 auto 20px;
  text-align: center;
}

.vote-complete-static-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.question-vote-modal .btn3 button,
.question-vote-modal .btn2 button {
  height: 56px;
  font-size: 20px;
}

.question-vote-modal .btn3 button:disabled {
  background: #b0b0b0;
}

@media screen and (max-width: 480px) {
  .question-vote-modal {
    padding: 28px 26px 26px;
  }

  .question-vote-modal .op_wrap {
    margin-bottom: 50px;
  }

  .question-vote-modal .bet_header .my_yosopo {
    padding-right: 12px;
  }

  .question-vote-modal .vote-bet-input-wrap::before {
    left: var(--vote-bet-icon-left, calc(50% - 38px));
    width: 28px;
    height: 28px;
  }

  .question-vote-modal .inputNum {
    padding-left: 42px;
  }
}

@media screen and (max-width: 374px) {
  .question-vote-modal .bet_header h3 {
    font-size: 18px;
  }

  .question-vote-modal .bet_header .my_yosopo span {
    font-size: 17px;
  }

  .question-vote-modal .bet_header .my_yosopo span::before {
    font-size: 13px;
  }

  .question-vote-modal .assumption {
    width: 86%;
  }
}

/* 投票モーダル専用の最終サイズ調整。共通モーダルCSSより必ず優先する。 */
#vote-step1 .question-vote-modal {
  padding: 28px 30px 24px !important;
}

#vote-step1 .question-vote-modal > p {
  margin-bottom: 20px !important;
  font-size: 16px !important;
}

#vote-step1 .question-vote-modal .op_wrap {
  margin-bottom: 30px !important;
}

#vote-step1 .question-vote-modal .bet_header {
  margin-bottom: 8px !important;
}

#vote-step1 .question-vote-modal .vote-selected-choice {
  font-size: 16px !important;
}

#vote-step1 .question-vote-modal .bet_header h3 {
  font-size: 17px !important;
}

#vote-step1 .question-vote-modal .bet_header .my_yosopo::before {
  width: 24px !important;
  height: 24px !important;
}

#vote-step1 .question-vote-modal .bet_header .my_yosopo span {
  font-size: 16px !important;
}

#vote-step1 .question-vote-modal .bet_header .my_yosopo span::before {
  font-size: 13px !important;
}

#vote-step1 .question-vote-modal .vote-bet-input-wrap::before {
  left: var(--vote-bet-icon-left, calc(50% - 34px)) !important;
  width: 24px !important;
  height: 24px !important;
}

#vote-step1 .question-vote-modal .inputNum {
  height: 42px !important;
  padding: 0 36px 0 var(--vote-bet-input-left, 36px) !important;
  font-size: 20px !important;
  line-height: 40px !important;
}

#vote-step1 .question-vote-modal .vote-input-limit-hint {
  margin: 8px 0 0 !important;
  color: #7b7878;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

#vote-step1 .question-vote-modal .vote-input-limit-hint strong {
  color: #222;
  font-weight: 700;
}

#vote-step1 .question-vote-modal .inputRange {
  margin: 35px auto 18px !important;
}

#vote-step1 .question-vote-modal .inputRange::-webkit-slider-thumb {
  width: 32px !important;
  height: 32px !important;
}

#vote-step1 .question-vote-modal .inputRange::-moz-range-thumb {
  width: 32px !important;
  height: 32px !important;
}

#vote-step1 .question-vote-modal #odds-change-hint {
  margin: 0 0 20px !important;
  font-size: 14px !important;
}

#vote-step1 .question-vote-modal .bet_footer h4 {
  margin-bottom: 30px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

#vote-step1 .question-vote-modal .correct_wrap {
  gap: 12px !important;
}

#vote-step1 .question-vote-modal .correct_l {
  padding: 5px 14px !important;
}

#vote-step1 .question-vote-modal .correct_l .bonus {
  top: -15px !important;
  font-size: 15px !important;
}

#vote-step1 .question-vote-modal .correct_l .assumption,
#vote-step1 .question-vote-modal .correct_r .assumption {
  width: min(68vw, 220px) !important;
}

@media screen and (min-width: 768px) {
  #vote-step1 .question-vote-modal .correct_l .assumption,
  #vote-step1 .question-vote-modal .correct_r .assumption {
    width: min(46vw, 320px) !important;
  }
}

#vote-step1 .question-vote-modal .assumption {
  height: 40px !important;
  line-height: 40px !important;
  font-size: 16px !important;
}

#vote-step1 .question-vote-modal .assumption span {
  font-size: 19px !important;
}

#vote-step1 .question-vote-modal .assumption span::before {
  width: 24px !important;
  height: 24px !important;
}

#vote-step1 .question-vote-modal #vote-confirm-error {
  margin: 14px 0 6px !important;
  min-height: 1.2em !important;
  font-size: 13px !important;
}

#vote-step1 .question-vote-modal .btn_wrap {
  margin-top: 18px !important;
  gap: 18px !important;
}

#vote-step1 .question-vote-modal .btn3 button,
#vote-step1 .question-vote-modal .btn2 button {
  height: 52px !important;
  font-size: 18px !important;
}

/* ── 投票報酬モーダル ─────────────────────────── */
.vote-reward-modal {
  text-align: center;
}

.vote-reward-modal__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 20px;
}

.vote-reward-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.vote-reward-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 20px;
}

.vote-reward-modal__icon {
  display: flex;
  align-items: center;
}

.vote-reward-modal__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.vote-reward-modal__icon--text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  width: 36px;
  text-align: left;
}

.vote-reward-modal__amount {
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

/* ─── 共通報酬受け取りモーダル ─── */
.modal_container.reward-modal {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 24px 24px;
}

.reward-modal__title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 24px;
  color: #111;
}

.reward-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.reward-modal__row {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 20px;
}

.reward-modal__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.reward-modal__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reward-modal__xp-label {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.reward-modal__amount {
  flex: 1;
  text-align: right;
  font-size: 26px;
  font-weight: bold;
  color: #111;
}

.reward-modal__close-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px solid #f90;
  border-radius: 50px;
  color: #f90;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
