@charset "utf-8";
/* ==========================================================
 お客様満足度レビュー（部品：wp/wp-content/themes/pg-house/parts/review.php）
 ・円グラフのアニメーションと絞り込みは /js/review.js
 ・背景：/img/review/review_bk.webp、総合満足度の葉：/img/review/review_gold.webp
========================================================== */

.rv {
	--rv-navy: #2f417f;
	--rv-orange: #d95f3b;
	--rv-orange2: #e8826a;
	--rv-gold: #d6a24e;
	--rv-text: #2b2b2b;
	--rv-gray: #6f7377;
	--rv-line: #e3e5e8;
	color: var(--rv-text);
	font-family: 'Noto Sans JP', sans-serif;
	letter-spacing: 0.05em;
	line-height: 1.6;
}
.rv *,
.rv *::before,
.rv *::after {
	box-sizing: border-box;
}
/* base.css の「* { line-height:1; letter-spacing:0.1em }」を、親の設定に合わせる */
.rv * {
	line-height: inherit;
	letter-spacing: inherit;
}
/* ボタンの文字は親に合わせる（:where で強さを0にして、施工事例の部品などの指定を優先） */
:where(.rv) button {
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}
.rv [hidden] {
	display: none !important;
}

/* ---------- 見出し ---------- */
.rv-head {
	text-align: center;
	padding: 150px 16px 64px;
}
.rv-head__en {
	font-family: sofia-pro, sans-serif;
	font-size: 28px;
	letter-spacing: 0.08em;
	color: #333;
}
.rv-head__ttl {
	margin: 10px 0 0;
	font-size: clamp(30px, 3.6vw, 60px);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
}
.rv-head__stars {
	margin-top: 14px;
	color: #f2c12e;
	font-size: 34px;
	letter-spacing: 0.06em;
	line-height: 1;
}

/* ---------- 背景（グラデーション）：満足度の下、白い枠の上の方まで ---------- */
.rv-main {
	position: relative;
	isolation: isolate;
}
.rv-score::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	bottom: -450px;
	/* 白を重ねて薄くする（rgba の最後の数字を大きくするほど薄くなる。0＝画像のまま） */
	background:
		linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)),
		url(/img/review/review_bk.webp) center top / cover no-repeat;
}

/* ---------- 満足度 ---------- */
.rv-score {
	position: relative;
	padding: 96px 5vw 110px;
}
.rv-score__intro {
	margin: 0;
	text-align: center;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 2.85;
}
.rv-score__total {
	position: relative;
	z-index: 1;
	margin-top: 56px;
	text-align: center;
}
.rv-score__total-ttl {
	margin: 0;
	color: var(--rv-orange);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.25em;
}
.rv-score__total-ring {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 22px;
}
.rv-leaf {
	width: 116px;
	height: auto;
	margin-top: 40px;
}
.rv-leaf--r {
	transform: scaleX(-1);
}

/* 六角形の写真（デザインの横幅1456pxでの位置を、画面幅に合わせて伸び縮み） */
.rv-hex {
	position: absolute;
	z-index: 0;
	aspect-ratio: 0.866; /* 正六角形（縦長） */
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	pointer-events: none;
}
.rv-hex img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rv-hex--l {
	top: 58px;
	left: 4.1vw;
	width: min(16.3vw, 300px);
}
.rv-hex--r {
	top: -64px;
	right: 2.9vw;
	width: min(20vw, 370px);
}
.rv-hex--r img {
	object-position: 78% 50%; /* お母さんとお子さんが入るように */
}
.rv-hex--s {
	top: 196px;
	right: calc(2.9vw + min(20vw, 370px) - 3vw);
	width: min(8.2vw, 150px);
}
.rv-hex--s img {
	object-position: 45% 50%;
}
.rv-score__intro,
.rv-score__box {
	position: relative;
	z-index: 1;
}

/* 6項目を囲む線（上の線は大きい円のところで切る） */
.rv-score__box {
	position: relative;
	max-width: 1500px;
	margin: -130px auto 0;
	padding: 190px 40px 66px;
	border: 1px solid #333;
	border-top: 0;
}
.rv-score__box::before,
.rv-score__box::after {
	content: "";
	position: absolute;
	top: 0;
	width: calc(50% - 320px);
	border-top: 1px solid #333;
}
.rv-score__box::before {
	left: 0;
}
.rv-score__box::after {
	right: 0;
}
.rv-score__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 30px 28px;
}
.rv-score__item {
	text-align: center;
}
.rv-score__label {
	margin-top: 18px;
	color: var(--rv-orange);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.55;
}
.rv-score__note {
	margin: 40px 0 0;
	text-align: center;
	color: var(--rv-gray);
	font-size: 13px;
}

