/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* ===== Header ===== */

.rectangle {
    position: absolute;
    background: white;
}

.header_frame {
    position: fixed;
    z-index: 9990;
    width: 100vw;
    height: 80px;
    top: 0;
    left: 0;
}

.header_bg {
    width: 100%;
    height: 100%;
    position: absolute;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* ===== Countdown Timer ===== */

.header_countdown {
    position: absolute;
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(26, 18, 7, 0.65);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header_bg.active .header_countdown {
    opacity: 1;
}

.header_frame:has(.menu.active) .header_countdown {
    opacity: 0 !important;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.header_bg.active {
    opacity: 1;
}

.header_img {
    position: absolute;
    width: auto;
    height: 60px;
    z-index: 9999;
    margin: 10px;
    transition: opacity 0.3s ease;
}

.header_icon:hover {
    opacity: 0.7;
}

/* ===== Main ===== */

body {
    background-color: #f6dc9f;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.snstree_main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.snstree_container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #dab584;
    overflow: hidden;
}

.snstree_ellipse {
    position: absolute;
    width: 700px;
    height: 250px;
    background-color: #f6dc9f;
    border-radius: 50%;
    transform: rotate(135deg);
    filter: blur(60px);
    opacity: 0.7;
    top: 20%;
}

.snstree_content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    width: 100%;
    max-width: 800px;
    animation: accessFadeInUp 1s ease both;
}

@keyframes snstreeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.snstree_label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(26, 18, 7, 0.45);
    margin-bottom: 12px;
}

.snstree_title {
    font-family: "Zen Old Mincho", serif;
    font-weight: 900;
    font-size: 40px;
    color: #1a1207;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.snstree_divider_center {
    width: 40px;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    margin: 24px 0;
}

.link_box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 28px;
    font-family: "Shippori Mincho", serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1207;
    text-decoration: none;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 70vw;
    max-width: 600px;
}

.link_box:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== Footer ===== */

.footer_container {
    width: 100%;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
}

.footer_frame {
    width: 90vw;
    max-width: 900px;
    height: auto;
    padding: 40px 30px;
    position: relative;
    margin: 0 auto;
}

/* ===== School / Event Info ===== */

.footer_enjitsu {
    display: flex;
    align-items: center;
    padding: 8px 0 16px;
}

.enjitsu_logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    flex-shrink: 0;
}

.aboutus {
    font-family: "Shippori Mincho", serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1207;
    margin-left: 16px;
    line-height: 1.6;
}

.aboutus span {
    display: inline-block;
}

/* ===== Divider ===== */

.footer_line {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
}

/* ===== Copyright ===== */

.footer_copy {
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.35);
    margin-top: 12px;
}

/* ===== Responsive: PC ===== */

@media screen and (min-width: 1024px) {
    .snslink_ellipse {
        width: 1200px;
        height: 500px;
        filter: blur(80px);
    }

    .snslink_title {
        font-size: 52px;
    }

    .snslink_kujira {
        width: 35%;
        opacity: 0.05;
    }

    .footer_frame {
        width: 70vw;
        padding: 50px 40px;
    }

    .enjitsu_logo {
        width: 80px;
        height: 80px;
    }

    .aboutus {
        font-size: 16px;
    }
}

/* ===== Responsive: Tablet+ ===== */

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .snslink_ellipse {
        width: 900px;
        height: 400px;
    }

    .snslink_title {
        font-size: 46px;
    }

    .snslink_kujira {
        width: 40%;
        opacity: 0.06;
    }

    .footer_frame {
        width: 70vw;
        padding: 50px 40px;
    }

    .enjitsu_logo {
        width: 80px;
        height: 80px;
    }

    .aboutus {
        font-size: 16px;
    }

}

/* ===== Responsive: Small mobile ===== */

@media screen and (max-width: 400px) {
    .footer_frame {
        padding: 30px 20px;
    }

    .enjitsu_logo {
        width: 56px;
        height: 56px;
    }

    .aboutus {
        font-size: 12px;
    }
}
