body {
    max-width: 1600px;
    margin: 0 auto;
}
main:before {
    display: none;
}
body#membo .toolbar h1 {
	display: none;
}


.toolbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--toolbar-height);
	background-color: white;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	z-index: 1000;
	padding: 0 16px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	background: var(--glass-bg);
	backdrop-filter: var(--glass-backdrop);
	-webkit-backdrop-filter: var(--glass-backdrop);
	border: 1px solid var(--glass-border);
	padding: 15px 10px 15px 20px;
	/* margin-bottom: 30px; */
	/* background-color: #454c84; */
	gap: 5px;
}

.toolbar-hamburger-btn {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: flex-end;
	justify-content: right;
	color: var(--text-primary);
	font-size: 1.2em;
	cursor: pointer;
	font-size: 20px;
	color: #fff;
}
.toolbar-hamburger-btn .fas {
	color: #666;
	-webkit-font-smoothing: antialiased;
	display: var(--fa-display, inline-block);
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
}
.fa-bars:before, .fa-navicon:before {
	content: "\f0c9";
}
body#membo .toolbar-hamburger-btn .fas {
	color: #fff;
}

.hamburger-menu-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}



.hamburger-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hamburger-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.hamburger-menu {
	position: fixed;
	top: 0;
	right: -300px;
	width: 300px;
	height: 100vh;
	background-color: white;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	transition: right 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.hamburger-menu.active {
	right: 0;
}

.hamburger-menu-header {
	padding: 8px 10px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #454c84;
	color: white;
}
.hamburger-menu-web-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.hamburger-menu-web-link i {
    font-size: 12px;
}

.hamburger-menu-close {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: white;
	font-size: 24px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}
.hamburger-menu-item {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border-color);
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-decoration: none;
	color: var(--dark-color);
}
.hamburger-menu-item-icon {
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #454c84;
}
.hamburger-menu-item-icon .fas {
	color: #454c84;
}
.hamburger-menu-item-label {
	flex: 1;
	font-size: 16px;
	font-weight: 500;
}
.hamburger-menu-item-icon img {
	width: 24px;
	height: auto;
}

/* .open クラス対応（JSとの整合性） */
.hamburger-menu-overlay.open {
	opacity: 1;
	visibility: visible;
}
.hamburger-menu.open {
	right: 0;
}


.step .change-button {
    top: 280px;
}

/* ========================================
   Language Switcher Panel
   ======================================== */

/* Panel overlay */
.lang-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lang-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Language panel (slides from right) */
.lang-panel {
    position: fixed;
    top: 30%;
    right: -320px;
    transform: translateY(-50%);
    width: 320px;
    background-color: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    border-radius: 12px 0 0 12px;
    padding: 16px;
}

.lang-panel.active {
    right: 9%;
}

/* 3x3 Grid */
.lang-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Language item button */
.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background-color: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.lang-item:hover {
    background-color: #e8e8e8;
    border-color: #454c84;
}

.lang-item:active {
    transform: scale(0.95);
}

/* Active language indicator */
.lang-item.active {
    background-color: #454c84;
    border-color: #454c84;
}

.lang-item.active .lang-key {
    color: white;
}

/* Flag image */
.lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

/* Language key text */
.lang-key {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* Close button (last item) */
.lang-item.lang-close {
    background-color: #f0f0f0;
    color: #666;
}

.lang-item.lang-close:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.lang-item.lang-close i {
    font-size: 24px;
    color: #666;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .lang-panel {
        width: 320px;
        right: -320px;
        padding: 12px;
	        top: 25%;
    }
	.lang-panel.active {
	    right: 0;
	}

    .lang-panel-grid {
        gap: 8px;
    }

    .lang-item {
        padding: 10px 6px;
    }

    .lang-flag {
        width: 28px;
        height: 28px;
    }

    .lang-key {
        font-size: 11px;
    }
}

body#membo .step .tabs button {
    white-space: nowrap;
}
