@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@900&display=swap');
html {
    font-size: 62.5%;
}

body {
    background: linear-gradient(to bottom, #182848, #4b6cb7);
}


/*雪*/

.snow {
    color: snow;
    /*雪の色*/
    font-size: 18px;
    /*雪の大きさ*/
    position: fixed;
    top: -5%;
    left: 5%;
    /*初期位置*/
    text-shadow: 5vw -100px 2px, 10vw -400px 3px, 20vw -500px 4px, 30vw -580px 1px, 39vw -250px 2px, 42vw -340px 5px, 56vw -150px 2px, 63vw -180px 0, 78vw -220px 4px, 86vw -320px 9px, 94vw -170px 7px;
    animation: anim 5s linear infinite;
}

@keyframes anim {
    100% {
        color: transparent;
        top: 150%;
    }
}


/*ローディング*/

.loading {
    text-align: center;
}

.loading span {
    font-family: 'Work Sans', sans-serif;
    position: relative;
    display: inline-block;
    font-size: 4rem;
    margin: 0 .1em;
    color: rgba(0, 0, 0, .2);
}

.loading span::after {
    position: absolute;
    top: 0;
    left: 0;
    content: attr(data-text);
    color: #fff;
    opacity: 0;
    transform: rotateY(-90deg);
    animation: loading 4s infinite;
}

.loading span:nth-child(2)::after {
    animation-delay: .2s;
}

.loading span:nth-child(3)::after {
    animation-delay: .4s;
}

.loading span:nth-child(4)::after {
    animation-delay: .6s;
}

.loading span:nth-child(5)::after {
    animation-delay: .8s;
}

.loading span:nth-child(6)::after {
    animation-delay: 1s;
}

.loading span:nth-child(7)::after {
    animation-delay: 1.2s;
}

@keyframes loading {
    0%,
    75%,
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    25%,
    50% {
        transform: rotateY(0);
        opacity: 1;
    }
}


/*雪だるま*/

.snowman-wrapper {
    display: flex;
    justify-content: center;
}

.snowman {
    color: black;
    width: 50px;
    height: 50px;
    margin-bottom: 50px;
    border-radius: 100%;
    /* 顔 表情 */
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    background-color: snow;
    /* 胴体  */
    box-shadow: -3px 35px 0 0 snow, 3px 35px 0 0 snow;
    animation: poyon 1.2s infinite;
}

.snowman:not(:last-child) {
    margin-right: 30px;
}

@keyframes poyon {
    0% {
        transform: scale(1.0, 1.0) translate(0%, 0%);
    }
    15% {
        transform: scale(0.9, 0.9) translate(0%, 5%);
    }
    30% {
        transform: scale(1.3, 0.8) translate(0%, 10%);
    }
    50% {
        transform: scale(0.8, 1.3) translate(0%, -10%);
    }
    70% {
        transform: scale(1.1, 0.9) translate(0%, 5%);
    }
    100% {
        transform: scale(1.0, 1.0) translate(0%, 0%);
    }
}


/*サンタ*/

.santa-wrapper {
    height: 160px;
}

.santa {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 125px;
    height: 107px;
    z-index: 10;
}

.santa--walk {
    -webkit-animation: santa-walk 20s linear normal infinite;
    animation: santa-walk 15s linear normal infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa--walk .hukidashi {
    top: -23px;
    left: -31px;
    -webkit-animation: santa-walk-hukidashi 20s linear normal infinite;
    animation: santa-walk-hukidashi 20s linear normal infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa--walk .sweat {
    -webkit-animation: sweat 1s linear normal infinite;
    animation: sweat 1s linear normal infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa--walk .sweat:nth-of-type(2) {
    top: -1px;
    right: 20px;
    -webkit-animation: sweat2 1s linear normal infinite;
    animation: sweat2 1s linear normal infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa__hat-part {
    position: absolute;
    top: 7px;
    left: 31px;
    width: 43px;
    height: 58px;
    border-radius: 50%;
    background-color: #d63527;
    transform: rotate(28deg);
}

.santa__hat-part:before,
.santa__hat-part:after {
    height: 7px;
    border-radius: 50%;
}

.santa__hat-part:nth-of-type(1):before {
    top: 9px;
    left: 45px;
    width: 7px;
    background-color: #fff;
}

.santa__hat-part:nth-of-type(1):after {
    top: 3px;
    left: 19px;
    width: 30px;
    background-color: #d63527;
    transform: rotate(22deg);
}

.santa__hat-part:nth-of-type(2) {
    position: absolute;
    top: 18px;
    left: 31px;
    width: 44px;
    height: 34px;
    border-radius: 50%;
    background-color: #fff;
    transform: rotate(12deg);
}

.santa__face {
    position: absolute;
    top: 25px;
    left: 37px;
    width: 31px;
    height: 17px;
    border-radius: 20px 20px 50% 50%;
    background-color: #fde2b7;
    z-index: 10;
    transform: rotate(10deg);
}

.santa__beard-part {
    position: absolute;
    top: 8px;
    left: -14px;
    width: 15px;
    height: 17px;
    border-radius: 50%;
    background-color: #fff;
}

.santa__beard-part:before,
.santa__beard-part:after {
    background-color: #fff;
}

.santa__beard-part:before {
    top: 12px;
    left: 1px;
    width: 15px;
    height: 17px;
    border-radius: 50%;
}

.santa__beard-part:nth-of-type(2) {
    top: 16px;
    left: -8px;
    width: 26px;
    height: 30px;
}

.santa__beard-part:nth-of-type(2):before {
    top: 16px;
    left: 13px;
    width: 19px;
    height: 17px;
}

.santa__beard-part:nth-of-type(2):after {
    top: 1px;
    left: 13px;
    width: 19px;
    height: 17px;
}

.santa__beard-part:nth-of-type(3) {
    top: 16px;
    left: 14px;
    width: 27px;
    height: 28px;
}

.santa__beard-part:nth-of-type(3):before {
    top: -4px;
    left: 13px;
    width: 17px;
    height: 17px;
}

.santa__eyebrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 7px;
    border-radius: 50%;
    background-color: #fff;
}

.santa__eyebrows--left {
    top: 1px;
    left: 4px;
    transform: rotate(65deg);
}

.santa__eyebrows--right {
    top: 2px;
    left: 22px;
    transform: rotate(-65deg);
}

.santa__eye {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 3px;
    height: 4px;
    border-radius: 50%;
    background-color: #000;
}

.santa__eye--left {
    top: 8px;
    left: 2px;
}

.santa__eye--right {
    top: 8px;
    left: 20px;
}

.santa__nose {
    position: absolute;
    top: 10px;
    left: 6px;
    width: 12px;
    height: 9px;
    border-radius: 50%;
    z-index: 10;
    background-color: #f7d194;
}

.santa__cheek {
    position: absolute;
    top: 10px;
    left: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    z-index: 10;
    background-color: #f4cfe3;
}

.santa__cheek--left {
    top: 12px;
    left: -3px;
}

.santa__cheek--right {
    top: 13px;
    left: 22px;
}

.santa__body {
    position: absolute;
    top: 54px;
    left: 16px;
    width: 88px;
    height: 53px;
}

.santa__body:before {
    top: -23px;
    right: -10px;
    width: 53px;
    height: 51px;
    border-radius: 42% 50%;
    background-color: #f3f0f0;
    z-index: -1;
}

.santa__body-top {
    top: -3px;
    left: 10px;
    position: absolute;
    width: 45px;
    height: 39px;
    border-radius: 50% 50% 10% 10%;
    background-color: #d63527;
    z-index: 5;
}

.santa__body-top:before,
.santa__body-top:after {
    height: 5px;
    background-color: #000;
    transform: rotate(1deg);
}

.santa__body-top:before {
    top: 28px;
    left: 0px;
    width: 45px;
}

.santa__body-top:after {
    top: 27px;
    left: 10px;
    width: 7px;
    border: 1px solid #fff;
    border-radius: 3px;
}

.santa__body-bottom {
    position: absolute;
    top: 18px;
    left: 10px;
    width: 44px;
    height: 23px;
    border-radius: 50%;
    background-color: #d63527;
}

.santa__foot {
    position: absolute;
    bottom: -7px;
    left: 23px;
    width: 10px;
    height: 17px;
    border-radius: 3px;
    background-color: #d63527;
    transform: rotate(0);
}

.santa__foot:before,
.santa__foot:after {
    background-color: #000;
}

.santa__foot:before {
    bottom: -3px;
    left: 0;
    height: 7px;
}

.santa__foot:after {
    width: 15px;
    height: 6px;
    bottom: -5px;
    left: -3px;
    border-radius: 50% 50% 50% 4px;
}

.santa__foot--left {
    bottom: -7px;
    left: 6px;
    transform: rotate(0);
    -webkit-animation: santa-foot-left 0.8s linear alternate infinite;
    animation: santa-foot-left 0.8s linear alternate infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa__foot--left:before {
    width: 10px;
}

.santa__foot--left:after {
    width: 13px;
}

.santa__foot--right {
    width: 12px;
    bottom: -7px;
    left: 26px;
    transform: rotate(0);
    -webkit-animation: santa-foot-right 0.8s linear alternate infinite;
    animation: santa-foot-right 0.8s linear alternate infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa__foot--right:before {
    width: 12px;
}

.santa__foot--right:after {
    width: 15px;
}

.santa__hand {
    position: absolute;
}

.santa__hand--left {
    top: 5px;
    left: 19px;
    width: 33px;
    height: 30px;
    overflow: hidden;
}

.santa__hand--left .santa__hand-inner {
    position: absolute;
    top: 10px;
    left: 8px;
    width: 49px;
    z-index: 100;
    height: 7px;
    border-radius: 10px;
    background-color: #d63527;
    transform: rotate(12deg);
    -webkit-animation: santa-hand-left 1s linear alternate infinite;
    animation: santa-hand-left 1s linear alternate infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.santa__hand--left .santa__hand-inner:before {
    width: 8px;
    height: 7px;
    top: -2px;
    left: -6px;
    background-color: #000;
    border-radius: 50%;
    transform: rotate(25deg);
}

.santa__hand--right {
    top: 4px;
    left: 3px;
    width: 11px;
    height: 8px;
    border-radius: 50%;
    background-color: #d63527;
    transform: rotate(-60deg);
}

.hukidashi {
    position: absolute;
    width: 69px;
    height: 45px;
    border-radius: 50%;
    opacity: 0.8;
    background-color: #fff;
}

.hukidashi:before,
.hukidashi:after {
    opacity: 0.8;
}

.hukidashi--speak:before {
    border-left: 9px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 4px solid transparent;
    right: 3px;
    bottom: 0;
    opacity: 1;
    transform: rotate(41deg);
}

.hukidashi--think:before,
.hukidashi--think:after {
    background-color: #fff;
    border-radius: 50%;
}

.hukidashi--think:before {
    width: 10px;
    height: 8px;
    right: 33px;
    bottom: -9px;
}

.hukidashi--think:after {
    width: 8px;
    height: 6px;
    right: 20px;
    bottom: -14px;
}

.hukidashi p {
    margin: 13px 0;
    font-size: 15px;
    text-align: center;
}

.sweat {
    position: absolute;
    top: 10px;
    right: 27px;
    width: 10px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    transform: rotate(-16deg);
}

.sweat:before {
    width: 0;
    height: 0;
    border-right: 6px solid #fff;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    top: 1px;
    left: -5px;
}

@-webkit-keyframes santa-foot-left {
    0% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

@keyframes santa-foot-left {
    0% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

@-webkit-keyframes santa-foot-right {
    0% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

@keyframes santa-foot-right {
    0% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

@-webkit-keyframes santa-walk {
    0% {
        left: 80%;
        transform: rotateY(0);
    }
    35% {
        left: 30%;
        transform: rotateY(0);
    }
    36% {
        transform: rotateY(180deg);
    }
    50% {
        left: 57%;
        transform: rotateY(180deg);
    }
    51% {
        transform: rotateY(0);
    }
    80% {
        left: calc(30% - 125px);
    }
    100% {
        transform: rotateY(0);
        left: calc(30% - 125px);
    }
}

@keyframes santa-walk {
    0% {
        left: 80%;
        transform: rotateY(0);
    }
    35% {
        left: 30%;
        transform: rotateY(0);
    }
    36% {
        transform: rotateY(180deg);
    }
    50% {
        left: 57%;
        transform: rotateY(180deg);
    }
    51% {
        transform: rotateY(0);
    }
    80% {
        left: calc(30% - 125px);
    }
    100% {
        transform: rotateY(0);
        left: calc(30% - 125px);
    }
}

@-webkit-keyframes santa-walk-hukidashi {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    65% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes santa-walk-hukidashi {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    65% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes sweat {
    0% {
        opacity: 0;
        top: 18px;
        right: 30px;
        transform: rotate(-30deg);
    }
    40% {
        opacity: 1;
        top: 10px;
        right: 20px;
    }
    60% {
        opacity: 0;
        top: 10px;
        right: 20px;
    }
    100% {
        opacity: 0;
    }
}

@keyframes sweat {
    0% {
        opacity: 0;
        top: 18px;
        right: 30px;
        transform: rotate(-30deg);
    }
    40% {
        opacity: 1;
        top: 10px;
        right: 20px;
    }
    60% {
        opacity: 0;
        top: 10px;
        right: 20px;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes sweat2 {
    0% {
        opacity: 0;
        top: 10px;
        right: 38px;
        transform: rotate(-47deg);
    }
    40% {
        opacity: 1;
        top: 2px;
        right: 31px;
    }
    60% {
        opacity: 0;
        top: 2px;
        right: 31px;
    }
    100% {
        opacity: 0;
    }
}

@keyframes sweat2 {
    0% {
        opacity: 0;
        top: 10px;
        right: 38px;
        transform: rotate(-47deg);
    }
    40% {
        opacity: 1;
        top: 2px;
        right: 31px;
    }
    60% {
        opacity: 0;
        top: 2px;
        right: 31px;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes santa-hand-left {
    0% {
        transform: rotate(14deg);
    }
    100% {
        transform: rotate(8deg);
    }
}

@keyframes santa-hand-left {
    0% {
        transform: rotate(14deg);
    }
    100% {
        transform: rotate(8deg);
    }
}

* {
    position: relative;
}

*:before,
*:after {
    position: absolute;
    content: "";
}


/*枠デザイン*/

.blackboard-box {
    max-width: 300px;
    background: #104300;
    margin: 1em auto;
    padding: 1em 1em 0 1em;
    border: 8px solid #a60;
    box-shadow: 2px 2px 4px #999, 2px 2px 2px #020 inset;
}

.blackboard-box p {
    margin: 0;
    padding: 0;
    color: #fff;
    text-shadow: 0px 0px 2px #fff;
}

.chalk1 {
    display: block;
    margin-top: 10px;
    margin-left: 90%;
    border: solid 3px #fff;
    width: 15px;
    border-radius: 3px 2px 0 2px;
}

.chalk2 {
    display: block;
    margin-top: -6px;
    margin-left: calc(90% - 30px);
    border: solid 3px #ffee58;
    width: 20px;
    border-radius: 3px 2px 0 2px;
}