/**
 * Original compatibility styles for content authored with the former theme.
 * No legacy artwork or proprietary stylesheet rules are included here.
 */

:root {
	--sl-legacy-navy: #102a43;
	--sl-legacy-teal: #087c71;
	--sl-legacy-warm: #f2b05e;
	--sl-legacy-ink: #243b53;
	--sl-legacy-muted: #5b728a;
	--sl-legacy-line: #d9e2ec;
	--sl-legacy-soft: #f5f8fa;
	--sl-legacy-white: #fff;
	--sl-legacy-radius: 14px;
	--sl-legacy-shadow: 0 12px 30px rgb(16 42 67 / 10%);
}

/* Standalone legacy landing-page shell. The old template supplied this layout. */
.legacy-landing-body {
	margin: 0;
	background: #edf2f3;
	color: var(--sl-legacy-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.legacy-landing-page {
	width: min(100%, 1000px);
	min-height: 100vh;
	margin-inline: auto;
	background: var(--sl-legacy-white);
	box-shadow: 0 18px 60px rgb(16 42 67 / 12%);
	overflow: hidden;
}

.legacy-landing-page__content,
#mail_magazine {
	--sl-legacy-lp-gutter: clamp(18px, 5vw, 48px);
	width: 100%;
	padding: 0 var(--sl-legacy-lp-gutter) clamp(48px, 8vw, 86px);
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.95;
}

.legacy-landing-page__content > h1:first-child,
#mail_magazine > h1:first-child {
	width: calc(100% + (var(--sl-legacy-lp-gutter) * 2));
	max-width: none;
	margin: 0 calc(var(--sl-legacy-lp-gutter) * -1) clamp(26px, 5vw, 52px);
	padding: 0;
	border: 0;
	line-height: 0;
}

.legacy-landing-page__content > h1:first-child::before,
#mail_magazine > h1:first-child::before {
	display: none;
}

.legacy-landing-page img,
.legacy-review-page img,
#mail_magazine img,
#review img {
	max-width: 100%;
	height: auto;
}

.legacy-landing-page :is(.lbox02_blue, .box02_blue),
.legacy-review-page :is(.lbox02_blue, .box02_blue) {
	display: flow-root;
	margin-block: 1.6em;
	padding: clamp(18px, 3vw, 28px);
	background: #eef8fd;
	border: 1px solid #bedbea;
	border-left: 5px solid #2779a7;
	border-radius: var(--sl-legacy-radius);
}

.legacy-landing-page .box02_blue_body,
.legacy-review-page .box02_blue_body {
	display: flow-root;
}

.legacy-landing-page :is(.dot1_list_black, .dot1_list_blue, .dot1_list_orange, .check2_list_red),
.legacy-review-page :is(.dot1_list_black, .dot1_list_blue, .dot1_list_orange, .check2_list_red) {
	margin-block: 1.4em;
	padding: 1.1em 1.1em 1.1em 2.6em;
	background: var(--sl-legacy-soft);
	border-radius: 10px;
}

.legacy-review-page .entry-content {
	width: min(calc(100% - 48px), 900px);
}

/* Legacy newsletter widget, rebuilt without the former banner images. */
.sl-legacy-mail-cta {
	--sl-legacy-cta-accent: var(--sl-legacy-teal);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	width: 100%;
	padding: clamp(18px, 4vw, 26px);
	color: var(--sl-legacy-white);
	text-decoration: none;
	background:
		radial-gradient(circle at 100% 0, color-mix(in srgb, var(--sl-legacy-cta-accent) 62%, transparent), transparent 45%),
		var(--sl-legacy-navy);
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: var(--sl-legacy-radius);
	box-shadow: var(--sl-legacy-shadow);
	isolation: isolate;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
	.sl-legacy-mail-cta {
		background: var(--sl-legacy-navy);
	}
}

a.sl-legacy-mail-cta:hover {
	color: var(--sl-legacy-white);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgb(16 42 67 / 18%);
}

.sl-legacy-mail-cta:focus-visible,
.sl-legacy-button:focus-visible,
.sl-legacy-form :is(input, button):focus-visible {
	outline: 3px solid var(--sl-legacy-white);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--sl-legacy-teal);
}

.sl-legacy-mail-cta--variant-2 {
	--sl-legacy-cta-accent: var(--sl-legacy-warm);
}

.sl-legacy-mail-cta--variant-3 {
	--sl-legacy-cta-accent: #5ab0d6;
}

