/* Shared responsive layout for the SGC pages. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 0;
}

.menu-toggle {
    display: none;
}

.logo {
    height: 40px;
    width: auto;
}

h1,
h2,
h3 {
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
        height: 56px;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .navbar .title {
        padding: 0;
    }

    .logo {
        height: 34px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.18);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 2px;
        padding: 8px 12px 12px;
        background: linear-gradient(180deg, #fffdf3 0%, #fff6cf 100%);
        border: 1px solid rgba(196, 160, 48, 0.22);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 24px rgba(120, 96, 20, 0.16);
        overflow: hidden;
    }

    .navbar .links.open {
        display: flex;
    }

    .navbar .links a {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 12px 14px;
        height: auto;
        border-radius: 6px;
        font-size: 16px;
        letter-spacing: 0;
        justify-content: flex-start;
        color: #4a3f14;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

    .navbar .links a:hover,
    .navbar .links a:focus-visible {
        background: #fff0a8;
        color: #2e2606;
    }

    .navbar .links a::after {
        display: none;
    }

    .content {
        margin-top: 0;
        padding: 12px;
    }

    .container {
        margin-left: 16px;
        margin-right: 16px;
    }


    .pictext {
        flex-direction: column;
        gap: 14px;
        padding: 6px 0 20px;
    }

    .pictext > p,
    .pictext > img,
    .pictext img {
        width: 100%;
        max-width: 100%;
    }

    .pictext p {
        padding: 14px;
        font-size: 16px;
        line-height: 1.65;
    }

    .image-container {
        width: 100%;
    }

    footer {
        padding: 16px 12px;
        font-size: 13px;
    }

    .sgc {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .cof1,
    .col-banner {
        width: 100%;
        margin: 8px 0;
    }

    .group {
        gap: 10px;
    }

    .text1 {
        min-width: 0;
        white-space: normal;
    }

    .rectangle {
        max-width: 100%;
    }

    #rect3 {
        width: 100%;
        animation-name: none;
    }

    .about-page .about-heading {
        padding: 10px 0 0;
    }

    .about-page .about-title {
        margin-top: 0;
        font-size: 2rem;
    }

    .about-page .about-title::after {
        margin-top: 12px;
    }

    .about-page .about-section {
        margin-top: 26px;
    }

    .about-page .about-section h2 {
        margin-bottom: 14px;
        font-size: 1.45rem;
    }

    .about-page .about-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .about-page .about-card p {
        margin-bottom: 12px;
        font-size: 15.5px;
        line-height: 1.75;
    }

    .about-page .pictext {
        width: 100%;
        margin: 0 0 14px;
        padding: 10px;
        gap: 10px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    }

    .about-page .pictext img {
        order: 1;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: none;
    }

    .about-page .pictext p {
        order: 2;
        width: 100%;
        flex: none;
        padding: 2px 4px 4px;
        font-size: 15.5px;
        line-height: 1.6;
        text-align: left;
        background: transparent;
    }
}
