@charset "utf-8";

/* 動く背景 */

.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

/* bodyの中身 */

.swiper-slide img {
    height: auto;
    width: 100%;
}

.wrap {
    box-shadow: 7px 7px 5px 0px rgba(0, 0, 0, 0.4);
    background-color: white;
    max-width: 920px;
    margin: 40px auto;
    padding: 10px 30px;
    border-radius: 10px;

}

.title {
    font-size: 3.0rem;
    padding-top: 20px;
    margin-bottom: 100px;
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.section-title {
    /* text-align: center; */
    font-size: 2.4rem;
    margin-bottom: 40px;
    border-bottom: 2px solid black;
}

.sub-title {
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 10px;
    border-bottom: 8px double red;
    font-size: 2.0rem;

}

section {
    margin-bottom: 100px;
}

.codepen {
    margin-bottom: 60px;
}

article {
    margin: 0 auto;
    margin-bottom: 40px;
}

.article-title {
    font-size: 3rem;
    padding: 1rem;
    border-top: 3px dotted #000;
    border-bottom: 3px dotted #000;
    /* text-align: center; */
    margin-bottom: 30px;
}

pre {
    margin-bottom: 20px;
}

.emphasis {
    color: red;
}

.process li {
    line-height: 2;
}

.process {
    list-style: circle;
    padding: 20px
}

@media screen and (min-width:768px) {
    .title {
        font-size: 6rem;
    }

    .section-title {
        font-size: 3.6rem;
    }
}


/* 背景雪 */


body {
    background-image: url(../img/bg-xmas.png);
    background-repeat: repeat;
}

/* customizable snowflake styling */
.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
}

@-webkit-keyframes snowflakes-fall {
    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@-webkit-keyframes snowflakes-shake {
    0% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }

    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px)
    }

    100% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }
}

@keyframes snowflakes-fall {
    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@keyframes snowflakes-shake {
    0% {
        transform: translateX(0px)
    }

    50% {
        transform: translateX(80px)
    }

    100% {
        transform: translateX(0px)
    }
}

.snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

.snowflake:nth-of-type(0) {
    left: 1%;
    -webkit-animation-delay: 0s, 0s;
    animation-delay: 0s, 0s
}

.snowflake:nth-of-type(1) {
    left: 10%;
    -webkit-animation-delay: 1s, 1s;
    animation-delay: 1s, 1s
}

.snowflake:nth-of-type(2) {
    left: 20%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s
}

.snowflake:nth-of-type(3) {
    left: 30%;
    -webkit-animation-delay: 4s, 2s;
    animation-delay: 4s, 2s
}

.snowflake:nth-of-type(4) {
    left: 40%;
    -webkit-animation-delay: 2s, 2s;
    animation-delay: 2s, 2s
}

.snowflake:nth-of-type(5) {
    left: 50%;
    -webkit-animation-delay: 8s, 3s;
    animation-delay: 8s, 3s
}

.snowflake:nth-of-type(6) {
    left: 60%;
    -webkit-animation-delay: 6s, 2s;
    animation-delay: 6s, 2s
}

.snowflake:nth-of-type(7) {
    left: 70%;
    -webkit-animation-delay: 2.5s, 1s;
    animation-delay: 2.5s, 1s
}

.snowflake:nth-of-type(8) {
    left: 80%;
    -webkit-animation-delay: 1s, 0s;
    animation-delay: 1s, 0s
}

.snowflake:nth-of-type(9) {
    left: 90%;
    -webkit-animation-delay: 3s, 1.5s;
    animation-delay: 3s, 1.5s
}


/* body {
    background-color: #000;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.snow {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    width: 5px;
    height: 5px;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(100vh) translateX(50px);
    }
}

/* 各雪に異なる位置と速度を設定 */
/* .snow:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
}

.snow:nth-child(2) {
    left: 20%;
    animation-duration: 10s;
    width: 7px;
    height: 7px;
}

.snow:nth-child(3) {
    left: 30%;
    animation-duration: 7s;
    width: 4px;
    height: 4px;
}

.snow:nth-child(4) {
    left: 40%;
    animation-duration: 12s;
}

.snow:nth-child(5) {
    left: 50%;
    animation-duration: 9s;
    width: 6px;
    height: 6px;
}

.snow:nth-child(6) {
    left: 60%;
    animation-duration: 11s;
}

.snow:nth-child(7) {
    left: 70%;
    animation-duration: 8s;
    width: 5px;
    height: 5px;
}

.snow:nth-child(8) {
    left: 80%;
    animation-duration: 10s;
    width: 7px;
    height: 7px;
}

.snow:nth-child(9) {
    left: 90%;
    animation-duration: 9s;
    width: 4px;
    height: 4px;
}

.snow:nth-child(10) {
    left: 95%;
    animation-duration: 11s;
} */