@charset "utf-8";

/* 非認証ヘッダー（header_top のみ 56px）のとき margin-top を縮小 */
.header:has(.header__container.default) ~ main {
  margin-top: 66px;
}

/* sec_layer_common.css の h2 スタイルを上書き */
.item.sub h2.title {
  text-align: left;
  margin: 0;
  font-size: 17px;
}

/* コメント件数バッジ（<a>タグのデフォルトスタイルをリセット） */
a.comment.item_footer_left .comment,
.item_footer_left a.comment {
  text-decoration: none;
}

.share_btn {
  cursor: pointer;
}

.explanation {
  padding: 0 20px 20px;
}

@media screen and (min-width: 1024px) {
.explanation {
  padding: 20px;
}
}

.text {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.text img,
.text_s img {
  max-width: 100%;
  height: auto;
}

.text table,
.text_s table {
  width: 100%;
  border-collapse: collapse;
}

.text th,
.text td,
.text_s th,
.text_s td {
  border: 1px solid var(--medium-gray);
  padding: 6px 8px;
}

.conditions {
  width: 100%;
  padding: 15px;
  background: var(--light-gray);
  margin-bottom: 5px;
}

.conditions h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
.conditions {
  padding: 15px 25px 20px;
}
}


.text_s {
  font-size: var(--font-12-14);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

#schedule {
  width: 100%;
  text-align: right;
  font-size: var(--font-14-16);
  margin-bottom: 20px;
}

#schedule::before {
  content: "正誤判定予定日:";
  font-size: var(--font-14-16);
  padding-right: 5px;
}

#schedule.now {
  color: var(--red);
  font-weight: 700;
}

.options {
  overflow-y:auto;
}

.ophead {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  column-gap: 10px;
  margin-top: 10px;
}

.ophead_rule_row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.ophead h4 {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  color:var(--dark-gray);
}

.ophead.now {
  position: relative;
  justify-content: center;
}

.ophead.now h4 {
  font-weight: 700;
  font-size: 14px;
}

.ophead.now .odds_fixed_note {
  position: absolute;
  right: 0;
  color: var(--red);
  font-size: var(--font-12-14);
  font-weight: 700;
  white-space: nowrap;
}

.ophead .my_yosopo {
  width: 100%;
  max-width: 240px;
  align-self: flex-end;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
  background: var(--light-gray);
  padding: 5px 15px;
}

.ophead .my_yosopo span {
  color:var(--dark-gray);
  font-size: var(--font-12-14);
  font-weight: 400;
  display: flex;
  align-items: center;
}

.ophead .my_yosopo span::before {
  content: "";
  width: 24px;
  height: 24px;
  display: inline-block;
  background: url("../images/icon_yosopo.png") no-repeat;
  background-size: contain;
  margin-right: 5px;
}

.odds_rule_help {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--dark-gray);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

#decision_flg.flg0,
#decision_flg.flg1 {
  width: 100%;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  line-height: 50px;
  margin: 0 auto;
}

#decision_flg.flg0 {
  background: var(--red);
}

#decision_flg.flg0::after {
  content: "正誤判定中";
  display: block;
}

#decision_flg.flg1 {
  background: var(--dark-gray);
}

#decision_flg.flg1::after {
  content: "結果";
  display: block;
}

.options.close .option_outer:not(.result)  {
  opacity: .5;
}

@media screen and (min-width: 600px) {
.ophead h4 {
  font-size: 16px;
}
}

@media screen and (min-width: 1024px) {
.option_outer {
  margin-bottom: 10px;
}

progress {
  height: 34px;
}


progress::-webkit-progress-bar {
  border-radius: 34px;
}

progress::-webkit-progress-value {
  border-radius: 34px;
}

.ratio_outer label {
  line-height: 34px;
}

.ratio_outer .percentage {
  line-height: 34px;
  font-size: 18px;
  right: 15px;
}

.odds {
  font-size: 16px;
}

}

.comment_area {
  width: 100%;
  padding: 30px 0 60px;
  position: relative;
}

