@charset "UTF-8";
/*
Theme Name: 福祉の問題屋さん
Theme URI: https://aac.cocole.org/
*/

/* 初期リセット・ベース設定 */
*,*::before,*::after{box-sizing:border-box}html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role='list'],ol[role='list']{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4,button,input,label{line-height:1.1}a:not([class]){text-decoration-skip-ink:auto;color:currentColor}img,picture{max-width:100%;height:auto;display:inline-block}input,button,textarea,select{font:inherit}textarea:not([rows]){min-height:10em}:target{scroll-margin-block:5ex}

:root {

	--cocole-col: #f79911;

	--bace-col: #22b573;
	--bace-col-rgb: 34, 181, 115;
	--bace-col-2: #4ec48f;
	--bace-col-3: #7ad3ab;
	--bace-col-4: #a7e1c7;
	--bace-col-5: #d3f0e3;
	--bace-col-6: #edf9f4;

	--shakai-col: #66aad7;
	--shakai-col-rgb: 34, 181, 115;

	--kaigo-col: #f4777c;
	--kaigo-col-rgb: 34, 181, 115;

	--seishin-col: #66be8f;
	--seishin-col-rgb: 34, 181, 115;

	--gray: #555C60;
	--gray-2: #999DA0;
	--gray-3: #DDDEDF;
	--gray-4: #F8F8F9;
	--green: #4A4925;
	--green-2: #92927C;
	--green-3: #DBDBD3;
	--red: #ea5b7e;
	--red-2: #e27e91;
	--red-3: #f1c3c8;
	--red-4: #f9e7e9;
	--yellow: #C9C400;
	--yellow-2: #DFDC66;
	--yellow-3: #F4F3CC;

	--social_x-col: #0f1419;
	--social_x-col-rgb: 15, 20, 25;
	--ins-col: #f13f79;
	--ins-col-rgb: 241, 63, 121;
	--youtube-col: #ff0000;
	--youtube-col-rgb: 255, 0, 0;
	--facebook-col: #4267b2;
	--facebook-col-rgb: 66, 103, 178;
	--line-col: #00b900;
	--line-col-rgb: 0, 185, 0;
	--hatena-col: #01a5df;
	--hatena-col-rgb: 1, 165, 223;
	--rakuten-col: #CC4E50;
	--rakuten-col-rgb: 204, 78, 80;
	--amazon-col: #FFA526;
	--amazon-col-rgb: 255, 165, 38;

	--ct-full: 10rem;
	--ct-middle: 4rem;
	--ct-small: 2rem;

	--visual-radius: 21px;
	--card-radius: 11px;

}

@media only screen and (max-width: 768px) {

	:root {

		--ct-full: 3rem;
		--ct-middle: 2rem;

	}

}

/*html*/
html {
	font-size: 62.5%;
}
body {
	background: #fff;
	color: var(--gray);
	font-family: "Noto Sans JP", 'Hiragino Kaku Gothic ProN',Meiryo,Helvetica,Arial,sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
}
body.nav-open {
	overflow: hidden;
}

/*font-size*/
.fs-s {
	font-size: clamp(1.2rem, calc(0.9rem + 0.625vw), 1.6rem);
}
.fs-m {
	font-size: clamp(2rem, calc(1.6rem + 0.625vw), 3rem);
}
.fs-l {
	font-size: clamp(3rem, calc(2.4rem + 0.625vw), 6rem);
}
.fs-12 {
	font-size: 1.2rem;
}

/*display*/
.print-area,
.read-only,
.svg-symbol,
.black_bg,
.hamburger {
	display: none;
}

/*kaigo*/
.kaigo {}
.kaigo a,
.page-kaigo .entry-title,
.tax-category-kaigo .entry-title {
	color: var(--kaigo-col);
}

.tax-exam_type-kaigo .question-no,
.tax-exam_type-kaigo .choice-form label:has(input:checked)::before,
.cat-kaigo .post-cat,
.tax-category-kaigo .post-category {
	background: var(--kaigo-col);
}

.page-kaigo {}
.page-kaigo .entry-header,
.tax-exam_type-kaigo .entry-header,
.tax-category-kaigo .entry-header {
	border-top: 11px solid var(--kaigo-col);
}
.tax-exam_type-kaigo .question-area .question-box,
.tax-exam_type-kaigo .choice-form label:hover,
.tax-exam_type-kaigo .choice-form label:has(input:checked) {
	border-color: var(--kaigo-col);
}

/*shakai*/
.shakai {}
.shakai a,
.page-shakai .entry-title,
.tax-category-shakai .entry-title  {
	color: var(--shakai-col);
}

.tax-exam_type-shakai .question-no,
.tax-exam_type-shakai .choice-form label:has(input:checked)::before,
.cat-shakai .post-cat,
.tax-category-shakai .post-category {
	background: var(--shakai-col);
}

.page-shakai {}
.page-shakai .entry-header,
.tax-exam_type-shakai .entry-header,
.tax-category-shakai .entry-header {
	border-top: 11px solid var(--shakai-col);
}
.tax-exam_type-shakai .question-area .question-box,
.tax-exam_type-shakai .choice-form label:hover,
.tax-exam_type-shakai .choice-form label:has(input:checked) {
	border-color: var(--shakai-col);
}

/*seishin*/
.seishin {}
.seishin a,
.page-seishin .entry-title,
.tax-category-seishin .entry-title  {
	color: var(--seishin-col);
}

.tax-exam_type-seishin .question-no,
.tax-exam_type-seishin .choice-form label:has(input:checked)::before,
.cat-seishin .post-cat,
.tax-category-seishin .post-category {
	background: var(--seishin-col);
}

.page-seishin {}
.page-seishin .entry-header,
.tax-exam_type-seishin .entry-header,
.tax-category-seishin .entry-header {
	border-top: 11px solid var(--seishin-col);
}
.tax-exam_type-seishin .question-area .question-box,
.tax-exam_type-seishin .choice-form label:hover,
.tax-exam_type-seishin .choice-form label:has(input:checked) {
	border-color: var(--seishin-col);
}

/*color*/

.shakai-col { color: var(--shakai-col); fill: var(--shakai-col); }
.kaigo-col { color: var(--kaigo-col); fill: var(--kaigo-col); }
.seishin-col { color: var(--seishin-col); fill: var(--seishin-col); }

.gray-4-bg { background: var(--gray-4); }

.shakai-bg { background: var(--shakai-col); fill: var(--shakai-col); }
.kaigo-bg { background: var(--kaigo-col); fill: var(--kaigo-col); }
.seishin-bg { background: var(--seishin-col); fill: var(--seishin-col); }

/*text*/
.text-center { text-align: center; }

/*ad*/
.ad {
	margin: 2rem 0;
	text-align: center;
}

.ad iframe,
.ad img {
	max-width: 100%;
	height: auto;
}
.ad-article_top,
.ad-article_bottom {
	padding: 2rem 0;
	border-top: 1px dashed var(--gray-3);
	border-bottom: 1px dashed var(--gray-3);
	background: var(--gray-4);
}

.ad-article_bottom {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media only screen and (max-width: 768px) {

	.ad-article_bottom {
		grid-template-columns: 1fr;
	}
}

/*section_box*/
.section_box {
	padding: var(--ct-full) 0;
}

/*post_section*/
.post_section {
	border-bottom: 1px dashed var(--gray-3);
}
.post_section >* {
	margin-block-start: var(--ct-middle);
}

/*container*/
.container {
	position: relative;
	width: 100%;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}
.container.width-l {
	max-width: 1200px;
}

@media only screen and (max-width: 768px) {

	.container {
		width: 90%;
	}

}

/*shadow*/
.shadow {
	box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .25);
}

/*card*/
.card {
	position: relative;
	border-radius: var(--card-radius);
}
.card.kaigo {
	border: solid 5px var(--kaigo-col);
}
.card.shakai {
	border: solid 5px var(--shakai-col);
}
.card.seishin {
	border: solid 5px var(--seishin-col);
}

.card .icon {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 200px;
	opacity: .25;
}

.card .link_box a {
	text-decoration: none;
}

/*blog-card*/
.blog-card {
	display: flex;
	gap: 12px;
	border: 1px solid #ddd;
	padding: 12px;
	text-decoration: none;
	color: inherit;
	border-radius: var(--card-radius);
}

.blog-card-img img {
	width: 120px;
	height: auto;
}

.blog-card-title {
	font-weight: bold;
}

.blog-card-desc {
	color: #666;
}

/*header*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: #fff;
	z-index: 1000;
	transition: 0.3s;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header.shrink {
	height: 60px;
}

.header_inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.logo img {
	height: 50px;
	transition: 0.3s;
}

.header.shrink .logo img {
	height: 40px;
}

#main {
	padding-top: 150px;
}

.nav {}

.nav_list {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav_item {
	position: relative;
}

.nav_item > a {
	text-decoration: none;
	color: #333;
	font-weight: bold;
	padding: 10px 0;
	display: block;
}

/* メガメニュー */
.nav_sub_list {
	position: absolute;
	top: 100%;
	left: 0;
	width: 300px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	padding: 15px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: 0.3s;
}

.nav_item:hover .nav_sub_list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav_sub_list li {
	list-style: none;
}

.nav_sub_list a {
	display: block;
	padding: 8px;
	text-decoration: none;
	color: #333;
	border-radius: 4px;
}

.nav_sub_list a:hover {
	background: #f5f5f5;
}

@media only screen and (max-width: 768px) {

	.header {
		height: 60px;
	}
	#main {
		padding-top: 90px;
	}
	/* ハンバーガー */
	.hamburger {
		display: block;
		position: absolute;
		right: 15px;
		top: 10px;
		width: 40px;
		height: 40px;
		z-index: 1200;
		cursor: pointer;
	}
	.hamburger span {
		position: absolute;
		left: 10px;
		width: 20px;
		height: 2px;
		background: #333;
		transition: 0.3s;
	}
	.hamburger span:nth-child(1) { top: 12px; }
	.hamburger span:nth-child(2) { top: 18px; }
	.hamburger span:nth-child(3) { top: 24px; }
	/* ナビ */
	.nav {
		position: fixed;
		right: -100%;
		top: 0;
		width: 80%;
		height: 100vh;
		background: #fff;
		padding: 60px 20px;
		transition: 0.3s;
		z-index: 1100;
		overflow-y: auto;
	}
	.nav_list {
		flex-direction: column;
	}
	.nav_item > a {
		padding: 15px 0;
		border-bottom: 1px solid #eee;
	}
	/* アコーディオン */
	.nav_sub_list {
		position: static;
		width: 100%;
		box-shadow: none;
		padding: 0;
		grid-template-columns: 1fr;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav_item.open .nav_sub_list {
		display: block;
	}
	/* 開いた状態 */
	.nav-open .nav {
		right: 0;
	}
	.black_bg {
		display: block;
		position: fixed;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.6);
		top: 0;
		left: 0;
		opacity: 0;
		visibility: hidden;
		transition: 0.3s;
	}
	.nav-open .black_bg {
		opacity: 1;
		visibility: visible;
	}
	/* ×アニメ */
	.nav-open .hamburger span:nth-child(1) {
		transform: rotate(45deg);
		top: 18px;
	}
	.nav-open .hamburger span:nth-child(2) {
		opacity: 0;
	}
	.nav-open .hamburger span:nth-child(3) {
		transform: rotate(-45deg);
		top: 18px;
	}

}

