/*
 * あさぎChat の記事の部品（inc/acf-parts.php のショートコード）。
 *   比較表 [asagi_compare]・記事のボタン [asagi_cta]・サービスカード [asagi_card]・スクリーンショット [asagi_shots]・診断チャート [asagi_chart]・導入の3つ [asagi_pick]
 * 2026-10-28 に作り直した（ユーザー「pico.inc とデザインが同じすぎないように」）。下敷きはチャットの画面とロゴの吹き出し —
 * 角の丸い枠、浅葱色の見出し、丸いアイコン、あさぎのひと言は吹き出し、招待コードは桜色のチケット。ボタンは通常の角丸（2026-10-28 ユーザー判断）。
 * 比較表の並び（左にサービス・右端にボタン・スマホでは表のまま詰める）は 2026-10-18 の作りのまま。
 * SWELL は本文の表に枠線・余白・見出し行の塗りを付ける（.post_content th など）ので、.post_content を前に付けて上書きする。
 */

:is(.ac-compare, .ac-cta, .ac-card, .ac-shots, .ac-chart, .ac-pick) {
	--ac-ink: #12343b;          /* サイトの文字色（SWELL の color_text） */
	--ac-ink-2: #3d565c;
	--ac-ink-3: #5c7277;
	--ac-navy: #2c346e;         /* ロゴの「あさぎ」の紺 */
	--ac-main: #00a3af;         /* 浅葱色（SWELL の color_main） */
	--ac-main-2: #2bbdb7;
	--ac-main-ink: #007a83;
	--ac-mint: #8cd9d1;         /* あさぎの髪の色 */
	--ac-pale: #eaf7f7;
	--ac-pale-2: #f4fbfb;
	--ac-line: #d5ecea;
	--ac-line-2: #c3e3e0;
	--ac-sakura: #de8d9e;       /* 桜（あさぎのヘアピン・パーカーの紐） */
	--ac-sakura-ink: #b9466a;
	--ac-sakura-pale: #fdf1f4;
	--ac-bubble: 18px 18px 18px 5px; /* 吹き出しの形（左下の角だけ小さい）。あさぎのひと言と診断チャートの問いかけだけに使う */
	--ac-radius-btn: 12px;            /* ボタンは通常の角丸（2026-10-28 ユーザー「通常の角丸ボタンのほうが違和感はない」） */
	--ac-font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
	--ac-font-num: "Zen Maru Gothic", "Helvetica Neue", Arial, sans-serif;
	--ac-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ac-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ac-shadow: 0 6px 20px rgba(0, 122, 131, 0.08);
}

/* ---- 比較表 ---------------------------------------------------------------- */
/* 角の丸い白い枠に、浅葱色のグラデーションの見出し行。行の区切りは点線、偶数行は薄い浅葱色。 */

.post_content .ac-compare {
	margin-block: 1.6em 2em;
	overflow: hidden;
	border: 2px solid var(--ac-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ac-shadow);
}

.post_content .ac-compare__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 0.9375em;
	line-height: 1.6;
}

/* グラデーションは見出しの行に1枚だけ敷く。セルごとに塗ると、セルの境目で色が段になって線に見えた（2026-10-28 ユーザー指摘） */
.post_content .ac-compare__table thead tr {
	background: linear-gradient(90deg, var(--ac-main), var(--ac-main-2));
}

.post_content .ac-compare__table thead th {
	padding: 0.75em 0.9em;
	border: 0;
	background: none;
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 0.8125em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	white-space: nowrap;
}

.post_content .ac-compare__table tbody :is(th, td) {
	padding: 0.85em 0.9em;
	border: 0;
	border-bottom: 1px dashed var(--ac-line-2);
	background: none;
	text-align: left;
	vertical-align: middle;
}

.post_content .ac-compare__table tbody tr:last-child :is(th, td) {
	border-bottom: 0;
}

.post_content .ac-compare__table tbody tr:nth-child(even) {
	background: var(--ac-pale-2);
}

.post_content .ac-compare__table tbody td {
	color: var(--ac-ink-2);
	font-size: 0.9375em;
	/* 文は普通に折り、英数字の語は収まらないときだけ折る（break-word は列の最小幅を語の長さに保つ）。
	   前は keep-all＋anywhere で「13+（A／pp Stor／e）」は防げたが、#1 (166) の5列の表で括弧の前でしか折れず
	   「基本無料／（無料版は広告あり）・」のように細切れになった（2026-11-30） */
	word-break: normal;
	overflow-wrap: break-word;
}

