@charset "utf-8";

/* ==========
 * Heading overrides (common.css で .ttl-h2 が weight:400 になるため)
 * ========== */
.ttl-h2.marugo-b,
h2.marugo-b {
	font-weight: 700;
}

/* ==========
 * KV section
 * ========== */
.sec-referral-kv {
	position: relative;
	padding: 40px 0 60px;
	background: #eaf2ff;
	overflow: hidden;
}
.sec-referral-kv .contents-wrap {
	position: relative;
	z-index: 1;
}
.sec-referral-kv .kv-text {
	max-width: 620px;
}
.sec-referral-kv .kv-ttl {
	margin-bottom: 24px;
	color: #333;
	font-size: 2rem;
	line-height: 1.4;
	letter-spacing: 0.08em;
}
.sec-referral-kv .kv-desc {
	margin-bottom: 16px;
}
.sec-referral-kv .kv-desc p:nth-child(1) {
	margin-bottom: 1em;
}
.sec-referral-kv .kv-desc p:last-child {
	margin-bottom: 0;
}
.sec-referral-kv .kv-note {
	margin-bottom: 24px;
	font-size: 13px;
	line-height: 1.6;
	color: #111;
}
.sec-referral-kv .kv-bg-img {
	position: absolute;
	top: 0;
	right: 0;
	width: 60%;
	max-width: 800px;
	height: 100%;
	pointer-events: none;
}
.sec-referral-kv .kv-bg-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

/* CTA button used on this page (overrides .button-r) */
.button-cv {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	min-width: 280px;
	background: #dd183f;
	color: #fff;
	font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.1;
	text-align: center;
	border-radius: 12px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.button-cv:hover {
	opacity: 0.85;
	color: #fff;
}
.button-cv .icon-open-in-new {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

/* ==========
 * 紹介制度の流れ
 * ========== */
.sec-referral-flow {
	background: #fff;
}
.flow-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 48px;
	justify-content: center;
}
.flow-item {
	position: relative;
	flex: 0 0 246px;
	width: 246px;
	min-height: 329px;
	background: #fff;
	border: 2px solid #ebebeb;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}
.flow-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -40px;
	width: 32px;
	height: 40px;
	background-image: url("/template/img/business/icon_flow_arrow.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transform: translateY(-50%);
}
.flow-head {
	background: #196fa9;
	color: #fff;
	height: 107px;
	padding: 12px 24px;
	border-radius: 6px 6px 0 0;
	display: flex;
	flex-direction: column;
}
.flow-step {
	display: block;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.8;
	letter-spacing: 0.04em;
	text-align: center;
	margin: 0;
}
.flow-ttl {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: bold;
	color: #fff;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	margin: 0;
}
.flow-body {
	padding: 24px;
	flex: 1;
}
.flow-body p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.8;
	letter-spacing: 0.04em;
	color: #111;
}

/* ==========
 * 対象プラン・料金
 * ========== */
.sec-referral-price {
	background: #fff;
}
.sec-referral-price .text-center {
	margin-bottom: 32px;
}
.table-scroll {
	width: 100%;
	overflow-x: auto;
}
.table-referral {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border-top: 1px solid #111;
	border-bottom: 1px solid #111;
}
.table-referral thead th {
	padding: 16px 8px;
	font-weight: bold;
	text-align: center;
	background: #fff;
	border-right: 1px solid #f5f5f5;
}
.table-referral thead th:last-child {
	border-right: none;
}
.table-referral thead th.th-label {
	background: #fff;
}
.table-referral tbody tr {
	border-bottom: 1px solid #ccc;
}
.table-referral tbody tr:last-child {
	border-bottom: none;
}
.table-referral th.th-label {
	width: 240px;
	padding: 16px;
	text-align: left;
	background: #f5f5f5;
	font-weight: bold;
	vertical-align: middle;
	border-right: 1px solid #f5f5f5;
}
.table-referral th.th-label small {
	font-size: 0.875rem;
	font-weight: bold;
}
.table-referral td {
	padding: 16px;
	text-align: center;
	vertical-align: middle;
	background: #fff;
	border-right: 1px solid #f5f5f5;
}
.table-referral td:last-child {
	border-right: none;
}
.table-referral td.td-referred {
	color: #dd183f;
}
.table-referral td.td-referred strong {
	font-weight: bold;
}
.price-notes {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #333;
}
.price-notes li {
	margin: 0;
}

/* ==========
 * 対象商材ロゴリンク
 * ========== */
.sec-referral-products {
	background: #e8f1f6;
}
.product-row {
	justify-content: center;
	gap: 32px;
}
.product-cell {
	flex: 1 1 100%;
	max-width: 339px;
}
@media screen and (min-width: 40em) {
	.product-cell {
		flex: 0 0 339px;
	}
}
.product-card {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	min-height: 348px;
	display: flex;
	flex-direction: column;
}
.product-tag {
	display: inline-block;
	padding: 4px 8px;
	background: #cb3c4d;
	color: #fff;
	font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	border-radius: 4px;
	margin-bottom: 24px;
	align-self: flex-start;
}
.product-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	margin-bottom: 24px;
}
.product-logo img {
	max-width: 100%;
	max-height: 56px;
	height: auto;
	width: auto;
}
.product-ttl {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	margin: 0 0 24px;
	font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
}
.product-ttl small {
	font-size: 1rem;
	font-weight: 700;
}

