@charset "utf-8";

/*======== 追従要素 ========*/
.follow_el {
	width: 100%;
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateY(5px);
	z-index: 999;
	opacity: 0;
	transition: .3s;
	pointer-events: none;
}

.follow_el.is_show {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/*======== ユーザーのデバイスを判定 ========*/
.os_switch.is-pc [data-pc-display='hide'] {
	display: none;
}

.os_switch.is-pc .app_link {
	cursor: default;
	pointer-events: none;
}

.is-ios .app_code,
.is-android .app_code {
	display: none;
}

.is-ios [data-os-type='android'],
.is-android [data-os-type='ios'] {
	display: none;
}

/*======== クリップボードにコピー ========*/
.copy_demo_area {
	cursor: pointer;
}

/*======== モーダル ========*/
.modal {
	border: none;
	transform: scale(0.95);
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
}

.modal[open] {
	transform: scale(1);
	opacity: 1;
}

@starting-style {
	.modal[open] {
		transform: scale(0.95);
		opacity: 0;
	}

	.modal[open]::backdrop {
		opacity: 0;
	}
}

/* 背景（backdrop） */
.modal::backdrop {
	background: rgba(0, 0, 0, .8);
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
}

.modal[open]::backdrop {
	opacity: 1;
}

/* 閉じる時（JSで付与する共通クラス） */
.modal.is_closing,
.modal.is_closing::backdrop {
	opacity: 0;
}

.modal.is_closing {
	transform: scale(0.95);
}

/*======== メニュー ========*/
/* メニュー */
html:has(.menu_panel) #header-2 {
	background-color: #FFF;
	position: relative;
	z-index: 1001;
}
html:has(.menu_panel) {
	overflow-x: hidden;
}

body.no_scroll,
.container-wrap.no_scroll {
	width: 100%;
	position: fixed;
	left: 0;
}

.menu_btn {
	background: transparent;
	border: none;
	width: 30px;
	height: 30px;
	position: absolute;
	top: 70px;
	right: 10px;
	z-index: 1001;
	cursor: pointer;
}

.menu_btn.is_lock {
	position: fixed;
	top: 10px;
}

.btn_line {
	background: #000;
	width: 30px;
	height: 2px;
	position: absolute;
	left: 0;
	transition: 0.3s;
}

.btn_line:nth-child(1) {
	top: 0;
}

.btn_line:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.btn_line:nth-child(3) {
	bottom: 0;
}

.menu_btn.is_active .btn_line:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
}

.menu_btn.is_active .btn_line:nth-child(2) {
	opacity: 0;
}

.menu_btn.is_active .btn_line:nth-child(3) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.menu_panel {
	background-color: #f0f0f0;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 60px;
	right: 0;
	z-index: 1000;
	overflow-y: scroll;
	visibility: hidden;
	transition:
		transform 0.3s ease,
		visibility 0s linear 0.3s;
	;
	scrollbar-width: none;
}

.menu_panel::-webkit-scrollbar {
	display: none;
}

.menu_panel.is_lock {
	position: fixed;
	top: 0;
}

.menu_panel.is_active {
	visibility: visible;
	transition: transform 0.3s ease;
}

.menu_in_top {
	height: 80%;
	transform: translateY(-100%);
}

.menu_in_right {
	width: 80%;
	transform: translateX(100%);
}

.menu_in_top.is_active,
.menu_in_right.is_active {
	transform: translate(0);
}

@media screen and (max-width: 767px) {
	.menu_panel {
		width: 100dvw;
		height: 100dvh;
	}
}

/*======== タブ切り替え ========*/
.tab_head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 5px;
}

.tab_btn {
	flex: 1;
	background-color: #fff;
	border: 1px solid #000;
	border-radius: 8px 8px 0 0;
	width: 100%;
	height: 55px;
	padding-bottom: 5px;
	transform-origin: bottom center;
	transform: translateY(5px);
	transition: .5s;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.tab_btn:focus {
	outline: none;
}

.tab_btn:focus-visible {
	border-radius: 8px 8px 0 0;
	position: relative;
}

.tab_btn.is_active {
	color: #fff;
	background-color: #000;
	padding-bottom: 0;
	transform: translateY(0);
}

.tab_panel {
	background-color: #fff;
	border: 1px solid #000;
	border-top: 5px solid #000;
	border-radius: 0 0 8px 8px;
	padding: 30px 0;
	position: relative;
}

@media screen and (max-width: 767px) {

	/*======== メニュー ========*/
	.menu_panel {
		width: 100dvw;
		height: 100dvh;
	}
}
