@charset "utf-8";

/* ============================================================================
   グローバルメニュー（フッターのサイトマップ項目をヘッダーへ集約）
   - 透過グラデーション＋背景ぼかしの帯
   - トップページはメインビジュアルの上に重ねて、写真を透かして見せる
   - 下層ページは白地の上にブランド3色を薄く流したガラス調の帯
   - 767px以下では非表示（既存のハンバーガー #gnav 側に項目を追加）
   ========================================================================= */

#gnav-global {
	position: relative;
	z-index: 240;
	font-family: 'Rounded Mplus 1c', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
	background:
		linear-gradient(90deg, rgba(67,156,201,.15) 0%, rgba(110,178,0,.10) 50%, rgba(255,181,49,.15) 100%),
		linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.80) 55%, rgba(255,255,255,.94) 100%);
	-webkit-backdrop-filter: blur(12px) saturate(150%);
	backdrop-filter: blur(12px) saturate(150%);
	box-shadow: 0 10px 26px -18px rgba(24,66,90,.55);
}

/* 上端・下端のやわらかいハイライト */
#gnav-global::before,
#gnav-global::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	pointer-events: none;
}
#gnav-global::before {
	top: 0;
	background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9) 50%, rgba(255,255,255,0));
}
#gnav-global::after {
	bottom: 0;
	background: linear-gradient(90deg, rgba(67,156,201,0), rgba(67,156,201,.22) 50%, rgba(255,181,49,0));
}

.gg-inner {
	width: 1000px;
	margin: 0 auto;
}
.gg-list {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}
.gg-item {
	position: relative;
	flex: 0 1 auto;
}

/* --- 第1階層 ------------------------------------------------------------ */
.gg-item > a {
	position: relative;
	display: block;
	padding: 17px 14px 16px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .06em;
	color: #3f5a68;
	text-decoration: none;
	white-space: nowrap;
	transition: color .3s ease, background .3s ease;
}
.gg-item > a:hover {
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.85));
}
/* ホバーで中央から伸びる下線 */
.gg-item > a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 9px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(127,168,189,0), #7fa8bd 50%, rgba(127,168,189,0));
	transition: left .34s cubic-bezier(.22,.8,.3,1), right .34s cubic-bezier(.22,.8,.3,1);
}
.gg-item:hover > a::after,
.gg-item:focus-within > a::after {
	left: 12px;
	right: 12px;
}
.gg-item:hover > a,
.gg-item:focus-within > a {
	color: #2f83ad;
}

/* サブメニューを持つ項目の下向きシェブロン */
.gg-item.has-sub > a {
	padding-right: 26px;
}
.gg-item.has-sub > a::before {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: .45;
	transform: rotate(45deg);
	transition: opacity .3s ease, transform .3s ease;
}
.gg-item.has-sub:hover > a::before,
.gg-item.has-sub:focus-within > a::before {
	opacity: .95;
	transform: rotate(45deg) translate(1px, 1px);
}

