@charset "utf-8";

/* 評価の星の配置 */
.evaluation-star-container {
	display: flex;
	/*flex-wrap: wrap;*/
	align-items: baseline;
}
.evaluation-star-container > .text {
	display: block;
	flex: auto;
}
.evaluation-star-container > .evaluation-average {
	display: block;
	flex: none;
}
/* 評価の星の数の平均 */
.evaluation-average {
	font-size: 1rem;
	margin: 0 0.5rem 0 auto;
}
.star {
	color: gray;
	text-shadow: 0 0 0.25rem gray;
}
.star-shining {
	color: rgb(255, 217, 102);
	text-shadow: 0 0 0.5rem yellow; /*rgb(255, 217, 102);*/
	-webkit-text-stroke: 1px rgb(255, 192,0);
}

/* フォーム */

.formdiv {
	padding: 1em;
	font-size: medium;
}

.formdiv p {
	margin-bottom: 1em;
}

.formdiv legend {
	margin-bottom: 1em;
}

.formdiv strong {
	font-style: bold;
}

form em.required {
	font-style: normal;
	color: red;
}

.formdiv select {
	height: 2em;
	margin: 0 0 0.5em 0;
	max-width: 100%;
}

.formdiv input[type="text"] {
	height: 2em;
	margin: 0;
	max-width: 100%;
}

.formdiv label {
	font-weight: normal;
	margin-left: 0.5em;
}


fieldset.evaluation-comment-block > legend, fieldset.evaluation-star-container > legend {
	display: none;
}

/* フォーム内 五つ星で評価 */
/* スクリプトによって要素を隠す
 * hide-by-scriptクラスを目印にしています。
 * ラジオボタンをdisplay: none;やvisibility: hidden;に設定するとフォーカスが当たらないため不可 */
input.hidden-by-script {
	opacity: 0;
	width: 0;
}
/* スクリプトによって要素を隠す */
span.hidden-by-script {
	display: none;
}
/* フォーム内 星の大きさ */
.formdiv .evaluation-star-container label {
	font-size: 1.5rem;
}
/* ラベル */
label {
	margin: 0;
}
/* フォーカスが当たっていればアウトラインを表示 */
input[type="radio"]:focus + .star {
	outline: medium auto;
}

input[type="radio"]:checked + .star {
	color: rgb(255, 217, 102);
	-webkit-text-stroke: 1px rgb(255, 192,0);
}

textarea {
	box-sizing: border-box;
	width: 100%;
}

/* フォーム内直下のグループ */
.formdiv > fieldset, .formdiv > .form-group, .formdiv > .submit-block {
	margin-inline-start: 2px;
	margin-inline-end: 2px;
	padding-block-start: 0.35em;
	padding-inline-start: 0.75em;
	padding-inline-end: 0.75em;
	padding-block-end: 0.625em;
}
.formdiv > fieldset {
	border-style: none;
	margin-top: 1em;
}
.formdiv > fieldset > legend {
	font-size: medium;
	border-style: none;
}
.submit-block {
	text-align: right;
}
input[type="submit"] {
	background-color: #5EA587;
	color: white;
	font-size: 1.2rem;
	padding: 0.25rem 0.5rem;
	letter-spacing: 1rem;
	text-indent: 1rem;
	border-radius: 4px;
	border-color: #54967a;

	/* 離したとき動く */
	transition: border 0.1s;
	border-width: 0 medium medium 0;
}
input[type="submit"]:focus, input[type="submit"]:active, input[type="submit"]:hover {
	background-color: #4b856d;
	border-color: #3e6f5a;
}
input[type="submit"]:focus {
	outline-offset: -2px;
}
input[type="submit"]:active {
	/* 押したとき動く */
	transition: border 0.1s;
	border-width: medium 0 0 medium;
}

.average-score {
	float: right;
	display: flex;
	justify-content: center;
	margin: 0 0 0.2em 1em;
}

.star-rating {
	position: relative;
	width: 5em;
	height: 1em;
	font-size: 18px;
}

.star-rating-front {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: rgb(255, 217, 102);
	text-shadow: 0 0 0.5rem yellow; /*rgb(255, 217, 102);*/
	-webkit-text-stroke: 1px rgb(255, 192,0);
}

.star-rating-back {
	color: #ccc;
}
