:root {
	--top-ink: #102858;
	--top-blue: #467bd2;
	--top-blue-dark: #2e64bd;
	--top-blue-soft: #eaf2ff;
	--top-purple: #8364d4;
	--top-pink: #e7798f;
	--top-line: #d9e1f0;
	--top-muted: #4e5f7e;
	--top-surface: #ffffff;
	--top-shadow: 0 8px 28px rgba(35, 63, 111, 0.08);
	--top-radius: 16px;
}

body.aff-top-enabled #content-w {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.aff-top-enabled main#aff-top-page {
	float: none !important;
	clear: both;
	width: 100vw;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
}

body.aff-top-enabled #wrapper,
body.aff-top-enabled #wrapper-in {
	overflow: visible;
}

#aff-top-page,
#aff-top-page * {
	box-sizing: border-box;
}

#aff-top-page {
	position: relative;
	left: auto;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	overflow: clip;
	background: #fff;
	color: var(--top-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.75;
}

#aff-top-page h1,
#aff-top-page h2,
#aff-top-page h3,
#aff-top-page p,
#aff-top-page ul,
#aff-top-page ol {
	margin-top: 0;
}

#aff-top-page h1,
#aff-top-page h2,
#aff-top-page h3 {
	border: 0;
	background: none;
	color: var(--top-ink);
	font-weight: 700;
	letter-spacing: 0.04em;
}

#aff-top-page img {
	max-width: 100%;
}

.top-container {
	width: min(920px, calc(100% - 48px));
	margin-inline: auto;
}

.top-container--narrow {
	width: min(900px, calc(100% - 48px));
}

.top-section {
	padding: 18px 0;
}

.top-section__heading {
	margin-bottom: 12px;
	text-align: center;
}

.top-section__heading h2 {
	margin-bottom: 2px;
	font-size: clamp(22px, 2.5vw, 29px);
	line-height: 1.35;
}

.top-section__heading p {
	margin-bottom: 0;
	font-size: 13px;
}

.top-grid {
	display: grid;
	gap: 16px;
}

.top-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.top-hero {
	position: relative;
	min-height: 322px;
	background-color: #edf1ff;
	background-image: url("../images/01_hero-office-exit.png");
	background-position: center;
	background-size: cover;
}

.top-hero__inner {
	display: flex;
	align-items: center;
	min-height: 322px;
}

.top-hero__copy {
	width: 52%;
	padding: 32px 0 28px 16px;
}

.top-hero__eyebrow {
	position: relative;
	display: inline-block;
	margin-bottom: 18px;
	color: var(--top-blue-dark);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.top-hero__eyebrow::after {
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 42px;
	height: 2px;
	background: var(--top-blue);
	content: "";
}

#aff-top-page .top-hero h1 {
	margin-bottom: 15px;
	font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
	font-size: clamp(30px, 3.5vw, 43px);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.06em;
}

.top-hero__lead {
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
}

.top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.top-action {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 9px 22px;
	border: 1px solid var(--top-blue);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-action:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 18px rgba(47, 101, 190, 0.2);
}

.top-action:focus-visible,
.top-card-link:focus-visible,
.top-after-card a:focus-visible,
.top-back-to-top:focus-visible,
.top-faq-item summary:focus-visible {
	outline: 3px solid #ffbd45;
	outline-offset: 3px;
}

.top-action.is-primary {
	border-color: transparent;
	background: linear-gradient(135deg, #5c8edd, #2f69c7);
	color: #fff;
}

.top-action.is-secondary {
	background: rgba(255, 255, 255, 0.75);
	color: var(--top-ink);
}

.top-action.is-small {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 12px;
}

.top-action.is-text {
	min-height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--top-blue-dark);
}

.top-action.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.top-situations {
	padding-top: 14px;
}

.top-situation-card {
	display: grid;
	min-height: 125px;
	grid-template-columns: 104px 1fr;
	align-items: center;
	padding: 12px 14px 12px 10px;
	border: 1px solid #e3e7ef;
	border-radius: var(--top-radius);
	background: #fff;
	box-shadow: var(--top-shadow);
}

.top-situation-card__image {
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(135deg, #e7f2ff, #f7e9f1);
}

.top-situation-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#aff-top-page .top-situation-card h3 {
	margin-bottom: 7px;
	font-size: 17px;
	line-height: 1.4;
}