/* 事業ごとのアクセントカラー */
.gg-item.clinic > a::after {
	background: linear-gradient(90deg, rgba(67,156,201,0), #439cc9 50%, rgba(67,156,201,0));
}
.gg-item.care > a::after {
	background: linear-gradient(90deg, rgba(110,178,0,0), #6eb200 50%, rgba(110,178,0,0));
}
.gg-item.residence > a::after {
	background: linear-gradient(90deg, rgba(255,181,49,0), #ffb531 50%, rgba(255,181,49,0));
}
.gg-item.clinic:hover > a,
.gg-item.clinic:focus-within > a {
	color: #2f83ad;
}
.gg-item.care:hover > a,
.gg-item.care:focus-within > a {
	color: #5c9600;
}
.gg-item.residence:hover > a,
.gg-item.residence:focus-within > a {
	color: #d99512;
}

/* --- ドロップダウン ----------------------------------------------------- */
.gg-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 250px;
	padding: 20px 24px 22px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(-8px);
	background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(242,250,253,.93) 100%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border-radius: 0 0 12px 12px;
	box-shadow:
		0 22px 44px -20px rgba(20,60,85,.5),
		0 1px 0 rgba(255,255,255,.75) inset;
	transition: opacity .3s ease, transform .3s cubic-bezier(.22,.8,.3,1), visibility .3s;
}
.gg-item:hover > .gg-panel,
.gg-item:focus-within > .gg-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
/* パネル上端のグラデーションライン */
.gg-panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(127,168,189,.2), #7fa8bd 50%, rgba(127,168,189,.2));
}
.gg-item.clinic .gg-panel::before {
	background: linear-gradient(90deg, rgba(67,156,201,.2), #439cc9 50%, rgba(67,156,201,.2));
}
.gg-item.care .gg-panel::before {
	background: linear-gradient(90deg, rgba(110,178,0,.2), #6eb200 50%, rgba(110,178,0,.2));
}
.gg-item.residence .gg-panel::before {
	background: linear-gradient(90deg, rgba(255,181,49,.2), #ffb531 50%, rgba(255,181,49,.2));
}

/* 画面端にはみ出す項目の位置合わせ */
.gg-item.gg-align-left > .gg-panel {
	left: 0;
	transform: translateX(0) translateY(-8px);
}
.gg-item.gg-align-left:hover > .gg-panel,
.gg-item.gg-align-left:focus-within > .gg-panel {
	transform: translateX(0) translateY(0);
}
.gg-item.gg-align-right > .gg-panel {
	left: auto;
	right: 0;
	transform: translateX(0) translateY(-8px);
}
.gg-item.gg-align-right:hover > .gg-panel,
.gg-item.gg-align-right:focus-within > .gg-panel {
	transform: translateX(0) translateY(0);
}

.gg-panel.wide {
	min-width: 560px;
}
.gg-cols {
	display: flex;
}
.gg-col {
	flex: 1 1 0;
	min-width: 0;
}
.gg-col + .gg-col {
	margin-left: 28px;
	padding-left: 28px;
	border-left: 1px solid rgba(67,156,201,.14);
}

/* パネル内の見出し */
.gg-head {
	margin: 0 0 6px;
	padding: 0 0 5px 2px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	color: #8aa3b0;
	border-bottom: 1px solid rgba(67,156,201,.18);
}
.gg-head a {
	color: #6f8f9f;
	text-decoration: none;
	transition: color .25s ease;
}
.gg-head a:hover {
	color: #2f83ad;
}
.gg-group + .gg-group,
.gg-group + .gg-plain,
.gg-plain + .gg-group {
	margin-top: 14px;
}

/* パネル内のリンク */
.gg-panel li {
	list-style: none;
}
.gg-panel li a {
	position: relative;
	display: block;
	padding: 7px 8px 7px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #4a5a63;
	text-decoration: none;
	border-radius: 6px;
	transition: color .25s ease, background .25s ease, padding-left .25s ease;
}
.gg-panel li a::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	border-radius: 50%;
	background: currentColor;
	opacity: .25;
	transition: opacity .25s ease;
}
.gg-panel li a:hover {
	color: #2f83ad;
	padding-left: 20px;
	background: linear-gradient(90deg, rgba(67,156,201,.14), rgba(67,156,201,0));
}
.gg-panel li a:hover::before {
	opacity: .9;
}
.gg-item.care .gg-panel li a:hover {
	color: #5c9600;
	background: linear-gradient(90deg, rgba(110,178,0,.14), rgba(110,178,0,0));
}
.gg-item.residence .gg-panel li a:hover {
	color: #d99512;
	background: linear-gradient(90deg, rgba(255,181,49,.18), rgba(255,181,49,0));
}
.gg-panel .gg-sub {
	margin: 2px 0 2px 14px;
	padding-left: 10px;
	border-left: 1px solid rgba(67,156,201,.16);
}
.gg-panel .gg-sub a {
	font-size: 13px;
	color: #6f8290;
}

/* --- トップページ：メインビジュアルに重ねる ----------------------------- */
@media (min-width: 768px) {
	#index #gnav-global {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		background:
			linear-gradient(90deg, rgba(67,156,201,.18) 0%, rgba(110,178,0,.10) 50%, rgba(255,181,49,.18) 100%),
			linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.70) 40%, rgba(255,255,255,.93) 100%);
	}
	/* vegas がヘッダーに付ける overflow:hidden を解除（ドロップダウンが切れるため） */
	body#index #header.vegas-container {
		overflow: visible !important;
	}
	/* 下層ページはロゴ行との間にわずかな余白を置く */
	#page #gnav-global {
		margin-top: 18px;
	}
}

/* --- モバイル：帯は隠し、既存のドロワー(#gnav)に項目を追加 --------------- */
@media (max-width: 767px) {
	#gnav-global {
		display: none;
	}
	#gnav .gnav-extra {
		display: flex;
		flex-wrap: wrap;
		align-content: flex-start;
		border-top: 3px solid rgba(67,156,201,.35);
		background: linear-gradient(180deg, #ffffff, #eef7fb);
	}
	#gnav .gnav-extra li {
		flex: 0 0 50%;
		max-width: 50%;
		min-width: 0;
		border-bottom: 1px solid #ccc;
		background: transparent;
	}
	#gnav .gnav-extra li a {
		font-size: .9rem;
		color: #3f5a68;
	}
}
