/* ヘッダー */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* 背景を透明に */
    background: transparent;
    /* ぼかしと影を削除 */
    backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    /* 画像より上に */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s;
}

.close-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
    color: #333;
}

.logo-img {
    height: 32px;
}

.menu-btn {
    background: white;
    backdrop-filter: blur(8px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 20px;
    height: 2px;
    background: #333;
    display: block;
    position: relative;
}

.hamburger::before {
    content: "";
    top: -6px;
    left: 0;
    position: absolute;
}

.hamburger::after {
    content: "";
    top: 6px;
    left: 0;
    position: absolute;
}



/* ボトムシート */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 16px 24px 32px;
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.btn-primary {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 16px;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ドロワーメニュー */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
}

.drawer.active {
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 24px;
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-list {
    list-style: none;
    margin-top: 20px;
}

.drawer-list li {
    margin-bottom: 1.4rem;
    color: #333;
    font-size: 1.1rem;
}

.drawer-list li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.divider {
    height: 1px;
    background: #eee;
}

.logout-link {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 1.1rem;
}

.drawer-list i {
    width: 20px;
    text-align: center;
    margin-right: 20px;
}

.lang-setting {
    display: block;
    align-items: center;
    border-radius: 12px;
}

.lang-label {
    display: flex;
}

.lang-setting i {
    font-size: 18px;
}

.lang-setting label {
    white-space: nowrap;
}

.lang-setting select {
    display: block;
    margin: 14px 10px 0px 38px;
    padding: 6px 18px 6px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 13px;
    cursor: pointer;
}
