@charset "UTF-8";
/* =============================================================
 * 合格者アンケート（合格体験記ページ内ブロック）
 * 医進の会のレイアウトを踏襲: 右上アンケート画像 + Q/A 記法
 * 呼び出し: [voice_survey id="123"] ショートコード
 * ============================================================= */

.voice-survey {
	max-width: 980px;
	margin: 40px auto 40px;
	padding: 36px 40px 28px;
	background: #fff;
	border: 1px solid #d9d9d9;
	box-sizing: border-box;
}

/* ヘッダー：タイトル + 右上のアンケート画像サムネ */
.voice-survey__header {
	position: relative;
	min-height: 120px;
	padding-right: 150px;
	margin-bottom: 24px;
	text-align: center;
}

.voice-survey__title {
	font-size: 22px;
	font-weight: bold;
	color: #222;
	margin: 0 0 10px;
	padding: 0 0 10px;
	border-bottom: 2px solid #222;
	display: inline-block;
}

.voice-survey__header::after {
	content: "これまで『個別の会』に在籍し、合格した生徒の感想をアンケート形式で答えてもらいました。";
	display: block;
	font-size: 13px;
	color: #555;
	line-height: 1.7;
	margin-top: 4px;
}

/* 右上のアンケート画像サムネ（クリックで拡大） */
.voice-survey__thumb {
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	display: block;
	border: 1px solid #bbb;
	background: #fff;
	cursor: zoom-in;
	transition: box-shadow .2s ease;
}

.voice-survey__thumb:hover {
	box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.voice-survey__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.voice-survey__thumb-zoom {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28px;
	height: 28px;
	background-color: rgba(0,0,0,.55);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	pointer-events: none;
}

/* Q&Aリスト */
.voice-survey__list {
	margin: 0;
}

.voice-survey__row {
	margin-bottom: 18px;
}

.voice-survey__row:last-child {
	margin-bottom: 0;
}

.voice-survey__qa {
	margin: 0;
	border: 1px solid #e2e2e2;
}

.voice-survey__q,
.voice-survey__a {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 16px 20px;
	line-height: 1.7;
}

.voice-survey__q {
	background: #eef0f2;
	color: #1a1a1a;
	font-weight: bold;
}

.voice-survey__a {
	background: #fbfbfb;
	color: #333;
	border-top: 1px solid #e2e2e2;
	font-weight: normal;
}

.voice-survey__mark {
	display: inline-block;
	min-width: 56px;
	padding: 0 16px 0 0;
	margin-right: 16px;
	font-family: "Noto Serif JP", "Times New Roman", serif;
	font-size: 34px;
	font-weight: bold;
	line-height: 1;
	color: #1a1a1a;
	border-right: 1px solid #bbb;
	text-align: center;
	flex-shrink: 0;
}

.voice-survey__text {
	flex: 1 1 auto;
	padding-top: 8px;
	font-size: 15px;
}

/* =============================================================
 * Lightbox（クリック拡大）
 * ============================================================= */
.voice-survey-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0,0,0,.88);
	z-index: 99999;
	cursor: zoom-out;
	box-sizing: border-box;
}

.voice-survey-lightbox.is-open {
	display: flex;
}

.voice-survey-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 4px 30px rgba(0,0,0,.4);
	background: #fff;
}

.voice-survey-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.voice-survey-lightbox__close:hover {
	opacity: .7;
}

/* =============================================================
 * レスポンシブ（スマホ）
 * ============================================================= */
@media (max-width: 768px) {
	.voice-survey {
		padding: 24px 16px 20px;
		margin: 28px 0;
	}

	.voice-survey__header {
		min-height: auto;
		padding-right: 90px;
		text-align: left;
	}

	.voice-survey__title {
		font-size: 18px;
		display: inline-block;
	}

	.voice-survey__header::after {
		font-size: 12px;
		text-align: left;
	}

	.voice-survey__thumb {
		width: 78px;
	}

	.voice-survey__thumb-zoom {
		width: 22px;
		height: 22px;
		background-size: 14px 14px;
	}

	.voice-survey__q,
	.voice-survey__a {
		padding: 12px 12px;
	}

	.voice-survey__mark {
		min-width: 38px;
		padding: 0 10px 0 0;
		margin-right: 10px;
		font-size: 24px;
	}

	.voice-survey__text {
		padding-top: 4px;
		font-size: 14px;
	}

	.voice-survey-lightbox {
		padding: 20px 10px;
	}
}

@media (max-width: 420px) {
	.voice-survey__header {
		padding-right: 76px;
	}

	.voice-survey__thumb {
		width: 66px;
	}
}