.ac-compare__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* アイコンは丸く、浅葱色の細い輪で囲む（比較表・ボタン・カード・チャートで同じ形） */
:is(.ac-compare__icon, .ac-cta__icon, .ac-card__icon, .ac-chart__icon, .ac-pick__icon) {
	flex: none;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px var(--ac-mint);
	object-fit: cover;
}

.ac-compare__icon--text,
.ac-cta__icon--text,
.ac-card__icon--text,
.ac-chart__icon--text,
.ac-pick__icon--text {
	display: inline-grid;
	place-items: center;
	background: var(--ac-pale);
	color: var(--ac-main-ink);
	font-family: var(--ac-font-round);
	font-weight: 700;
}

.ac-compare__icon {
	width: 52px;
	height: 52px;
	font-size: 1.3rem;
}

.ac-compare__name {
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-weight: 700;
	line-height: 1.4;
	/* 名前の途中では折らない（タブレット幅で「ティキ／タ」「メルティ／ング」になった・2026-11-30）。
	   break-word は列の最小幅を名前の長さに保つので、列のほうが広がる。折るのは compare-table.php の <wbr>（「（」の前）だけ */
	word-break: keep-all;
	overflow-wrap: break-word;
}

.post_content .ac-compare__table .ac-compare__action {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

/* 右端のボタンは紺の吹き出し */
.post_content .ac-compare__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 0.6em 1.1em;
	border-radius: var(--ac-radius-btn);
	background: var(--ac-navy);
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 0.875em;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s var(--ac-ease);
}

.ac-compare__btn::after {
	content: "›";
	font-size: 1.25em;
	line-height: 1;
}

.post_content .ac-compare__btn:hover {
	background: var(--ac-main-ink);
	color: #fff;
}

.ac-compare__btn-short {
	display: none;
}

@media (max-width: 600px) {
	/* 表は本文と同じ幅に収める（2026-10-18）。左右のセルの余白はどちらの表も 8px にそろえる。 */
	.post_content .ac-compare {
		border-radius: 16px;
	}

	.post_content .ac-compare__table {
		font-size: 0.8125em;
		line-height: 1.55;
	}

	.post_content .ac-compare__table :is(thead th:first-child, tbody th) {
		padding-left: 8px;
	}

	.post_content .ac-compare__table thead th {
		padding: 0.6em 0.45em;
		font-size: 0.9em;
		white-space: normal;
		word-break: keep-all; /* 見出しは単語の途中で折らない（「音声会／話」になった）。 */
		overflow-wrap: break-word;
	}

	.post_content .ac-compare__table tbody :is(th, td) {
		padding: 0.85em 0.45em;
		vertical-align: top;
	}

	.post_content .ac-compare__table tbody td {
		color: var(--ac-ink);
		font-size: 1em;
		text-wrap-style: pretty;
	}

	.ac-compare__service {
		width: 28%;
	}

	.ac-compare__who {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-align: center;
	}

	.ac-compare__icon {
		width: 40px;
		height: 40px;
		border-width: 2px;
		font-size: 1.1rem;
	}

	.ac-compare__name {
		font-size: 0.86em;
		line-height: 1.4;
		word-break: keep-all; /* 名前の途中では折らない。収まらないときだけ overflow-wrap で折る */
		overflow-wrap: anywhere;
	}

	.post_content .ac-compare__table tbody td.ac-compare__action {
		padding-right: 8px;
		vertical-align: middle;
	}

	.post_content .ac-compare__btn {
		padding: 0.6em 0.8em;
		font-size: 0.95em;
	}

	.ac-compare__btn::after {
		content: none;
	}

	.ac-compare__btn-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ac-compare__btn-short {
		display: inline;
	}
}

/* 無料の範囲・特典の列（[asagi_compare free="…"]）。見出しの数字は色だけ浅葱色に変える（大きさは変えない — 2026-10-28 ユーザー「このメディアは数値を大きくする強調はなしで、色だけ」）。内容はチェックの箇条書き。 */
.ac-compare--free .ac-compare__service {
	width: 26%;
}