.top-situation-card p {
	margin-bottom: 0;
	color: var(--top-muted);
	font-size: 11px;
	line-height: 1.75;
}

.top-caution {
	padding-top: 0;
}

.top-caution__panel {
	display: grid;
	min-height: 145px;
	grid-template-columns: 210px 1fr;
	align-items: center;
	gap: 18px;
	padding: 12px 18px;
	border-radius: var(--top-radius);
	background: linear-gradient(100deg, #f4f1ff, #f9f7ff);
}

.top-caution__image {
	width: 210px;
	height: 156px;
	object-fit: contain;
}

#aff-top-page .top-caution h2 {
	margin-bottom: 2px;
	font-size: 21px;
	line-height: 1.4;
}

.top-caution__content > p {
	margin-bottom: 8px;
	font-size: 11px;
}

.top-check-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

.top-check-list li {
	position: relative;
	display: flex;
	min-height: 70px;
	align-items: center;
	padding: 10px 10px 10px 38px;
	border: 1px solid #e0e4ef;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(40, 59, 100, 0.05);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.45;
}

.top-check-list li::before {
	position: absolute;
	top: 50%;
	left: 10px;
	display: grid;
	width: 17px;
	height: 20px;
	place-items: center;
	border: 2px solid #6f91dc;
	border-radius: 5px 5px 8px 8px;
	color: #5d80d0;
	content: "✓";
	font-size: 11px;
	transform: translateY(-50%);
}

.top-caution__action {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.top-method-card {
	position: relative;
	min-height: 285px;
	padding: 14px 18px 50px;
	border: 1.5px solid #7eabec;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--top-shadow);
}

.top-method-card.is-purple {
	border-color: #b19be9;
}

.top-method-card.is-pink {
	border-color: #efa3b0;
}

.top-method-card__header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.top-method-card__header > span {
	display: grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	place-items: center;
	border-radius: 50%;
	background: var(--top-blue);
	color: #fff;
	font-weight: 700;
}

.is-purple .top-method-card__header > span,
.is-purple .top-method-card__type {
	background: var(--top-purple);
}

.is-pink .top-method-card__header > span,
.is-pink .top-method-card__type {
	background: var(--top-pink);
}

#aff-top-page .top-method-card h3 {
	min-height: 34px;
	margin-bottom: 2px;
	font-size: 13.5px;
	line-height: 1.25;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.top-method-card__type {
	display: inline-block;
	margin: 0 0 8px 38px;
	padding: 1px 10px;
	border-radius: 4px;
	background: var(--top-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.top-method-card__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 128px;
	align-items: center;
	gap: 10px;
}

.top-method-card__copy p {
	margin-bottom: 6px;
	font-size: 12px;
	line-height: 1.6;
}

.top-method-card__visual {
	display: grid;
	width: 128px;
	height: 128px;
	overflow: hidden;
	place-items: center;
}

.top-method-card__visual img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.55);
	transform-origin: center;
}

.top-method-card__example {
	font-weight: 600;
}

.top-method-card__meta {
	position: absolute;
	right: 10px;
	bottom: 9px;
	left: 10px;
	display: flex;
	justify-content: space-around;
	gap: 4px;
	margin: 0;
	padding: 5px;
	border-radius: 7px;
	background: #f1f6ff;
	list-style: none;
}

.top-method-card__meta li {
	font-size: 10px;
	font-weight: 700;
}

.top-method-card__meta li::before {
	display: inline-grid;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	place-items: center;
	border-radius: 50%;
	background: #739bdd;
	color: white;
	content: "✓";
	font-size: 8px;
}

.top-card-link {
	display: inline-flex;
	margin-top: 8px;
	color: var(--top-blue-dark);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.top-flow {
	padding-bottom: 10px;
}

.top-flow__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 6px;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.top-flow-card {
	position: relative;
	display: grid;
	min-height: 155px;
	grid-template-columns: 112px 1fr;
	grid-template-rows: auto auto 1fr;
	gap: 2px 8px;
	padding: 13px 10px 10px;
	border: 1px solid var(--top-line);
	border-radius: 12px;
	background: #fff;
}

.top-flow-card:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -14px;
	z-index: 2;
	color: #78a0df;
	content: "→";
	font-weight: 700;
}

