/* ============================================================
   記事本文の装飾 / onopoint.jp
   scope: onp-art__ 接頭辞のみ。SWELL標準ブロックには干渉しません
   セクションを追加するたびに、このファイルへ追記します
   ============================================================ */

:root {
	--art-ink:      #17233d;
	--art-ink-sub:  #5a677f;
	--art-line:     #dfe4ee;
	--art-wash:     #f4f7fb;
	--art-cta:      #14855f;
	--art-cta-dark: #0c6446;
	--art-warn:     #b5801c;
	--art-ng:       #b3413a;
}

/* ---------- PR表記 ---------- */

.onp-art__pr {
	margin: 0 0 1.2em !important;
	font-size: 11px !important;
	line-height: 1.5;
	letter-spacing: .04em;
	color: #8a94a6;
}

/* ---------- h2直下の画像 ---------- */

.onp-art__h2img {
	margin: 1.2em 0 1.6em !important;
}

.onp-art__h2img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.onp-art__h2img figcaption,
.onp-art__h2img .wp-element-caption {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--art-ink-sub);
	text-align: left;
}

/* ---------- この記事でわかること ---------- */

.onp-art__points {
	margin: 2em 0;
	padding: 18px 20px 20px;
	background: var(--art-wash);
	border: 1px solid var(--art-line);
	border-radius: 12px;
}

.onp-art__points-ttl {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px !important;
	font-size: 15px !important;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--art-ink);
}

.onp-art__points-ttl::before {
	content: "";
	width: 5px;
	height: 18px;
	background: var(--art-ink);
	border-radius: 99px;
}

.onp-art__points-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.onp-art__points-list li {
	position: relative;
	margin: 0 0 6px !important;
	padding: 0 0 0 26px !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.75;
	list-style: none !important;
}

.onp-art__points-list li:last-child { margin-bottom: 0 !important; }

.onp-art__points-list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .55em;
	width: 13px;
	height: 7px;
	border-left: 2.5px solid var(--art-cta);
	border-bottom: 2.5px solid var(--art-cta);
	transform: rotate(-45deg);
}

/* ---------- 調査概要 ---------- */

.onp-art__survey {
	margin: 1.6em 0 2em;
	padding: 14px 16px 15px;
	background: #fff;
	border: 1px solid var(--art-line);
	border-left: 4px solid var(--art-ink);
	border-radius: 0 8px 8px 0;
}

.onp-art__survey-ttl {
	margin: 0 0 8px !important;
	font-size: 11.5px !important;
	font-weight: 800;
	letter-spacing: .14em;
	color: var(--art-ink-sub);
}

.onp-art__survey-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.onp-art__survey-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 !important;
	padding: 5px 0 !important;
	border-bottom: 1px dashed var(--art-line);
	font-size: 13.5px;
	line-height: 1.7;
	list-style: none !important;
}

.onp-art__survey-list li:last-child { border-bottom: 0; }

.onp-art__survey-list li strong {
	flex: 0 0 auto;
	min-width: 6.5em;
	font-size: 12px;
	font-weight: 800;
	color: var(--art-ink-sub);
}

/* ---------- 確認する数字 ---------- */

.onp-art__nums {
	margin: 1.8em 0;
	padding: 4px 0;
}

.onp-art__nums-list {
	list-style: none !important;
	counter-reset: onpnum;
	margin: 0 !important;
	padding: 0 !important;
}

.onp-art__nums-list li {
	position: relative;
	counter-increment: onpnum;
	margin: 0 0 8px !important;
	padding: 12px 14px 12px 54px !important;
	background: #fff;
	border: 1px solid var(--art-line);
	border-radius: 10px;
	list-style: none !important;
	line-height: 1.6;
}

.onp-art__nums-list li:last-child { margin-bottom: 0 !important; }

.onp-art__nums-list li::before {
	content: counter(onpnum);
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	background: var(--art-ink);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 900;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.onp-art__nums-list li strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
}

.onp-art__nums-list li span {
	display: block;
	margin-top: 1px;
	font-size: 12.5px;
	color: var(--art-ink-sub);
}

/* ---------- 手順（SWELLステップを使わない場合） ---------- */

.onp-art__flow {
	list-style: none !important;
	counter-reset: onpflow;
	margin: 1.6em 0 !important;
	padding: 0 !important;
}

.onp-art__flow li {
	position: relative;
	counter-increment: onpflow;
	margin: 0 !important;
	padding: 0 0 20px 42px !important;
	list-style: none !important;
	line-height: 1.6;
}

