/*--------------------------------*/
/*--------------------------------*/
/*----------投票フォーム----------*/
/*--------------------------------*/
/*--------------------------------*/
.my-polls p strong {
	font-size: 16px;
}
ul.my-polls-ul {
	margin-left: 0;
	margin-bottom: 20px;
}
ul.my-polls-ul.my-polls-voting-form li{
	display: flex;
  justify-content: center;
}

/*input要素を消す*/
ul.my-polls-ul.my-polls-voting-form li input {
    display: none;
}

/* label要素を装飾していく */
ul.my-polls-ul.my-polls-voting-form li label {
	display: flex;
	align-items: center;
	position: relative;
	padding: 0px 5px 0px 35px;
	border: solid;
	border-color: #ddd;
	border-radius: 15px;
	background-color: #eee;
	cursor: pointer;
	color: #515151;
	width: 200px;
	font-size: 15px;
	min-height: 61px;
	line-height: 1.2;
}
/*選択肢が3つの場合*/
ul.my-polls-ul:has(> :nth-child(3):last-child).my-polls-ul.my-polls-voting-form li label {
	border-radius: 13px;
	min-height: 43px;
}
/*選択肢が4つの場合*/
ul.my-polls-ul:has(> :nth-child(4):last-child).my-polls-ul.my-polls-voting-form li label {
	border-radius: 10px;
	min-height: 33px;
}

/* checkbox チェック背景 */
ul.my-polls-ul.my-polls-voting-form li label::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px); /* 8px = 16 / 2 px */
    left: 10px;
    display: block;
    background: #fff;
    border-radius: 4px;
}
/* checkbox チェックマーク */
ul.my-polls-ul.my-polls-voting-form li label::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 10px;
    left: 15px;
    top: calc(50% - 8px);
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg); /* 回転させてチェックマーク風にする */
    display: block;
    opacity: 0; /* チェック前は透明にしておく */
}

/* hoverの挙動 */
ul.my-polls-ul.my-polls-voting-form li label:hover {
    background-color: #fffaaa;
	  border-color: #ffd700;
    cursor: pointer;
}
ul.my-polls-ul.my-polls-voting-form li label:hover::before {
}
ul.my-polls-ul.my-polls-voting-form li label:hover::after {
}

/* check後、色を変えたりする */
ul.my-polls-ul.my-polls-voting-form li
input:checked + label {
    background-color: #fffaaa;
	  border-color: #ffd700;
}
ul.my-polls-ul.my-polls-voting-form li input:checked + label::before {
    background-color: #ed6103;
}
ul.my-polls-ul.my-polls-voting-form li input:checked + label::after {
    opacity: 1; /*　透明化を解除 */
}
input.Buttons.my-polls-votebutton {
	color: #ffffff;
	background-color: #ff6347;
	border: solid !important;
	border-radius: 50px!important;
	border-color: #ff6347 !important;
	width: 150px !important;
	font-size: 15px;
}
/*---投票後ローディング画面削除---*/
.my-polls-loading {
	display: none !important;
	height: 0;
}

/*--------------------------------*/
/*--------------------------------*/
/*----------投票結果画面----------*/
/*--------------------------------*/
/*--------------------------------*/
li.my-polls-vote-result-li {
	background-color: #eee;
	position: relative;
	height: 56px;
	z-index: 1;
	margin: 10px 10px 0px 10px;
	border-radius: 30px;
	overflow: hidden;
}
/*選択肢が3つの場合*/
ul.my-polls-ul:has(> :nth-child(3):last-child) li.my-polls-vote-result-li{
	height: 38px;
	margin: 5px 10px 0px 10px;
}
/*選択肢が4つの場合*/
ul.my-polls-ul:has(> :nth-child(4):last-child) li.my-polls-vote-result-li{
	height: 29px;
	margin: 4px 10px 0px 10px;
}
li.my-polls-vote-result-li span.my-polls-poll-answer {
	position: absolute;
	top: 50%;
  transform: translateY(-50%);
  -webkit- transform: translateY(-50%);
	z-index: 3;
	width: 100%;
	padding-left: 20px;
	font-weight: bold;
	color: white;
	font-size: 15px;
	line-height: 1.2;
}
li.my-polls-vote-result-li div.my-polls-poll-data {
	position: absolute;
	top: 50%;
  transform: translateY(-50%);
  -webkit- transform: translateY(-50%);
	z-index: 3;
	width: 95%;
	text-align: center;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-size: 15px;
}
/*投票チェックマークはデフォルト非表示*/
li.my-polls-vote-result-li div.my-polls-poll-data span.my-polls-voted-check {
	display: none;
	font-size: 1.3em;
	color: gray;
}
li.my-polls-vote-result-li div.my-polls-poll-data div.my-polls-poll-num-data {
	display: block;
	padding-left: 15px;
}
li.my-polls-vote-result-li div.my-polls-poll-data div.my-polls-poll-num-data span.my-polls-poll-percentage {
	display: block;
	width: 100%;
	font-size: 1.1em;
	font-weight: bold;
	line-height: 1;
	color: gray;
}
li.my-polls-vote-result-li div.my-polls-poll-data div.my-polls-poll-num-data span.my-polls-poll-votes {
	display: block;
	width: 100%;
	font-size: 0.8em;
	font-weight: bold;
	line-height: 1;
	color: gray;
}
/*
li.my-polls-vote-result-li span.my-polls-poll-percentage {
	position: absolute;
	top: 50%;
  transform: translateY(-50%);
  -webkit- transform: translateY(-50%);
	z-index: 3;
	width: 95%;
	text-align: right;
	font-weight: bold;
}
*/
li.my-polls-vote-result-li .pollbar {
	position: absolute;
	top: 0px;
	margin: 0px;
	z-index: 2;
	height: 100%;
	border: none;
	background-image: none;
	background-color: #ff9f70;
	/* 初期状態で棒の横幅を0に設定 */
  transform: scaleX(0); 
  /* アニメーションが左から始まるように、左端を基準に設定 */
  transform-origin: left center; 
  /* アニメーションの設定 */
  animation: growBar 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; 
  /* 'growBar'という名前のアニメーションを2秒間で、イージング（動きが滑らかになる）を指定し、最終状態に向かう */
}
li:nth-child(1).my-polls-vote-result-li {
	background-color: #feede7;
}
li:nth-child(2).my-polls-vote-result-li {
	background-color: #eaeffd;
}
li:nth-child(3).my-polls-vote-result-li {
	background-color: #fcf9e4;
}
li:nth-child(4).my-polls-vote-result-li {
	background-color: #edf9ec;
}
li:nth-child(1).my-polls-vote-result-li .pollbar {
	background-color: #ff6261;
}
li:nth-child(2).my-polls-vote-result-li .pollbar {
	background-color: #227eff;
}
li:nth-child(3).my-polls-vote-result-li .pollbar {
	background-color: #f5be41;
}
li:nth-child(4).my-polls-vote-result-li .pollbar {
	background-color: #00b379;
}
/* 棒グラフのアニメーションの定義 */
@keyframes growBar {
  from {
    transform: scaleX(0); /* アニメーション開始時、棒の横幅は0（非表示） */
  }
  to {
    transform: scaleX(1); /* アニメーション終了時、棒の横幅が100%に伸びる */
  }
}