/* ==========================================================================
   corop — お客様のお声 一覧（archive-voice.php 専用）
   基準: Figma PC 1280px を ×1.125 でスケール（他ページと同じ換算）
        Figma SP 402px → 実機 375px 想定
   Figma: PC 840:6311 / SP 859:8606
   ※色トークン・フォントは header-footer.css の :root で定義（先に読み込む）
   ========================================================================== */

.voice {
	padding: 128px 24px 106px; /* Figma 見出しまで 114 / 最下段〜フッター 94 × 1.125 */
	color: var(--corop-ink, #4c4948);
	font-family: var(--corop-font, "Avenir", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
}

/* 画面には出さず読み上げだけ（ラベル用） */
.voice .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ===== ページ見出し（Users voice / お客様のお声） ===== */
.voice-head {
	text-align: center;
	color: var(--corop-orange, #d79000);
}
.voice-head__title {
	margin: 0;
	font-size: 53px; /* Figma 46.8 × 1.125 */
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.15;
}
.voice-head__sub {
	margin: 0;
	font-size: 20px; /* Figma 18.2 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.6;
}

/* ===== キーワード検索 ===== */
.voice-filter {
	margin: 78px auto 0; /* Figma 69 × 1.125 */
}
.voice-search {
	position: relative;
	display: block;
	width: 633px; /* Figma 563 × 1.125 */
	max-width: 100%;
	margin: 0 auto;
}
.voice-search__icon {
	position: absolute;
	top: 50%;
	left: 19px; /* Figma 17 × 1.125 */
	width: 22px;
	height: auto;
	transform: translateY(-50%);
	pointer-events: none;
}
.voice-search__input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 52px; /* Figma 46 × 1.125 */
	padding: 0 24px 0 55px; /* 文字は Figma 49 × 1.125 */
	border: 1px solid var(--corop-ink, #4c4948);
	border-radius: 34px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px; /* Figma 14 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.2em;
	-webkit-appearance: none;
	appearance: none;
}
.voice-search__input::placeholder {
	color: var(--corop-ink, #4c4948);
	opacity: 1;
}
.voice-search__input:focus {
	outline: 2px solid var(--corop-orange, #d79000);
	outline-offset: 1px;
}

/* ===== 絞り込み（4つのプルダウン） ===== */
.voice-selects {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 13.5px; /* Figma 12 × 1.125 */
	margin-top: 24px; /* Figma 21 × 1.125 */
}
.voice-select {
	position: relative;
	display: block;
	width: 164px; /* Figma 146 × 1.125 */
}
.voice-select select {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 39px; /* Figma 35 × 1.125 */
	padding: 0 34px 0 17px; /* 文字は Figma 15 × 1.125 */
	border: 1px solid #7e7e7e;
	border-radius: 0;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px; /* Figma 14 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.2em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.voice-select select:focus {
	outline: 2px solid var(--corop-orange, #d79000);
	outline-offset: 1px;
}
.voice-select__chev {
	position: absolute;
	top: 50%;
	right: 12px; /* Figma 10 × 1.125 */
	width: 15px; /* Figma 13 × 1.125 */
	height: auto;
	transform: translateY(-50%);
	pointer-events: none;
}

/* ===== お声カード（2列） ===== */
.voice-list {
	display: grid;
	grid-template-columns: repeat(2, 595px); /* Figma 529 × 1.125 */
	justify-content: center;
	gap: 31.5px 37px; /* Figma 行 28 / 列 33 × 1.125 */
	margin-top: 51px; /* Figma 45 × 1.125 */
}
.voice-card {
	box-sizing: border-box;
	min-height: 322px; /* Figma 286 × 1.125 */
	padding: 22.5px 50px 31.5px; /* Figma 20 / 45 / 28 × 1.125 */
	border: 1px solid var(--corop-orange, #d79000);
	border-radius: 22.5px;
	background: #fff;
}
.voice-card[hidden] {
	display: none;
}
.voice-card__head {
	display: flex;
	align-items: center;
	gap: 18px; /* Figma 16 × 1.125 */
}

/* わんちゃんアイコン（丸い背景の上にパーツを % 指定で重ねる） */
.voice-avatar {
	position: relative;
	flex: 0 0 auto;
	width: 79px;  /* Figma 70 × 1.125 */
	height: 79px;
}
.voice-avatar img {
	position: absolute;
	display: block;
	max-width: none;
}
.voice-avatar .voice-avatar__bg {
	inset: 0;
	width: 100%;
	height: 100%;
}

.voice-card__rating {
	display: flex;
	align-items: center;
	gap: 4.5px;
	margin: 6px 0 0; /* Figma 文字の中心はアイコン中心より少し下 */
}
.voice-card__rating-label {
	font-size: 15px; /* Figma 13 × 1.125 */
	letter-spacing: 0.1em;
}
.voice-card__stars {
	color: var(--corop-orange, #d79000);
	font-size: 22.5px; /* Figma 20 × 1.125 */
	font-weight: 900;
	letter-spacing: 0.1em;
	line-height: 1;
}

.voice-card__comment {
	margin: 18px 0 0; /* Figma 16 × 1.125 */
	font-size: 15px; /* Figma 13 × 1.125 */
	letter-spacing: 0.1em;
	line-height: 27.5px; /* Figma 24.5 × 1.125 */
	word-break: break-word;
}

.voice-card__tags {
	margin-top: 7px;
	font-size: 15px; /* Figma 13 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 26px; /* Figma 23 × 1.125（2行の間隔） */
}
.voice-card__tags p {
	margin: 0;
}
.voice-card__tags span + span {
	margin-left: 0.6em;
}
.voice-card__tags .voice-card__pet {
	margin-left: 1.1em;
}

/* ===== 該当なし・さらに読み込む ===== */
.voice-empty {
	margin: 60px 0 0;
	text-align: center;
}
.voice-empty[hidden],
.voice-more[hidden] {
	display: none;
}
.voice-more {
	margin-top: 45px;
	text-align: center;
}
.voice-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	width: 294px; /* ジャーナルのボタンと同じ */
	height: 42px;
	border: 2px solid var(--corop-orange, #d79000);
	border-radius: 22px;
	background: var(--corop-orange, #d79000);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.2em;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.voice-more__btn b {
	font-weight: 700;
}
.voice-more__btn:hover {
	opacity: 0.7;
}

/* ==========================================================================
   PC 中間幅（2列が入らない幅）
   ========================================================================== */
@media (max-width: 1260px) and (min-width: 769px) {
	.voice-list {
		grid-template-columns: minmax(0, 595px);
	}
}

/* ==========================================================================
   SP（Figma 402px）
   ========================================================================== */
@media (max-width: 768px) {
	.voice {
		padding: 16px 24px 59px; /* Figma ヘッダー下 16 / 最下段〜フッター 59 */
	}
	.voice-head__title {
		font-size: 33px; /* Figma 32.8 */
	}
	.voice-head__sub {
		font-size: 15px; /* Figma 15.2 */
	}

	.voice-filter {
		margin-top: 1px;
	}
	.voice-search {
		width: 345px;
	}
	.voice-search__icon {
		left: 14px;
		width: 20px;
	}
	.voice-search__input {
		height: 46px;
		padding-left: 46px;
		border-radius: 30px;
		font-size: 14px;
	}

	/* 2列×2段 */
	.voice-selects {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 146px));
		gap: 14px 12px;
		margin-top: 16px;
	}
	.voice-select {
		width: auto;
	}
	.voice-select select {
		height: 35px;
		padding-left: 15px;
		padding-right: 30px;
		font-size: 14px;
	}
	.voice-select__chev {
		right: 10px;
		width: 13px;
	}

	.voice-list {
		grid-template-columns: minmax(0, 338px);
		gap: 27px;
		margin-top: 62px;
	}
	.voice-card {
		min-height: 326px;
		padding: 20px 31px 24px 31px;
		border-radius: 20px;
	}
	.voice-card__head {
		gap: 16px;
		margin-left: -11px; /* Figma アイコンはカード左端から 20（本文は 32） */
	}
	.voice-avatar {
		width: 70px;
		height: 70px;
	}
	.voice-card__rating-label {
		font-size: 13px;
	}
	.voice-card__stars {
		font-size: 20px;
	}
	.voice-card__comment {
		margin-top: 16px;
		font-size: 13px;
		line-height: 24.5px;
	}
	.voice-card__tags {
		margin-top: 3px;
		font-size: 13px;
		line-height: 23px;
	}

	.voice-more__btn {
		width: 261px;
		height: 37px;
		font-size: 14px;
	}
}