.post_content .ac-compare__table tbody td.ac-compare__free {
	color: var(--ac-ink);
}

.post_content .ac-free__head {
	margin: 0;
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-size: 1.0625em;
	font-weight: 700;
	line-height: 1.4;
}

.ac-free__head b {
	color: var(--ac-main-ink);
	font-weight: 700;
}

.post_content .ac-free__list {
	display: grid;
	gap: 0.2em;
	margin: 0.45em 0 0;
	padding: 0;
	list-style: none;
}

.post_content .ac-free__list > li {
	position: relative;
	margin: 0;
	padding-left: 1.4em;
	/* 文なので普通に折る。表のセルの keep-all を受け継ぐと、括弧の後ろでしか折れず「「セーフ」／を切って…」と1行目が短くなった（2026-11-30） */
	word-break: normal;
	color: var(--ac-ink-2);
	font-size: 0.875em;
	line-height: 1.55;
}

/* 行頭は浅葱色のチェック（特徴の箇条書き） */
.ac-free__list > li::before {
	content: "";
	position: absolute;
	top: calc((1.55em - 1em) / 2);
	left: 0;
	width: 1em;
	height: 1em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.2 8.4 3 3 6.6-7' fill='none' stroke='%2300a3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* 招待・クーポンコードは桜色のチケット（比較表と記事のボタン）。コピーのボタンは assets/js/parts.js。 */
.post_content :is(.ac-free__code, .ac-cta__code) {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 0.6em;
	margin: 0.6em 0 0;
	padding: 0.35em 0.4em 0.35em 0.9em;
	border: 2px dashed var(--ac-sakura);
	border-radius: 12px;
	background: var(--ac-sakura-pale);
	color: var(--ac-sakura-ink);
	font-size: 0.8125em;
	font-weight: 700;
	line-height: 1.4;
}

.post_content :is(.ac-free__code, .ac-cta__code) code {
	padding: 0;
	background: none;
	color: var(--ac-ink);
	font-family: var(--ac-mono);
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.08em;
}

:is(.ac-free__code-copy, .ac-cta__code-copy) {
	padding: 0.3em 0.9em;
	border: 0;
	border-radius: 999px;
	background: var(--ac-sakura-ink);
	color: #fff;
	font: inherit;
	font-size: 0.9em;
	font-weight: 700;
	cursor: pointer;
}

:is(.ac-free__code-copy, .ac-cta__code-copy):hover {
	background: var(--ac-navy);
}

/* 項目の列が3つ以上の表（compare-table.php の ac-compare--scroll）は、スマホでは横にスクロールし、サービスの列を左に固定する */
.ac-compare__hint {
	display: none;
}

@media (max-width: 600px) {
	.post_content .ac-compare--scroll {
		overflow-x: auto;
		overscroll-behavior-x: contain;
	}

	.post_content .ac-compare--scroll .ac-compare__table {
		min-width: 600px;
	}

	/* 項目の列は 1 列 10em を下回らせない。#1 (166) の4列の表で列が 105px ほどに詰まり、
	   「16／0円」「M／aster Key」と語の途中で折れた（2026-11-30）。表は横にスクロールさせる。
	   文は普通に折り、英数字の語だけは収まらないときにしか折らない */
	.post_content .ac-compare--scroll .ac-compare__table tbody td:not(.ac-compare__action) {
		min-width: 10em;
		word-break: normal;
		overflow-wrap: break-word;
	}

	/* サービスの列も名前が途中で折れない幅にする（列の幅は名前のいちばん長い語で決まる。「MiraiMin／d」「キャラチ／ャット」になった） */
	.post_content .ac-compare--scroll .ac-compare__table tbody th {
		min-width: 96px;
	}

	.ac-compare--scroll .ac-compare__name {
		overflow-wrap: break-word;
	}

	.post_content .ac-compare--scroll .ac-compare__table :is(thead th:first-child, tbody th) {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 92px;
	}

	.post_content .ac-compare--scroll .ac-compare__table thead th:first-child {
		background: var(--ac-main);
	}

	.post_content .ac-compare--scroll .ac-compare__table tbody th {
		background: #fff;
		box-shadow: 4px 0 6px -4px rgba(18, 52, 59, 0.18);
	}

	.post_content .ac-compare--scroll .ac-compare__table tbody tr:nth-child(even) th {
		background: var(--ac-pale-2);
	}

	.ac-compare--scroll .ac-compare__hint {
		position: sticky;
		left: 0;
		display: block;
		padding: 0.45em 0.8em;
		border-top: 1px dashed var(--ac-line-2);
		color: var(--ac-ink-3);
		font-size: 0.75em;
		text-align: right;
	}

	.ac-compare--scroll .ac-compare__hint::after {
		content: " →";
	}
}

/* 無料の範囲の列の下に置くスマホのボタン。パソコンでは右端の列のボタンを使うので出さない。 */
.ac-compare__btn--sp {
	display: none;
}

@media (max-width: 600px) {
	.ac-compare--free .ac-compare__service {
		width: 32%;
	}

	.ac-compare--free :is(thead th:last-child, td.ac-compare__action) {
		display: none;
	}

	.post_content .ac-compare--free .ac-compare__table tbody td.ac-compare__free {
		padding-right: 8px;
	}

	.post_content .ac-compare__btn--sp {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 40px;
		margin-top: 0.75em;
		padding: 6px 12px;
		border-radius: var(--ac-radius-btn);
		background: var(--ac-navy);
		color: #fff;
		font-family: var(--ac-font-round);
		font-size: 0.95em;
		font-weight: 700;
		line-height: 1.4;
		text-decoration: none;
	}

	.ac-compare__btn--sp::after {
		content: "›";
		font-size: 1.2em;
		line-height: 1;
	}

	.post_content .ac-free__head {
		font-size: 1em;
	}

	.post_content .ac-free__list > li {
		font-size: 0.92em;
	}
}

/* ---- 記事のボタン ----------------------------------------------------------- */
/* あさぎ（ミニキャラ）がひと言を吹き出しで話し、その下に招待コード、浅葱色の吹き出しの形のボタン。
   文言は1行に収まる長さ（スマホで15文字くらいまで）にする。 */

.post_content .ac-cta {
	margin-block: 2em 2.6em;
	text-align: center;
}

.post_content .ac-cta__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	margin: 0 auto 0.6em;
	padding: 0;
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-size: 0.9375em;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.ac-cta__note-text {
	text-wrap: balance;
}

/* 招待コードはひと言とボタンの間（cta.php）。下のボタンとの間を少し空ける。 */
.post_content .ac-cta__code {
	margin: 0 0 0.9em;
}

.post_content .ac-cta__btn {
	--ac-cta-icon: 48px;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(100%, 480px);
	min-height: 70px;
	margin-inline: auto;
	padding: 10px 14px 10px 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ac-main), var(--ac-main-2));
	box-shadow: 0 4px 0 var(--ac-main-ink);
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition: transform 0.15s var(--ac-ease), box-shadow 0.15s var(--ac-ease);
}

