@charset "utf-8";

@font-face {
    font-family: reitam;
    src: url("../webfonts/Reitam.otf") format("opentype");
}

body {
    font-family: "Jost", "IBM Plex Sans JP", "Helvetica Neue", "Oswald",
        "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial",
        "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.5;
    color: #333;
    letter-spacing: 0.1em;
    /* min-width: 1500px; */
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 9999;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-content: center;
    flex-wrap: wrap;
}

.cross {
    width: 40px;
    height: 40px;
    position: relative;
}
.cross:nth-child(odd) {
    overflow: hidden;
}
.cross:nth-child(odd):before,
.cross:nth-child(odd):after {
    animation: rotate-before 3s linear reverse infinite;
}
.cross:before {
    content: "";
    width: 2px;
    height: 200%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) rotate(0deg);
    will-change: transform;
    -webkit-animation: rotate-before 3s linear infinite;
    animation: rotate-before 3s linear infinite;
}
.cross:after {
    content: "";
    width: 200%;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) rotate(0deg);
    -webkit-animation: rotate-before 3s linear infinite;
    animation: rotate-before 3s linear infinite;
    will-change: transform;
}

.cross:nth-child(1):before {
    background-color: #15c5cb;
}
.cross:nth-child(1):after {
    background-color: #15c5cb;
}
.cross:nth-child(2):before {
    background-color: #15bfcb;
}
.cross:nth-child(2):after {
    background-color: #15bfcb;
}
.cross:nth-child(3):before {
    background-color: #15b9cb;
}
.cross:nth-child(3):after {
    background-color: #15b9cb;
}
.cross:nth-child(4):before {
    background-color: #15b3cb;
}
.cross:nth-child(4):after {
    background-color: #15b3cb;
}
.cross:nth-child(5):before {
    background-color: #15adcb;
}
.cross:nth-child(5):after {
    background-color: #15adcb;
}
.cross:nth-child(6):before {
    background-color: #15a7cb;
}
.cross:nth-child(6):after {
    background-color: #15a7cb;
}
.cross:nth-child(7):before {
    background-color: #15a1cb;
}
.cross:nth-child(7):after {
    background-color: #15a1cb;
}
.cross:nth-child(8):before {
    background-color: #159bcb;
}
.cross:nth-child(8):after {
    background-color: #159bcb;
}
.cross:nth-child(9):before {
    background-color: #1595cb;
}
.cross:nth-child(9):after {
    background-color: #1595cb;
}
.cross:nth-child(10):before {
    background-color: #158ecb;
}
.cross:nth-child(10):after {
    background-color: #158ecb;
}
.cross:nth-child(11):before {
    background-color: #1588cb;
}
.cross:nth-child(11):after {
    background-color: #1588cb;
}
.cross:nth-child(12):before {
    background-color: #1582cb;
}
.cross:nth-child(12):after {
    background-color: #1582cb;
}
.cross:nth-child(13):before {
    background-color: #157ccb;
}
.cross:nth-child(13):after {
    background-color: #157ccb;
}
.cross:nth-child(14):before {
    background-color: #1576cb;
}
.cross:nth-child(14):after {
    background-color: #1576cb;
}
.cross:nth-child(15):before {
    background-color: #1570cb;
}
.cross:nth-child(15):after {
    background-color: #1570cb;
}
.cross:nth-child(16):before {
    background-color: #156acb;
}
.cross:nth-child(16):after {
    background-color: #156acb;
}
.cross:nth-child(17):before {
    background-color: #1564cb;
}
.cross:nth-child(17):after {
    background-color: #1564cb;
}
.cross:nth-child(18):before {
    background-color: #155ecb;
}
.cross:nth-child(18):after {
    background-color: #155ecb;
}
.cross:nth-child(19):before {
    background-color: #1558cb;
}
.cross:nth-child(19):after {
    background-color: #1558cb;
}
.cross:nth-child(20):before {
    background-color: #1552cb;
}
.cross:nth-child(20):after {
    background-color: #1552cb;
}
.cross:nth-child(21):before {
    background-color: #154ccb;
}
.cross:nth-child(21):after {
    background-color: #154ccb;
}
.cross:nth-child(22):before {
    background-color: #1546cb;
}
.cross:nth-child(22):after {
    background-color: #1546cb;
}
.cross:nth-child(23):before {
    background-color: #1540cb;
}
.cross:nth-child(23):after {
    background-color: #1540cb;
}
.cross:nth-child(24):before {
    background-color: #153acb;
}
.cross:nth-child(24):after {
    background-color: #153acb;
}
.cross:nth-child(25):before {
    background-color: #1534cb;
}
.cross:nth-child(25):after {
    background-color: #1534cb;
}