/*copyright*/
.copyright {
	padding: 1rem 0;
	background: #555c60;
	color: #bbbebf;
	text-align: center;
	font-size: 12px;
}

/*affi-box*/
.affi-box {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--gray-2);
	border-radius: var(--card-radius);
	background: #fff;
}
.affi-img {
	flex: 0 0 120px;
}

.affi-img img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}
.affi-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.affi-title {
	font-weight: bold;
	margin-bottom: 10px;
	line-height: 1.4;
}

.affi-buttons {
	display: flex;
	gap: 10px;
}

.affi-buttons .btn {
	flex: 1;
	text-align: center;
	padding: 10px;
	font-weight: bold;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	transition: 0.2s;
}

.btn.amazon {
	background: var(--amazon-col);
}
.btn.rakuten {
	background: var(--rakuten-col);
}

.affi-buttons .btn:hover {
	opacity: 0.85;
}
.affi-price {
	font-weight: bold;
	margin-bottom: 10px;
}

@media only screen and (max-width: 768px) {

	.affi-box {
		flex-direction: column;
		text-align: center;
	}

	.affi-img {
		margin: 0 auto;
		max-width: 160px;
	}

	.affi-buttons {
		flex-direction: column;
	}

	.affi-buttons .btn {
		width: 100%;
	}
}