.post_content .ac-cta__btn:hover {
	box-shadow: 0 1px 0 var(--ac-main-ink);
	color: #fff;
	transform: translateY(3px);
}

.ac-cta__btn:focus-visible {
	outline: 3px solid var(--ac-navy);
	outline-offset: 4px;
}

.ac-cta__icon {
	width: var(--ac-cta-icon);
	height: var(--ac-cta-icon);
	box-shadow: none;
	font-size: 1.2em;
}

.ac-cta__label {
	flex: 1;
	min-width: 0;
	word-break: keep-all; /* 折るのは cta.php が入れた <wbr> の位置だけ。収まらないときだけ overflow-wrap で折る */
	overflow-wrap: anywhere;
}

/* 右端は白い丸に紺の矢印 */
.ac-cta__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
}

.ac-cta__arrow::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: -3px;
	border-top: 2.5px solid var(--ac-navy);
	border-right: 2.5px solid var(--ac-navy);
	transform: rotate(45deg);
}

/* ボタンの下の小さい文（「※18歳以上の方が対象です」・cta.php）。2026-11-30 ユーザー「18歳以上はボタンの下に小さく」 */
.post_content .ac-cta__sub {
	margin: 0.7em 0 0;
	color: var(--ac-navy);
	font-size: 0.8125em;
	line-height: 1.5;
	opacity: 0.8;
	text-align: center;
}