.sl-legacy-mail-cta__icon {
	display: grid;
	place-items: center;
	width: 48px;
	aspect-ratio: 1;
	font-size: 23px;
	line-height: 1;
	color: var(--sl-legacy-navy);
	background: var(--sl-legacy-warm);
	border-radius: 50%;
}

.sl-legacy-mail-cta__copy {
	display: grid;
	gap: 3px;
}

.sl-legacy-mail-cta__eyebrow {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #d9f5f1;
	text-transform: uppercase;
}

.sl-legacy-mail-cta__copy strong {
	font-size: clamp(1rem, 3vw, 1.22rem);
	line-height: 1.45;
}

.sl-legacy-mail-cta__action {
	font-size: 0.82rem;
	color: #d9e2ec;
}

/* Shared palette variants. */
.sl-legacy-box,
.sl-legacy-qa,
.sl-legacy-list,
.sl-legacy-form {
	--sl-legacy-accent: var(--sl-legacy-teal);
	--sl-legacy-tint: #edf9f7;
}

.sl-legacy-box--black,
.sl-legacy-qa--black,
.sl-legacy-list--black,
.sl-legacy-form--black,
.c_black {
	--sl-legacy-accent: #334e68;
	--sl-legacy-tint: #f0f4f8;
}

.sl-legacy-box--red,
.sl-legacy-qa--red,
.sl-legacy-list--red,
.sl-legacy-form--red,
.c_red {
	--sl-legacy-accent: #c84a4a;
	--sl-legacy-tint: #fff2f2;
}

.sl-legacy-box--blue,
.sl-legacy-qa--blue,
.sl-legacy-list--blue,
.sl-legacy-form--blue,
.c_blue,
.fkdsbox_blue {
	--sl-legacy-accent: #2779a7;
	--sl-legacy-tint: #eef8fd;
}

.sl-legacy-box--pink,
.sl-legacy-qa--pink,
.sl-legacy-list--pink,
.sl-legacy-form--pink,
.c_pink {
	--sl-legacy-accent: #b95783;
	--sl-legacy-tint: #fff2f7;
}

.sl-legacy-box--green,
.sl-legacy-qa--green,
.sl-legacy-list--green,
.sl-legacy-form--green,
.c_green {
	--sl-legacy-accent: #2d8a65;
	--sl-legacy-tint: #edf9f3;
}

.sl-legacy-box--orange,
.sl-legacy-qa--orange,
.sl-legacy-list--orange,
.sl-legacy-form--orange,
.sl-legacy-box--warm,
.sl-legacy-qa--warm,
.sl-legacy-list--warm,
.sl-legacy-form--warm,
.c_orange {
	--sl-legacy-accent: #c87520;
	--sl-legacy-tint: #fff7ec;
}

.sl-legacy-box--navy,
.sl-legacy-qa--navy,
.sl-legacy-list--navy,
.sl-legacy-form--navy {
	--sl-legacy-accent: var(--sl-legacy-navy);
	--sl-legacy-tint: #edf2f6;
}

/* Boxes and common class fragments found in the existing posts. */
.sl-legacy-box,
.normal_box,
.in_img_box,
.fkdsbox_blue,
.character_box {
	position: relative;
	margin-block: 1.5em;
	padding: clamp(18px, 3.5vw, 26px);
	color: var(--sl-legacy-ink);
	background: var(--sl-legacy-tint, var(--sl-legacy-soft));
	border: 1px solid color-mix(in srgb, var(--sl-legacy-accent, var(--sl-legacy-teal)) 34%, var(--sl-legacy-line));
	border-left: 5px solid var(--sl-legacy-accent, var(--sl-legacy-teal));
	border-radius: 8px;
	box-shadow: 0 8px 22px rgb(16 42 67 / 6%);
}

@supports not (border-color: color-mix(in srgb, white 50%, black)) {
	.sl-legacy-box,
	.normal_box,
	.in_img_box,
	.fkdsbox_blue,
	.character_box {
		border-color: var(--sl-legacy-line);
		border-left-color: var(--sl-legacy-accent, var(--sl-legacy-teal));
	}
}

.sl-legacy-box.cox-c,
.normal_box.cox-c,
.in_img_box.cox-c,
.cox-c {
	border-radius: var(--sl-legacy-radius);
}

.border1 {
	border-style: solid;
}

.border2 {
	border-width: 2px;
}

.border3 {
	border-width: 2px;
	border-style: dashed;
}

.sl-legacy-box__title {
	margin: 0 0 0.7em;
	font-size: 1.08rem;
	line-height: 1.5;
	color: var(--sl-legacy-navy);
}

.sl-legacy-box__content > :first-child,
.normal_box > :first-child,
.in_img_box > :first-child,
.fkdsbox_blue > :first-child,
.character_box > :first-child {
	margin-top: 0;
}