.onp-art__flow li::before {
	content: counter(onpflow);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: var(--art-cta);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 900;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.onp-art__flow li::after {
	content: "";
	position: absolute;
	left: 12.5px;
	top: 30px;
	bottom: 4px;
	width: 2px;
	background: #cfe0d8;
}

.onp-art__flow li:last-child { padding-bottom: 0 !important; }
.onp-art__flow li:last-child::after { display: none; }

.onp-art__flow li strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
}

.onp-art__flow li span {
	display: block;
	margin-top: 1px;
	font-size: 13px;
	color: var(--art-ink-sub);
}

/* ---------- 注意ボックス ---------- */

.onp-art__warn {
	margin: 1.8em 0;
	padding: 15px 18px 16px;
	background: #fdf6e8;
	border: 1px solid #ecd9a8;
	border-left: 4px solid #d9a83a;
	border-radius: 0 10px 10px 0;
}

.onp-art__warn-ttl {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px !important;
	font-size: 13.5px !important;
	font-weight: 800;
	letter-spacing: .04em;
	color: #5c4713;
}

.onp-art__warn-ttl::before {
	content: "!";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	background: var(--art-warn);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 900;
	color: #fff;
}

.onp-art__warn p:not(.onp-art__warn-ttl) {
	margin: 0 !important;
	font-size: 14px;
	line-height: 1.85;
	color: #4a3a15;
}

/* ---------- 質問ボックス ---------- */

.onp-art__ask {
	margin: 1.8em 0;
	padding: 16px 18px 17px;
	background: #f1f9f5;
	border: 1px solid #bfe0d0;
	border-radius: 12px;
}

.onp-art__ask-ttl {
	margin: 0 0 8px !important;
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: .1em;
	color: var(--art-cta-dark);
}

.onp-art__ask-quote {
	margin: 0 0 10px !important;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #cfe5da;
	border-radius: 8px;
	font-size: 16px !important;
	font-weight: 800;
	line-height: 1.7;
	color: var(--art-ink);
}

.onp-art__ask p:not(.onp-art__ask-ttl):not(.onp-art__ask-quote) {
	margin: 0 !important;
	font-size: 14px;
	line-height: 1.85;
}

/* ---------- 当てはまったら止まるリスト ---------- */

.onp-art__caution {
	list-style: none !important;
	margin: 1.6em 0 !important;
	padding: 0 !important;
}

.onp-art__caution li {
	position: relative;
	margin: 0 0 6px !important;
	padding: 10px 14px 10px 40px !important;
	background: #fdf3f2;
	border: 1px solid #f0d3d0;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.7;
	list-style: none !important;
}

.onp-art__caution li:last-child { margin-bottom: 0 !important; }

.onp-art__caution li::before {
	content: "×";
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	color: var(--art-ng);
}

/* ---------- チェックリスト ---------- */

.onp-art__check {
	list-style: none !important;
	margin: 1.5em 0 !important;
	padding: 0 !important;
}

.onp-art__check li {
	position: relative;
	margin: 0 !important;
	padding: 9px 0 9px 30px !important;
	border-bottom: 1px dashed var(--art-line);
	font-size: 14px;
	line-height: 1.7;
	list-style: none !important;
}

.onp-art__check li:last-child { border-bottom: 0; }

.onp-art__check li::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 1.05em;
	width: 13px;
	height: 7px;
	border-left: 2.5px solid var(--art-cta);
	border-bottom: 2.5px solid var(--art-cta);
	transform: rotate(-45deg);
}

.onp-art__check li strong {
	display: inline-block;
	min-width: 6.6em;
	margin-right: 6px;
	font-weight: 800;
}

/* ---------- 表 ---------- */

.onp-art__table table {
	font-variant-numeric: tabular-nums;
}

.onp-art__table th {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
}

.onp-art__table td {
	font-size: 14.5px;
	font-weight: 700;
	text-align: center;
}

.onp-art__table td:first-child {
	font-weight: 800;
}

.onp-art__cell-diff {
	color: var(--art-cta-dark);
	font-weight: 900 !important;
}

