:root {
	--sc-contact-navy: #10264c;
	--sc-contact-text: #243653;
	--sc-contact-muted: #68758a;
	--sc-contact-line: #dbe4ec;
	--sc-contact-soft: #eef8f8;
	--sc-contact-teal: #0f8b8d;
	--sc-contact-teal-dark: #087173;
	--sc-contact-bg: #f5fbfc;
	--sc-contact-white: #fff;
	--sc-contact-shadow: 0 18px 48px rgba(26, 53, 79, .12);
}

.sampo-contact-page,
.sampo-contact-page * {
	box-sizing: border-box;
}

.sampo-contact-page {
	margin: 0;
	color: var(--sc-contact-text);
	background: linear-gradient(180deg, #f9fdff 0%, var(--sc-contact-bg) 42%, #fff 100%);
	font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.8;
	letter-spacing: 0;
}

.sampo-contact-page a {
	color: inherit;
	text-decoration: none;
}

.sampo-contact-page img {
	display: block;
	max-width: 100%;
	height: auto;
}

.sc-contact-container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.sc-contact-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid rgba(219, 228, 236, .72);
	backdrop-filter: blur(16px);
}

.admin-bar .sc-contact-header {
	top: 32px;
}

.sc-contact-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.sc-contact-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: 0 0 auto;
	color: var(--sc-contact-navy);
}

.sc-contact-brand small,
.sc-contact-brand strong {
	display: block;
	line-height: 1.35;
}

.sc-contact-brand small {
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
	color: #334967;
}

.sc-contact-brand strong {
	font-size: 24px;
	font-weight: 900;
}

.sc-contact-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	color: #40506a;
	white-space: nowrap;
}

.sc-contact-nav a {
	position: relative;
}

.sc-contact-nav a::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 2px;
	content: "";
	background: var(--sc-contact-teal);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .18s ease;
}

.sc-contact-nav a:hover::after {
	transform: scaleX(1);
}

.sc-contact-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sc-contact-line);
	border-radius: 999px;
	background: #fff;
}

.sc-contact-nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: var(--sc-contact-navy);
}

.sc-contact-mobile-nav {
	display: none;
}

.sc-contact-main {
	overflow: hidden;
}

.sc-contact-hero {
	position: relative;
	padding: 64px 0 34px;
	background: linear-gradient(135deg, #f0f7fc 0%, #e6f2fa 100%);
}

.sc-contact-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: center;
	gap: 48px;
}

.sc-contact-hero__content {
	position: relative;
	z-index: 1;
}

.sc-contact-hero h1 {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	color: var(--sc-contact-navy);
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 900;
	line-height: 1.25;
}

.sc-contact-hero h1::before {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(15, 139, 141, .34);
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230f8b8d'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a4%204%200%200%201-4%204H8l-5%203V7a4%204%200%200%201%204-4h10a4%204%200%200%201%204%204z'/%3E%3Cpath%20d='M8%209h8M8%2013h5'/%3E%3C/svg%3E") center / 25px 25px no-repeat,
		linear-gradient(180deg, #fff, #eefafa);
	box-shadow: 0 10px 24px rgba(15, 139, 141, .15);
	content: "";
}

.sc-contact-hero h1::before {
	display: none;
	content: none;
}

.sc-contact-hero p {
	max-width: 790px;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #2b3d5f;
}

.sc-contact-hero__visual {
	justify-self: end;
	width: min(360px, 100%);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: #e8f4f5;
	box-shadow: var(--sc-contact-shadow);
}

.sc-contact-hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.sc-contact-summary {
	position: relative;
	z-index: 2;
	margin-top: -10px;
}

.sc-contact-summary__panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 26px 32px;
	border: 1px solid rgba(219, 228, 236, .78);
	border-radius: 8px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--sc-contact-shadow);
}

.sc-contact-summary__item {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 72px;
	padding: 0 28px;
}

