/* CSS Variables */
:root {
    --padding-section-vertical: 36rem;
    --padding-section-top-bottom: 29rem;
    --padding-footer-vertical: 14rem;
    --padding-footer-horizontal: 18rem;
    --padding-footer-bottom: 9rem;

    --gap-hero-overlay: 1rem;
    --gap-renewal: 1rem;
    --gap-section-wrap: 40rem;
    --gap-content-block: 9.6rem;
    --gap-description: 2.2em;
    --gap-image-content: 1rem;
    --gap-access-text: 1rem;
    --gap-news-section: 16rem;
    --gap-news-list: 9.6rem;
    --gap-news-item: 4rem;
    --gap-access-section: 16rem;
    --gap-footer: 7.1rem;
    --gap-footer-banners: 6rem;
}

@media (max-width: 768px) {
    :root {
        --padding-section-vertical: 20rem;
        --padding-section-top-bottom: 16rem;
        --padding-footer-vertical: 10rem;
        --padding-footer-horizontal: 8rem;
        --padding-footer-bottom: 6rem;

        --gap-section-wrap: 20rem;
        --gap-content-col: 8rem;
        --gap-news-list: 8rem;
        --gap-news-item: 1rem;
        --gap-footer-banners: 2rem;
    }
}

@keyframes fade_in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;

    @media (max-width: 1600px) {
        font-size: 0.625vw;
    }

    @media (max-width: 960px) {
        font-size: 6px;
    }
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
    opacity: 0;
    .loaded & {
        animation: fade_in .2s .6s ease forwards;
    }
}

.page-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
}

.hero-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    pointer-events: none;
    opacity: 0;
    /* transition: opacity 50ms ease-in-out; */

    &.active {
        opacity: 1;
    }
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-hero-overlay);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 82.75rem;
    width: min(82.75rem, 90vw);
    height: auto;
    display: block;
}

/* Renewal Open Section */
.renewal-section {
    position: relative;
    width: 100%;
    height: 269.1rem;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-renewal);
    z-index: 1;
}

.renewal-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: white;
    font-size: 15rem;
    line-height: 16rem;
    text-align: left;
    white-space: pre-line;
    max-width: 90vw;

    p {
        margin: 0;
    }
}

/* Re-creation Home Section */
.recreation-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: var(--padding-section-vertical) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.section-wrap {
    width: 120rem;
    display: flex;
    flex-direction: column;
    gap: var(--gap-section-wrap);
    align-items: flex-start;
}

.content-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-content-block);
    align-items: flex-start;
}

.title {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: 8rem;
    line-height: normal;
    color: black;
}

.description {
    display: flex;
    flex-direction: column;
    gap: var(--gap-description);
    font-size: 2.5rem;
    line-height: 5.5rem;
    color: black;
    letter-spacing: 0.0375rem;
    width: 100%;
    min-width: fit-content;

    p {
        margin: 0;
    }
}

.image-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-image-content);
    align-items: center;
}

.content-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.building-image {
    position: relative;
    width: 100%;
    max-width: 106rem;
    aspect-ratio: 1063 / 648;
    overflow: hidden;

    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.building-copyright {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: normal;
    font-size: 1.4rem;
    line-height: 5.5rem;
    color: black;
    letter-spacing: 0.035rem;
    text-align: right;
    white-space: pre;
    width: 100%;
    max-width: 106rem;
    margin: 0;
}

.summary-text {
    font-size: 2.5rem;
    line-height: 5rem;
    color: black;
    letter-spacing: 0.0625rem;
    width: 87rem;

    p {
        margin: 0;
    }
}

/* News Section */
.news-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-top: 2px solid black;
    z-index: 1;

    .section-wrap {
        padding: var(--padding-section-top-bottom) 0;
        display: flex;
        flex-direction: column;
        gap: var(--gap-news-section);
        align-items: center;
        width: 80vw;
        margin: 0 auto;
    }
}

