/**
 * サイト独自の上書きスタイル（テーマ設定の保存では上書きされない）
 */

/* ハンバーガーメニュー：button 要素にしたため、ブラウザ標準の見た目を打ち消す */
.bs-header__menu-button {
	padding: 0;
	border: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}
.bs-header__menu-button span {
	left: 0;
}
.bs-header__menu-button span:nth-child(1) {
	top: 0;
}
/* キーボード操作時のフォーカス表示 */
.bs-header__menu-button:focus-visible {
	outline: 3px solid #2B7BB9;
	outline-offset: 4px;
}
/* SP：閉じているメニューは読み上げ・フォーカスの対象から外す */
@media screen and (max-width: 768px) {
	.bs-header__nav {
		visibility: hidden;
		transition: transform 300ms ease, visibility 0s linear 300ms;
	}
	.bs-header__nav.bs-open {
		visibility: visible;
		transition: transform 300ms ease, visibility 0s;
	}
}

/* SP：メニュー項目の間隔を詰めて画面に収める（標準は上下 25px） */
@media screen and (max-width: 768px) {
	.bs-global-menu-item a,
	.bs-global-menu-item > a {
		padding: 8px 0;
		line-height: 1.4;
	}
	/* それでも画面の高さを超える場合はメニュー内でスクロール */
	.bs-header__nav {
		max-height: 80vh;
		overflow-y: auto;
	}
}

/* ヘッダーのサイト名（ロゴ画像が未設定のときに文字で表示） */
.bs-header__site-name {
	margin: 0;
	padding: 20px 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;
}
.bs-header__site-name-link:link,
.bs-header__site-name-link:visited {
	color: #001800;
	text-decoration: none;
}
.bs-header__site-name-link:hover {
	opacity: 0.7;
}
@media screen and (max-width: 768px) {
	.bs-header__site-name {
		padding: 14px 56px 14px 0; /* 右上のメニューボタンと重ならないように */
		font-size: 16px;
	}
}

/* メルマガ購読（フッターの上の1行とポップアップ） */
.bs-newsletter {
	padding: 24px 20px;
	text-align: center;
	border-top: 1px solid #dde3dd;
}
.bs-newsletter__button {
	padding: 10px 24px;
	border: 2px solid #001800;
	border-radius: 9999px;
	background: #fff;
	color: #001800;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
}
.bs-newsletter__button:hover {
	background: #001800;
	color: #fff;
}
.bs-newsletter__button:focus-visible,
.bs-newsletter__close:focus-visible {
	outline: 3px solid #2B7BB9;
	outline-offset: 3px;
}
.bs-newsletter__dialog {
	width: min(92vw, 540px);
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.bs-newsletter__dialog::backdrop {
	background: rgba(0, 0, 0, .45);
}
.bs-newsletter__head {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: flex-end;
	padding: 4px 4px 0;
	background: #fff;
	z-index: 1;
}
/* 見出しはフォーム側にあるため、ダイアログのタイトルは読み上げ専用にする */
.bs-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.bs-newsletter__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.bs-newsletter__close:hover {
	background: #eef1ee;
}
.bs-newsletter__body {
	min-height: 160px;
	padding: 0 16px;
}
.bs-newsletter__note {
	margin: 0;
	padding: 8px 16px 16px;
	font-size: 12px;
	color: #555;
}