.sc-contact-summary__item + .sc-contact-summary__item {
	border-left: 1px solid var(--sc-contact-line);
}

.sc-contact-summary__item::before {
	display: block;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(45, 157, 160, .34);
	border-radius: 999px;
	background-color: #eefafa;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 27px 27px;
	box-shadow: 0 10px 22px rgba(15, 139, 141, .12);
	content: "";
}

.sc-contact-summary__item--clock::before {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230f8b8d'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.4'/%3E%3Cpath%20d='M12%207v5l3.2%201.9'/%3E%3C/svg%3E");
}

.sc-contact-summary__item--lock::before {
	border-radius: 14px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230f8b8d'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.2a4.2%204.2%200%200%201-4.2%204.2H9l-5%203V7.8a4.2%204.2%200%200%201%204.2-4.2h7.6A4.2%204.2%200%200%201%2020%207.8z'/%3E%3Cpath%20d='M8%209h8M8%2013h5.5'/%3E%3C/svg%3E");
}

.sc-contact-summary__item--shield::before {
	border-radius: 18px 18px 24px 24px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230f8b8d'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202.8l7%202.7v5.8c0%204.5-2.9%208.4-7%209.9-4.1-1.5-7-5.4-7-9.9V5.5z'/%3E%3Cpath%20d='M8.8%2012l2.1%202.1%204.5-4.8'/%3E%3C/svg%3E");
}

.sc-contact-summary__item strong,
.sc-contact-summary__item span {
	grid-column: 2;
}

.sc-contact-summary__item strong {
	align-self: end;
	color: #15325f;
	font-size: 17px;
	line-height: 1.35;
}

.sc-contact-summary__item em {
	color: var(--sc-contact-teal);
	font-size: 28px;
	font-style: normal;
}

.sc-contact-summary__item span {
	align-self: start;
	color: var(--sc-contact-muted);
	font-size: 14px;
	font-weight: 700;
}

.sc-contact-section {
	padding: 28px 0 48px;
}

.sc-contact-form-card {
	padding: 34px 32px 36px;
	border: 1px solid rgba(219, 228, 236, .86);
	border-radius: 8px;
	background: rgba(255, 255, 255, .96);
	box-shadow: var(--sc-contact-shadow);
}

.sc-contact-form-card h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 0 0 28px;
	color: var(--sc-contact-navy);
	font-size: 20px;
	font-weight: 900;
	text-align: center;
}

.sc-contact-form-card h2::before,
.sc-contact-form-card h2::after {
	width: 120px;
	height: 1px;
	content: "";
	background: repeating-linear-gradient(90deg, rgba(45, 157, 160, .45) 0 3px, transparent 3px 7px);
}

.sc-contact-form-card .wpcf7 {
	margin: 0;
}

.sc-contact-form-card .wpcf7 form {
	margin: 0;
}

.sc-cf7-form,
.sc-contact-form .sc-cf7-form {
	overflow: hidden;
	border: 1px solid var(--sc-contact-line);
	border-radius: 8px;
	background: #fff;
}

.sc-cf7-row {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	border-bottom: 1px solid var(--sc-contact-line);
}

.sc-cf7-row:last-child {
	border-bottom: 0;
}

.sc-cf7-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 70px;
	padding: 20px 20px;
	background: #fbfdff;
	border-right: 1px solid var(--sc-contact-line);
	color: #20375d;
	font-size: 14px;
	font-weight: 900;
}

