/* KAERUボタン */
.kaeru_icon {
	position: fixed !important;
	top: unset !important;
	bottom: 18vw !important;
	right: 31vw !important;
	z-index: 2147483645;
}

.kaeru_icon .kaeru_icon_background {
	position: absolute;
	bottom: 0;
	object-fit: cover;
	width: 29vw;
	height: 11vw;
	border: none;
	background-image: url("https://images.1geki.jp/wp-content/uploads/2025/10/KAERU-button.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-color: transparent;
}

.kaeru_icon .kaeru_icon_background img {
	height: 77%;
	margin-right: 0.5vw;
	padding-left: 1vw;
	width: auto;
}

.kaeru_icon .kaeru_icon_background span {
	font-size: 4.8vw;
	margin-top: 0.4vw;
	padding-right: 1vw;
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 900;
	font-style: normal;
	color: #424242;
}

body.modal-open {
	overflow: hidden;
	height: 100vh;
	position: fixed;
	width: 100%;
}

/* モーダル全体 */
.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 元の 0.5 に戻しました */
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    z-index: 2147483646; /* 元の z-index に戻しました */
    position: fixed;
    top: 0;
    left: 0;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* モーダルウィンドー部分 */
.modal_window {
	background-color: white;
	width: 60%;
	max-width: 75vw;
	border-radius: 5vw;
	box-shadow: 0 1vw 2vw rgba(0, 0, 0, 0.2);
	text-align: center;
	padding: 5vw 0 0;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.modal_button_list {
	max-height: calc(12vw * 7);
	overflow-y: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.modal_window h2 {
	font-size: 1.2em;
	display: block;
	margin: 0 0 2vw;
	padding: 0;
	color: #666;
	letter-spacing: 0.1em;
	background: transparent;
}

.modal_window button {
	display: block;
	width: 100%;
	padding: 3vw;
	border: none;
	border-top: 1px solid #ccc;
	color: #007aff;
	text-decoration: none;
	font-size: 3.7vw;
}

.modal_window button:last-child {
	color: #666;
}

.modal_window p {
	margin: 0 2vw 2vw;
	color: #666;
	font-size: 2.8vw;
}

.modal_window .modal_button_list > button:last-of-type {
	font-weight: normal !important;
}

.modal_window button.not_used .label_area {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	color: #aaa;
}

.modal_window button.not_used .shop_name {
	text-align: left;
	font-size: 3.7vw;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modal_window button.not_used .star {
	margin-left: 1vw;
	font-size: 4.5vw;
	transition: color 0.3s;
}

.modal_window button.not_used:active .star {
	color: #FFD700;
}
.modal_window button.not_used.star-highlight .star {
	color: #FFD700;
}

button.not_used {
	color: #666;
}

.sorry {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 2147483647;
	text-align: center;
}

.sorry.active {
	display: flex;
}

.sorry .loading_inner {
	background-color: white;
	border-radius: 3vw;
	padding: 5vw 4vw;
	box-shadow: 0 1vw 2vw rgba(0, 0, 0, 0.25);
	max-width: 60vw;
	width: auto;
}

.sorry p {
	font-size: 3.4vw;
	color: #424242;
	margin-bottom: 4vw;
	line-height: 1.7;
	padding: 0;
}

.sorry .loading_image {
	width: 50%;
	height: auto;
	margin: 0 auto;
}

.close_sorry_button {
    width: 40vw;
    margin-top: 4vw;
    padding: 2vw 4vw;
    font-size: 4vw;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 2vw;
    cursor: pointer;
    box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.2);
}

.loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2147483647;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.loading.show {
	opacity: 1;
	pointer-events: all;
}

.loading_inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
}

.loading_image {
	width: 100%;
	height: auto;
	margin-bottom: 2vw;
}

.kaeru_icon {
	display: none;
}

html.show-kaeru-icon .kaeru_icon {
	display: block;
}

.no_store_notice {
	font-size: 3.5vw;
	color: #666;
	margin: 4vw 2vw;
	line-height: 1.6;
	text-align: center;
}
#overlayBannerImage {
	display: none;
}

#modal .modal_window button,
#back_modal .modal_window button {
	display: flex;
	width: 100%;
	padding: 2.5vw;
	border: none;
	border-top: 1px solid #ccc;
	color: #007aff;
	text-decoration: none;
	background: none;
	cursor: pointer;
	align-items: center;
	justify-content: left;
}
#modal .modal_window button .icon,
#back_modal .modal_window button .icon{
	display:block;
	width:10vw;
	margin-right:3.5vw;
}
#modal .modal_window button .shop_name,
#back_modal .modal_window button .shop_name{
	word-break: auto-phrase;
	overflow:auto;
	font-size: 4vw;
	text-align: left;
}
#modal .modal_window .not_used .shop_name,
#back_modal .modal_window .not_used .shop_name{
	color: #aaa;
}
.modal_button_list img {
	object-fit: cover;
	width: min(40px, 10vw);
	height: min(40px, 10vw);
	border-radius: min(110px, 10vw);
	padding: 2px;
	background-color: #ffffff;
	box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.2);
	opacity: 0.9;
}
.modal_window .not_used .star {
	margin-left: 1vw;
	font-size: 4.5vw;
	transition: color 0.3s;
	color: #aaa;
}
.button_text{
	margin:1vw auto;
	font-size:4vw;
}
#back_modal .modal_window .kaeru_cancell{
	display:block;
	width:80%;
	margin:-3vw auto 3vw;
	color:#fff;
	font-weight:700;
	letter-spacing:0.3vw;
	padding:3vw;
	border-radius:2vw;
	background:
		linear-gradient(#dcdcdc, #c7c7c7 52%, #a9a9a9);
	box-shadow:
		0 2px 0 rgba(0,0,0,.25),
		inset 0 1px 0 rgba(255,255,255,.75),
		inset 0 -2px 0 rgba(0,0,0,.15);
	position:relative;
	text-shadow:0 1px 0 rgba(0,0,0,.35);
	cursor:pointer;
	-webkit-tap-highlight-color: transparent;
}

#back_modal .modal_window .kaeru_cancell::before{
	content:"";
	position:absolute;
	inset:1.1vw;
	border-radius:1.4vw;
	border:1px solid rgba(255,255,255,.65);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.5),
		inset 0 -1px 0 rgba(0,0,0,.12);
	pointer-events:none;
}

#back_modal .modal_window .kaeru_cancell .button_text{
	display:inline-block;
	font-size:clamp(14px, 3.6vw, 3.6vw);
	line-height:1;
}

/* ===================================================
   共通スタイル: Webpop (右スライドパネル) と 閉じるボタン
   =================================================== */

.webpop_modal {
    background-color: rgba(0, 0, 0, .7);
    z-index: 9999999999;
}

.webpop_modal .webpop {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-color: #fff;
    overflow-y: scroll;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.modal.webpop_modal.active .webpop {
    transform: translateX(0);
}

.close_webpop_btn{
    position: fixed;
    left: 4vw !important;
    bottom: 0;
    cursor: pointer;
    display: none;
    width: 110px;
    height: 110px;
}
.webpop_modal.active .close_webpop_btn{
    display: block;
    padding: 2px;
}
.close_webpop_btn img{
    background-color: #fff;
    width: min(110px, 18vw);
    height: min(110px, 18vw);
    border-radius: min(110px, 18vw);
    box-shadow: 0px 0px 3px 3px rgb(0 0 0 / 20%);
    opacity: 0.9;
    padding: 2px;
}
