/* ============================================================
   en/common/css/mobile.css
   英語版 共通モバイルCSS（ヘッダー・スライドメニュー・フッター）
   日本語版 common/css/new2026.common.min.css の @media(max-width:740px)
   をコピーし、英語版向けに修正（rem基準が異なるためpx使用）。
   ============================================================ */
@media screen and (max-width: 740px) {

    /* --- 基本: モバイル表示切替（日本語版と同様） --- */
    .mobile {
        display: block;
        width: 100%;
    }

    .pc,
    .anime,
    .hidden {
        display: none !important;
    }

    body,
    header#top {
        width: 100%;
        margin: 0;
    }

    /* スライドメニュー（画面外fixed）による横オーバーフロー防止 */
    html,
    body {
        overflow-x: hidden;
    }

    /* --- ヘッダー: ロゴ背景画像（日本語版と同様） --- */
    header#top {
        height: 0;
        padding-top: 24.8%;
        margin-top: 53px;
        position: relative;
        background: url(../img/mobile/header.png) no-repeat;
        background-size: contain;
    }

    /* --- 固定トップバー（Menuボタン + 各アイコン） --- */
    .toplink {
        display: flex;
        align-items: center;
        z-index: 3;
        background-color: #fff;
        width: 100%;
        position: fixed !important;
        top: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .toplink a {
        padding-left: .3rem;
        display: inline-block;
    }

    .toplink img {
        max-width: 40px;
        height: auto;
    }

    button.btn-menu {
        margin-right: auto;
        background-color: #fff;
        border-radius: .5rem;
        width: 5rem;
        color: #009e8f;
        font-weight: 700;
        border: 1px solid #444;
        cursor: pointer;
        font-size: 1rem;
        line-height: 2rem;
    }

    /* --- スライドインメニュー（右から、rightベース） --- */
    nav.spglobal {
        background: #009e8f;
        position: fixed;
        z-index: 2;
        top: 60px;
        bottom: 0;
        right: -100%;
        width: 100%;
        transition: right .5s ease;
        padding: .8rem 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.spglobal.open-menu {
        right: 0;
    }

    .spglobal > ul {
        display: flex;
        flex-direction: column;
        padding-left: 1rem;
        margin: 0;
        list-style: none;
    }

    .spglobal ul {
        padding-left: 1.6rem;
        margin: 0;
        list-style: none;
    }

    .spglobal li {
        margin-bottom: 0;
    }

    .spglobal li:not(:last-child),
    .spglobal ul:not(:last-child) {
        border-bottom: 2px solid #556b2f;
    }

    .spglobal a {
        text-decoration: none;
        font-size: 1.1rem;
        line-height: 2.4rem;
        color: #fff;
        display: block;
    }

    .spglobal a:hover {
        text-decoration: none;
        background: rgba(255, 255, 255, .15);
    }

    .spglobal details {
        font-size: 1.1rem;
        cursor: pointer;
        padding: .5rem 0;
    }

    .spglobal summary {
        line-height: 2.4rem;
        color: #fff;
        cursor: pointer;
        font-weight: 700;
    }

    .spglobal details > ul {
        border-top: 2px solid #556b2f;
    }

    /* --- PC用ナビ・SNSバー: モバイル非表示（日本語版と同様） --- */
    nav#globalNav,
    section#globalSns {
        display: none;
    }

    /* --- サイドバー: モバイルで非表示（全ページ共通） --- */
    #upContent > article#globalLeft {
        display: none;
    }

    /* --- フッター: nav/footmap非表示、著作権のみ表示（日本語版と同様） --- */
    footer#globalFoot nav,
    footer#globalFoot section.footmap {
        display: none;
    }

    footer#globalFoot p {
        padding: 1rem;
        text-align: center;
        font-size: .8rem;
    }
}