.sl-legacy-box__content > :last-child,
.normal_box > :last-child,
.in_img_box > :last-child,
.fkdsbox_blue > :last-child,
.character_box > :last-child {
	margin-bottom: 0;
}

.in_img_box {
	padding-left: clamp(54px, 8vw, 72px);
}

.in_img_box::before {
	position: absolute;
	top: 21px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 30px;
	aspect-ratio: 1;
	font-weight: 900;
	line-height: 1;
	color: var(--sl-legacy-white);
	content: "•";
	background: var(--sl-legacy-accent, var(--sl-legacy-teal));
	border-radius: 50%;
}

.in_img_box[class*="check_"]::before {
	content: "✓";
}

.in_img_box[class*="exclamation_"]::before,
.in_img_box[class*="attention_"]::before {
	content: "!";
	background: #c87520;
}

.in_img_box[class*="memo_"]::before,
.memo_orange::before {
	content: "i";
}

.in_img_box[class*="finger_"]::before {
	content: "→";
}

.in_img_box[class*="bm_"]::before {
	content: "★";
}

.memo_orange {
	--sl-legacy-accent: #c87520;
	--sl-legacy-tint: #fff7ec;
}

.fkdsbox_blue {
	border-left-width: 5px;
	border-radius: var(--sl-legacy-radius);
}

.character_box {
	display: flow-root;
	background: var(--sl-legacy-white);
	border-left-color: var(--sl-legacy-warm);
}

.MsoNormal {
	max-width: 100%;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: 1.85;
	color: inherit;
}

/* Q&A blocks. */
.sl-legacy-qa {
	margin-block: 1.75em;
	border: 1px solid var(--sl-legacy-line);
	border-radius: var(--sl-legacy-radius);
	box-shadow: var(--sl-legacy-shadow);
	overflow: hidden;
}

.sl-legacy-qa__question,
.sl-legacy-qa__answer {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	margin: 0;
	padding: clamp(17px, 3vw, 23px);
}

.sl-legacy-qa__question {
	font-size: 1.04rem;
	line-height: 1.65;
	color: var(--sl-legacy-navy);
	background: var(--sl-legacy-tint);
	border-bottom: 1px solid var(--sl-legacy-line);
}

.sl-legacy-qa__answer {
	line-height: 1.85;
	background: var(--sl-legacy-white);
}

.sl-legacy-qa__answer > div > :first-child {
	margin-top: 0;
}

.sl-legacy-qa__answer > div > :last-child {
	margin-bottom: 0;
}

.sl-legacy-qa__label {
	display: grid;
	place-items: center;
	width: 34px;
	aspect-ratio: 1;
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1;
	color: var(--sl-legacy-white);
	background: var(--sl-legacy-accent);
	border-radius: 10px;
}

.sl-legacy-qa__answer .sl-legacy-qa__label {
	color: var(--sl-legacy-navy);
	background: var(--sl-legacy-warm);
}

/* CSS-only replacement for the former image bullets. */
.sl-legacy-list {
	display: grid;
	gap: 0.72em;
	margin-block: 1.45em;
	padding: 0;
	list-style: none;
}

.sl-legacy-list > li {
	position: relative;
	padding-left: 1.65em;
	line-height: 1.75;
}

.sl-legacy-list > li::before {
	position: absolute;
	top: 0.54em;
	left: 0;
	width: 0.72em;
	aspect-ratio: 1;
	content: "";
	background: var(--sl-legacy-accent);
	border: 2px solid var(--sl-legacy-white);
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--sl-legacy-accent);
}

/* MyASP form replacement. */
.sl-legacy-form {
	margin-block: 2em;
	color: var(--sl-legacy-ink);
	background: var(--sl-legacy-white);
	border: 1px solid var(--sl-legacy-line);
	border-radius: calc(var(--sl-legacy-radius) + 4px);
	box-shadow: var(--sl-legacy-shadow);
	overflow: hidden;
}

.sl-legacy-form__heading {
	padding: clamp(22px, 4vw, 34px);
	color: var(--sl-legacy-white);
	background: var(--sl-legacy-navy);
	border-bottom: 5px solid var(--sl-legacy-accent);
}

.sl-legacy-form__eyebrow {
	display: inline-block;
	margin-bottom: 0.45em;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #b9ebe4;
}

.sl-legacy-form__heading h3 {
	margin: 0;
	font-size: clamp(1.12rem, 4vw, 1.45rem);
	line-height: 1.55;
	color: inherit;
}