/*test_date_box*/
.test_date_box {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 3rem;
	position: relative;
}

.test_date_box h2 {
	position: relative;
	padding: 1.5rem;
	text-align: center;
}

.test_date_box h2:before {
	content: attr(data-ja);
	position: absolute;
	top: 6.5rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: clamp(1.2rem, calc(0.9rem + 0.625vw), 1.6rem);
}
.test_date_box .kaigo:before {
	color: var(--kaigo-col);
}

.test_date_box .shakai:before {
	color: var(--shakai-col);
}

.test_date_box .seishin:before {
	color: var(--seishin-col);
}

.test_date_box .test_info {
	margin-top: 2.5rem;
}
.test_date_box .test_info>* {
	padding: .75rem 2rem;
}

.test_date_box h4 {
	border-bottom: 1px dotted var(--gray-3);
	position: relative;
}

.test_date_box p {
	line-height: 1.5;
}

.test_date_box .link_box {
	border-top: 1px solid var(--gray-3);
	display: flex;
	justify-content: center;
	align-content: center;
	text-align: center;
}
.test_date_box .link_box a {
	display: block;
	width: 100%;
	padding: 1.5rem;
}

@media only screen and (max-width: 768px) {

	.test_date_box {
		grid-template-columns: 1fr;
	}

}

