/* SOMPO HIMAWARI LIFE INSURANCE COMMON STYLES */

/* Configuration */

:root {
	--primary: #cc0022;
	--container-max-single-narrow-width: 736px;
	--container-max-single-width: 1000px;
	--container-max-multi-width: 1180px;
	--container-max-multi-wide-width: 1510px;
	--grid-gutter-width: 35px;
	--font-family-base: 'Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
	--font-size-base: 1.4rem;
	--body-color: #333;
	--body-bg: #fff;
	--link-color: inherit;
	--line-height-base: 1.67;
}

/* Scaffolding */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 10px;
}

body {
	background-color: var(--body-bg);
	color: var(--body-color);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	margin: 0;
}

a {
	color: var(--link-color);
}

img {
	vertical-align: middle;
}

/* Grid System */

.fxb-container {
	margin: 0 auto;
	padding: 0 calc(var(--grid-gutter-width) * 0.5);
	width: 100%;
}

/* Global Header */

.l-header {
	border-bottom: 1px solid var(--primary);
}

.l-header .fxb-container {
	max-width: calc(var(--container-max-multi-width) + var(--grid-gutter-width));
}

.globalHeader {
	align-items: center;
	display: flex;
	height: 65px;
	justify-content: center;
	position: relative;
}

.headerLogo {
	display: none;
	margin: 0 auto 0 0;
	width: 192px;
}

.companyLogo {
	font-size: 1rem;
	margin: 0;
	width: 186px;
}

.closeButton {
	align-items: center;
	bottom: 0;
	display: flex;
	position: absolute;
	right: 0;
	top: 0;
}

.closeButton > button {
	background-color: transparent;
	border: none;
}

/* Main Content */

.theme-popup-narrow .l-main .fxb-container {
	max-width: var(--container-max-single-narrow-width);
}

.theme-single .l-main .fxb-container {
	max-width: var(--container-max-single-width);
}

/* Global Footer */

.l-footer {
	background-color: var(--primary);
	color: #fff;
}

.l-footer .fxb-container {
	max-width: var(--container-max-single-width);
}

.copyright {
	flex-direction: column;
	align-items: center;
	color: #fff;
	display: flex;
	gap: 1rem;
	padding: 1.2rem 0;
	text-align: center;
}

.copyright ._logo {
	display: none;
	font-size: 1.2rem;
	line-height: 1;
}

.copyright ._privacy {
	font-size: 1.2rem;
	line-height: 1;
}

.copyright ._privacy .cookie_consent-cookie_btn-link {
	line-height: inherit !important;
	color: inherit !important;
	margin: 0;
}

.copyright p {
	font-size: 1rem;
	line-height: 1.43;
	margin: 0;
}

.copyright p > span {
	display: block;
}

@media print, screen and (min-width: 768px) {
	:root {
		--font-size-base: 1.6rem;
	}
	.globalHeader {
		height: 82px;
		justify-content: flex-end;
	}
	.headerLogo {
		display: initial;
	}
	.companyLogo {
		margin: 0 0 0 3rem;
		width: auto;
	}
	.closeButton {
		margin: 0 0 0 3rem;
		position: static;
	}
	.copyright {
		justify-content: space-between;
		flex-direction: row;
		padding: 1.2rem 0;
	}
	.copyright ._logo {
		display: initial;
	}
	.copyright ._privacy {
		margin: 0 0 0 auto;
	}

	.copyright p {
		line-height: 1;
	}
	.copyright p > span {
		display: initial;
	}
}
