/* サイト内検索（ヘッダーのボタン・モーダル・検索結果） */

.gbs-btn{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;margin:0;border:0;border-radius:50%;background:#e3e8f2;color:#042275;cursor:pointer;padding:0;flex:none;line-height:1}
/* PC：寸法・文字・色・ホバーは l-header__units-link（テーマ）を使い、button 固有の初期値のみ打ち消す */
button.gbs-trigger{display:flex;align-items:center;margin:0;border:0;font-family:inherit;letter-spacing:.06em;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none}
button.gbs-trigger svg{flex:none;margin-right:.4rem}
.gbs-trigger:focus-visible,.gbs-btn:focus-visible,.gbs-x:focus-visible,.gbs-go:focus-visible{outline:2px solid #3c8ee0;outline-offset:2px}
.gbs-btn--sp{display:none}
@media screen and (max-width:59.3125em){
	.gbs-btn--sp{display:inline-flex;position:absolute;top:12px;right:62px;width:36px;height:36px;background:transparent}
	.l-header.is-simple .gbs-btn--sp{display:none}
}

/* モーダルは上下左右の中央。高さが足りない場合は margin:auto が 0 になり、上端が切れずにスクロールできる */
.gbs-ov{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200000;display:flex;overflow-y:auto;overscroll-behavior:contain;background:rgba(2,20,70,.72);padding:16px;box-sizing:border-box}
@supports (height:100dvh){.gbs-ov{bottom:auto;height:100dvh}}
.gbs-ov[hidden]{display:none}
.gbs-md{position:relative;flex:none;margin:auto;width:100%;max-width:760px;background:#fff;border-radius:8px;padding:44px 48px 40px;box-sizing:border-box;text-align:left}
.gbs-md h2.gbs-md__title{margin:0 0 22px;font-size:22px;color:#042275;font-weight:700;line-height:1.4;border:0;background:none;padding:0}
.gbs-md h2.gbs-md__title::before,.gbs-md h2.gbs-md__title::after,.gbs-wrap h2.gbs-count::before,.gbs-wrap h2.gbs-count::after{display:none}
.gbs-x{position:absolute;right:14px;top:12px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;border:0;background:none;cursor:pointer;color:#333;padding:0}

.gbs-form{display:flex;gap:10px;margin:0}
.gbs-form label{flex:1;display:flex;align-items:center;gap:10px;border:1px solid #c5cbd8;border-radius:6px;padding:0 16px;min-width:0;margin:0;color:#6b7280;background:#fff}
.gbs-form label:focus-within{border-color:#042275;box-shadow:0 0 0 1px #042275}
.gbs-form label svg{flex:none}
.gbs-form input[type="search"]{flex:1;width:100%;min-width:0;border:0;border-radius:0;outline:0;font-size:16px;height:54px;line-height:54px;padding:0;margin:0;background:transparent;box-shadow:none;color:#222;font-family:inherit;-webkit-appearance:none;appearance:none}
.gbs-form input[type="search"]::placeholder{color:#a5abb8}
.gbs-go{width:120px;flex:none;min-height:56px;margin:0;padding:0;border:0;border-radius:6px;background:#042275;color:#fff;font-size:15px;font-weight:700;letter-spacing:.05em;cursor:pointer;font-family:inherit}
.gbs-note{margin:14px 0 0;font-size:13px;color:#6b7280;line-height:1.7}

.gbs-wrap{max-width:932px;margin:0 auto;padding:48px 16px 96px;box-sizing:border-box}
.gbs-wrap h2.gbs-count{margin:40px 0 0;padding:0 0 14px;border:0;border-bottom:2px solid #042275;background:none;font-size:18px;font-weight:700;color:#042275;line-height:1.6;overflow-wrap:anywhere}
.gbs-wrap h2.gbs-count span{font-size:14px;font-weight:400;color:#555;margin-left:14px;white-space:nowrap}
a.gbs-item{display:flex;gap:20px;align-items:center;padding:28px 16px;border-bottom:1px solid #ccc;text-decoration:none;color:#222}
/* テーマのホバー・フォーカス時の下線は出さない。キーボード操作の枠は残す */
a.gbs-item:hover,a.gbs-item:focus,a.gbs-item:active,a.gbs-item:hover *,a.gbs-item:focus *{text-decoration:none}
a.gbs-item:focus-visible{outline:2px solid #3c8ee0;outline-offset:-2px}
.gbs-body{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.gbs-meta{display:flex;gap:16px;align-items:center;font-size:13px;margin-bottom:8px;flex-wrap:wrap}
.gbs-label{background:#eff3fa;border-radius:20px;padding:2px 16px;min-width:100px;text-align:center;font-size:12px;box-sizing:border-box}
.gbs-title{display:block;font-size:17px;font-weight:700;line-height:1.6;text-decoration:none;margin-bottom:8px;color:#042275}
.gbs-text{font-size:14px;line-height:1.85;color:#444;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gbs-arrow{width:20px;height:20px;border:1px solid #333;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.gbs-item mark{background:#fff0a6;color:inherit;padding:0 1px}

.gbs-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:48px}
.gbs-pager .page-numbers{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #c5cbd8;border-radius:50%;font-size:14px;color:#042275;text-decoration:none;box-sizing:border-box}
.gbs-pager .page-numbers.current{background:#042275;border-color:#042275;color:#fff}
.gbs-pager .page-numbers.dots{border-color:transparent}
.gbs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.gbs-zero{padding:56px 0 0;text-align:center;line-height:2}
.gbs-zero strong{display:block;font-size:18px;color:#042275;margin-bottom:12px}
.gbs-zero p{margin:0;font-size:14px;color:#444}
.gbs-zero a{display:inline-block;margin-top:28px;background:#042275;color:#fff;border-radius:30px;padding:12px 40px;text-decoration:none;font-weight:700;font-size:14px}

@media screen and (max-width:767px){
	.gbs-md{padding:40px 20px 28px}
	.gbs-form{flex-direction:column}
	.gbs-form label{flex:none}
	.gbs-go{width:100%}
	.gbs-wrap{padding-top:28px}
	a.gbs-item{padding:22px 0;gap:12px}
	a.gbs-item:focus-visible{outline-offset:6px}
	.gbs-title{font-size:15px}
	.gbs-text{font-size:13px}
	.gbs-wrap h2.gbs-count{font-size:16px;margin-top:28px}
	.gbs-wrap h2.gbs-count span{display:block;margin:4px 0 0}
}