/* カードの中の小さい形（[asagi_card button="yes"]） */
.post_content .ac-cta--compact {
	margin-block: 1em 0;
}

.post_content .ac-cta--compact .ac-cta__btn {
	--ac-cta-icon: 38px;
	min-height: 56px;
	font-size: 1em;
}

@media (max-width: 600px) {
	.post_content .ac-cta__note {
		font-size: 0.875em;
	}


	.post_content .ac-cta__btn {
		--ac-cta-icon: 42px;
		gap: 10px;
		min-height: 62px;
		padding: 8px 10px;
		font-size: 0.9375em;
	}

	/* 2行に折れても左に寄って見えないよう中央揃え。折る位置は cta.php の <wbr>（2026-10-18）。 */
	.ac-cta__label {
		text-align: center;
	}

	.ac-cta__arrow {
		width: 26px;
		height: 26px;
	}
}

/* ---- サービスカード ---------------------------------------------------------- */
/* アイコン・名前・一言・年齢の表示、特徴のバッジ、3つのタイル。各サービスの紹介の冒頭に置く。 */

.post_content .ac-card {
	margin-block: 1.4em 1.8em;
	padding: 18px 20px 20px;
	border: 2px solid var(--ac-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ac-shadow);
	scroll-margin-top: 90px; /* 診断チャートから飛んだとき、追従ヘッダーの下に隠れない */
}

.ac-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ac-card__icon {
	width: 64px;
	height: 64px;
	font-size: 1.6rem;
}

.ac-card__title {
	flex: 1;
	min-width: 0;
}

.post_content .ac-card__name {
	margin: 0;
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.35;
}

.post_content .ac-card__catch {
	margin: 0.15em 0 0;
	color: var(--ac-ink-2);
	font-size: 0.875em;
	line-height: 1.55;
}

.ac-card__age {
	flex: none;
	align-self: flex-start;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	background: #eef0f8;
	color: var(--ac-navy);
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.ac-card__age--adult {
	background: var(--ac-sakura-pale);
	color: var(--ac-sakura-ink);
}

.post_content .ac-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.post_content .ac-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	margin: 0;
	padding: 0.25em 0.75em 0.25em 0.6em;
	border: 1px solid var(--ac-line-2);
	border-radius: 999px;
	background: var(--ac-pale);
	color: var(--ac-main-ink);
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1.5;
}

.ac-badge__icon {
	width: 1.1em;
	height: 1.1em;
}

.post_content .ac-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	margin: 14px 0 0;
}

.ac-card__fact {
	padding: 0.6em 0.85em;
	border-radius: 14px;
	background: var(--ac-pale-2);
}

.post_content .ac-card__fact dt {
	margin: 0;
	color: var(--ac-main-ink);
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.5;
}

.post_content .ac-card__fact dd {
	margin: 0.1em 0 0;
	color: var(--ac-ink);
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.post_content .ac-card {
		padding: 14px 14px 16px;
		border-radius: 16px;
	}

	.ac-card__head {
		flex-wrap: wrap;
		gap: 10px 12px;
	}

	.ac-card__icon {
		width: 52px;
		height: 52px;
	}

	.post_content .ac-card__name {
		font-size: 1.05em;
	}

	/* 年齢の表示は名前の行に入らないので、カードの右上ではなく次の行の頭に回す */
	.ac-card__age {
		order: 3;
	}

	.post_content .ac-card__facts {
		grid-template-columns: 1fr;
	}
}

/* ---- スクリーンショット ------------------------------------------------------ */
/* pico.inc の pl-shot--sp と同じ見せ方: 淡い浅葱色の地に紺のふちのスマホを置き、画面の上半分だけ見せて下側は地の枠で切る。
   画像は撮ったまま（縮小と上の半分の切り出しだけ）で、枠と地はここで付ける。 */

.post_content .ac-shots {
	margin-block: 1.4em 1.8em;
}

.ac-shots__panel {
	display: flex;
	justify-content: center;
	gap: 18px;
	overflow: hidden;
	padding: 26px 16px 0;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--ac-pale) 0%, #f6fcfc 100%);
}

.ac-shots__phone {
	box-sizing: content-box;
	flex: none;
	width: min(70%, 330px);
	aspect-ratio: 390 / 440; /* スマホの画面（390×844）の上の約半分 */
	overflow: hidden;
	border: 8px solid var(--ac-navy);
	border-bottom: 0;
	border-radius: 36px 36px 0 0;
	background: #fff;
	box-shadow: 0 10px 28px rgba(44, 52, 110, 0.18);
}