/* ---------- 円グラフ ---------- */
.rv-ring {
	position: relative;
	margin: 0 auto;
	aspect-ratio: 1;
}
.rv-ring--big {
	width: 262px;
	flex: none;
	margin: 0;
}
.rv-ring--small {
	width: min(100%, 196px);
}
.rv-ring svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	overflow: visible;
}
.rv-ring circle {
	fill: none;
}
.rv-ring__track {
	stroke: rgba(217, 95, 59, 0.12);
}
.rv-ring__bar {
	stroke-linecap: butt;
}
.rv-ring--big circle {
	stroke-width: 15;
}
.rv-ring--big .rv-ring__bar {
	stroke: var(--rv-orange);
}
.rv-ring--small circle {
	stroke-width: 11;
}
.rv-ring--small .rv-ring__bar {
	stroke: var(--rv-orange2);
}
.rv-ring__num {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--rv-orange);
	font-family: sofia-pro, 'Noto Sans JP', sans-serif;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	container-type: inline-size;
}
.rv-ring__val {
	font-size: 37cqi;
	font-variant-numeric: tabular-nums;
}
.rv-ring[data-val="100"] .rv-ring__val {
	font-size: 31cqi;
}
.rv-ring__pct {
	font-size: 13cqi;
	margin: 0.75em 0 0 0.12em;
}

/* ---------- お施主さまのお声（白い枠） ---------- */
.rv-voice {
	position: relative;
	width: calc(100% - 5vw);
	max-width: 1710px;
	margin: 0 auto;
	padding: 72px 40px 110px;
	background: #fff;
}
.rv-voice > * {
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}
.rv-voice__head {
	text-align: center;
	padding-bottom: 38px;
	border-bottom: 1px solid var(--rv-line);
}
.rv-voice__en {
	color: var(--rv-navy);
	font-family: sofia-pro, sans-serif;
	font-size: 19px;
	letter-spacing: 0.06em;
}
.rv-voice__ttl {
	margin: 6px 0 0;
	font-size: clamp(24px, 2.2vw, 36px);
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* 確認用の注意書き */
.rv-sample-note {
	color: #b4462a;
}
.rv-sample-note--box {
	margin-top: 24px;
	padding: 12px 16px;
	background: #fff4ef;
	border: 1px dashed #e8a48f;
	font-size: 14px;
	line-height: 1.7;
}

/* 絞り込み：施工事例と同じ部品（/css/work02.css の w2-）。白い枠の中に合わせる所だけここで直す */
.rv .w2-filter.rv-w2 {
	max-width: 1500px; /* カード・見出しの線と同じ幅にそろえる */
	margin: 26px auto 0;
	padding: 0;
	z-index: 5;
}
.rv .rv-w2 .w2-count {
	letter-spacing: 0.05em;
}
@media only screen and (min-width: 768px) {
	/* 選択肢が2つだけなので、プルダウンは広げすぎない */
	.rv .rv-w2 .w2-dd {
		flex: 0 1 340px;
	}
	.rv .rv-w2 .w2-result-wrap {
		margin: 6px 0 22px;
	}
}
@media only screen and (max-width: 767px) {
	.rv .rv-w2 .w2-result-wrap {
		border-bottom: none;
		padding-bottom: 0;
	}
}

/* カード */
.rv-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	align-items: stretch; /* 同じ段のカードは高さをそろえる（カードの間の余白を均一に） */
}
.rv-card {
	display: flex;
	flex-direction: column;
	padding: 32px 36px 30px;
	background: #fff;
	border: 1px solid var(--rv-line);
	animation: rvIn .6s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes rvIn {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: none; }
}
.rv-card__who {
	display: flex;
	align-items: center;
	gap: 18px;
}
.rv-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #e9ecf1;
}
.rv-card__icon svg {
	width: 28px;
	fill: var(--rv-navy);
}
.rv-card__name {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
}
.rv-card__sample {
	display: inline-block;
	margin-left: 10px;
	padding: 1px 8px;
	background: #fff4ef;
	border: 1px solid #e8a48f;
	color: #b4462a;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 3px;
}
.rv-card__meta {
	margin-top: 2px;
	color: var(--rv-gray);
	font-size: 15px;
}
.rv-card__meta span + span {
	margin-left: 0.9em;
	padding-left: 0.9em;
	border-left: 1px solid #cfd3d8;
}
.rv-card__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
}
.rv-card__tags li {
	padding: 3px 10px;
	border: 1px solid #b8c0d6;
	color: var(--rv-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}
.rv-card__ttl {
	position: relative;
	margin: 16px 0 0;
	padding-left: 1.3em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}
.rv-card__ttl::before {
	content: "“";
	position: absolute;
	left: 0;
	top: -0.12em;
	color: var(--rv-gold);
	font-family: Georgia, serif;
	font-size: 1.6em;
	line-height: 1;
}
.rv-card__body {
	margin-top: 14px;
	font-size: 16px;
	line-height: 2.2;
	letter-spacing: 0.08em;
}
.rv-card__body p {
	margin: 0;
}
.rv-card.is-clamp .rv-card__body {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.rv-card__more {
	align-self: flex-start;
	margin-top: 6px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--rv-navy);
	font-size: 14px;
	font-weight: 700;
}
.rv-card__more::after {
	content: "›";
	margin-left: 0.4em;
}
.rv-card__work {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--rv-line);
	color: var(--rv-navy);
	text-decoration: none;
}
.rv-card__foot {
	margin-top: auto; /* 施工事例のリンクはカードの下にそろえる */
}
.rv-card__work-img {
	flex: none;
	width: 80px;
	height: 55px;
	background: linear-gradient(160deg, #e2d8cb 50%, #c9b8a5 50%);
	overflow: hidden;
}
.rv-card__work-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rv-card__work-txt {
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.rv-card__work::after {
	content: "›";
	color: #888;
	font-size: 20px;
	transition: transform .2s;
}
@media (hover: hover) {
	.rv-card__work:hover .rv-card__work-txt {
		text-decoration: underline;
	}
	.rv-card__work:hover::after {
		transform: translateX(3px);
	}
}

.rv-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--rv-gray);
}
.rv-empty__clear {
	margin-top: 12px;
	padding: 10px 20px;
	background: #fff;
	border: 1px solid var(--rv-navy);
	color: var(--rv-navy);
	font-size: 14px;
	font-weight: 700;
}

