/* Choice Ad Selector - フロント v1.1.0 */
.cas-selector {
	margin: 1.5em 0;
	border: 2px solid #3f8fd2;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---- ヘッダー(検索ツールらしさ) ---- */
.cas-header {
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #3f8fd2, #2c6fae);
	color: #fff;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 1.02em;
	line-height: 1.5;
}

.cas-header-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 50%;
}

.cas-body {
	padding: 14px 14px 18px;
	background: #f5f9fd;
}

.cas-guide {
	font-size: 0.85em;
	color: #556;
	margin: 0 0 10px;
}

/* ---- 選択肢(全幅・縦並び) ---- */
.cas-choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 1.2em;
}

.cas-choice {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	border: 2px solid #3f8fd2;
	background: #fff;
	color: #2c6fae;
	border-radius: 8px;
	padding: 13px 16px;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, transform 0.1s;
	box-shadow: 0 2px 0 rgba(63, 143, 210, 0.35);
}

.cas-choice:hover {
	background: #eaf4fc;
}

.cas-choice:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 rgba(63, 143, 210, 0.35);
}

.cas-choice.is-active {
	background: #3f8fd2;
	color: #fff;
}

.cas-choice:focus-visible {
	outline: 3px solid rgba(63, 143, 210, 0.4);
	outline-offset: 2px;
}

.cas-choice-arrow {
	flex-shrink: 0;
	font-size: 0.8em;
	opacity: 0.7;
}

.cas-choice.is-active .cas-choice-arrow {
	transform: rotate(90deg);
	opacity: 1;
}

/* ---- 広告カード ---- */
.cas-ad {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	padding: 18px 16px;
	margin-bottom: 1.2em;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cas-ad:last-child {
	margin-bottom: 0;
}

.cas-ad-name {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 0.6em;
	padding-left: 10px;
	border-left: 4px solid #3f8fd2;
}

.cas-ad-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.cas-ad-image {
	margin-bottom: 0.6em;
}

/* 公式URL(画像の下) */
.cas-ad-official {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0.8em;
	font-size: 0.95em;
	line-height: 1.5;
	min-width: 0;
}

.cas-ad-official-badge {
	flex-shrink: 0;
	display: inline-block;
	background: #f26522;
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	border-radius: 3px;
	padding: 3px 10px;
}

.cas-ad-official .jsl-custom-label {
	min-width: 0;
	overflow: hidden;
}

.cas-ad-official a {
	color: #1a0dab;
	text-decoration: underline;
	word-break: break-all;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* キャンペーン */
.cas-ad-campaign {
	background: #fff7e6;
	border: 1px dashed #e6a23c;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 0.8em;
	font-size: 0.92em;
}

.cas-ad-campaign p {
	margin: 0.3em 0 0;
}

.cas-ad-campaign-badge {
	display: inline-block;
	background: #e6a23c;
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	border-radius: 3px;
	padding: 2px 8px;
}

/* テーブル */
.cas-ad-table {
	margin-bottom: 0.8em;
	overflow-x: auto;
}

.cas-ad-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.cas-ad-table th,
.cas-ad-table td {
	border: 1px solid #e0e0e0;
	padding: 8px 10px;
	text-align: left;
}

.cas-ad-table th {
	background: #f5f8fa;
	white-space: nowrap;
	width: 32%;
}

/* ---- テーマ側 .jump(下線・青色)の打ち消し ---- */
/* 計測用spanに .jump が付くため、画像とボタンでは下線・色を無効化する。
   「公式」URLの下線はデザインとして残す。 */
.cas-ad-image .jump,
.cas-ad-button-wrap .jump {
	text-decoration: none !important;
	color: inherit !important;
}

.cas-ad-image .jump:hover,
.cas-ad-button-wrap .jump:hover {
	color: inherit !important;
}

/* ボタン */
.cas-ad-button-wrap {
	text-align: center;
	margin: 0;
}

.cas-ad-button {
	display: block;
	max-width: 420px;
	margin: 0 auto;
	background: linear-gradient(180deg, #ff8a3d, #f26522);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	text-align: center;
	padding: 14px 20px;
	border-radius: 999px;
	box-shadow: 0 3px 0 #c94f14;
	transition: transform 0.1s, box-shadow 0.1s;
}

.cas-ad-button:hover {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #c94f14;
	opacity: 1;
}

.cas-no-result {
	color: #666;
	font-size: 0.92em;
	margin: 0;
}

@media (min-width: 600px) {
	.cas-body {
		padding: 18px 22px 22px;
	}
	.cas-ad {
		padding: 22px 24px;
	}
}