.ac-shots--multi .ac-shots__phone {
	width: min(44%, 250px);
}

.post_content .ac-shots__screen {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	object-position: top;
}

.post_content .ac-shots__note {
	margin: 0.5em 0 0;
	color: var(--ac-ink-3);
	font-size: 0.75em;
	text-align: center; /* スマホの真下に置く（2026-10-28 ユーザー「出典は中央揃え」） */
}

@media (max-width: 600px) {
	.ac-shots__panel {
		gap: 10px;
		padding: 20px 12px 0;
		border-radius: 14px;
	}

	.ac-shots__phone {
		width: min(80%, 300px);
		border-width: 6px;
		border-radius: 30px 30px 0 0;
	}

	.ac-shots--multi .ac-shots__phone {
		width: 46%;
	}
}

/* ---- 診断チャート ------------------------------------------------------------ */
/* あさぎが問いかけ、Q1 から順に「はい」なら右の札のサービスへ、「いいえ」なら下の質問へ進む一本道。 */

.post_content .ac-chart {
	margin-block: 1.6em 2em;
	padding: 20px;
	border: 2px solid var(--ac-line);
	border-radius: 24px;
	background: linear-gradient(180deg, var(--ac-pale), #fff 60%);
}

.ac-chart__lead {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.ac-chart__asagi {
	flex: none;
	width: 64px;
	height: 64px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px var(--ac-mint);
}

.post_content .ac-chart__title {
	margin: 0 0 6px;
	padding: 0.55em 1.1em;
	border: 2px solid var(--ac-mint);
	border-radius: var(--ac-bubble);
	background: #fff;
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.5;
}

.post_content .ac-chart__steps {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.post_content .ac-chart__step {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px 14px;
	margin: 0;
	padding: 14px 16px;
	border: 2px solid var(--ac-line);
	border-radius: 18px;
	background: #fff;
}

.post_content .ac-chart__q {
	margin: 0;
	color: var(--ac-navy);
	font-weight: 700;
	line-height: 1.55;
}

.ac-chart__qno {
	display: inline-block;
	margin-right: 0.55em;
	padding: 0.05em 0.6em;
	border-radius: 999px;
	background: var(--ac-navy);
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 0.8em;
	vertical-align: 0.08em;
}

.ac-chart__answer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ac-chart__yes {
	padding: 0.15em 0.65em;
	border-radius: 999px;
	background: var(--ac-main);
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	white-space: nowrap;
}

.post_content .ac-chart__pick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px 5px 5px;
	border: 2px solid var(--ac-mint);
	border-radius: var(--ac-radius-btn);
	background: var(--ac-pale);
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.15s var(--ac-ease);
}

.post_content .ac-chart__pick:hover {
	background: #d7f1ef;
	color: var(--ac-navy);
}

.ac-chart__pick::after {
	content: "›";
	margin-left: 2px;
	color: var(--ac-main-ink);
	font-size: 1.2em;
}

.ac-chart__icon {
	width: 36px;
	height: 36px;
	border-width: 2px;
	box-shadow: none;
	font-size: 1rem;
}

/* 「いいえ」は箱の下、次の質問へつなぐ線の上の札（箱の高さに入れない） */
.post_content .ac-chart__step {
	position: relative;
}

.post_content .ac-chart__no {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	left: 0;
	height: 38px;
	margin: 0;
	text-align: center;
	pointer-events: none;
}

.ac-chart__no::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	border-left: 2px dashed var(--ac-line-2);
}

.ac-chart__no span {
	position: relative;
	top: 50%;
	display: inline-block;
	padding: 0.05em 0.75em;
	border: 1.5px solid var(--ac-line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ac-ink-3);
	font-size: 0.75em;
	font-weight: 700;
	transform: translateY(-50%);
}

.ac-chart__no span::after {
	content: " ↓";
}

.post_content .ac-chart__step + .ac-chart__step {
	margin-top: 40px;
}

.post_content .ac-chart__step--last {
	border-style: dashed;
	background: var(--ac-pale-2);
}

.post_content .ac-chart__step--last .ac-chart__q {
	color: var(--ac-ink-2);
	font-size: 0.9375em;
}

@media (max-width: 600px) {
	.post_content .ac-chart {
		padding: 14px;
		border-radius: 18px;
	}

	.ac-chart__asagi {
		width: 52px;
		height: 52px;
	}

	.post_content .ac-chart__title {
		font-size: 0.95em;
	}

	.post_content .ac-chart__step {
		grid-template-columns: 1fr;
		padding: 12px 12px 14px;
	}

	.post_content .ac-chart__q {
		font-size: 0.95em;
	}

	.ac-chart__answer {
		flex-wrap: wrap;
	}
}

/* ---- 導入の「目的で選ぶならこの3つ」 ------------------------------------------- */
/* nekono-tami の nt-pick と同じ組み（札・アイコン・名前・理由・ボタン）を、あさぎChat の形（角の丸い枠・浅葱色・丸いアイコン）で。
 * パソコンは3列で高さをそろえ、ボタンは下にそろえる。スマホは1列で、札の下に「アイコン｜名前・理由・ボタン」（2026-11-30）。 */

.post_content .ac-pick {
	margin-block: 1.8em 2.2em;
	color: var(--ac-ink);
}

.post_content .ac-pick__title {
	margin: 0 0 14px;
	font-family: var(--ac-font-round);
	font-size: 1.0625em;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	color: var(--ac-navy);
}

.ac-pick__title span {
	display: inline-block;
	padding: 0 0.5em 5px;
	background: linear-gradient(90deg, var(--ac-main), var(--ac-main-2)) left bottom / 100% 3px no-repeat;
}

.post_content .ac-pick__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac-pick--n2 .ac-pick__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-pick--n1 .ac-pick__list {
	grid-template-columns: minmax(0, 320px);
	justify-content: center;
}

.post_content .ac-pick__card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid var(--ac-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--ac-shadow);
}