.sl-legacy-form__intro {
	padding: 20px clamp(20px, 4vw, 34px) 0;
}

.sl-legacy-form__intro > :first-child {
	margin-top: 0;
}

.sl-legacy-form__body {
	display: grid;
	gap: 18px;
	padding: clamp(22px, 4vw, 34px);
}

.sl-legacy-form label,
.sl-legacy-form__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.sl-legacy-form label > span,
.sl-legacy-form__fieldset legend {
	display: block;
	margin-bottom: 0.45em;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--sl-legacy-navy);
}

.sl-legacy-form label small {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.13em 0.5em;
	font-size: 0.7rem;
	line-height: 1.35;
	color: var(--sl-legacy-white);
	background: #b83d3d;
	border-radius: 999px;
}

.sl-legacy-form :is(input[type="text"], input[type="email"]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	font: inherit;
	color: var(--sl-legacy-ink);
	background: var(--sl-legacy-white);
	border: 1px solid #9fb3c8;
	border-radius: 9px;
	box-shadow: inset 0 1px 2px rgb(16 42 67 / 5%);
}

.sl-legacy-form :is(input[type="text"], input[type="email"]):focus {
	border-color: var(--sl-legacy-teal);
	box-shadow: 0 0 0 3px rgb(15 159 143 / 14%);
}

.sl-legacy-form__name-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sl-legacy-form__submit,
.sl-legacy-button {
	display: inline-flex;
	gap: 0.65em;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.78em 1.35em;
	font: inherit;
	font-weight: 800;
	line-height: 1.4;
	color: var(--sl-legacy-white);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	background: var(--sl-legacy-teal);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 7px 18px rgb(15 159 143 / 20%);
	transition: background-color 160ms ease, transform 160ms ease;
}

.sl-legacy-form__submit:hover,
a.sl-legacy-button:hover {
	color: var(--sl-legacy-white);
	text-decoration: none;
	background: #0b7d72;
	transform: translateY(-1px);
}

.sl-legacy-form__privacy {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.65;
	color: var(--sl-legacy-muted);
	text-align: center;
}

.sl-legacy-form-notice {
	margin-block: 1.5em;
	padding: 18px 20px;
	color: var(--sl-legacy-ink);
	background: #fff7ec;
	border: 1px solid #f0cf9e;
	border-left: 5px solid var(--sl-legacy-warm);
	border-radius: 10px;
}

.sl-legacy-form-notice > :first-child {
	margin-top: 0;
}

.sl-legacy-form-notice > :last-child {
	margin-bottom: 0;
}

/* Generic fallbacks for lower-frequency decorative shortcodes. */
.sl-legacy-shortcode {
	max-width: 100%;
}

h4.sl-legacy-shortcode {
	position: relative;
	margin-block: 1.65em 0.75em;
	padding: 0.25em 0 0.35em 0.9em;
	font-size: clamp(1.02rem, 3vw, 1.18rem);
	line-height: 1.55;
	color: var(--sl-legacy-navy);
	border-left: 5px solid var(--sl-legacy-teal);
}

.sl-legacy-balloon {
	position: relative;
	margin: 1.5em 0 1.5em 12px;
	padding: 18px 20px;
	color: var(--sl-legacy-ink);
	background: var(--sl-legacy-soft);
	border: 1px solid var(--sl-legacy-line);
	border-radius: var(--sl-legacy-radius);
}

.sl-legacy-balloon::before {
	position: absolute;
	top: 22px;
	left: -9px;
	width: 16px;
	height: 16px;
	content: "";
	background: var(--sl-legacy-soft);
	border-bottom: 1px solid var(--sl-legacy-line);
	border-left: 1px solid var(--sl-legacy-line);
	transform: rotate(45deg);
}

mark.sl-legacy-shortcode {
	padding: 0 0.15em;
	color: inherit;
	background: linear-gradient(transparent 58%, rgb(242 176 94 / 58%) 58%);
}

.box_cf {
	display: flow-root;
}

.box_cf::after {
	display: table;
	clear: both;
	content: "";
}

@media (max-width: 520px) {
	.sl-legacy-mail-cta {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 11px;
		padding: 17px;
	}

	.sl-legacy-mail-cta__icon {
		width: 40px;
		font-size: 19px;
	}

	.sl-legacy-qa__question,
	.sl-legacy-qa__answer {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 10px;
		padding: 16px;
	}

	.sl-legacy-qa__label {
		width: 30px;
	}

	.sl-legacy-form__name-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sl-legacy-mail-cta,
	.sl-legacy-form__submit,
	.sl-legacy-button {
		transition: none;
	}
}