.top-flow-card__number {
	grid-column: 1 / -1;
	justify-self: start;
	padding: 1px 8px;
	border-radius: 4px;
	background: #668bd0;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}

.top-flow-card__visual {
	display: grid;
	width: 110px;
	height: 104px;
	grid-row: 2 / 4;
	overflow: hidden;
	place-items: center;
}

.top-flow-card__visual img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.85);
	transform-origin: center;
}

#aff-top-page .top-flow-card h3 {
	margin-bottom: 2px;
	font-size: 14px;
	line-height: 1.35;
}

.top-flow-card p {
	margin-bottom: 0;
	font-size: 10px;
	line-height: 1.55;
}

.top-flow__detail {
	display: flex;
	justify-content: center;
}

.top-after {
	border-top: 1px solid #e7ebf3;
}

.top-after-card {
	display: grid;
	min-height: 118px;
	grid-template-columns: 1fr 105px;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--top-line);
	border-radius: 12px;
	background: #fff;
}

.top-after-card__copy {
	padding: 13px 0 12px 16px;
}

#aff-top-page .top-after-card h3 {
	margin-bottom: 5px;
	font-size: 15px;
	line-height: 1.4;
}

.top-after-card p {
	margin-bottom: 7px;
	font-size: 10px;
	line-height: 1.55;
}

.top-after-card a {
	color: var(--top-blue-dark);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
}

.top-after-card img {
	width: 105px;
	height: 112px;
	object-fit: cover;
	object-position: center;
}

.top-faq {
	padding-top: 4px;
	padding-bottom: 12px;
}

.top-faq__list {
	border-top: 1px solid var(--top-line);
}

.top-faq-item {
	border-bottom: 1px solid var(--top-line);
}

.top-faq-item summary {
	position: relative;
	display: flex;
	min-height: 36px;
	align-items: center;
	gap: 10px;
	padding: 6px 42px 6px 12px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	list-style: none;
}

.top-faq-item summary::-webkit-details-marker {
	display: none;
}

.top-faq-item__mark,
.top-faq-item__answer > span {
	display: grid;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	place-items: center;
	border-radius: 50%;
	background: #7398d8;
	color: #fff;
	font-size: 9px;
}

.top-faq-item__icon {
	position: absolute;
	right: 13px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	border: 1px solid #cfd9ea;
	border-radius: 50%;
}

.top-faq-item__icon::before,
.top-faq-item__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 1px;
	transform: translate(-50%, -50%);
	background: var(--top-blue);
	content: "";
}

.top-faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: transform 0.2s ease;
}

.top-faq-item[open] .top-faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.top-faq-item__answer {
	display: flex;
	gap: 10px;
	padding: 0 42px 12px 12px;
}

.top-faq-item__answer > span {
	background: var(--top-pink);
}

.top-faq-item__answer p {
	margin-bottom: 0;
	color: var(--top-muted);
	font-size: 12px;
}

.top-final-cta {
	padding: 0 0 18px;
}

.top-final-cta__inner {
	display: grid;
	min-height: 104px;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 30px;
	padding: 18px 54px;
	overflow: hidden;
	border-radius: var(--top-radius);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.28)), url("../images/16_footer-landscape.png");
	background-position: center;
	background-size: cover;
}

#aff-top-page .top-final-cta h2 {
	margin-bottom: 5px;
	font-size: 19px;
}

.top-final-cta p {
	margin-bottom: 0;
	font-size: 11px;
}

.top-final-cta__actions {
	display: grid;
	gap: 7px;
}

.top-final-cta__actions .top-action {
	min-height: 37px;
	padding-block: 6px;
	font-size: 11px;
}

.top-back-to-top {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 50;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid #cbd8ed;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 16px rgba(40, 67, 112, 0.12);
	color: var(--top-blue-dark);
	text-decoration: none;
}