/* もっと見る */
.rv-morewrap {
	margin-top: 46px;
	text-align: center;
}
.rv-morebtn {
	width: min(100%, 500px);
	height: 88px;
	background: var(--rv-navy);
	border: 0;
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.12em;
	transition: opacity .2s;
}
.rv-morebtn::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 1em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.25em) rotate(45deg); /* 下向きの矢印 */
}
@media (hover: hover) {
	.rv-morebtn:hover {
		opacity: .85;
	}
}

/* ---------- タブレット ---------- */
@media (min-width: 768px) and (max-width: 1200px) {
	/* 写真が文章に重ならないよう、写真を上に並べて文章はその下から */
	.rv-score {
		padding-top: calc(22vw + 70px);
	}
	.rv-hex--l {
		top: 40px;
		left: 7vw;
		width: 18vw;
	}
	.rv-hex--r {
		top: -50px;
		right: 6vw;
		width: 22vw;
	}
	.rv-hex--s {
		top: calc(13vw - 10px);
		right: 25vw;
		width: 9vw;
	}
}
@media (max-width: 1200px) {
	.rv-score__items {
		grid-template-columns: repeat(3, 1fr);
		gap: 40px 28px;
		max-width: 760px;
		margin: 0 auto;
	}
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
	.rv-head {
		padding: 110px 16px 40px;
	}
	.rv-head__en {
		font-size: 20px;
	}
	.rv-head__stars {
		font-size: 26px;
	}
	.rv-score {
		padding: 56px 16px 64px;
	}
	.rv-score::before {
		bottom: -200px;
	}
	/* スマホ：写真を上に並べて、文章はその下から */
	.rv-score {
		padding-top: 44vw;
	}
	.rv-hex--l {
		top: 7vw;
		left: 6vw;
		width: 29vw;
	}
	.rv-hex--r {
		top: -9vw;
		right: 5vw;
		width: 36vw;
	}
	.rv-hex--s {
		top: 20vw;
		right: 37vw;
		width: 15vw;
	}
	.rv-score__intro br {
		display: none;
	}
	.rv-score__intro {
		text-align: left; /* スマホは左寄せ */
		font-size: 15px;
		letter-spacing: 0.1em;
		line-height: 2.2;
	}
	.rv-score__total {
		margin-top: 36px;
	}
	.rv-score__total-ttl {
		font-size: 18px;
	}
	.rv-ring--big {
		width: 180px;
	}
	.rv-leaf {
		width: 70px;
		margin-top: 24px;
	}
	.rv-score__box {
		margin-top: -90px;
		padding: 126px 14px 36px;
	}
	.rv-score__box::before,
	.rv-score__box::after {
		width: calc(50% - 170px);
	}
	.rv-score__items {
		gap: 26px 10px;
	}
	.rv-score__label {
		margin-top: 10px;
		font-size: 13px;
		letter-spacing: 0.06em;
	}
	.rv-score__note {
		margin-top: 26px;
		font-size: 12px;
	}
	.rv-voice {
		width: auto;
		margin: 0 10px;
		padding: 44px 16px 64px;
	}
	.rv-voice__en {
		font-size: 15px;
	}
	.rv-voice__head {
		padding-bottom: 26px;
	}
	.rv-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.rv-card {
		padding: 22px 18px 20px;
	}
	.rv-card__icon {
		width: 48px;
		height: 48px;
	}
	.rv-card__icon svg {
		width: 22px;
	}
	.rv-card__who {
		gap: 12px;
	}
	.rv-card__name {
		font-size: 17px;
	}
	.rv-card__meta {
		font-size: 13px;
	}
	.rv-card__ttl {
		font-size: 16px;
	}
	.rv-card__body {
		font-size: 15px;
		line-height: 2;
		letter-spacing: 0.04em;
	}
	.rv-card__work-txt {
		font-size: 14px;
	}
	.rv-morebtn {
		height: 64px;
		font-size: 17px;
	}
}

/* 動きを減らす設定の方には、アニメーションしない */
@media (prefers-reduced-motion: reduce) {
	.rv-card {
		animation: none;
	}
}
