/*
   Galaxy Fold layout overrides
   This file is loaded after each page stylesheet so fold-only adjustments
   remain isolated from desktop, tablet, and standard mobile layouts.
*/
@media screen and (min-width: 600px) and (max-width: 767px) {
    :root {
        --fold-gutter: 24px;
        --fold-section-gutter: 30px;
    }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
    }

    #wrap {
        min-width: 0;
        overflow: clip;
    }

    .header,
    .header:hover {
        height: 76px;
    }

    .header_inner {
        width: calc(100% - (var(--fold-gutter) * 2));
    }

    .logo_pc {
        height: 32px;
        margin-bottom: 0;
    }

    .menu_btn {
        width: 36px;
        height: 36px;
    }

    .menu_btn span,
    .menu_btn span:nth-child(1),
    .menu_btn span:nth-child(2),
    .menu_btn span:nth-child(3) {
        width: 30px;
    }

    #top_btn {
        right: var(--fold-gutter);
        bottom: calc(24px + env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
    }

    .top_btn_arrow {
        width: 18px;
        height: 18px;
    }

    #footer {
        padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
    }

    .footer_inner {
        width: calc(100% - (var(--fold-gutter) * 2));
    }

    .footer_info {
        gap: 5px;
    }

    .footer_info_row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .footer_info p {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        word-break: keep-all;
    }

    .footer_line {
        margin-top: 30px;
        margin-bottom: 24px;
    }

    .footer_bottom {
        align-items: center;
        gap: 20px;
    }

    .footer_cert_list {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer_cert_logo {
        height: 36px;
    }

    .footer_copyright {
        font-size: 12px;
        line-height: 1.5;
        text-align: left;
        word-break: keep-all;
    }
}

@media screen and (min-width: 600px) and (max-width: 767px)
    and (orientation: landscape) and (max-height: 500px) {
    #top_btn {
        display: none;
    }
}