.sc-cf7-label span {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 24px;
	padding: 0 8px;
	border-radius: 4px;
	background: #ef6f75;
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.sc-cf7-label span.is-optional {
	background: #9aa8bb;
}

.sc-cf7-field {
	min-width: 0;
	padding: 16px 18px;
}

.sc-contact-form-card input[type="text"],
.sc-contact-form-card input[type="email"],
.sc-contact-form-card input[type="tel"],
.sc-contact-form-card textarea,
.sc-contact-form-card select {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid #cfd8e3;
	border-radius: 7px;
	background: #fff;
	color: var(--sc-contact-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.55;
	box-shadow: inset 0 1px 2px rgba(24, 47, 75, .04);
}

.sc-contact-form-card textarea {
	min-height: 132px;
	resize: vertical;
}

.sc-contact-form-card input:focus,
.sc-contact-form-card textarea:focus,
.sc-contact-form-card select:focus {
	border-color: var(--sc-contact-teal);
	outline: 3px solid rgba(15, 139, 141, .14);
}

.sc-contact-form-card .wpcf7-list-item {
	margin: 4px 24px 4px 0;
}

.sc-contact-form-card .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #33445e;
}

.sc-contact-form-card input[type="radio"],
.sc-contact-form-card input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--sc-contact-teal);
}

.sc-cf7-note {
	display: block;
	margin-top: 8px;
	color: #7d8798;
	font-size: 12px;
	font-weight: 700;
}

.sc-cf7-submit-row {
	padding: 24px 18px 4px;
	text-align: center;
}

.sc-contact-form-card input[type="submit"],
.sc-contact-form-card .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(580px, 100%);
	min-height: 62px;
	padding: 16px 34px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--sc-contact-teal), var(--sc-contact-teal-dark));
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.3;
	box-shadow: 0 14px 28px rgba(9, 113, 115, .22);
	cursor: pointer;
}

.sc-contact-form-card .wpcf7-spinner {
	display: block;
	margin: 14px auto 0;
}

.sc-contact-form-card .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
}

.sc-contact-form-card .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 700;
}

.sc-contact-help {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin-top: 18px;
	padding: 14px 22px;
	border-radius: 8px;
	background: #eaf7f7;
	color: #1b5069;
}

.sc-contact-help::before {
	display: block;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(45, 157, 160, .34);
	border-radius: 999px;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%230f8b8d'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a4%204%200%200%201-4%204H8l-5%203V7a4%204%200%200%201%204-4h10a4%204%200%200%201%204%204z'/%3E%3Cpath%20d='M8%209h8M8%2013h5'/%3E%3C/svg%3E") center / 28px 28px no-repeat,
		#eefafa;
	box-shadow: 0 10px 22px rgba(15, 139, 141, .12);
	content: "";
}

.sc-contact-help strong,
.sc-contact-help span {
	grid-column: 2;
	display: block;
	line-height: 1.55;
}

.sc-contact-help strong {
	font-size: 15px;
}

.sc-contact-help span {
	color: #435a70;
	font-size: 13px;
	font-weight: 700;
}

