@charset "utf-8";
@media (max-width: 1380px) {
    /*ヘッダーカバー*/
    @media (min-width:700px) {
        .cover-home {
            height: 350px;
        }

        .cover-sub {
            height: 300px;
        }
    }

    @media (max-width:699px) {
        .cover-home {
            height: 200px;
        }

        .cover-sub {
            height: 200px;
        }
    }

    /* ヘッダーロゴ（余白を抑制） */
    #header_visual img {
        width: 60%;
        margin: 0;  /* いったん余白リセット */
        padding: 5px; /* 10px → 5px */
        box-shadow: 0 0 8px rgb(255, 148, 27);
    }

    /* ハンバーガーメニュー */
    .hamburger-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
        position: absolute;
        top: 10px;  /* 上の空白を減らす */
        right: 10px; /* 右の空白を減らす */
        z-index: 3;
    }

    /* lg 以上ではハンバーガーを隠す（PCは横並びメニュー表示） */
    @media (min-width: 1024px) {
        .hamburger-label { display: none; }
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .bar {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ヘッダー内での基準位置を明確にする */
    .header-content { position: relative; }

    /* モバイル: 画面全体を覆うオーバーレイ */
    #menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(0, 0, 0, 0.45);
    }

    /* パネル本体（右からスライド） */
    #menu ul {
        list-style: none;
        margin: 0;
        padding: 12px 12px; /* 右・上の余白を圧縮 */
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 100vw; /* sm 未満/含むでは全幅 */
        background-color: #fff;
        color: #000;
        display: flex;
        flex-direction: column;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    }

    /* md 以上は画面の半分程度 */
    @media (min-width: 768px) {
        #menu ul { width: 50vw; }
    }

    #menu ul li { margin-left: 0; }
    #menu ul li a { color: #000; text-decoration: none; display: block; padding: 10px 0; }
    #menu ul li a:hover { color: #555; }

    /* 閉じるボタン */
    .menu-close-mobile {
        position: absolute;
        top: 6px;
        right: 6px; /* オーバーレイ右端の余白を圧縮 */
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 51;
    }

    @media (min-width: 768px) {
        .menu-close-mobile { right: calc(50vw + 10px); }
    }

    /* 開いたときの表示 */
    /* クライアント制御時（クラス open で切替） */
    #menu.open { display: block; }
    #menu.open ul { transform: translateX(0%); }

    /* ハンバーガーアイコンのアニメーション */
    input[type="checkbox"]:checked+label .burger .bar:nth-child(1) {
        transform: rotate(45deg) translateY(8px) translateX(8px);
    }

    input[type="checkbox"]:checked+label .burger .bar:nth-child(2) {
        opacity: 0;
    }

    input[type="checkbox"]:checked+label .burger .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px) translateX(7px);
    }

    /* フッター */
    footer {
        background-color: rgba(255, 148, 27, 0.62);
        color: #000;
        padding: 30px 0;
        text-align: center;
    }

    /* 切替スイッチの設定 */
    footer ul {
        padding: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    /* 切替スイッチ内部設定 */
    footer ul li {
        display: inline-block;
        margin: 0 10px;
    }

    footer ul li a {
        color: #000;
        font-size: 0.875;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    footer ul li a:link,
    footer ul li a:visited {
        text-decoration: none;
    }

    /* 切替スイッチの識別 */
    footer ul li a:hover,
    footer ul li a:active {
        text-decoration: underline;
        color: #de90f6;
    }
}