/*
 * faq-embed.css
 * 商品ページに埋め込む「よくあるご質問」用（faq-embed.php の出力に対応）
 * レイアウト・色・サイズは /faq/css/faq.css のFAQ本体（h3[id] と直後の p）に合わせています。
 * 背景は白（埋め込み先のページ背景）を想定し、枠の背景色は付けていません。
 * 設置場所：/faq/css/faq-embed.css
 */

.faq-embed-wrap {
	margin: 24px 0;
	box-sizing: border-box;
}

/* 見出しは h2h3.css の h2.smart_blue を使用（このCSSでは指定しない） */

/* 1問ごとの枠 */
.faq-embed-item {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

/* 質問（FAQページの h3[id] と同じ） */
.faq-embed-q {
	position: relative;
	display: block;
	margin: 14px 0 6px;
	padding: 3px 34px 3px 34px;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.4;
	color: #162d73;
	cursor: pointer;
	list-style: none;
}

.faq-embed-q::-webkit-details-marker {
	display: none;
}

/* 「Q.」の文字を隠してアイコンに置き換え（CSSが読めない環境では「Q.」が表示される） */
.faq-embed-qmark {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.faq-embed-q::before {
	content: 'Q';
	position: absolute;
	left: 0;
	top: 1px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #1e407f;
	border-radius: 50%;
}

/* 右端の開閉矢印 */
.faq-embed-q::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 6px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid #1e407f;
	border-bottom: 2px solid #1e407f;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.faq-embed-item[open]:not(.is-closing) .faq-embed-q::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

/* 回答（外枠：開閉アニメーション用。FAQページと同じ 0.25秒）
   閉じているときも点線の区切りが見えるのはFAQページと同じ */
.faq-embed-a {
	margin: 0 0 8px;
	overflow: hidden;
	border-bottom: dotted 1px #c8d5dd;
	transition: max-height .25s ease;
}

.faq-embed-item:not([open]) .faq-embed-q {
	margin-bottom: 0;
}

.faq-embed-item:not([open]) {
	border-bottom: dotted 1px #c8d5dd;
	padding-bottom: 6px;
	margin-bottom: 8px;
}

/* 回答（内側：FAQページの p と同じ） */
.faq-embed-a-in {
	position: relative;
	padding: 6px 6px 10px 34px;
	font-size: 13.5px;
	line-height: 1.6;
}

.faq-embed-a-in::before {
	content: 'A';
	position: absolute;
	left: 0;
	top: 6px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #ff5517;
	border-radius: 50%;
}

.faq-embed-a a {
	color: #0066c0;
	text-decoration: underline;
}

/* 「その他のご質問を見る」 */
.faq-embed-more {
	margin: 12px 0 4px;
	text-align: right;
	font-size: 13px;
}

.faq-embed-more a {
	color: #0066c0;
	text-decoration: underline;
}

.faq-embed-more a::after {
	content: ' ›';
}