.sc-contact-privacy {
	margin: 18px 0 0;
	color: #5f6c7e;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.sc-contact-privacy a {
	color: var(--sc-contact-teal-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sc-contact-alert {
	display: grid;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid #f1c36d;
	border-radius: 8px;
	background: #fff8e8;
	color: #5d4620;
	font-weight: 700;
}

.sc-contact-phone {
	padding: 28px 0;
	background: #edf7f8;
}

.sc-contact-phone__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	color: #31506a;
	font-weight: 900;
}

.sc-contact-phone a {
	color: var(--sc-contact-teal);
	font-size: 36px;
	line-height: 1;
}

.sc-contact-phone small {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 22px;
	border: 1px solid #bed0dd;
	border-radius: 999px;
	background: #f7fbff;
	color: #385170;
	font-size: 13px;
}

.sc-contact-footer {
	padding: 30px 0;
	background: #fff;
	border-top: 1px solid var(--sc-contact-line);
}

.sc-contact-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sc-contact-brand--footer strong {
	font-size: 18px;
}

.sc-contact-footer nav {
	display: flex;
	gap: 20px;
	color: #536176;
	font-size: 13px;
	font-weight: 700;
}

@media (max-width: 1180px) {
	.sc-contact-nav {
		display: none;
	}

	.sc-contact-nav-toggle {
		display: block;
	}

	.sc-contact-mobile-nav {
		position: absolute;
		right: 16px;
		left: 16px;
		top: 88px;
		display: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
		padding: 16px;
		border: 1px solid var(--sc-contact-line);
		border-radius: 8px;
		background: #fff;
		box-shadow: var(--sc-contact-shadow);
	}

	.sc-contact-mobile-nav.is-open {
		display: grid;
	}

	.sc-contact-mobile-nav a {
		padding: 12px;
		border-radius: 6px;
		background: #f7fbfc;
		font-weight: 800;
	}
}

@media (max-width: 900px) {
	.admin-bar .sc-contact-header {
		top: 46px;
	}

	.sc-contact-container {
		width: min(100% - 28px, 1120px);
	}

	.sc-contact-hero {
		padding: 42px 0 24px;
	}

	.sc-contact-hero__grid,
	.sc-contact-summary__panel {
		grid-template-columns: 1fr;
	}

	.sc-contact-hero__visual {
		display: none;
	}

	.sc-contact-summary__panel {
		padding: 8px 18px;
	}

	.sc-contact-summary__item {
		padding: 16px 0;
	}

	.sc-contact-summary__item + .sc-contact-summary__item {
		border-top: 1px solid var(--sc-contact-line);
		border-left: 0;
	}

	.sc-cf7-row {
		grid-template-columns: 1fr;
	}

	.sc-cf7-label {
		min-height: 0;
		border-right: 0;
		border-bottom: 1px solid var(--sc-contact-line);
	}

	.sc-contact-form-card {
		padding: 26px 16px 28px;
	}

	.sc-contact-form-card h2 {
		gap: 12px;
		font-size: 17px;
	}

	.sc-contact-form-card h2::before,
	.sc-contact-form-card h2::after {
		width: 40px;
	}

	.sc-contact-phone__inner,
	.sc-contact-footer__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 560px) {
	.sc-contact-header__inner {
		min-height: 76px;
	}

	.sc-contact-brand small {
		font-size: 10px;
	}

	.sc-contact-brand strong {
		font-size: 20px;
	}

	.sc-contact-mobile-nav {
		top: 76px;
		grid-template-columns: 1fr;
	}

	.sc-contact-hero h1 {
		gap: 10px;
		font-size: 32px;
	}

	.sc-contact-hero h1::before {
		width: 38px;
		height: 38px;
		background-size: 21px 21px;
	}

	.sc-contact-hero p {
		font-size: 15px;
	}

	.sc-contact-summary__item {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
	}

	.sc-contact-summary__item::before {
		width: 42px;
		height: 42px;
	}

	.sc-contact-form-card input[type="submit"],
	.sc-contact-form-card .wpcf7-submit {
		min-height: 56px;
		font-size: 17px;
	}

	.sc-contact-help {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.sc-contact-help::before {
		margin: 0 auto;
	}

	.sc-contact-help strong,
	.sc-contact-help span {
		grid-column: 1;
	}

	.sc-contact-phone a {
		font-size: 30px;
	}

	.sc-contact-footer nav {
		flex-direction: column;
		gap: 10px;
	}
}

/* Final brand sizing. */
.sampo-contact-page .sc-contact-header__inner {
	min-height: 88px;
}

.sampo-contact-page .sc-contact-brand {
	gap: 14px;
}

.sampo-contact-page .sc-contact-brand img {
	width: 50px;
	height: 50px;
}

.sampo-contact-page .sc-contact-brand small {
	font-size: 13px;
}

.sampo-contact-page .sc-contact-brand strong {
	font-size: 28px;
}

@media (max-width: 560px) {
	.sampo-contact-page .sc-contact-brand img {
		width: 42px;
		height: 42px;
	}

	.sampo-contact-page .sc-contact-brand strong {
		font-size: 22px;
	}
}
