@charset "utf-8";
/*-------------------
popup_base
--------------------------------------------------*/
/*
.popup_base_wrap * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
*/
.popup_base_wrap {
	background: rgba(0,0,0,0.2);
	position: fixed;
		top: 0;
		left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999999;
}
.popup_base_box {
	background-color: #fff;
	border: 1px solid #999;
	border-radius: 8px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.6);
	margin: 10px;
	position: fixed;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
}
.popup_base_box p.popup_base_title {
	background: linear-gradient(to top, #ddd 40%, #eee 50%);
	background-color: #ddd; /* IEでborderとbackgroundの隙間を埋める処理 */
	border-bottom: 1px solid #999;
	border-radius: 7px 7px 0 0;
	font-size: 18px;
	font-size: 1.8rem;
	font-weight: bold;
	margin: 0 !important;
	min-height: 36px;
	/*padding: 7px 45px 5px 15px;*/
	padding: 8px;
	position: relative;
	text-align: center;
}
/* タイトルバーの閉じるアイコン */
.popup_base_box p.popup_base_title a.btn_x {
	background: linear-gradient(to top, #eee 40%, #f9f9f9 50%);
	background-color: #eee; /* IEでborderとbackgroundの隙間を埋める処理 */
	border: 1px solid #999;
	border-radius: 4px;
	color: #000 !important;
	cursor: pointer;
	position: absolute;
		top: 5px;
		right: 5px;
	text-decoration: none !important;
	transition: all .3s;
	width: 32px;
	height: 32px;
}
.popup_base_box p.popup_base_title a.btn_x::before,
.popup_base_box p.popup_base_title a.btn_x::after {
	background: #555;
	content: "";
	display: block;
	position: absolute;
		top: 14px;
		left: 7px;
	width: 16px;
	height: 2px;
}
_:-ms-lang(x), .popup_base_box p.popup_base_title a.btn_x::before, /* IE用 */
_:-ms-lang(x), .popup_base_box p.popup_base_title a.btn_x::after {
	left: 8px;
}
.popup_base_box p.popup_base_title a.btn_x::before {
	transform: rotate(45deg);
}
.popup_base_box p.popup_base_title a.btn_x::after {
	transform: rotate(-45deg);
}
.popup_base_box p.popup_base_title a:hover.btn_x {
	background: #fff !important;
	border-color: #aaa;
	color: #999 !important;
}
.popup_base_box p.popup_base_title a:hover.btn_x::before,
.popup_base_box p.popup_base_title a:hover.btn_x::after {
	background: #aaa;
}
.popup_base_box .popup_base_contents {
	overflow: auto;
	padding: 20px;
}
/* モーダルタイプの閉じるアイコン */
.popup_base_box.type_modal a.btn_x {
	background: #333;
	/*border: 2px solid #fff;*//* IEで1px以下の線が出るのでbox-shadowで対応 */
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
	border-radius: 50%;
	cursor: pointer;
	display: block;
	position: absolute;
		top: -8px;
		right: -8px;
	width: 32px;
	height: 32px;
	transition: all .3s;
	z-index: 10; /* 前面にしてクリックできるように */
}
.popup_base_box.type_modal a:hover.btn_x {
	background: #777;
}
.popup_base_box.type_modal a.btn_x::before,
.popup_base_box.type_modal a.btn_x::after {
	background: #fff;
	content: "";
	display: block;
	position: absolute;
		top: 15px;
		left: 8px;
	width: 16px;
	height: 2px;
}
.popup_base_box.type_modal a.btn_x::before {
	transform: rotate(45deg);
}
.popup_base_box.type_modal a.btn_x::after {
	transform: rotate(-45deg);
}
/* 閉じるボタン等（ポップアップ内のみで使用する場合。） */
.popup_base_box .btn_bottom {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 48px;
	width: 100%;
}
.popup_base_box a.btn_popup_normal {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #f3f3f3;
	border: 1px solid #666;
	border-radius: 4px;
	box-shadow: none;
	color: #000 !important;
	cursor: pointer;
	display: inline-flex;
		align-items: center;
		justify-content: center;
	font-family: inherit;
	font-size: inherit;
	line-height: 1;
	margin: 0 8px 8px;
	height: 56px;
	min-width: 200px;
	padding: 0 24px;
	transition: all .2s;
}
.popup_base_box a.btn_popup_normal:hover {
	background-color: #fff;
	text-decoration: none !important;
}
.popup_base_box a.btn_popup_normal:active {
	background-color: #fff;
}
@media screen and (max-width: 768px) { /*PAD*/
	.popup_base_box .btn_bottom {
		flex-direction: column;
		align-items: center;
		margin-top: 40px;
	}
	.popup_base_box a.btn_popup_normal {
		margin-right: auto;
		margin-left: auto;
	}
}/* @media */

.contents_fixed { /* ポップアップ表示時、mainコンテンツを固定する用 */
	position: fixed;
	width: 100%;
	height: 100%;
}
/* アニメーション設定 */
.popup_open_anim,
.popup_close_anim {
	-webkit-animation-duration: 0.2s;
	animation-duration: 0.2s;
	/*
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	*/
}
/* 背景を含む、ポップアップ全体のアニメーション */
/* アニメーション設定 */
.popup_open_anim,
.popup_close_anim,
.popup_open_anim .popup_base_box,
.popup_close_anim .popup_base_box {
	animation-duration: 0.2s;
	/*animation-fill-mode: forwards;*/
}
/* 背景の黒を含む、モーダル全体のアニメーション */
.popup_open_anim {
	animation-name: popup_wrap_open_keyframes;
}
.popup_close_anim {
	animation-name: popup_wrap_close_keyframes;
}
@keyframes popup_wrap_open_keyframes {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
} /* @keyframes */
@keyframes popup_wrap_close_keyframes {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
} /* @keyframes */
/* モーダル内のBoxのアニメーション */
.popup_open_anim .popup_base_box {
	animation-name: popup_box_open_keyframes;
}
.popup_close_anim .popup_base_box {
	animation-name: popup_box_close_keyframes;
}
@keyframes popup_box_open_keyframes {
	0% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
	}
} /* @keyframes */
@keyframes popup_box_close_keyframes {
	100% {
		transform: scale(0.98);
	}
} /* @keyframes */
