/**
 * HS Review styles
 * 全セレクタを .hsrv-wrap でスコープ化（SWELLのスタイルと干渉させない）
 */

.hsrv-wrap,
.hsrv-wrap *,
.hsrv-wrap *::before,
.hsrv-wrap *::after {
	box-sizing: border-box;
}

.hsrv-wrap {
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
}

/* ---------- コントロール（件数・絞り込み・並び替え） ---------- */

.hsrv-wrap .hsrv-controls {
	margin-bottom: 24px;
	padding: 16px;
	background: #faf8f5;
	border: 1px solid #eee6da;
	border-radius: 8px;
}

.hsrv-wrap .hsrv-count {
	font-size: 14px;
	margin-bottom: 12px;
}

.hsrv-wrap .hsrv-count-num {
	font-size: 22px;
	font-weight: 700;
	color: #b98a2f;
	margin: 0 2px;
}

.hsrv-wrap .hsrv-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	margin-bottom: 12px;
}

.hsrv-wrap .hsrv-filter-label {
	display: block;
	font-size: 12px;
	color: #8a8177;
	margin-bottom: 4px;
}

.hsrv-wrap .hsrv-cast-select {
	max-width: 100%;
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #d9cfc0;
	border-radius: 6px;
	background: #fff;
	color: #333;
}

.hsrv-wrap .hsrv-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: center;
	font-size: 13px;
}

.hsrv-wrap .hsrv-sort-label {
	color: #8a8177;
}

.hsrv-wrap .hsrv-sort-item {
	color: #6b6258;
	text-decoration: none;
	padding: 2px 4px;
	border-bottom: 2px solid transparent;
}

.hsrv-wrap a.hsrv-sort-item:hover {
	color: #b98a2f;
}

.hsrv-wrap .hsrv-sort-item.is-current {
	color: #b98a2f;
	font-weight: 700;
	border-bottom-color: #b98a2f;
}

/* ---------- 口コミ一覧 ---------- */

.hsrv-wrap .hsrv-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsrv-wrap .hsrv-item {
	margin: 0 0 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e8e1d6;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hsrv-wrap .hsrv-item-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 10px;
}

.hsrv-wrap .hsrv-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 13px;
	color: #6b6258;
}

.hsrv-wrap .hsrv-reviewer {
	font-weight: 700;
	color: #3d372f;
}

.hsrv-wrap .hsrv-cast-link {
	color: #b98a2f;
	text-decoration: none;
}

.hsrv-wrap .hsrv-cast-link:hover {
	text-decoration: underline;
}

/* ---------- 星評価 ---------- */

.hsrv-wrap .hsrv-item-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.hsrv-wrap .hsrv-stars {
	position: relative;
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 2px;
}

.hsrv-wrap .hsrv-stars-base {
	color: #ddd5c8;
}

.hsrv-wrap .hsrv-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f0a52c;
}

.hsrv-wrap .hsrv-rating-num {
	font-size: 18px;
	font-weight: 700;
	color: #f0a52c;
}

.hsrv-wrap .hsrv-item-rates {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 14px;
	padding: 8px 12px;
	font-size: 12px;
	color: #6b6258;
	background: #faf8f5;
	border-radius: 6px;
}

.hsrv-wrap .hsrv-item-rates li {
	margin: 0;
	padding: 0;
}

.hsrv-wrap .hsrv-item-rates li span {
	font-weight: 700;
	color: #b98a2f;
	margin-left: 3px;
}

/* ---------- タイトル・本文 ---------- */

.hsrv-wrap .hsrv-item-title {
	font-size: 17px;
	font-weight: 700;
	color: #3d372f;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e0d8ca;
}

.hsrv-wrap .hsrv-item-body {
	font-size: 14px;
	color: #4a443b;
}

.hsrv-wrap .hsrv-item-body p {
	margin: 0 0 1em;
}

.hsrv-wrap .hsrv-item-body p:last-child {
	margin-bottom: 0;
}

/* ---------- フッター（参考になった・掲載日） ---------- */

.hsrv-wrap .hsrv-item-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #f0ebe2;
}

.hsrv-wrap .hsrv-helpful-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	font-size: 13px;
	color: #6b6258;
	background: #fff;
	border: 1px solid #d9cfc0;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hsrv-wrap .hsrv-helpful-btn:hover {
	border-color: #b98a2f;
	color: #b98a2f;
}

.hsrv-wrap .hsrv-helpful-btn.is-voted {
	background: #faf3e3;
	border-color: #e5c980;
	color: #b98a2f;
	cursor: default;
}

.hsrv-wrap .hsrv-helpful-btn:disabled {
	opacity: 0.85;
}

.hsrv-wrap .hsrv-helpful-count {
	font-weight: 700;
	min-width: 1em;
}

.hsrv-wrap .hsrv-post-date {
	font-size: 12px;
	color: #9a9186;
}

/* ---------- ページ送り ---------- */

.hsrv-wrap .hsrv-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 28px;
}

.hsrv-wrap .hsrv-page-item {
	display: inline-block;
	min-width: 38px;
	padding: 8px 10px;
	font-size: 14px;
	text-align: center;
	color: #6b6258;
	background: #fff;
	border: 1px solid #d9cfc0;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hsrv-wrap a.hsrv-page-item:hover {
	border-color: #b98a2f;
	color: #b98a2f;
}

.hsrv-wrap .hsrv-page-item.is-current {
	background: #b98a2f;
	border-color: #b98a2f;
	color: #fff;
	font-weight: 700;
}

.hsrv-wrap .hsrv-page-dots {
	color: #9a9186;
	padding: 0 2px;
}

.hsrv-wrap .hsrv-empty {
	padding: 32px 16px;
	text-align: center;
	color: #8a8177;
	background: #faf8f5;
	border-radius: 8px;
}

/* ---------- スマホ対応 ---------- */

@media (max-width: 600px) {
	.hsrv-wrap .hsrv-item {
		padding: 16px 14px;
	}
	.hsrv-wrap .hsrv-item-meta {
		gap: 2px 12px;
	}
	.hsrv-wrap .hsrv-stars {
		font-size: 18px;
	}
	.hsrv-wrap .hsrv-item-foot {
		flex-direction: column;
		align-items: flex-start;
	}
}