/* Image-based title (e.g. VMC card) */
.product-ttl--img {
	min-height: 56px;
	padding: 0;
}
.product-ttl--img img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 56px;
}
.product-desc {
	margin: 0 0 24px;
	flex: 1;
	font-size: 1rem;
	line-height: 1.8;
	letter-spacing: 0.04em;
	color: #111;
}
.product-link {
	margin: 0;
	text-align: center;
}
.button-link-outline {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 50px;
	padding: 0 8px;
	background: #fff;
	color: #196fa9;
	font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	border: 2px solid #196fa9;
	border-radius: 12px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.button-link-outline:hover {
	background: #196fa9;
	color: #fff;
}

/* ==========
 * 紹介制度へ参加する CTA
 * ========== */
.sec-referral-join {
	background: #ebebeb;
	padding: 60px 10px;
}
.sec-referral-join .ttl-h2 {
	margin-bottom: 24px;
}
.sec-referral-join .join-desc {
	margin-bottom: 32px;
	font-size: 1.125rem;
	font-weight: bold;
	line-height: 1.6;
}

/* ==========
 * よくある質問（アコーディオン）
 * ========== */
.sec-referral-faq {
	background: #fff;
}
.faq-list {
	margin: 0;
	padding: 0;
}
.faq-item {
	border-bottom: 1px solid #f5f5f5;
}
.faq-item > summary {
	position: relative;
	display: block;
	padding: 24px 60px 24px 60px;
	font-weight: bold;
	color: #196fa9;
	cursor: pointer;
	list-style: none;
	line-height: 1.8;
}
.faq-item > summary::-webkit-details-marker {
	display: none;
}
.faq-item > summary::before {
	content: "Q";
	position: absolute;
	left: 16px;
	top: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-weight: bold;
	font-size: 1.25rem;
	background: #196fa9;
}
.faq-item > summary::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 22px;
	width: 36px;
	height: 36px;
	border: 2px solid #196fa9;
	border-radius: 8px;
	background:
		linear-gradient(#196fa9, #196fa9) center / 16px 2px no-repeat,
		linear-gradient(#196fa9, #196fa9) center / 2px 16px no-repeat,
		#fff;
	transition: background 0.2s ease;
	box-sizing: border-box;
}
.faq-item[open] > summary::after {
	background:
		linear-gradient(#196fa9, #196fa9) center / 16px 2px no-repeat,
		#fff;
}
.faq-item > summary:hover {
	opacity: 0.85;
}
.faq-a {
	position: relative;
	padding: 12px 16px 24px 60px;
	line-height: 1.8;
}
.faq-a::before {
	content: "A";
	position: absolute;
	left: 16px;
	top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-weight: bold;
	font-size: 1.25rem;
	background: #dd183f;
}
.faq-em {
	color: #dd183f;
	font-weight: bold;
}

/* ==========
 * Responsive: 720px and up
 * ========== */
@media screen and (min-width: 40em) {
	.sec-referral-kv {
		padding: 60px 0 80px;
		min-height: 445px;
	}
	.sec-referral-flow,
	.sec-referral-price,
	.sec-referral-products,
	.sec-referral-faq {
		padding: 80px 0;
	}
}

/* ==========
 * Responsive: under 720px (SP)
 * ========== */
@media screen and (max-width: 39.9375em) {
	.sec-referral-kv {
		overflow: visible;
	}
	.sec-referral-kv .kv-text {
		max-width: 100%;
	}
	.sec-referral-kv .kv-ttl {
		font-size: 1.5rem;
	}
	.sec-referral-kv .kv-bg-img {
		position: static;
		width: 100%;
		max-width: none;
		height: auto;
		margin-top: 24px;
	}
	.sec-referral-kv .kv-bg-img img {
		height: auto;
		object-fit: cover;
		border-radius: 8px;
	}
	.button-cv {
		min-width: 0;
		width: 100%;
	}
	.kv-cta {
		text-align: center;
	}
	.flow-list {
		gap: 48px;
	}
	.flow-item {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		min-height: 0;
	}
	.flow-item:not(:last-child)::after {
		top: auto;
		right: 50%;
		bottom: -44px;
		transform: translateX(50%) rotate(90deg);
	}
	.table-referral {
		min-width: 600px;
	}
	.table-referral th.th-label {
		width: 180px;
	}
}