.content-col {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.section-title {
    width: 20.8vw;
    overflow: hidden;
    flex-shrink: 0;

    h2 {
        font-family: 'Helvetica Neue', sans-serif;
        font-weight: bold;
        font-size: 4.5rem;
        line-height: normal;
        color: black;
        margin: 0;
    }
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-news-list);
    align-items: flex-start;
}

.news-item {
    width: 100%;
    font-weight: normal;
    font-size: 2.5rem;
    line-height: 5.5rem;
    color: black;
    letter-spacing: 0.0625rem;
    display: flex;
    align-items: flex-start;
    gap: var(--gap-news-item);
}

.news-date {
    width: 18rem;
    flex-shrink: 0;
}

.news-text {
    flex: 1;
}

.more-link {
    font-weight: normal;
    font-size: 2.5rem;
    line-height: 5.5rem;
    color: black;
    letter-spacing: 0.0625rem;
    width: 18rem;
    height: 3.45rem;
}

/* Access Section */
.access-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-top: 2px solid black;
    z-index: 1;

    .section-wrap {
        padding: var(--padding-section-top-bottom) 0;
        display: flex;
        flex-direction: column;
        gap: var(--gap-access-section);
        align-items: center;
        width: 80vw;
        margin: 0 auto;
    }
}

.access-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-access-text);
    font-weight: normal;
    font-size: 2rem;
    color: black;
    letter-spacing: 0.05rem;
    white-space: pre-line;

    p {
        margin: 0;
    }
}

.map-container {
    position: relative;
    width: 100%;
    height: 60rem;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
}

#google-map {
    width: 100%;
    height: 100%;
}

/* Spacer */
.spacer {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    z-index: 1;
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: black;
    padding: var(--padding-footer-vertical) var(--padding-footer-horizontal) var(--padding-footer-bottom);
    display: flex;
    flex-direction: column;
    gap: var(--gap-footer);
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.footer-banners {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: var(--gap-footer-banners);
}

.banner {
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 0.1rem solid #707070;
    height: 9.24rem;

    a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    img {
        position: absolute;
        object-position: 50% 50%;
        object-fit: contain;
        max-width: 80%;
    }

    &.eas img {
        height: 5rem;
    }
    &.hamabowl img {
        height: 3.4rem;
    }
    &.spaeas img {
        height: 4.27rem;
    }
    &.mitsuuroko img {
        height: 3.8rem;
    }
}

.copyright {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 5.5rem;
    color: white;
    letter-spacing: 0.04rem;
    text-align: center;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .hero-section,
    .renewal-section,
    .recreation-section,
    .news-section,
    .access-section,
    .spacer,
    .footer {
        width: 100%;
    }

    .section-wrap {
        width: min(120rem, 100% - 4rem);
        margin: 0 auto;
    }

    .news-section,
    .access-section {
        .section-wrap {
            width: min(132rem, 100%);
        }
    }

    .summary-text {
        width: min(87rem, 100%);
    }
}

@media (max-width: 768px) {
    .logo {
        width: min(82.75rem, 80vw);
    }

    .renewal-text {
        font-size: 12rem;
        line-height: 13rem;
    }

    .section-wrap {
        width: 80vw;
        margin: 0 auto;
    }

    .news-section,
    .access-section {
        .section-wrap {
            width: 80vw;
        }
    }

    .content-col {
        flex-direction: column;
        gap: var(--gap-content-col);
    }

    .title {
        font-size: 6.4rem;
        width: 100%;
    }

    .description,
    .summary-text {
        font-size: 2rem;
        line-height: 2.2;
    }

    .section-title {
        h2 {
            font-size: 3.2rem;
        }
    }

    .news-item {
        flex-direction: column;
        gap: var(--gap-news-item);
    }

    .news-date {
        width: 100%;
    }

    .footer-banners {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--gap-footer-banners);
    }

    .banner {
        width: 100%;
    }
}