/*--テスト時だけに必要なCSS（出来上がったら削除する！）--*/
.r-test {
	font-size: 0.8em;
	text-align: right;
}

/* clearfix */
.clearfix {
	zoom: 1;
}

.clearfix::after {
	content: "";
	display: block;
	clear: both;
}

/*--tableのCSS　テーマ「sango」使用時は不要--*/
#review-form-area i.hissu {
	background: #f00;
	color: #fff;
	font-size: 0.8em;
	border-radius: 3px;
	margin-left: 5px;
	padding: 2px 4px;
	font-style: normal;
}

#review-form-area table {
	width: 100%;
	margin-bottom: 1.5em;
	border: 2px solid #e0e0e0;
}

#review-form-area th {
	padding: 7px !important;
	border-right: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
	background-color: #f8f9fa;
	max-width: 7em;
	width: auto;
}

#review-form-area td {
	padding: 7px;
	border-right: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
	word-break: break-all;
	white-space: nowrap;
}

#review-form-area td:last-child,
#review-form-area th:last-child {
	border-right: 0;
}

#review-form-area .tag-area br {
	display: none;
}

#review-form-area input[type="text"],
#review-form-area input[type="button"],
#review-form-area input[type="submit"],
#review-form-area textarea {
	display: block;
	width: 100%;
	height: 45px;
	margin-bottom: 14px;
	border: 0;
	border-radius: 3px;
	background-color: #eaedf2;
	box-shadow: none;
	color: #5c6b80;
	font-size: 1em;
	vertical-align: middle;
	transition: background-color 0.24s ease-in-out;
}

#review-form-area textarea {
	min-height: 120px;
}

ul.review-list li::before {
	display: none;
}


/*--口コミ投稿フォームのCSS--*/

#review-form-area .review-item-title {
	color: #58a9ef;
	display: inline-block;
	min-width: 7em;
}

#review-form-area .review-tag-title,
#review-form-area .score-title,
#review-form-area .setimg-title {
	color: #58a9ef;
	display: block;
	text-align: center;
	font-weight: 700;
}

.setimg-area {
	background-color: #f8f9fa;
	border-radius: 3px;
	padding: 0.7em;
	margin-bottom: 1em;
}

#review-form-area .setimg-area {
	position: relative;
	margin-top: 30px;
}

#review-form-area .setimg-title {
	position: absolute;
	top: -18px;
	left: 50%;
	margin-left: -9em;
}

#review-form-area .radiobox {
	margin-bottom: 1em;
	margin-top: 1.5em;
}

#review-form-area .radiobox .radiobutton {
	display: none;
}

.rating label {
	margin-right: 5px;
	font-size: 1.35em;
}

.tag-box label {
	font-weight: 700;
}

.cp-box label {
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 140px; /* グラデーションの高さ */
	cursor: pointer;
	text-align: center;

	/* 以下グラデーションは背景を自身のサイトに合わせて設定してください */
	background: linear-gradient(to bottom, rgba(250, 252, 252, 0) 0%, rgba(250, 252, 252, 0.95) 90%);
}

.rating:not(:checked) > label {
	color: #808080;
}

.rating > input:checked ~ label {
	color: #ffa500;
}

.cp-box input:checked + label {
	background: inherit; /* 開いた時にグラデーションを消す */
}

.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
	color: #ffd700;
}

#review-form-area .radiobox label {
	background-color: #eaedf2;
	padding: 10px 20px;
	margin: 0 10px 0 -5px;
}

#review-form-area input[type="checkbox"] + label {
	font-weight: 700;
	border: 1px solid #b1b1b1;
	border-radius: 3px;
	padding: 5px 7px;
	font-size: 1.3em;
	color: #b1b1b1;
	line-height: 1.3;
}

#review-form-area input[type="checkbox"]:checked + label {
	background: #58a9ef;
	border: 1px solid #58a9ef;
	color: #fff;
}

#review-form-area .radiobox .radiobutton:checked + label {
	background-color: #58a9ef;
	color: #fff;
}

#review-form-area .agebox {
	margin-bottom: 1em;
}

input[type="number"] {
	width: 160px !important;
	display: inline-block;
	margin-top: 10px;
	height: 45px;
	margin-bottom: 14px;
	border: 0;
	border-radius: 3px;
	background-color: #eaedf2 !important;
	box-shadow: none;
	color: #5c6b80;
	font-size: 1em;
	vertical-align: middle;
	transition: background-color 0.24s ease-in-out;
}