/*post-list*/
.post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
}

.post-list-box {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: 0.3s;

	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-list-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.post-list-box a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #333;
	text-decoration: none;
}
.post-list-box img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.post-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px 0;
}
.post-cat {
	background: #0073aa;
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
}
.post-date {
	color: #777;
	font-size: 12px;
}

.post-list-box h3 {
	padding: 10px 15px 15px;
	line-height: 1.5;
	margin-top: auto;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media only screen and (max-width: 768px) {

	.post-list {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 15px;
	}
	.post-list-box a {
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
		padding: 10px;
	}
	.post-list-box img {
		width: 60px;
		height: 60px;
		object-fit: cover;
	}
	.post-content {
		flex: 1;
	}
	.post-meta {
		padding: 0;
		margin-bottom: 5px;
	}
	.post-cat {
		padding: 3px 8px;
	}
	.post-list-box h3 {
		padding: 0;
		line-height: 1.4;
		margin-top: 0;
	}
}

/*note-box*/
.note-box {
	padding: 2rem 0;
}

/*post_page*/
.post_page {
	margin-block-end: 2rem;
	border-radius: var(--card-radius);
	background: #fff;
}

/*entry-header*/
.entry-header {
	position: relative;
	border-radius: var(--card-radius);
}
.entry-header .site-mark {
	width: 180px;
	position: absolute;
	display: inline-block;
	margin: 0 auto;
	top: -70px;
	left: 0;
	right: 0;
}

.entry-header .entry-title {
	text-align: center;
	padding-top: 10rem;
	font-size: clamp(3rem, 2.5vw, 5rem);
}

.post-meta-top{
	position: absolute;
	top: -50px;
}

.post-category {
	display: inline-block;
	padding: .3rem .7rem;
	border-radius: 20px;
	font-size: 12px;
	text-decoration: none;
	color: #fff;
}

.post-meta{
	margin-top: .5rem;
	font-size: 12px;
	color: var(--gray-2);
	display: flex;
	gap: 1rem;
}

.post-lead{
	margin-top: 1rem;
	padding: 1rem;
	background: var(--gray-4);
	border-radius: var(--card-radius);
	line-height: 1.6;
}

@media only screen and (max-width: 768px) {

	.entry-header {
		margin-top: 3rem;
	}

	.entry-header .site-mark {
		width: 110px;
		top: -57px;
	}

	.entry-header .entry-title {
		padding-top: 5rem;
	}

}

/*entry-content*/
.entry-content {
	margin: 0 auto;
	padding: 0 5rem;
}
.entry-content > * {
	margin: var(--ct-middle) 0;
	line-height: 1.5;
}
.entry-content h2 {
	margin: 2em auto 4rem;
	text-align: center;
	position: relative;
	display: block;
}
.entry-content h2:before {
	content: '';
	position: absolute;
	bottom: -15px;
	display: inline-block;
	width: 60px;
	height: 5px;
	left: 50%;
	border-radius: 5px;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	background-color: var(--gray-3);
	border-radius: 2px;
}

.entry-content table {
	border-collapse: collapse;
	margin: var(--ct-middle) auto;
	table-layout: auto;
	width: max-content;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--gray-3);
	padding: 0.75rem 1rem;
	text-align: center;
	min-width: 60px;
	white-space: nowrap;
}