@media (max-width: 959px) {
	.top-container,
	.top-container--narrow {
		width: min(820px, calc(100% - 36px));
	}

	.top-hero {
		background-position: 58% center;
	}

	.top-hero__copy {
		width: 59%;
		padding-left: 0;
	}

	.top-grid--three {
		gap: 12px;
	}

	.top-methods .top-grid--three {
		grid-template-columns: 1fr;
	}

	#aff-top-page .top-method-card h3 {
		font-size: 18px;
		letter-spacing: 0;
	}

	.top-situation-card {
		grid-template-columns: 82px 1fr;
		padding-inline: 8px;
	}

	.top-situation-card__image {
		width: 74px;
		height: 74px;
	}

	.top-caution__panel {
		grid-template-columns: 180px 1fr;
	}

	.top-caution__image {
		width: 180px;
		height: 150px;
	}

	.top-check-list {
		grid-template-columns: 1fr;
	}

	.top-check-list li {
		min-height: auto;
	}

	.top-flow__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.top-flow-card:nth-child(2)::after {
		display: none;
	}
}

@media (max-width: 599px) {
	body.aff-top-enabled #headbox {
		width: 100%;
		max-width: 100%;
		flex-wrap: wrap;
		overflow: visible;
	}

	body.aff-top-enabled #header-l,
	body.aff-top-enabled #header-r {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.aff-top-enabled #header-l img,
	body.aff-top-enabled #headbox img {
		max-width: 100%;
		height: auto;
	}

	#aff-top-page {
		left: auto;
		width: 100%;
		margin-left: 0;
		font-size: 14px;
	}

	.top-container,
	.top-container--narrow {
		width: min(520px, calc(100% - 28px));
	}

	.top-section {
		padding: 26px 0 4px;
	}

	.top-section__heading {
		margin-bottom: 16px;
	}

	.top-section__heading h2 {
		font-size: 22px;
	}

	.top-hero {
		min-height: calc(56.3vw + 440px);
		background-position: center top;
		background-size: 100% auto;
		background-repeat: no-repeat;
	}

	.top-hero::before {
		display: none;
	}

	.top-hero__inner {
		position: relative;
		align-items: flex-start;
		min-height: calc(56.3vw + 440px);
	}

	.top-hero__copy {
		width: 100%;
		padding: calc(56.3vw + 28px) 0 34px;
	}

	.top-hero__eyebrow {
		font-size: 15px;
	}

	#aff-top-page .top-hero h1 {
		font-size: clamp(27px, 8vw, 36px);
		line-height: 1.55;
	}

	.top-hero__lead br {
		display: none;
	}

	.top-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.top-action {
		width: 100%;
	}

	.top-grid--three {
		grid-template-columns: 1fr;
	}

	.top-situation-card {
		grid-template-columns: 96px 1fr;
		padding: 13px;
	}

	.top-situation-card__image {
		width: 86px;
		height: 86px;
	}

	.top-caution__panel {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 18px;
		text-align: center;
	}

	.top-caution__image {
		width: 210px;
		height: 150px;
		margin: 0 auto;
	}

	#aff-top-page .top-caution h2 {
		font-size: 20px;
	}

	.top-check-list {
		text-align: left;
	}

	.top-caution__action {
		justify-content: stretch;
	}

	.top-caution__action .top-action {
		width: 100%;
	}

	.top-method-card {
		min-height: 285px;
	}

	.top-method-card__body {
		grid-template-columns: minmax(0, 1fr) 150px;
	}

	.top-method-card__visual {
		width: 150px;
		height: 140px;
	}

	.top-method-card__visual img {
		transform: scale(1.55);
	}

	.top-flow__list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.top-flow-card {
		min-height: 125px;
		grid-template-columns: 132px 1fr;
		padding: 14px;
	}

	.top-flow-card__visual {
		width: 128px;
		height: 112px;
	}

	.top-flow-card__visual img {
		transform: scale(1.8);
	}

	.top-flow-card:not(:last-child)::after {
		top: auto;
		right: 50%;
		bottom: -18px;
		transform: translateX(50%) rotate(90deg);
	}

	.top-after-card {
		grid-template-columns: 1fr 120px;
	}

	.top-after-card img {
		width: 120px;
		height: 125px;
	}

	.top-faq-item summary {
		min-height: 48px;
		font-size: 13px;
		line-height: 1.5;
	}

	.top-final-cta {
		padding-top: 28px;
	}

	.top-final-cta__inner {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 24px 18px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	#aff-top-page *,
	#aff-top-page *::before,
	#aff-top-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