@-webkit-keyframes rotate-before {
    100% {
        transform: translateY(-50%) translateX(-50%) rotateZ(180deg);
    }
}

@keyframes rotate-before {
    100% {
        transform: translateY(-50%) translateX(-50%) rotateZ(180deg);
    }
}

.completed {
    opacity: 0;
    visibility: hidden;
}

#rings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    max-width: 100%;
    overflow-x: hidden;
}
.vanta-canvas {
    max-width: 100%;
    overflow-x: hidden;
}
section {
    margin-top: 200px;
}
.section-title {
    text-align: center;
    font-size: 50px;
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 25px;
    }
    section {
        margin-top: 130px;
    }
}

/* カードセクション */
.service-section-container {
    display: flex;
    justify-content: center;
}
.service-title {
    align-self: center;
    flex-basis: 30%;
}
.swiperCard {
    width: 540px;
    height: 650px;
}
.swiperCard > .swiper-wrapper > .swiper-slide {
    border-radius: 18px;
    font-size: 22px;
    border: 5px solid rgb(44, 43, 43);
}

.card-title {
    text-align: center;
    font-size: 45px;
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-sub-title {
    text-align: center;
    font-size: 25px;
    margin-top: 18px;
    margin-bottom: 40px;
    font-weight: 600;
}

.card-icon-container {
    text-align: center;
}
.card-icon {
    height: 150px;
    width: auto;
    object-fit: cover;
}
.description.cardDes {
    margin-top: 55px;
    text-align: center;
}

.description.cardDes > p {
    font-size: 28px;
    letter-spacing: 0.15em;
}

.swiperCard > .swiper-wrapper > .swiper-slide:nth-child(1n) {
    background-color: rgb(255, 255, 255);
}

.swiperCard > .swiper-wrapper > .swiper-slide:nth-child(2n) {
    background-color: rgb(255, 255, 255);
}

.swiperCard > .swiper-wrapper > .swiper-slide:nth-child(3n) {
    background-color: rgb(255, 255, 255);
}

.swiperCard > .swiper-wrapper > .swiper-slide:nth-child(4n) {
    background-color: rgb(255, 255, 255);
}

@media screen and (max-width: 768px) {
    .service-section-container {
        flex-direction: column;
    }
    .service-title {
        align-self: auto;
        flex-basis: auto;
    }
    .swiperCard {
        width: 340px;
        height: 450px;
        margin: 0 auto;
    }

    .card-title {
        font-size: 30px;
    }

    .card-sub-title {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .card-icon {
        height: 100px;
    }
    .description.cardDes {
        margin-top: 40px;
    }

    .description.cardDes > p {
        font-size: 18px;
        letter-spacing: 0.1em;
    }
}

/* スキルセクション */
.swiperCoverFlow {
    width: 100%;
    /* min-width: 100%; */
    height: 600px;
    overflow-x: hidden;
}
.swiperCoverFlow > .swiper-wapper {
    /* min-width: 100%; */
}
.swiperCoverFlow .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 450px;
    height: 550px;
    background-color: white;
    border-radius: 18px;
    border: 5px solid rgb(44, 43, 43);
}

.image {
    position: relative;
}

.logo {
    width: 390px;
    height: auto;
    object-fit: cover;
    position: absolute;
    opacity: 50%;
    top: 250px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.title {
    text-align: center;
    margin-top: 40px;
}
.title > h3 {
    font-size: 30px;
    font-weight: 600;
}

.description {
    margin-top: 60px;
    margin-left: 20px;
}
.description > p {
    font-size: 25px;
}

@media screen and (max-width: 768px) {
    .swiperCoverFlow .swiper-slide {
        width: 320px;
        height: 450px;
    }
    .logo {
        width: 250px;
        top: 210px;
    }

    .title {
        margin-top: 40px;
    }
    .title > h3 {
        font-size: 22px;
    }

    .description {
        margin-left: 23px;
    }
    .description > p {
        font-size: 18px;
    }
}

.site-link:hover {
    opacity: 0.8;
}
.image-container {
    text-align: center;
    margin-bottom: 100px;
}
.image-container-2 {
    text-align: center;
    /* margin-top: 100px; */
}
.laviec {
    margin: 0 auto;
    width: auto;
    height: 450px;
    object-fit: cover;
    border: 5px solid black;
    border-radius: 15px;
}
.image-des {
    font-family: "reitam";
    margin-top: 20px;
    font-size: 25px;
    font-weight: 500;
}
.image-des_2 {
    color: #a28d69;
    margin-top: 20px;
    margin-bottom: 0px;
    font-size: 35px;
    font-weight: bolder;
    font-weight: bold;
}
.image-des_3 {
    color: #000000;
    margin-top: 0px;
    font-size: 25px;
    font-weight: bolder;
    font-weight: bold;
}
.additional-info {
    margin-top: 25px;
    text-align: center;
    font-size: 18px;
}

.laviec {
    animation: poyoyon3 2.5s infinite;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .laviec {
        width: auto;
        height: 200px;
    }
    .image-des {
        font-size: 15px;
    }
    .image-des_2 {
        font-size: 15px;
    }
    .image-des_3 {
        font-size: 10px;
    }
    .additional-info {
        margin-top: 15px;
        font-size: 12px;
    }
}

@keyframes poyoyon3 {
    0%,
    40% {
        transform: skew(0deg, 0deg);
    }
    5% {
        transform: skew(3deg, 3deg);
    }
    10% {
        transform: skew(-2deg, -2deg);
    }
    15% {
        transform: skew(1deg, 1deg);
    }
    20% {
        transform: skew(-1deg, -1deg);
    }
    25% {
        transform: skew(1deg, 1deg);
    }
    30% {
        transform: skew(-0.4deg, -0.4deg);
    }
    35% {
        transform: skew(0.2deg, 0.2deg);
    }
}

@-webkit-keyframes loadin {
    0% {
        font-variation-settings: "SSTR" 1000;
    }
    50% {
        font-variation-settings: "SSTR" 0;
    }
}

@keyframes loadin {
    0% {
        font-variation-settings: "SSTR" 1000;
    }
    50% {
        font-variation-settings: "SSTR" 0;
    }
}

.header {
    font-family: "reitam";
    width: 100vw;
    height: auto;
    padding: 1vw 0 0 1.3vw;
    position: fixed;
    top: 0;
    z-index: 100;
}

.header_inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.header_inner_list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    right: 5.5vw;
    line-height: 4.5vw;
}

.header_inner_listItem {
    margin-left: 4vw;
}

.last {
    margin-right: 0vw;
}

a:hover {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .header {
        padding: 4vw 5vw 0;
    }
    .header_inner_listItem {
        margin-left: 5.3vw;
    }
    .header_inner_listItem a {
        font-size: 2.8vw;
        line-height: 10.5vw;
    }
    .header_logo img {
        width: 10.5vw;
        height: 10.5vw;
    }
}
.popout {
    font-family: "reitam", sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: 0.01em;
    color: #686868;
}

.button_container {
    display: none;
    position: fixed;
    top: 5%;
    right: 2%;
    height: 27px;
    width: 35px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.25s ease;
}
.button_container:hover {
    opacity: 0.7;
}
.button_container.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: #fff;
}
.button_container.active .middle {
    opacity: 0;
    background: #fff;
}
.button_container.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: #fff;
}
.button_container span {
    background: #5f5f5f;
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.35s ease;
    cursor: pointer;
}
.button_container span:nth-of-type(2) {
    top: 11px;
}
.button_container span:nth-of-type(3) {
    top: 22px;
}

