/* === Base & Layout === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* === Background Image for Top Page === */
.bg-top-image {
    background-image: url('/img/top.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* === Main Content === */
main.flex-grow-1 {
    min-height: calc(100vh - 111px); /* adjust for header */
}

.number-item {
    background: #cfa920;
    color: #fff;
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 1;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    top: -6px;
    left: -8px;
}

/* === Slide Down Animation === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Small Screens: Mobile (portrait/landscape) + Tablet Portrait === */
@media (max-width: 991.98px) {
    .bg-top-image {
        min-height: 60vh;
    }

    .sidebar {
        display: none !important;
    }

    .sp {
        display: flex !important;
        height: 60px !important;
    }

    .pc {
        display: none !important;
    }

    .top-header {
        background-color: #2c2c2c;
        display: block !important;
    }

    #g-nav {
        display: none;
    }

    h1 {
        font-size: calc(1.5rem + 1vw);
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* === Large Screens: Tablet Landscape + Desktop === */
@media (min-width: 992px) {
    .top-header,
    #g-nav,
    .sp {
        display: none !important;
    }

    .bg-top-image {
        min-height: 100vh;
    }
}
