@charset "UTF-8";

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

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

body {
    font-family: "futura-pt", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.top {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    --logo-bar-height: 68px;
}

.top picture {
    display: contents;
}

.top-visual {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.notice {
    --notice-hue: 254;
    --notice-saturation: 40%;
    --notice-lightness: 70%;
    --notice-alpha: 0.8;
    --notice-color-duration: 9s;
    --notice-text-speed: 70;
    /* px/s */
    --notice-text-duration: 26s;

    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    /* max-width: calc(100% - 160px); */
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    /* border-radius: 999px; */
    color: #fff;
    background-color: hsl(calc(var(--notice-hue) + var(--notice-hue-shift)), var(--notice-saturation), var(--notice-lightness), var(--notice-alpha));
    font-size: 1.6rem;
    line-height: 1.0;
}

.top-content {
    --logo-shadow-x: 0px;
    --logo-shadow-y: 0px;
    --logo-shadow-blur: 4px;
    --logo-shadow-color: rgba(0, 0, 0, 0.5);

    --text-shadow-x: 0px;
    --text-shadow-y: 0px;
    --text-shadow-blur: 6px;
    --text-shadow-color: rgba(0, 0, 0, 0.7);

    --text-color: #ffffff;

    position: absolute;
    bottom: calc(var(--logo-bar-height));
    left: 80px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--text-color);
    font-size: 1.8rem;
    line-height: 1.6;
}

.top-logo {
    display: block;
    width: 100%;
    margin-left: -2px;
    height: auto;
    filter: drop-shadow(var(--logo-shadow-x) var(--logo-shadow-y) var(--logo-shadow-blur) var(--logo-shadow-color));
}

.date,
.organizer {
    text-shadow: var(--text-shadow-x) var(--text-shadow-y) var(--text-shadow-blur) var(--text-shadow-color);
    overflow-wrap: anywhere;
}

.date {
    margin-top: -20px;
    line-height: 1.2;
}

.date-intro {
    display: block;
    margin-bottom: 0.6em;
    font-size: 0.8em;
    line-height: 1.4;
}

.date-note {
    font-size: 0.8em;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.organizer {
    font-size: 0.7em;
    line-height: 1.4;
}

.slashes {
    letter-spacing: -0.3em;
}

.logo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--logo-bar-height);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 80px;
    background-color: #fff;
}

.logo img {
    display: block;
    height: 28px;
    width: auto;
}

.logo a {
    display: block;
}

.logo> :nth-child(2) {
    margin-left: auto;
}

.top-logo--sp {
    display: none;
}

.notice,
.top-content,
.logo {
    animation: fade-in 1.6s ease 0.3s both;
}

.notice {
    animation:
        fade-in 1.6s ease 0.3s both,
        notice-color var(--notice-color-duration) linear infinite;
}

.notice-text {
    display: inline-block;
    padding-left: 100%;
    animation: notice-text var(--notice-text-duration) linear infinite;
}

@keyframes notice-text {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@property --notice-hue-shift {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

@keyframes notice-color {
    from {
        --notice-hue-shift: 0;
    }

    to {
        --notice-hue-shift: 360;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .notice,
    .top-content,
    .logo {
        animation: none;
    }

    .notice {
        white-space: normal;
        padding: 10px 24px;
    }

    .notice-text {
        padding-left: 0;
        animation: none;
    }
}

@media (max-width: 800px) {
    .top-content {
        bottom: calc(var(--logo-bar-height));
        left: 16px;
        right: 16px;
        gap: 16px;
        font-size: 0.9rem;

        --logo-shadow-x: 0px;
        --logo-shadow-y: 0px;
        --logo-shadow-blur: 3px;
        --logo-shadow-color: rgba(0, 0, 0, 0.5);

        --text-shadow-x: 0px;
        --text-shadow-y: 0px;
        --text-shadow-blur: 2px;
        --text-shadow-color: rgba(0, 0, 0, 0.9);
    }

    .notice {
        --notice-text-speed: 45;
        /* px/s, slower on narrow screens so it feels the same as PC */
        top: 0;
        /* left: 16px;
        right: 16px;
        max-width: calc(100% - 32px); */
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .date {
        margin-top: -10px;
        font-size: 1rem;
    }

    .organizer {
        font-size: 1em;
        line-height: 1.2;
    }

    .date-intro {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .date-note {
        font-size: 0.9rem;
        top: -1px;
    }

    .top {
        --logo-height: calc((100vw - 32px - 32px) / 13 * 0.7);
        --logo-bar-height: calc(var(--logo-height) + 20px);
    }

    .logo {
        padding: 0 16px;
        gap: 16px;
    }

    .logo img {
        height: var(--logo-height);
    }

    .top-logo {
        display: none;
    }

    .top-logo--sp {
        display: block;
    }
}