@charset "utf-8";
/* 通常表示 */
#traffic-map-wrap {
	width: 100%;
	height: 23.4em;
	overflow: hidden;
	border-radius: 16px;
}

#traffic-map-wrap .traffic-map-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
}

#traffic-map-wrap #traffic-map {
	position: relative;
	z-index: 0; /* 地図内部の z-index を閉じ込めて閉じるボタンを前面に出す */
	width: 100% !important;
	height: 100% !important;
}

.p-index-weather__inner:has(#traffic-map-wrap.is-expanded) {
	z-index: auto;
}

/* 拡大表示：背景 */
#traffic-map-wrap.is-expanded::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9998;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(2px);
}

/* 拡大表示：画面の 90% で中央に表示 */
#traffic-map-wrap.is-expanded .traffic-map-inner {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	aspect-ratio: 16/9;
	width: 90vw;
	height: auto;
	max-width: 1250px;
	max-height: 80dvh;
	transform: translate(-50%, -50%);
}

/* 拡大ボタン */
#traffic-expand {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 1.4em;
	line-height: 1;
	width: fit-content;
	margin: 1em 0 0 auto;
	background: none;
	border: none;
	outline: none;
	color: #fff;
	cursor: pointer;
	transition: .2s;
	&::before {
		content: "";
		display: block;
		aspect-ratio: 1 / 1;
		width: 1em;
		background: var(--c_wh) url(../img/arrow02_rd.svg) no-repeat center center / 100% auto;
		border-radius: 50%;
		overflow: hidden;
	}
	&::after {
		content: "";
		display: block;
		aspect-ratio: 1 / 1;
		width: .9em;
		background: url(../img/icon_zoom.svg) no-repeat center center / 100% auto;
	}
	&:hover {
		opacity: .7;
	}
}

/* 閉じるボタン */
#traffic-close {
	display: none;
	position: absolute;
	top: 10px;
	right: 10px;
	border-radius: 5px;
	z-index: 10;
	width: 40px;
	aspect-ratio: 1;
	background: rgba(0,0,0,.8) url(../img/icon_close.svg) no-repeat center center / 45% auto;
	border: 1px solid #ccc;
	cursor: pointer;
	font-size: 1px;
	color: transparent;
	line-height: 0;
	border: 1px solid #ccc;
	cursor: pointer;
	transition: .2s;
	box-shadow: 1px 1px 5px rgba(0,0,0,.3);
	&:hover {
		background-color: #4d4d4d;
	}
}

#traffic-map-wrap.is-expanded #traffic-close {
    display: block;
}
@media screen and (max-width: 767px) {
	#traffic-map-wrap {
		height: 33em;
		border-radius: 5px;
	}
	#traffic-map-wrap.is-expanded .traffic-map-inner {
		aspect-ratio: auto;
		height: 65dvh;
	}
	#traffic-expand {
		font-size: 2em;
		margin-top: 1.5em;
	}
	#traffic-close {
		width: 30px;
		top: 5px;
		right: 5px;
	}
	.gm-err-title {
		font-size: 14px;
		margin-bottom: 5px;
	}
}