.onp-art__cell-ok  { color: var(--art-cta-dark); font-weight: 900 !important; }
.onp-art__cell-ng  { color: var(--art-ng);       font-weight: 900 !important; }
.onp-art__cell-ask { color: #8a94a6; font-weight: 700 !important; font-size: 13px; }

/* 手数料表は説明列を左寄せ */
.onp-art__table--fee td { text-align: left; }
.onp-art__table--fee th:first-child,
.onp-art__table--fee td:first-child { width: 34%; }

/* 業者名の列は左寄せ */
.onp-art__table--rate td:first-child { text-align: left; }
.onp-art__table--rate th:first-child { width: 32%; }

.onp-art__table figcaption,
.onp-art__table .wp-element-caption {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--art-ink-sub);
}

/* ---------- よくある質問（アコーディオン） ---------- */

.onp-art__faqlist {
	margin: 1.6em 0 !important;
	border: 1px solid var(--art-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.onp-art__faq {
	margin: 0 !important;
	border-bottom: 1px solid var(--art-line);
}

.onp-art__faqlist .onp-art__faq:last-child { border-bottom: 0; }

.onp-art__faq > summary {
	position: relative;
	display: block;
	padding: 15px 46px 15px 42px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--art-ink);
	cursor: pointer;
	list-style: none;
	transition: background .12s ease;
}

.onp-art__faq > summary::-webkit-details-marker { display: none; }
.onp-art__faq > summary::marker { content: ""; }

.onp-art__faq > summary:hover { background: #f7f9fc; }

/* Q マーク */
.onp-art__faq > summary::before {
	content: "Q";
	position: absolute;
	left: 14px;
	top: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: var(--art-ink);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	color: #fff;
}

/* 開閉のプラス・マイナス */
.onp-art__faq > summary::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 22px;
	width: 13px;
	height: 13px;
	background:
		linear-gradient(var(--art-ink-sub), var(--art-ink-sub)) center / 100% 2px no-repeat,
		linear-gradient(var(--art-ink-sub), var(--art-ink-sub)) center / 2px 100% no-repeat;
	transition: transform .18s ease;
}

.onp-art__faq[open] > summary {
	background: #f4f7fb;
}

.onp-art__faq[open] > summary::after {
	background: linear-gradient(var(--art-cta), var(--art-cta)) center / 100% 2px no-repeat;
	transform: rotate(180deg);
}

/* 回答 */
.onp-art__faq > *:not(summary) {
	margin: 0 !important;
	padding: 0 18px 16px 42px;
	font-size: 14px;
	line-height: 1.9;
	color: #34405a;
}

.onp-art__faq > p:not(summary) {
	position: relative;
}

.onp-art__faq > p:not(summary)::before {
	content: "A";
	position: absolute;
	left: -28px;
	top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #eef2fa;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	color: var(--art-cta-dark);
}

/* 回答内の表 */
.onp-art__faq .wp-block-table {
	padding: 0 18px 16px 42px;
}

.onp-art__faq .wp-block-table table { margin: 0; }

/* ---------- ランキングへ戻る導線 ---------- */

.onp-art__backlink {
	margin: 1.6em 0 0 !important;
	text-align: center;
}

.onp-art__backlink a {
	display: inline-block;
	padding: 13px 30px;
	background: var(--art-ink);
	border-radius: 99px;
	font-size: 15px;
	font-weight: 800;
	color: #fff !important;
	text-decoration: none !important;
}

.onp-art__backlink a::after {
	content: "↑";
	margin-left: 7px;
	font-size: 13px;
}

/* ---------- スマホ ---------- */

@media (max-width: 600px) {
	.onp-art__points { padding: 15px 16px 16px; }
	.onp-art__points-list li { font-size: 14px; }
	.onp-art__nums-list li { padding: 11px 13px 11px 48px !important; }
	.onp-art__nums-list li strong { font-size: 14.5px; }
	.onp-art__ask-quote { font-size: 14.5px !important; }
	.onp-art__table td { font-size: 13px; }
	.onp-art__table th { font-size: 11.5px; }
	.onp-art__table--rate td { font-size: 12.5px; }
	.onp-art__check li strong { display: block; min-width: 0; margin-right: 0; }
	.onp-art__faq > summary { padding: 13px 40px 13px 38px; font-size: 14px; }
	.onp-art__faq > summary::before { left: 12px; top: 13px; }
	.onp-art__faq > summary::after { right: 15px; top: 20px; }
	.onp-art__faq > *:not(summary) { padding: 0 15px 14px 38px; font-size: 13.5px; }
	.onp-art__faq > p:not(summary)::before { left: -26px; }
	.onp-art__faq .wp-block-table { padding: 0 12px 14px 12px; }
	.onp-art__survey-list li strong { min-width: 100%; }
}