.post input[type="search"],
.post input[type="file"] {
	border: none !important;
}

/*--- star クリックして評価する仕組み ここから---*/
.rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: right;
}

.cp-box input {
	display: none;
}

.rating:not(:checked) > input {
	display: none;
}

/*--- star クリックして評価する仕組み ここまで---*/
#review-form-area input[type="checkbox"] {
	display: none;
}

.tag-area {
	margin-top: 1em;
}

#review-form-area .tag-area {
	text-align: center;
	padding: 7px;
	margin-bottom: 1em;
	border: 3px solid #c8e4ff;
	border-radius: 7px;
}

.review-memo {
	background: #f5f5f5;
	padding: 3px 5px;
	font-size: 0.8em;
	position: relative;
	margin-bottom: 15px;
}

.review-memo::before {
	content: "";
	position: absolute;
	border: 12px solid transparent;
	border-top: 12px solid #f5f5f5;
	top: 100%;
	left: 15%;
}

.admin-memo {
	font-size: 0.8em;
	color: #999;
}

.setimg-area input[type="file"] {
	width: 100%;
}

#preview img {
	width: 150px;
	margin: 10px;
	border: solid 1px #c0c0c0;
}

#review-form-area .btn-area {
	text-align: center;
}

#review-form-area .button {
	display: inline-block;
	border-radius: 3px;
	font-size: 1.2em;
	text-align: center;
	cursor: pointer;
	padding: 10px 25px;
	background: #58a9ef;
	color: #fff;
	line-height: 1;
	transition: 0.3s;
	box-shadow: 2px 2px 1px #dadada;
	border: 2px solid #58a9ef;
}

#review-form-area .button:hover {
	box-shadow: none;
	color: #58a9ef;
	background: #c8e4ff;
}

/*--口コミ一覧のCSS(goodリスト・badリストでも使用)--*/
.post ul.review-list,
.entry-content ul.review-list {
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none;
}

ul.review-list li {
	margin-bottom: 1em;
	border: #e5e5e5 1px solid;
	border-radius: 2px;
	padding: 0.7em 1em !important;
}

ul.review-list .r-title {
	font-weight: 700;
	font-size: 1.15em;
}

.e-img-box {
	position: relative;
	background-color: #fff;
	padding: 0 10px;
	border: 2px solid #ffc4c4;
	color: #333;
}

.e-img-box::before,
.e-img-box::after {
	content: "";
	position: absolute;
	border: 12px solid transparent;
	top: 100%;
	left: 50%;
}

.e-img-box::before {
	border-top: 12px solid #ffc4c4;
}

.e-img-box::after {
	margin-top: -4px;
	border-top: 12px solid #fff;
}

.score {
	position: relative;
	display: inline-block;
	width: 140px;
	height: 25px;
	font-size: 25px;
	line-height: 1;
	margin-right: 0;
	padding-right: 0;
	white-space: nowrap;
}

.score .star-on {
	position: absolute;
	overflow: hidden;
	color: #ffa500;
}

.score .star-off {
	color: #ffa500;
}

.score-text-big {
	font-weight: 700;
	color: #ff6d05;
	display: inline-block;
	margin-left: 7px;
}

.score-text-small {
	font-size: 0.6em;
	color: #252525;
}

.tag-area span {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 3px;
	color: #fff;
	background: #ffb36b;
	font-size: 0.85em;
	margin: 0 10px 1em 0;
}

.review-footer {
	text-align: right;
}

/*イイネボタン*/
input.nicebutton {
	position: relative;
	display: inline-block;
	width: auto !important;
	padding: 2px 0.5em;
	text-decoration: none;
	color: #fff;
	background: #58a9ef;
	border-radius: 3px;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
	border: solid 1px #4f96f6;
	font-family: "Font Awesome 5 Free", sans-serif;
}

input.nicebutton:active {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

i.nicecount {
	position: relative;
	display: inline-block;
	margin: 1.5em 0 1.5em 15px;
	padding: 0 5px;
	background: #fff;
	border: solid 1px #e5e5e5;
	box-sizing: border-box;
	line-height: 1.5;
	border-radius: 3px;
}

i.nicecount::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -12px;
	margin-top: -6px;
	border: 6px solid transparent;
	border-right: 6px solid #fff;
	z-index: 2;
}