.comment {
  scroll-margin-top: 120px;
}

.comment.comment--target {
  animation: commentTargetFlash 1.6s ease-out 1;
}

@keyframes commentTargetFlash {
  0% { background: rgba(255, 130, 0, 0.18); }
  100% { background: transparent; }
}

.comment_announce {
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}


.comment_area label.msg {
  width: 100%;
  position:inherit;
  font-size: var(--font-14-16);
  color: var(--dark-gray);
  display: block;
  margin-bottom: 5px;
}

.comment_area textarea {
 resize: none;
  width: 100%;
  max-width: 930px;
  height: 60px;
  line-height: 20px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  background: var(--light-gray);
  padding: 10px;
  margin-bottom: 10px;
}

textarea:disabled {
  background: var(--medium-gray);
}

.comment_area button {
  width: 160px;
  height: 50px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-14-16);
  border:none;
  border-radius: 50px;
  position: absolute;
  right: 0;
  bottom:0;
  transition: var(--transition);
}

.comment_area button:hover {
  background: var(--btn1-on);
}

.comment_area button:disabled {
  background: var(--medium-gray);
  cursor: auto;
}

.comment_area button:disabled:hover {
  background:var(--medium-gray);
}

.comment_wrap {
  width: 100%;
  margin-top: 30px;
  border-top: 1px solid var(--medium-gray);
  padding: 0;
}

.comment_wrap .comment {
  display: flex;
  flex-direction: column;
  column-gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
  padding: 10px 0 0;
}

.comment_wrap .c_main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  column-gap:10px;
  position: relative;
}

.comment_wrap .c_usericon {
  width: 50px;
}

.comment_wrap .c_detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.comment_wrap .c_header_row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.comment_wrap .c_header_meta {
  flex: 1;
  min-width: 0;
}

.comment_menu_form {
  margin: 0;
  padding: 0;
}

.comment_menu_btn {
  display: block;
  width: 100%;
  height: 50px;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--dark-gray);
  font-size: var(--font-13-16);
}

.comment_menu_btn:hover {
  background: var(--light-gray);
}

.comment_menu_btn--reported {
  cursor: default;
  color: var(--dark-gray);
  opacity: 0.85;
}

.comment_menu_btn--reported:hover {
  background: transparent;
}

.comment_post_form {
  position: relative;
  padding-bottom: 56px;
}

.comment_post_error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #c62828;
}

.comment_post_form textarea {
  margin-bottom: 0;
}

.c_like .like_readonly {
  cursor: default;
  opacity: 0.75;
}

.comment_wrap .c_user_name {
  font-weight: 500;
}

.comment_wrap .c_time {
  font-size: 12px;
  color: var(--dark-gray);
}

.comment_wrap .c_usercomment {
  font-size: var(--font-12-15);
  line-height: 1.5;
  width: 100%;
}

