/*
 * menu.css  ―  ドロワーメニュー（max-width: 1024px）
 * * 【修正】サイドバー展開時にコンテンツが縮小・移動して右側に空白ができる問題を解消。
 * コンテンツのサイズを 100% (固定) とし、サイドバーをオーバーレイとして重ねる設定に変更。
 */

/* チェックボックスを非表示 */
.check {
    display: none;
}

/* * コンテンツ本体：
 * メニューが開いてもサイズが変わらないよう、幅を 100% に固定し、
 * スケーリングや移動を伴う transition を完全に無効化します。
 */
html body .contents {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important; /* コンテンツが縮小・移動するのを強制防止 */
    pointer-events: auto;
    transition: none !important;
}

/* メニュー展開中：背後のコンテンツ操作を無効化 */
html body .check:checked ~ .contents {
    pointer-events: none;
}

/* ── メニューボタン ────────────────────────────────────────────────── */
.ls-button,
.menu-btn {
    background: linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: #515151;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    margin: 7px 10px 0px 10px;
    padding: 8px 10px;
    position: relative;
    z-index: 10; 
}

ul.bogo-language-switcher {
    list-style: none;
}

.inline-block {
    background: white;
}

div.spacer1 {
    position: relative;
    right: 2.5px;
}

/* ドロワー本体：コンテンツの上に重ねる（Overlay） */
html body .drawer-menu {
    background: #FFF;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* 内側シャドウから外側シャドウへ変更して視認性向上 */
    height: 100%;
    left: 0;
    opacity: 1;
    position: fixed;
    top: 0;
    transform: translateX(-180px); /* 画面外に待機 */
    transition: transform 0.3s ease;
    visibility: visible;
    width: 180px;
    z-index: 100000;
}

/* メニューオープン時：コンテンツを動かさず、メニューだけがスライドイン */
html body .check:checked ~ .drawer-menu {
    transform: translateX(0);
}

/* ドロワー内の ✕ 閉じるボタン */
.close-menu {
    background: linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: #515151;
    cursor: pointer;
    display: block;
    float: right;
    font-size: 26px;
    font-weight: 400;
    height: 40px;
    margin: 5px 7px 0px 0px;
    position: relative;
    width: 40px;
    z-index: 100001;
}

.check:checked ~ .close-menu {
    background: rgba(0, 0, 0, .5);
    opacity: 1;
    transition-delay: .3s;
    transition-duration: 1s;
    visibility: visible;
}

/* ── close-area：画面全体のクリック判定 ─────────────────── */
div .close-area {
    background: rgba(0,0,0,0); /* 透明な幕 */
    border: 0;
    height: 100vh;
    left: 0;
    right: 0;
    margin: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: auto !important;
    z-index: 99998;
}

/* メニュー展開時：画面全体を覆い、コンテンツの縮小を招く要素を排除 */
html body .check:checked ~ div .close-area,
html body .check:checked + div .close-area,
html body .check:checked ~ .close-area {
    pointer-events: auto;
    visibility: visible;
    z-index: 99999;
    transform: none !important;
}

/* ── デザイン維持 ──────────────────────────────────── */

.inline-block {
    background: white;
    height: 0px;
}

ul {
    margin-block-start: 0px;
    margin-block-end: 0px;
    padding-left: 0px;
}

h6 {
    background: white;
    color: #515151;
    font-family: 'Dosis', sans-serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
    position: absolute;
    width: auto;
}

.cleartext {
    display: none;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

a.glink:hover,
a.glink:focus {
    color: rgb(255, 170, 170);
}

.glink-box {
    float: right;
}

a.glink,
a.englink {
    background: linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    display: inline-block;
    margin: 7px 10px 0px 0px;
    padding: 8px 10px;
    text-decoration: none;
}
