@charset "utf-8";

#popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    transition: opacity 0.3s ease;
    opacity: 1;
}
#popup-overlay.hidden,
#popup-banner.hidden {
    opacity: 0;
    pointer-events: none;
}
#popup-container {
    position: relative;
    padding: 4px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    max-height: 80%;
    transform: scale(1);
    transition: transform 0.3s ease;
}
#popup-overlay.hidden #popup-container {
    transform: scale(0.95);
}
#popup-video {
    width: 100%;
    max-height: 60vh;
    display: block;
}
#close-popup-btn {
    position: absolute;
    top: -36px;
    right: -24px;
    border: none;
    background: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}
#popup-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: clamp(240px, 30vw, 320px);
	height: auto;
	aspect-ratio: 5/3;
	padding: clamp(10px, 2vw, 20px);
	background: #fff;
	border: 2px solid #195869;
	position: fixed;
	left: 10px;
	bottom: 10px;
	z-index: 9999;
	transition: .3s;
}
#popup-banner img {
	width: 100%;
}
#popup-banner p {
	font-size: .95em;
	text-align: center;
	line-height: 1.0;
	span {
		display: inline-block;
		font-size: 1.25em;
		line-height: 1.0;
		margin: 8px 0 10px;
		color: #195869;
		font-weight: bold;
	}
}
#popup-banner #open-popup-btn {
	color: #fff;
	background: #195869;
	border: 2px solid #195869;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: auto;
	margin: 10px auto 0;
	padding: 10px;
	transition: .3s;
}
#popup-banner #open-popup-btn:hover {
	cursor: pointer;
	color: #195869;
	background: #fff;
}
#popup-banner .fixed_contents_link {
	color: #195869;
	background: #e0eef2;
	border: 2px solid #195869;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: auto;
	margin: 10px auto 0;
	padding: 10px;
	transition: .3s;
	a { color: #195869;}
	a:hover { color: #fff;}
}
#popup-banner .fixed_contents_link:hover {
	cursor: pointer;
	color: #fff;
	background: #195869;
}
#popup-banner.closed {
	left: calc(clamp(240px, 30vw, 320px) * -1);
}
#popup-banner .close-btn {
	position: absolute;
	bottom: 2px;
	right: -46px;
	border: 0;
	padding: 15px;
	background: #195869;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: .3s;
	img {
		width: 1em;
		height: auto;
		aspect-ratio: 1/1;
		object-fit: cover;
	}
}
#popup-banner .icon_close,
#popup-banner .text_close,
#popup-banner .icon_open,
#popup-banner .text_open {
	color: #fff;
	line-height: 1;
	writing-mode: vertical-rl;
	margin: 0;
	padding: 0;
}

#popup-banner.closed .icon_close,
#popup-banner.closed .text_close {
	display: none;
}
#popup-banner .icon_open,
#popup-banner .text_open {
	display: none;
}
#popup-banner.closed .icon_open,
#popup-banner.closed .text_open {
	display: block;
}