.comment_wrap .c_setting {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.comment_wrap .c_like {
  width: 100%;
  font-size: 14px;
  color: var(--dark-gray);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.comment_wrap .like::before,
.comment_wrap .like.on::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 19px;
  margin-right: 5px;
}

.comment_wrap .like::before {
  background: url("../images/icon_like.svg") no-repeat;
  background-size: contain;
}

.comment_wrap .like.on::before {
  background: url("../images/icon_like_on.svg") no-repeat;
  background-size: contain;
}

.comment_wrap .like {
  margin: 0;
  padding: 5px 0 10px 10px;
  border: none;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.comment_wrap .like:focus {
  outline: none;
}

.comment_wrap .like:focus-visible {
  outline: 2px solid var(--dark-gray, #7b7878);
  outline-offset: 2px;
}

/*========================================
Comment_nav
========================================*/

[id^="cmt_"]  {
  display: none;
}

.Comment_nav {
  position: relative;
}

.Comment_nav label {
  cursor: pointer;
}

.Comment_nav label.close {
  position: fixed;
}

.Comment_nav .open {
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Comment_nav .close {
  z-index: 1;
  inset: 0;
  pointer-events: none;
  transition: background .3s;
}

[id^="cmt_"]:checked ~ .close {
  pointer-events: auto;
  background-color: rgba(0,0,0,.0);
}

.comment_menu {
  z-index: 10;
  position: absolute;
  overflow: auto;
  top: 30px;
  right: 5px;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  height: auto;
  min-height: 50px;
  margin: 0;
  padding: 0;
  border: 1px solid;
  border-color: var(--medium-gray);
  border-radius: 10px;
  box-sizing: border-box;
  background: rgba(255,255,255,1);
  transform: translateY(10%);
  visibility: hidden;
  opacity: 0;
  transition: transform .3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.comment_menu ul {
  margin: 0;
  padding: 0;
}

.comment_menu li {
  line-height: 50px;
  text-align: center;
}

.comment_menu a {
  display: block;
  color: var(--dark-gray);
  transition: background .3s;
  font-size: var(--font-13-16);
}

.comment_menu a:hover {
  background: var(--light-gray);
}

[id^="cmt_"]:checked ~ .comment_menu {
	transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

/* ── オッズ変動表示（変動前 → 変動後） ── */
#odds-change-hint {
  display: block;
  font-size: 12px;
  color: var(--dark-gray);
  text-align: right;
}
#odds-change-hint::before {
  content: "この予測による倍率変動：";
}
#odds-before {
  color: var(--dark-gray);
}
#odds-arrow {
  color: var(--red);
  font-weight: bold;
}
#odds-after {
  color: var(--orange);
  font-weight: bold;
}

/* ── 投票モーダル ── */
.vote-ended-note {
  width: 100%;
  text-align: center; padding: 14px; background: var(--light-gray);
  color: var(--dark-gray); font-size: 0.85rem; margin-top: 10px;
}

.vote-add-hint {
  background: #fff;
  border: 1px solid var(--medium-gray);
  color: var(--dark-gray);
}

.bet-cap-hint {
  font-size: 0.75rem;
  color: var(--dark-gray);
  line-height: 1.45;
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--light-gray);
  border-radius: 6px;
}

/* ── コメント削除・報告モーダル ── */
.comment-action-modal-overlay[hidden] {
  display: none !important;
}

.comment-action-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 450;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.comment-action-modal {
  width: 100%;
  max-width: 340px;
  background: var(--white, #fff);
  border-radius: 12px;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.comment-action-modal__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: #111;
}

.comment-action-modal__text {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--dark-gray);
}

.comment-action-modal__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.comment-action-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.comment-action-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-action-modal__btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.comment-action-modal__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-action-modal__btn--danger {
  background: var(--red);
  color: #fff;
}

.comment-action-modal__btn--danger:hover:not(:disabled) {
  opacity: 0.92;
}

.comment-action-modal__btn--cancel {
  background: #fff;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.comment-action-modal__btn--cancel:hover:not(:disabled) {
  opacity: 0.85;
}

/* ── トップページボタン ── */
.top_page_btn_wrap {
  display: flex;
  justify-content: center;
  padding: 24px 16px 8px;
}

.top_page_btn_wrap .btn2 {
  display: block;
  width: 100%;
  max-width: 240px;
  text-align: center;
  line-height: 46px;
  text-decoration: none;
}

/* ── ユーザープロフィールモーダル ── */
.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;
}

.up_meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 16px;
  padding: 0;
}

.up_meta_item {
  font-size: 12px;
  color: var(--dark-gray, #888);
}

.up_meta_item.place::before { content: "📍 "; }
.up_meta_item.birthday::before { content: "🎂 "; }
.up_meta_item.job::before { content: "💼 "; }

.up_stats {
  display: flex;
  gap: 12px;
  background: var(--light-gray, #f5f5f5);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

.up_stat_item {
  flex: 1;
  text-align: center;
}

.up_stat_label {
  display: block;
  font-size: 11px;
  color: var(--dark-gray, #888);
  margin-bottom: 4px;
}

.up_stat_value {
  display: block;
  font-size: 18px;
  font-weight: 700;
}