.overlay {
    position: fixed;
    background: #404040;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    overflow: hidden;
    z-index: 5;
}
.overlay.open {
    opacity: 0.9;
    visibility: visible;
    height: 100%;
}
.overlay.open li {
    -webkit-animation: fadeInRight 0.5s ease forwards;
    animation: fadeInRight 0.5s ease forwards;
    -webkit-animation-delay: 0.35s;
    animation-delay: 0.35s;
}
.overlay.open li:nth-of-type(2) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}
.overlay.open li:nth-of-type(3) {
    -webkit-animation-delay: 0.45s;
    animation-delay: 0.45s;
}
.overlay.open li:nth-of-type(4) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}
.overlay nav {
    margin-top: 40px;
    position: relative;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    font-family: "reitam";
    font-weight: 400;
    text-align: center;
}
.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
}
.overlay ul li {
    display: block;
    height: 25%;
    height: calc(100% / 3);
    min-height: 50px;
    position: relative;
    opacity: 0;
}
.overlay ul li a {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li a:active:after {
    width: 100%;
}
.overlay ul li a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: #fff;
    transition: 0.35s;
}

@-webkit-keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }
    100% {
        opacity: 1;
        left: 0;
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }
    100% {
        opacity: 1;
        left: 0;
    }
}

@media screen and (max-width: 768px) {
    .button_container {
        display: block;
    }
    .header {
        display: none;
    }
}