.entry-content th {
	background-color: #f5f5f5;
}

.entry-content tr:nth-child(even) {
	background-color: #fafafa;
}

@media only screen and (max-width: 768px) {

	.entry-content {
		padding: 0 1rem;
	}

}

/*entry-footer*/
.entry-footer{
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--gray-3);
}

/* ===============================
タグ
=============================== */
.post-tags{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.tag{
	padding: .4rem .8rem;
	background: var(--gray-4);
	border-radius: 20px;
	text-decoration: none;
	color: var(--gray);
}

.tag:hover{
	background: var(--bace-col-5);
}

/* ===============================
シェア
=============================== */
.share-area{
	text-align: center;
	margin-bottom: 2rem;
}

.share-title{
	margin-bottom: .8rem;
	font-weight: bold;
}

.share-buttons{
	display: flex;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
}

.share-btn{
	padding: .6rem 1rem;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

/* 色 */
.share-btn.x{ background: #000; }
.share-btn.facebook{ background: #4267b2; }
.share-btn.line{ background: #00b900; }
.share-btn.copy{ background: #666; }

.share-btn:hover{
	opacity: .9;
}

.post-nav{
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.post-nav a{
	text-decoration: none;
	color: var(--bace-col);
}

.post-nav a:hover{
	text-decoration: underline;
}

@media only screen and (max-width: 768px){

	.post-nav{
		flex-direction: column;
		gap: .5rem;
		text-align: center;
	}

}

/*related-posts*/
.related-posts{
	margin-top: 2rem;
}

.related-posts h2{
	margin-bottom: 1rem;
}

.related-grid{
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.related-card{
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem;
	border: 1px solid var(--gray-3);
	border-radius: var(--card-radius);
	background: #fff;
	text-decoration: none;
	transition: 0.2s;
}

.related-card:hover{
	background: var(--gray-4);
	transform: translateY(-1px);
}

.related-card img{
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.related-card h3{
	line-height: 1.5;
	margin: 0;
	color: #333;
}

@media only screen and (max-width: 768px){

	.related-card{
		gap: 0.8rem;
		padding: 0.7rem;
	}

	.related-card img{
		width: 70px;
		height: 70px;
	}

}

/*question-choices*/
.question-choices {
	padding: 0 var(--ct-middle);
}
.question-choices>* {
	margin-block-start: var(--ct-middle);
}

@media only screen and (max-width: 768px) {

	.entry-content {
		padding: 0 var(--ct-middle);
	}

}

/* ===============================
question-area
=============================== */
.question-area {
	margin-bottom: 2rem;
}

.question-area .question-no {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	color: #fff;
	font-weight: bold;
	border-radius: 0 var(--card-radius) 0 0;
}

.question-area .question-box {
	padding: var(--ct-middle);
	border-top: 5px solid var(--gray-3);
	border-bottom: 5px solid var(--gray-3);
	line-height: 1.8;
	background: #fff;
}

.question-area .question-box > * {
	margin-block-end: var(--ct-middle);
}

.question-area .question-box > *:last-child {
	margin-block-end: 0;
}

.choice-form {
	margin-top: 2rem;
}

.choice-form ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.choice-item{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.2rem;
	border: 2px solid var(--gray-3);
	border-radius: var(--card-radius);
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.choice-item:hover{
	background: var(--gray-4);
	transform: translateY(-1px);
}

.choice-item input{
	display: none;
}

/* ラジオ風UI */
.choice-item::before{
	content: '';
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--gray-3);
	transition: all 0.2s;
}

/* 選択状態 */
.choice-item:has(input:checked){
	background: var(--gray-4);
}

.choice-item:has(input:checked)::before{
	background: var(--bace-col);
}

/* チェックマーク */
.choice-item:has(input:checked)::after{
	content: '';
	position: absolute;
	left: 1.6rem;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
}

/* テキスト */
.choice-text {
	line-height: 1.6;
}

.choice-num{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:24px;
	height:24px;
	border-radius:50%;
	background:#2589d0;
	color:#fff;
	margin-right:6px;
}

.question-type {
	margin-top: 1rem;
	color: var(--gray-2);
}

.result-message{
	display: none;
	margin: 1rem 0;
	padding: 1rem;
	border-radius: var(--card-radius);
	text-align: center;
	font-weight: bold;
}

.result-message.show{
	display: block;
}

.result-message.correct{
	background: var(--bace-col-6);
	color: var(--bace-col);
}

.result-message.wrong{
	background: var(--red-4);
	color: var(--red);
}

.choice-item.correct{
	background: var(--bace-col-6);
	border-color: var(--bace-col-3);
}

.choice-item.wrong{
	background: var(--red-4);
	border-color: var(--red-3);
}

#show-answer{
	margin-top: 1.5rem;
	width: 100%;
	padding: 1rem;
	border: none;
	border-radius: var(--card-radius);
	background: var(--bace-col);
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: 0.2s;
}

#show-answer:hover{
	background: var(--bace-col-2);
}

.question-answer {
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: var(--card-radius);
	background: #fff;
	border: 1px solid var(--gray-3);
}

.question-answer h2 {
	margin-top: 0;
}

@media only screen and (max-width: 768px) {

	.question-area .question-no {
		padding: 0.6rem 1rem;
	}

	.choice-item{
		padding: 0.9rem;
	}

	#show-answer {
		padding: 0.9rem;
	}

}

/*question-nav*/
.question-nav{
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* 共通 */
.question-nav a{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
	border-radius: var(--card-radius);
	text-decoration: none;
	font-weight: bold;
	transition: all .2s ease;
	min-height: 60px;
}

/* 前 */
.question-nav .prev a{
	background: var(--gray-4);
	color: var(--gray);
	border: 1px solid var(--gray-3);
}

/* 次（強調） */
.question-nav .next a{
	background: var(--bace-col);
	color: #fff;
}

/* hover */
.question-nav a:hover{
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
	opacity: .95;
}

/* 無効時（リンクなし） */
.question-nav div:empty{
	display: none;
}

/* SP */
@media only screen and (max-width:768px){

	.question-nav{
		grid-template-columns: 1fr;
	}

	.question-nav a{
		padding: 1rem;
	}

}

/*exam-block*/
/* ===============================
試験ブロック
=============================== */
.exam-block{
	margin-bottom: 2.5rem;
}

.exam-title{
	margin-bottom: 1rem;
	padding-left: .8rem;
	border-left: 4px solid var(--bace-col);
	font-weight: bold;
}

/* ===============================
問題リスト
=============================== */
.question-list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .75rem;
}

/* PCだけ横並び */
@media only screen and (min-width: 769px){
	.question-list{
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===============================
カード
=============================== */
.question-link{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .9rem 1rem;
	background: #fff;
	border: 1px solid var(--gray-3);
	border-radius: var(--card-radius);
	text-decoration: none;
	transition: .2s;
}

/* hover */
.question-link:hover{
	background: var(--gray-4);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ===============================
問題番号
=============================== */
.q-no{
	font-weight: bold;
	color: #fff;
	background: var(--bace-col);
	padding: .3rem .6rem;
	border-radius: 6px;
	white-space: nowrap;
}

/* ===============================
ジャンル
=============================== */
.q-genre{
	color: var(--gray);
	flex: 1;
}

@media only screen and (max-width: 768px){

	.question-link{
		flex-direction: column;
		align-items: flex-start;
		gap: .3rem;
	}

}