@charset "UTF-8";


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    /*
     * SafariのUI裏に使わせたい基準色
     */
    background: #ffd84d;
}

html {
    scroll-behavior: auto;
}

body {
    min-height: 100%;
    color: #111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================
   HEADER / LOGO
========================= */

.site-header {
    position: absolute;
    z-index: 20;

    top: 0;
    left: 0;

    padding:
        calc(24px + env(safe-area-inset-top))
        24px
        24px
        calc(24px + env(safe-area-inset-left));
}

.site-logo {
    display: block;
    width: 120px;
}

.site-logo img {
    width: 100%;
    height: auto;
}


/* =========================
   MENU BUTTON
========================= */

.menu-button {
    position: fixed;
    z-index: 200;

    top: calc(24px + env(safe-area-inset-top));
    right: calc(24px + env(safe-area-inset-right));

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 58px;
    height: 58px;

    margin: 0;
    padding: 0;

    background: #12345b;

    border: 0;
    border-radius: 0;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 26px;
    height: 3px;

    background: #ffd84d;

    transition:
        transform 0.5s ease,
        opacity 0.35s ease;
}


/* OPEN */

.menu-button.is-open span:nth-child(1) {
    transform:
        translateY(9px)
        rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform:
        translateY(-9px)
        rotate(-45deg);
}


/* =========================
   MENU OVERLAY
========================= */

.menu-overlay {
    position: fixed;
    z-index: 150;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
    visibility: hidden;

    background: transparent;

    transition:
        visibility 0s linear 0.8s;
}

.menu-overlay.is-open {
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s;
}


/* =========================
   MENU PANEL
========================= */

.menu-panel {
    position: absolute;

    top: 0;
    right: 0;

    display: flex;
    align-items: center;

    width: 50%;
    height: 100dvh;

    /*
     * Safariのsafe area込み
     */
    padding:
        calc(8vw + env(safe-area-inset-top))
        calc(8vw + env(safe-area-inset-right))
        calc(8vw + env(safe-area-inset-bottom))
        8vw;

    background: #ffd84d;
    color: #12345b;

    transform: translateX(100%);

    transition:
        transform 0.8s
        cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-overlay.is-open .menu-panel {
    transform: translateX(0);
}


/* =========================
   MENU LIST
========================= */

.menu-panel ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.menu-panel li + li {
    margin-top: 18px;
}

.menu-panel a {
    display: inline-block;

    font-size: clamp(34px, 4vw, 72px);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.03em;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    width: 100%;
    height: 100svh;

    overflow: hidden;

    background: #111;
}

.hero-logo {
    position: absolute;
    z-index: 10;

    top: 50%;
    left: 50%;

    width: min(30vw, 300px);

    transform: translate(-50%, -50%);
}

.hero-logo svg {
    display: block;
    width: 100%;
    overflow: visible;
}


/* 最初は塗らない */

.logo-draw {
    fill: transparent;
    stroke: #fff;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}


.logo-draw--main {
    animation:
        logoDraw 1.5s ease forwards,
        logoFill 0.4s ease 1.3s forwards;
}

.logo-draw--sub {
    animation:
        logoDraw 0.8s ease 0.9s forwards,
        logoFill 0.4s ease 1.45s forwards;
}

.logo-dot {
    animation: logoDot 0.25s ease 1.75s forwards;
}


@keyframes logoDraw {

    to {
        stroke-dashoffset: 0;
    }

}


@keyframes logoFill {

    from {
        fill: transparent;
    }

    to {
        fill: #fff;
    }

}


@keyframes logoDot {

    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}

/* =========================
   HERO MOVIE
========================= */

.hero-movie {
    position: absolute;
    z-index: 1;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    -webkit-mask-image:
        radial-gradient(
            circle,
            #000 0,
            #000 45%,
            transparent 47%
        );

    -webkit-mask-size: 8px 8px;

    mask-image:
        radial-gradient(
            circle,
            #000 0,
            #000 45%,
            transparent 47%
        );

    mask-size: 8px 8px;
}


/* =========================
   HERO DOT BACKGROUND
========================= */

.hero-dot-mask {
    position: absolute;
    z-index: 0;

    inset: 0;

    background: #111;
}


/* =========================
   SCROLL
========================= */

.hero-scroll {
    position: absolute;
    z-index: 10;

    bottom:
        calc(
            24px +
            env(safe-area-inset-bottom)
        );

    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    color: #fff;

    transform: translateX(-50%);
}

.hero-scroll span:first-child {
    font-size: 10px;
    letter-spacing: 0.2em;
}

.hero-scroll-line {
    display: block;

    width: 1px;
    height: 40px;

    background: #fff;
}


/* =========================
   TEMP SECTIONS
========================= */

main section:not(.hero) {
    min-height: 100vh;

    padding: 100px 5vw;

    background: #fff;

    font-size: 60px;
    font-weight: 700;
}


/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {

    .site-header {
        padding:
            calc(16px + env(safe-area-inset-top))
            16px
            16px
            calc(16px + env(safe-area-inset-left));
    }


    .site-logo {
        width: 100px;
    }


    .menu-button {
        top:
            calc(
                16px +
                env(safe-area-inset-top)
            );

        right:
            calc(
                16px +
                env(safe-area-inset-right)
            );

        width: 52px;
        height: 52px;
    }


    .menu-button span {
        width: 23px;
        height: 3px;
    }


    .menu-panel {
        width: 100%;

        padding:
            calc(24px + env(safe-area-inset-top))
            calc(24px + env(safe-area-inset-right))
            calc(24px + env(safe-area-inset-bottom))
            calc(24px + env(safe-area-inset-left));
    }


    .menu-panel a {
        font-size: clamp(38px, 12vw, 64px);
    }


    .hero-movie {
        -webkit-mask-size: 4px 4px;
        mask-size: 4px 4px;
    }

}