@-webkit-keyframes ani {
    0% {
        transform: translate3d(0, 0, 0);
        text-shadow: 0em 0em 0 rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    30% {
        transform: translate3d(0, 0, 0);
        text-shadow: 0em 0em 0 rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    70% {
        transform: translate3d(0.08em, -0.08em, 0);
        text-shadow: -0.08em 0.08em rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    100% {
        transform: translate3d(0.08em, -0.08em, 0);
        text-shadow: -0.08em 0.08em rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
}
@keyframes ani {
    0% {
        transform: translate3d(0, 0, 0);
        text-shadow: 0em 0em 0 rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    30% {
        transform: translate3d(0, 0, 0);
        text-shadow: 0em 0em 0 rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    70% {
        transform: translate3d(0.08em, -0.08em, 0);
        text-shadow: -0.08em 0.08em rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
    100% {
        transform: translate3d(0.08em, -0.08em, 0);
        text-shadow: -0.08em 0.08em rgb(255, 255, 255, 0);
        color: rgb(50, 50, 50);
    }
}
.popout span {
    position: relative;
    display: inline-block;
    -webkit-animation: ani 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
    animation: ani 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
}
.popout span:nth-last-child(1n) {
    -webkit-animation-delay: -0.1666666667s;
    animation-delay: -0.1666666667s;
}
.popout span:nth-last-child(2n) {
    -webkit-animation-delay: -0.3333333333s;
    animation-delay: -0.3333333333s;
}
.popout span:nth-last-child(3n) {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

/* ヘッダートップ */

.top {
    width: 100vw;
    height: 100vh;
}
@font-face {
    font-family: "Decovar Regular24";
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/Decovar-VF.ttf");
}
.top-title {
    margin: 0;
    font-size: 100px;
    font-family: "Decovar Regular24";
    color: black;
    font-variation-settings: "SSTR" 1000;
    -webkit-animation: loadin 4s infinite linear;
    animation: loadin 4s infinite linear;
}
.top-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.7),
        1px -1px 0 rgba(255, 255, 255, 0.7), -1px 1px 0 rgba(255, 255, 255, 0.7),
        1px 1px 0 rgba(255, 255, 255, 0.7), -1px 2px 1px #a0a0a0,
        -2px 4px 2px #a0a0a0, -3px 6px 3px rgba(160, 160, 160, 0.6),
        -4px 8px 4px rgba(160, 160, 160, 0.5),
        -5px 10px 5px rgba(160, 160, 160, 0.4),
        -6px 12px 6px rgba(160, 160, 160, 0.3),
        -7px 13px 7px rgba(160, 160, 160, 0.2),
        -8px 15px 8px rgba(160, 160, 160, 0.2),
        -9px 17px 9px rgba(160, 160, 160, 0.2),
        -10px 19px 10px rgba(160, 160, 160, 0.2),
        -11px 20px 11px rgba(160, 160, 160, 0.1),
        -12px 22px 12px rgba(160, 160, 160, 0.1),
        -13px 24px 13px rgba(160, 160, 160, 0.1),
        -14px 26px 14px rgba(160, 160, 160, 0.1),
        -15px 28px 15px rgba(160, 160, 160, 0.1),
        -16px 30px 16px rgba(160, 160, 160, 0.1),
        -17px 32px 17px rgba(160, 160, 160, 0.1),
        -18px 34px 18px rgba(160, 160, 160, 0.1),
        -19px 36px 19px rgba(160, 160, 160, 0.1),
        -20px 38px 20px rgba(160, 160, 160, 0.1),
        -21px 39px 21px rgba(160, 160, 160, 0.1);
}

.top-title-sub {
    display: none;
}

@media screen and (max-width: 768px) {
    .top-title {
        display: none;
    }
    .top-title-sub {
        margin: 0;
        font-size: 60px;
        font-family: "Decovar Regular24";
        color: black;
        font-variation-settings: "SSTR" 1000;
        -webkit-animation: loadin 4s infinite linear;
        animation: loadin 4s infinite linear;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        text-align: center;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.7),
            1px -1px 0 rgba(255, 255, 255, 0.7),
            -1px 1px 0 rgba(255, 255, 255, 0.7),
            1px 1px 0 rgba(255, 255, 255, 0.7), -1px 2px 1px #a0a0a0,
            -2px 4px 2px #a0a0a0, -3px 6px 3px rgba(160, 160, 160, 0.6),
            -4px 8px 4px rgba(160, 160, 160, 0.5),
            -5px 10px 5px rgba(160, 160, 160, 0.4),
            -6px 12px 6px rgba(160, 160, 160, 0.3),
            -7px 13px 7px rgba(160, 160, 160, 0.2),
            -8px 15px 8px rgba(160, 160, 160, 0.2),
            -9px 17px 9px rgba(160, 160, 160, 0.2),
            -10px 19px 10px rgba(160, 160, 160, 0.2),
            -11px 20px 11px rgba(160, 160, 160, 0.1),
            -12px 22px 12px rgba(160, 160, 160, 0.1),
            -13px 24px 13px rgba(160, 160, 160, 0.1),
            -14px 26px 14px rgba(160, 160, 160, 0.1),
            -15px 28px 15px rgba(160, 160, 160, 0.1),
            -16px 30px 16px rgba(160, 160, 160, 0.1),
            -17px 32px 17px rgba(160, 160, 160, 0.1),
            -18px 34px 18px rgba(160, 160, 160, 0.1),
            -19px 36px 19px rgba(160, 160, 160, 0.1),
            -20px 38px 20px rgba(160, 160, 160, 0.1),
            -21px 39px 21px rgba(160, 160, 160, 0.1);
    }
}

/* ここまでがヘッダートップ */

.animate-top-bar {
    -webkit-animation: animate-top-bar 0.6s linear 1 both;
    animation: animate-top-bar 0.6s linear 1 both;
}

.animate-bottom-bar {
    -webkit-animation: animate-bottom-bar 0.6s linear 1 both;
    animation: animate-bottom-bar 0.6s linear 1 both;
}

.animate-middle-bar {
    -webkit-animation: animate-middle-bar 0.6s linear 1 both;
    animation: animate-middle-bar 0.6s linear 1 both;
}

.animate-out-top-bar {
    -webkit-animation: animate-out-top-bar 0.6s linear 1 both;
    animation: animate-out-top-bar 0.6s linear 1 both;
}

.animate-out-bottom-bar {
    -webkit-animation: animate-out-bottom-bar 0.6s linear 1 both;
    animation: animate-out-bottom-bar 0.6s linear 1 both;
}

.animate-out-middle-bar {
    -webkit-animation: animate-out-middle-bar 0.6s linear 1 both;
    animation: animate-out-middle-bar 0.6s linear 1 both;
}

.headline {
    align-items: center;
    background-color: var(--color);
    display: flex;
    font-family: "Lexend Deca", sans-serif;
    font-weight: 700;
    font-size: calc(1rem + 15vmin);
    justify-content: center;
    overflow: hidden;
    perspective: 500px;
    scroll-snap-align: start;
    font-size: 50px;
    height: 150px;
}
.second {
    height: 250px;
}

@media screen and (max-width: 768px) {
    .headline {
        font-size: 30px;
    }
    .second {
        height: 130px;
    }
}

.headline:nth-child(1) {
    --color: #f9ca24;
}
.headline:nth-child(2) {
    --color: #3498db;
}
.headline:nth-child(3) {
    --color: #ff7979;
}
.headline:nth-child(4) {
    --color: #1abc9c;
}
.headline:nth-child(5) {
    --color: #e74c3c;
}
.headline:nth-child(6) {
    --color: #f8c291;
}

.word,
.char {
    -webkit-animation-delay: var(--del);
    animation-delay: var(--del);
    -webkit-animation-direction: var(--dir, normal);
    animation-direction: var(--dir, normal);
    -webkit-animation-duration: var(--dur);
    animation-duration: var(--dur);
    -webkit-animation-iteration-count: var(--it, infinite);
    animation-iteration-count: var(--it, infinite);
    -webkit-animation-name: var(--name);
    animation-name: var(--name);
    -webkit-animation-timing-function: var(--tf);
    animation-timing-function: var(--tf);
    -webkit-animation-fill-mode: var(--fill, forwards);
    animation-fill-mode: var(--fill, forwards);
    display: inline-block;
    position: relative;
    transform-origin: 50% 100%;
    z-index: 1;
}

.headline--fall .char {
    --name: fall;
    --dur: 600ms;
    --del: calc(var(--char-index) * -0.05s);
    --tf: cubic-bezier(0.165, 0.44, 0.64, 1);
}
@-webkit-keyframes fall {
    0% {
        transform: rotateY(-25deg);
    }
    25% {
        transform: translateY(2%) rotateY(25deg);
    }
    50% {
        transform: rotateY(-25deg);
    }
    75% {
        transform: translateY(4%) rotateY(25deg);
    }
    100% {
        transform: rotateY(-25deg);
    }
}
@keyframes fall {
    0% {
        transform: rotateY(-25deg);
    }
    25% {
        transform: translateY(2%) rotateY(25deg);
    }
    50% {
        transform: rotateY(-25deg);
    }
    75% {
        transform: translateY(4%) rotateY(25deg);
    }
    100% {
        transform: rotateY(-25deg);
    }
}

.headline--flip .char {
    --name: flip;
    --dur: 4000ms;
    --del: calc(var(--char-index) * 0.075s);
    --tf: linear;
}
@-webkit-keyframes flip {
    5% {
        transform: rotateX(1turn);
    }
    10% {
        transform: rotateX(2turn);
    }
    20% {
        transform: rotateX(3turn);
    }
    40% {
        transform: rotateX(4turn);
    }
    70%,
    100% {
        transform: rotateX(5turn);
    }
}
@keyframes flip {
    5% {
        transform: rotateX(1turn);
    }
    10% {
        transform: rotateX(2turn);
    }
    20% {
        transform: rotateX(3turn);
    }
    40% {
        transform: rotateX(4turn);
    }
    70%,
    100% {
        transform: rotateX(5turn);
    }
}

.headline--float .char {
    --name: float;
    --dur: 2200ms;
    --del: calc(var(--char-index) * -0.5s);
    --tf: ease-in-out;
    --dir: alternate;
}
.headline--float .char:nth-child(2n) {
    --name: float-alt;
}
@-webkit-keyframes float {
    from {
        transform: translate(2%, -10%) rotate(-1deg);
    }
    to {
        transform: translate(-2%, 5%) rotate(3deg);
    }
}
@keyframes float {
    from {
        transform: translate(2%, -10%) rotate(-1deg);
    }
    to {
        transform: translate(-2%, 5%) rotate(3deg);
    }
}
@-webkit-keyframes float-alt {
    from {
        transform: translate(0%, -5%) rotate(-1deg);
    }
    to {
        transform: translate(2%, 10%) rotate(3deg);
    }
}
@keyframes float-alt {
    from {
        transform: translate(0%, -5%) rotate(-1deg);
    }
    to {
        transform: translate(2%, 10%) rotate(3deg);
    }
}

.headline--jog .char {
    --name: jog;
    --dur: 500ms;
    --del: calc(var(--char-index) * -0.025s);
    --tf: linear;
}
@-webkit-keyframes jog {
    0% {
        transform: translate(0, 0) rotate(5deg);
    }
    25% {
        transform: translate(5%, -5%) rotate(10deg);
    }
    50% {
        transform: translate(5%, 0) rotate(15deg);
    }
    75% {
        transform: translate(10%, -5%) rotate(10deg);
    }
    100% {
        transform: translate(0, 0) rotate(5deg);
    }
}
@keyframes jog {
    0% {
        transform: translate(0, 0) rotate(5deg);
    }
    25% {
        transform: translate(5%, -5%) rotate(10deg);
    }
    50% {
        transform: translate(5%, 0) rotate(15deg);
    }
    75% {
        transform: translate(10%, -5%) rotate(10deg);
    }
    100% {
        transform: translate(0, 0) rotate(5deg);
    }
}

.headline--jump .char {
    --name: jump;
    --dur: 800ms;
    --del: calc(var(--char-index) * 0.075s);
    --tf: cubic-bezier(0.165, 0.44, 0.64, 1);
}
@-webkit-keyframes jump {
    20% {
        transform: translateY(2%) scaleY(0.9);
    }
    40% {
        transform: translateY(-100%) scaleY(1.2);
    }
    50% {
        transform: translateY(10%) scaleY(0.8);
    }
    70% {
        transform: translateY(-5%) scaleY(1);
    }
    80%,
    100% {
        transform: translateY(0) scaleY(1);
    }
}
@keyframes jump {
    20% {
        transform: translateY(2%) scaleY(0.9);
    }
    40% {
        transform: translateY(-100%) scaleY(1.2);
    }
    50% {
        transform: translateY(10%) scaleY(0.8);
    }
    70% {
        transform: translateY(-5%) scaleY(1);
    }
    80%,
    100% {
        transform: translateY(0) scaleY(1);
    }
}

.headline--twirl .char {
    --name: twirl;
    --dur: 6000ms;
    --del: calc(var(--char-index) * 0.025s);
    --tf: linear;
}
@-webkit-keyframes twirl {
    2.5% {
        transform: rotateY(1turn);
    }
    5% {
        transform: rotateY(2turn);
    }
    10% {
        transform: rotateY(3turn);
    }
    20% {
        transform: rotateY(4turn);
    }
    40% {
        transform: rotateY(5turn);
    }
    70%,
    100% {
        transform: rotateY(6turn);
    }
}
@keyframes twirl {
    2.5% {
        transform: rotateY(1turn);
    }
    5% {
        transform: rotateY(2turn);
    }
    10% {
        transform: rotateY(3turn);
    }
    20% {
        transform: rotateY(4turn);
    }
    40% {
        transform: rotateY(5turn);
    }
    70%,
    100% {
        transform: rotateY(6turn);
    }
}

.headline:nth-child(1) {
    --color: rgba(0, 0, 0, 0);
}
.headline:nth-child(2) {
    --color: rgba(0, 0, 0, 0);
}
.headline:nth-child(3) {
    --color: rgba(0, 0, 0, 0);
}
.headline:nth-child(4) {
    --color: rgba(0, 0, 0, 0);
}
.headline:nth-child(5) {
    --color: rgba(0, 0, 0, 0);
}
.headline:nth-child(6) {
    --color: rgba(0, 0, 0, 0);
}

.headline--fade .char {
    --name: fade;
    --dur: 2s;
    --del: calc(var(--distance-percent) * 0.15s);
    --td: ease-in-out;
    transform-origin: 0 100%;
}
@-webkit-keyframes fade {
    50% {
        opacity: 0;
    }
}
@keyframes fade {
    50% {
        opacity: 0;
    }
}

.headline--ghost .char {
    --name: rise;
    --dur: 3s;
    --del: calc(var(--distance-percent) * 0.125s);
    --tf: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: 50% 100%;
}
.headline--ghost .char:after {
    -webkit-animation: ghost var(--dur) ease-in var(--del) infinite;
    animation: ghost var(--dur) ease-in var(--del) infinite;
    content: attr(data-char);
    opacity: 0;
    transform-origin: 100% 50%;
    visibility: visible;
}
@-webkit-keyframes rise {
    40% {
        transform: translateY(-40%) rotate(calc(var(--distance-sine) * 10deg));
    }
    50% {
        transform: translateY(6%);
    }
    55% {
        transform: translateY(-4%);
    }
    60% {
        transform: translateY(2%);
    }
    65% {
        transform: translateY(-1%);
    }
    70% {
        transform: translateY(0%);
    }
}
@keyframes rise {
    40% {
        transform: translateY(-40%) rotate(calc(var(--distance-sine) * 10deg));
    }
    50% {
        transform: translateY(6%);
    }
    55% {
        transform: translateY(-4%);
    }
    60% {
        transform: translateY(2%);
    }
    65% {
        transform: translateY(-1%);
    }
    70% {
        transform: translateY(0%);
    }
}
@-webkit-keyframes ghost {
    8% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 0.25;
        transform: translateY(-30%) rotate(calc(var(--distance-sine) * -10deg));
    }
    60%,
    100% {
        opacity: 0;
        transform: translateY(-200%);
    }
}
@keyframes ghost {
    8% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 0.25;
        transform: translateY(-30%) rotate(calc(var(--distance-sine) * -10deg));
    }
    60%,
    100% {
        opacity: 0;
        transform: translateY(-200%);
    }
}

.headline--rock .char {
    --name: rock;
    --dur: 2s;
    --td: ease-in-out;
    transform-origin: 0 100%;
}
@-webkit-keyframes rock {
    0%,
    100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(-18deg);
    }
}
@keyframes rock {
    0%,
    100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(-18deg);
    }
}

.headline--sail .word {
    --dur: 5s;
}
.headline--sail .word:before,
.headline--sail .word:after {
    -webkit-animation: wave var(--dur) linear infinite;
    animation: wave var(--dur) linear infinite;
    background-image: radial-gradient(
        circle at 20px -30px,
        transparent 40px,
        var(--color) 41px
    );
    background-repeat: repeat-x;
    background-size: 40px 100%;
    content: "";
    height: 150%;
    left: 0;
    position: absolute;
    top: 90%;
    width: 200%;
    z-index: 2;
}
.headline--sail .word:after {
    -webkit-animation-duration: calc(var(--dur) * 1.4);
    animation-duration: calc(var(--dur) * 1.4);
    opacity: 0.8;
    top: 70%;
}
.headline--sail .char {
    --name: sail;
    --del: calc(var(--char-index) * -0.15s);
    --tf: linear;
}
@-webkit-keyframes sail {
    25% {
        transform: rotate(-1deg) translateY(2%);
    }
    50% {
        transform: rotate(0) translateY(0);
    }
    75% {
        transform: rotate(1deg) translateY(1%);
    }
}
@keyframes sail {
    25% {
        transform: rotate(-1deg) translateY(2%);
    }
    50% {
        transform: rotate(0) translateY(0);
    }
    75% {
        transform: rotate(1deg) translateY(1%);
    }
}
@-webkit-keyframes wave {
    to {
        transform: translateX(-200px);
    }
}
@keyframes wave {
    to {
        transform: translateX(-200px);
    }
}

.headline--shiver .word {
    --name: shiver;
    --dur: 3s;
    --td: linear;
}
.headline--shiver .char {
    --name: shiver-letter;
    --del: calc(var(--char-index) * -0.0125s);
    --dur: 140ms;
    --td: linear;
}
@-webkit-keyframes shiver {
    1% {
        transform: translateX(2%);
    }
    2% {
        transform: translateX(-2%);
    }
    3% {
        transform: translateX(3%);
    }
    4% {
        transform: translateX(-3%);
    }
    5% {
        transform: translateX(4%);
    }
    6% {
        transform: translateX(-4%);
    }
    7% {
        transform: translateX(3%);
    }
    8% {
        transform: translateX(-3%);
    }
    9% {
        transform: translateX(2%);
    }
    10% {
        transform: translateX(-2%);
    }
    11% {
        transform: translateX(1%);
    }
    12% {
        transform: translateX(0%);
    }
}
@keyframes shiver {
    1% {
        transform: translateX(2%);
    }
    2% {
        transform: translateX(-2%);
    }
    3% {
        transform: translateX(3%);
    }
    4% {
        transform: translateX(-3%);
    }
    5% {
        transform: translateX(4%);
    }
    6% {
        transform: translateX(-4%);
    }
    7% {
        transform: translateX(3%);
    }
    8% {
        transform: translateX(-3%);
    }
    9% {
        transform: translateX(2%);
    }
    10% {
        transform: translateX(-2%);
    }
    11% {
        transform: translateX(1%);
    }
    12% {
        transform: translateX(0%);
    }
}
@-webkit-keyframes shiver-letter {
    25% {
        transform: translateY(1%);
    }
    50% {
        transform: translate(
            calc(var(--distance-percent) * 1%),
            calc(var(--distance-percent) * 1%)
        );
    }
    75% {
        transform: translateY(1%);
    }
}
@keyframes shiver-letter {
    25% {
        transform: translateY(1%);
    }
    50% {
        transform: translate(
            calc(var(--distance-percent) * 1%),
            calc(var(--distance-percent) * 1%)
        );
    }
    75% {
        transform: translateY(1%);
    }
}

.headline--yell .char {
    --name: yell;
    --dur: 3s;
    --tf: ease;
    transform-origin: 50% 100%;
}
@-webkit-keyframes yell {
    3% {
        transform: scale(calc(1 * var(--distance-percent) + 1.5))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    6% {
        transform: scale(calc(1 * var(--distance-percent) + 1.2))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    12% {
        transform: scale(calc(1 * var(--distance-percent) + 1.5))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    18% {
        transform: scaleY(1) translateY(-2%);
    }
    25% {
        transform: scaleY(0.98);
    }
    50% {
        transform: scaleY(1);
    }
    75% {
        transform: scale(0.98);
    }
}
@keyframes yell {
    3% {
        transform: scale(calc(1 * var(--distance-percent) + 1.5))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    6% {
        transform: scale(calc(1 * var(--distance-percent) + 1.2))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    12% {
        transform: scale(calc(1 * var(--distance-percent) + 1.5))
            rotate(calc(15deg * var(--distance-sine))) translateY(-10%);
    }
    18% {
        transform: scaleY(1) translateY(-2%);
    }
    25% {
        transform: scaleY(0.98);
    }
    50% {
        transform: scaleY(1);
    }
    75% {
        transform: scale(0.98);
    }
}
body .footer {
    margin-top: 250px;
    z-index: 1;
    --footer-background: #000000;
    display: grid;
    position: relative;
    grid-area: footer;
    min-height: 12rem;
    /* width: 100%; */
    /* overflow-x: hidden; */
}
body .footer .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1rem;
    background: var(--footer-background);
    filter: url("#blob");
}
body .footer .bubbles .bubble {
    position: absolute;
    left: var(--position, 50%);
    background: var(--footer-background);
    border-radius: 100%;
    -webkit-animation: bubble-size var(--time, 4s) ease-in infinite
            var(--delay, 0s),
        bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
        bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
}
body .footer .content {
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 4rem;
    padding: 2rem;
    background: var(--footer-background);
    height: 300px;
    font-family: "PT Sans Narrow", sans-serif;
}

.content > h3 {
    color: #e5e5de;
    font-size: 1.3vw;
    letter-spacing: 0.5em;
    text-align: center;
    align-self: center;
}
.bubble {
    overflow-x: hidden;
}
@media screen and (max-width: 768px) {
    body .footer .content {
        grid-gap: 0rem;
        height: 300px;
        padding: 0;
    }
    .content > h3 {
        margin: 0;
    }
}

@-webkit-keyframes bubble-size {
    0%,
    75% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
    }
    100% {
        width: 0rem;
        height: 0rem;
    }
}

@keyframes bubble-size {
    0%,
    75% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
    }
    100% {
        width: 0rem;
        height: 0rem;
    }
}
@-webkit-keyframes bubble-move {
    0% {
        bottom: -4rem;
    }
    100% {
        bottom: var(--distance, 10rem);
    }
}
@keyframes bubble-move {
    0% {
        bottom: -4rem;
    }
    100% {
        bottom: var(--distance, 10rem);
    }
}