i.nicecount::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -14px;
	margin-top: -7px;
	border: 7px solid transparent;
	border-right: 7px solid #e5e5e5;
	z-index: 1;
}

/*もっと表示部分*/
button.morelist {
	text-align: center;
	padding: 0.3em 0.7em;
	border: 2px #58a9ef solid;
	border-radius: 25px;
	color: #58a9ef;
	font-weight: 700;
	width: 85%;
	margin: 1em auto;
	display: block;
}

button.morelist:hover {
	background: #e7f2ff;
}

button.morelist i {
	display: inline-block;
	margin-left: 1em;
}

/*口コミの添付画像*/
img.image-class {
	display: inline-block;
	width: 50%;
}

.maxfiletxt {
	text-align: center;
	border: 1px solid #f00;
	margin-bottom: 0.5em;
	font-size: 0.8em;
	color: #f00;
}

/*構造化データの部分*/
.schema-data {
	text-align: center;
	margin-top: 1.5em;
}

p.rating-title {
	position: relative;
	display: inline-block;
	background-color: #fff;
	padding: 0 10px !important;
	border: 2px solid #e485ae;
	margin-bottom: 0.7em !important;
	font-size: 0.8em;
}

.rating-title::before,
.rating-title::after {
	content: "";
	position: absolute;
	border: 12px solid transparent;
	top: 100%;
	left: 25%;
}

.rating-title::before {
	border-top: 12px solid #e485ae;
}

.rating-title::after {
	margin-top: -2px;
	border-top: 12px solid #fff;
}


/*--口コミgood・badリストのCSS--*/
div#badreview,
div#goodreview {
	width: 50%;
	float: left;
}

.review-inner {
	margin: 0 auto;
	width: 94%;
}

#goodreview .review-inner {
	background: #ffe7e7;
	border: none;
}

#badreview .review-inner {
	background: #e7f2ff;
	border: none;
}

.review-inner h2 {
	text-align: center;
}

.review-inner h2 span.reviwename {
	font-size: 0.8em;
}

.review-inner ul.review-list li {
	border: none;
	background: transparent;
}

.reviw-list-area .userimg,
#goodreview .userimg,
#badreview .userimg {
	width: 50px;
	float: left;
}

#goodreview .comment,
#badreview .comment {
	background: #fff;
	padding: 13px;
}

/*--------------------------------------------
続きを読むのCSS
---------------------------------------------*/
.cp-box *,
.cp-box *::before,
.cp-box *::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.cp-box {
	position: relative;
}

.cp-box label::after {
	line-height: 2.5;
	position: absolute;
	z-index: 2;
	bottom: 20px;
	left: 50%;
	width: 13rem;
	font-weight: 700;
	font-family: "Font Awesome 5 Free", sans-serif;
	content: "\f13a" " 続きをよむ";
	transform: translate(-50%, 0);
	letter-spacing: 0.05em;
	color: #fff;
	border-radius: 20px;
	background-color: rgba(27, 37, 56, 1);
}

.cp-box .cp-container {
	overflow: hidden;
	height: 250px; /* 開く前に見えている部分の高さ */
	transition: all 0.5s;
}

.cp-box .cp-container.no-more {
	height: auto !important; /* 200文字以下の場合の高さ */
}

.cp-box input:checked + label::after {
	font-family: "Font Awesome 5 Free", sans-serif;
	content: "\f139" " 閉じる";
}

.cp-box input:checked ~ .cp-container {
	height: auto;
	padding-bottom: 80px; /* 閉じるボタンのbottomからの位置 */
	transition: all 0.5s;
}

/*media Queries スマホ&ipadの小のみ
----------------------------------------------------*/
@media only screen and (max-width: 780px) {

	div#badreview,
	div#goodreview {
		width: 100%;
		float: none;
	}

	/*media Queries スマホ&ipadここまで*/
}

/*media Queries PCのみ
----------------------------------------------------*/
@media only screen and (min-width: 780px) {

	ul.select2-results__options--nested li {
		display: inline-block;
	}

	img.image-class {
		display: inline-block;
		width: 25%;
	}

	/*media Queries PCここまで*/
}

.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	border: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	list-style-type: none !important;
}

ul.select2-selection__rendered {
	border: 3px solid #c8e4ff;
	border-radius: 7px;
}