.post_content .ac-pick__card::before {
	content: none; /* SWELL の箇条書きの点を出さない */
}

.post_content .ac-pick__label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.6em;
	margin: 0;
	padding: 8px 12px;
	background: linear-gradient(90deg, var(--ac-main), var(--ac-main-2));
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 0.875em;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.ac-pick__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 16px 12px 14px;
	text-align: center;
}

.ac-pick__icon {
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	font-size: 1.6rem;
}

.ac-pick__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	width: 100%;
}

.post_content .ac-pick__name {
	margin: 0;
	color: var(--ac-navy);
	font-family: var(--ac-font-round);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
}

.post_content .ac-pick__reason {
	margin: 6px 0 12px;
	color: var(--ac-ink-2);
	font-size: 0.8125em;
	line-height: 1.6;
}

.ac-pick__reason span {
	display: inline-block; /* 1行ずつの塊。収まらないときだけ中で折る */
}

.post_content .ac-pick__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	margin-top: auto;
	padding: 0.5em 0.9em;
	border-radius: var(--ac-radius-btn);
	background: #0096a1;
	box-shadow: 0 3px 0 #00727b;
	color: #fff;
	font-family: var(--ac-font-round);
	font-size: 0.875em;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: transform 0.15s var(--ac-ease), box-shadow 0.15s var(--ac-ease);
}

.ac-pick__btn::after {
	content: "›";
	font-size: 1.25em;
	line-height: 1;
}

.post_content .ac-pick__btn:hover {
	box-shadow: 0 1px 0 #00727b;
	color: #fff;
	transform: translateY(2px);
}

.ac-pick__btn:focus-visible {
	outline: 3px solid var(--ac-navy);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.post_content .ac-pick__list,
	.ac-pick--n2 .ac-pick__list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.post_content .ac-pick__card {
		border-radius: 16px;
	}

	.post_content .ac-pick__label {
		justify-content: flex-start;
		min-height: 0;
		padding: 7px 14px;
		text-align: left;
	}

	.ac-pick__body {
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
		padding: 12px 14px 14px;
		text-align: left;
	}

	.ac-pick__icon {
		width: 60px;
		height: 60px;
		margin: 2px 0 0;
	}

	.post_content .ac-pick__reason {
		margin: 4px 0 10px;
	}

	.post_content .ac-pick__btn {
		min-height: 40px;
	}
}
