/* 言語選択ボタン・モーダル */
header .heading-bar--language,
header .mobile-menu--language {
	appearance: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}

header .heading-bar--language {
	padding: 0;
	background: transparent;
	color: #009983;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

header .heading-bar--language:hover,
header .heading-bar--language:focus-visible {
	text-decoration: underline;
}

.language-dialog {
	width: min(92vw, 520px);
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #222;
	overflow: visible;
}

.language-dialog::backdrop {
	background: rgba(0, 0, 0, 0.62);
}

.language-dialog__panel {
	position: relative;
	padding: 36px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
	text-align: center;
}

.language-dialog__panel h2 {
	margin: 0 0 8px;
	color: #087765;
	font-size: 1.65rem;
	line-height: 1.4;
}

.language-dialog__panel > p {
	margin: 0 0 24px;
	color: #444;
	font-size: 0.95rem;
}

.language-dialog__close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #edf6f3;
	color: #087765;
	font: inherit;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.language-dialog__close:hover,
.language-dialog__close:focus-visible {
	background: #dceee8;
}

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

.language-dialog__options a,
.language-dialog__options > span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 12px 16px;
	border: 1px solid #91c8ba;
	border-radius: 7px;
	background: #fff;
	color: #087765;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.language-dialog__options a:hover,
.language-dialog__options a:focus-visible {
	border-color: #087765;
	background: #edf8f4;
}

@media screen and (max-width: 767px) {
	.language-dialog {
		width: calc(100vw - 30px);
	}

	.language-dialog__panel {
		padding: 32px 20px 24px;
	}

	.language-dialog__panel h2 {
		font-size: 1.35rem;
	}

	.language-dialog__options {
		grid-template-columns: 1fr;
	}
}
