/**
 * andW FAQ Engine Frontend Styles
 */

.andw-faq-engine {
	margin-bottom: 2em;
}

.andw-faq-category-title {
	margin-top: 1.5em;
	margin-bottom: 1em;
	font-size: 1.2em;
	font-weight: bold;
}

.andw-faq-read-more {
	text-align: right;
	margin-top: 0.2em;
}

.andw-faq-toggle-btn {
	cursor: pointer;
}

/* Ensure hidden items are hidden by default to prevent FOUC */
.andw-faq-item-hidden {
	display: none;
}


.andw-faq-engine .andw-faq-category-title {
	padding: 0 0 0 16px;
	border-left: solid 2px #c40707;
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 2em 0 0;
	position: relative;
}

.andw-faq-engine .c-faq {
	color: rgb(85, 85, 85);
	font-size: 15px;
	margin: 0;
	margin-left: 1rem;
}

.andw-faq-engine .c-faq .c-faq__item {
	border-bottom: none;
	border-top: 1px solid #cfcfcf;
	padding-top: 0.2em;
	padding-bottom: 0.5em;
}

.c-faq .c-faq__item:first-child {
	border-top: none;
}

/* FAQアイテム間の区切り線（2番目以降） */
.andw-faq-engine .c-faq+.c-faq {
	border-bottom: 1px solid hsla(0, 0%, 78%, 0.5);
	padding-top: 1em;
	margin-top: 0.4em;
	padding-bottom: 0.3rem;
}

.andw-faq-engine .c-faq .c-faq__q {
	color: #555;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
	padding: 1em 0.5em 0.5em 3em;
	position: relative;
}

/* Q アイコン */
.andw-faq-engine .c-faq .c-faq__q::before {
	content: "Q";
	display: block;
	font-family: Arial, sans-serif;
	font-weight: 400;
	background-color: #c7241b;
	color: rgb(255, 255, 255);
	border-radius: 10%;
	width: 2em;
	line-height: 2;
	text-align: center;
	position: absolute;
	left: 0;
	top: 0.75em;
}

.andw-faq-engine .c-faq .c-faq__q .c-faq__icon {
	color: inherit;
}

.andw-faq-engine .c-faq .c-faq__q .c-faq__text {
	color: inherit;
}

.andw-faq-engine .c-faq .c-faq__a {
	color: #333;
	font-size: 95%;
	line-height: 1.5;
	padding: 0.5em 0.5em 0.5em 3em;
	position: relative;
	margin-left: 0;
}

/* A アイコン */
.andw-faq-engine .c-faq .c-faq__a::before {
	content: "A";
	display: block;
	font-family: Arial, sans-serif;
	background-color: #62a37c;
	color: rgb(255, 255, 255);
	border-radius: 10%;
	width: 2em;
	line-height: 2;
	text-align: center;
	position: absolute;
	left: 0;
	top: 0.75em;
}

.andw-faq-engine .c-faq .c-faq__a .c-faq__icon {
	color: inherit;
}

.andw-faq-engine .c-faq .c-faq__a .c-faq__text {
	color: inherit;
}

.andw-faq-toggle-btn {
	background: #e8e8e8;
	color: #333;
	border: 1px solid #9b9b9b;
	border-radius: 4px;
	padding: 6px 16px;
	font-size: 11px;
	font-family: sans-serif;
	cursor: pointer;
	box-shadow: none;
	letter-spacing: 0.5px;
	font-weight: normal;
}

.andw-faq-toggle-btn::before {
	content: "▼ ";
}

.andw-faq-toggle-btn[data-action="collapse"]::before {
	content: "▲ ";
}

/* 共通スタイル */
[class^="aw-qam-"] {
	background-repeat: no-repeat;
	background-position: bottom left;
	padding-bottom: 0.1em;
}

.aw-qam-red {
	background-image: linear-gradient(transparent 70%, rgba(220, 53, 53, 0.4) 50%);
}

.aw-qam-blue {
	background-image: linear-gradient(transparent 70%, rgba(53, 122, 220, 0.4) 50%);
}

.aw-qam-green {
	background-image: linear-gradient(transparent 70%, rgba(53, 180, 100, 0.4) 50%);
}

.aw-qam-yellow {
	background-image: linear-gradient(transparent 70%, rgba(255, 210, 50, 0.6) 50%);
}