@charset "UTF-8";

* {
    padding: 0;
    margin: 0;
}

.boxContainer {
    display: flex;
}

.boxContainer img {
    margin-left: 150px;
}

nav {
    position: fixed;
    /*上部に固定*/
    z-index: 10;
    width: 100vw;
    text-align: center;
    padding: 30px 0;
}

nav ul {
    display: table;
    margin: 0 auto;
    padding: 0;
    width: 50%;
    text-align: center;
}

nav li {
    display: table-cell;
    min-width: 50px;
}

nav a {
    display: block;
    /* width: 100%; */
    text-decoration: none;
    color: rgb(88, 86, 86);
    padding-bottom: 5px;
}

/* nav li.current {
    border-bottom: 3px solid #92D050;
} */

nav li:hover {
    border-bottom: 3px solid #F0E475;
}

footer {
    position: fixed;
    /*下部に固定*/
    bottom: 0;
    /* background-color: rgba(224, 14, 243, 0.2); */
    width: 100vw;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.5rem;
}

section.one,
section.two,
section.three {
    width: 100vw;
    height: 100vh;
    position: relative;
    /*親要素*/
}

section.one {
    background-size: cover;
    background-position: center;
}

section.two {
    background-size: cover;
    background-position: center;
}

.three {
    background-image: url("images/men.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

h2.vertical-middle {
    width: 80%;
    font-family: "游明朝", "Yu Mincho", serif;
    /* margin: 5%; */
    line-height: 1.2;
    font-size: 7vw;
    text-align: justify;
    position: absolute;
    top: 50%;
    /*親要素を起点に上から50%*/
    left: 50%;
    /*親要素を起点に左から10%*/
    transform: translateY(-50%) translateX(-50%);
    /*要素の大きさの半分ずつを戻す*/
    -webkit-transform: translateY(-50%) translateX(-50%);
}

p.scroll a,
p.top a {
    display: inline-block;
    position: absolute;
    bottom: 0%;
    left: 49%;
    z-index: 2;
    padding: 10px 10px 110px;
    overflow: hidden;
    color: #fff100;
    font-size: 14px;
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    writing-mode: vertical-lr;
}

p.top a {
    padding: 10px 10px 50px;
}

p.scroll a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: #fff100;
    height: 30px;
    animation: sdl 1.5s ease infinite;
}


@keyframes sdl {
    0% {
        transform: translateY(-70px);
    }

    50%,
    100% {
        transform: translateY(30px);
    }
}

video {
    min-width: 100%;
    min-height: 100vh;
    position: absolute;
}

/*画面サイズが変わっても常に動画の中央が表示されるようにする*/
/*動画よりも画面が横に長くなるとき用*/
@media (aspect-ratio: 16/9),
(min-aspect-ratio: 16/9) {
    video {
        width: 100%;
        /* top: 50%;
        transform: translateY(-50%); */
    }
}

/*動画よりも画面が縦に長くなるとき用*/
@media (max-aspect-ratio: 16/9) {
    video {
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/*--------------------タイトル文字--------------------*/
h2.vertical-middle {
    font-family: "游明朝", "Yu Mincho", serif;
    font-size: 5vw;
    position: absolute;
    top: 50%;
    /*親要素を起点に上から50%*/
    left: 50%;
    /*親要素を起点に左から50%*/
    transform: translateY(-50%) translateX(-50%);
    /*要素の大きさの半分ずつを戻す*/
    -webkit-transform: translateY(-50%) translateX(-50%);
    z-index: 2;
}

/*文字にグラデーション*/
.vertical-middle {
    display: block;
    display: inline;
    background: linear-gradient(to right, rgba(240, 216, 1, 0.5) 25%, rgba(10, 167, 240, 0.5) 75%);
    -webkit-background-clip: text;
    color: transparent;
}

.vertical-middle.two {
    display: block;
    display: inline;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.5) 25%, rgba(255, 255, 0, 0.5) 75%);
    -webkit-background-clip: text;
    color: transparent;
}

span.newyear {
    display: block;
    text-align: center;
}

/* mail */
span.mail a {
    display: block;
    color: rgb(255, 0, 0);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-align: center;
}

.vertical-middle.three {
    display: block;
    text-align: center;
    color: rgb(145, 141, 141);
}


/* -------------------------------- 
スマホ対応
-------------------------------- */
@media only screen and (max-width: 660px) {
    video {
        width: auto;
        height: 100vh;
    }

    .boxContainer {
        display: block;
    }

    .boxContainer img {
        margin-left: 0;
    }

    nav {
        padding-top: 15px;
    }

    nav li {
        min-width: 100px;
    }

    h2.vertical-middle {
        font-size: 5vh;
    }

    span.newyear {
        font-size: 1.7rem;
    }

    /* mail */
    span.mail a {
        font-size: 1.2rem;
    }

    .vertical-middle.three {
        font-size: 2rem;
    }

    /* スマホの時の横ブレ帽子 */
    html,
    body {
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

}