@charset "UTF-8";

/* ローディング画面 */

.loader-wrap {
	position: fixed;
	display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgb(252, 205, 255);
    z-index: 4;
}

/* 中のローディングアニメ */
.loader,
.loader:before,
.loader:after {
    background: #ffffff;
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.loader {
    color: #ffffff;
    text-indent: -9999em;
    margin: 88px auto;
    position: relative;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    position: absolute;
    top: 0;
    content: '';
}

.loader:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loader:after {
    left: 1.5em;
}

@-webkit-keyframes load1 {
    0%,
    80%,
    100% {
    box-shadow: 0 0;
    height: 4em;}
    40% {
    box-shadow: 0 -2em;
    height: 5em;}
}

@keyframes load1 {
    0%,
    80%,
    100% {
    box-shadow: 0 0;
    height: 4em;}
    40% {
    box-shadow: 0 -2em;
    height: 5em;}
}


/* スイッチアニメーション */

body {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.switch {
    position: relative;
}

.switch input {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 100;
    cursor: pointer;
}

.switch label {
    height: 55px;
    width: 110px;
    background-color: #ffffff;
    border-radius: 50px;
    display: block;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), inset 0 0 2px -1px rgba(0,0,0,0.4);
}

.switch label .bulb {
    height: 45px;
    width: 45px;
    background-color: #4a426b;
    border-radius: 50%;
    position: relative;
    top: 5px;
    left: 5px;
    display: block;
    transition: 0.7s;
    box-shadow: inset 0 0 1px 1px #4a426b, inset 0 0 3px 4px #423963, 0 10px 15px -5px rgba(0,0,0,0.4);
}

.switch label .bulb .bulb-center {
    position: absolute;
    display: block;
    height: 18px;
    width: 18px;
    background-color: #5a527b;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transition: 0.7s;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 2px #635a84;
}

.switch label .bulb .bulb-center:after {
    content: "";
    display: block;
    height: 7px;
    width: 7px;
    background-color: #7b7394;
    border-radius: 50%;
    position: absolute;
    transition: 0.7s;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 1px 2px #524a73;
}

.switch label .bulb .filament-1,
.switch label .bulb .filament-2 {
    position: absolute;
    display: block;
    height: 17px;
    width: 17px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.switch label .bulb .filament-1:after,
.switch label .bulb .filament-2:after,
.switch label .bulb .filament-1:before,
.switch label .bulb .filament-2:before {
    content: "";
    display: block;
    height: 3px;
    width: 8px;
    border-radius: 50%;
    border: 1px solid #4a426b;
    position: absolute;
    transition: 0.7s;
    top: -2px;
    left: -1px;
    transform: rotate(-10deg);
}

.switch label .bulb .filament-1:before,
.switch label .bulb .filament-2:before {
    left: 7px;
    transform: rotate(10deg);
}

.switch label .bulb .filament-2 {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.reflections {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    z-index: 90;
    perspective: 35px;
}

.reflections span {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-image: linear-gradient(-135deg, transparent 10%, rgba(255,255,255,0.3));
    position: absolute;
    left: -20px;
    bottom: -22px;
}











.reflections span:after {
    content: "";
    display: block;
    height: 17px;
    width: 10px;
    position: absolute;
    top: -18px;
    right: -20px;
    border-radius: 50%;
    box-shadow: 2px -1px 0 -1px rgba(255,255,255,0.4);
    filter: blur(1px);
    transform: rotate(-10deg);
}

.reflections:after {
    content: "";
    display: block;
    height: 40px;
    width: 25px;
    background-image: linear-gradient(80deg, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.5));
    border-radius: 10% 20% 50% 30%/30% 60% 30% 40%;
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotate(-35deg) skewx(-15deg) translate(10px, -20px);
    top: -4px;
    left: -2px;
}

.reflections:before {
    content: "";
    display: block;
    position: absolute;
    height: 5px;
    width: 15px;
    background-image: linear-gradient(to right, transparent, rgba(255,255,255,0.15));
    bottom: 5px;
    right: 0px;
    transform: rotate(45deg);
}

.sparks .spark1 {
    display: block;
    height: 1px;
    width: 1px;
    background-color: #d1b82b;
    position: absolute;
    right: -2px;
    border-radius: 50%;
    bottom: 12px;
    transition: 0.4s;
    opacity: 0;
}

.sparks .spark2 {
    display: block;
    height: 1px;
    width: 1px;
    background-color: #d1b82b;
    position: absolute;
    right: 10px;
    border-radius: 50%;
    bottom: 40px;
    transition: 0.4s;
    opacity: 0;
}

.sparks .spark3 {
    display: block;
    height: 1px;
    width: 1px;
    background-color: #d1b82b;
    position: absolute;
    left: 10px;
    border-radius: 50%;
    bottom: 40px;
    transition: 0.4s;
    opacity: 0;
}

.sparks .spark4 {
    display: block;
    height: 1px;
    width: 1px;
    background-color: #d1b82b;
    position: absolute;
    left: 10px;
    border-radius: 50%;
    bottom: 10px;
    transition: 0.4s;
    opacity: 0;
}

.switch input:checked ~ label .bulb {
    left: 60px;
    background-color: #a7694a;
    box-shadow: inset 0 0 1px 1px #a56758, inset 0 0 3px 4px #6b454f, 0 10px 15px -5px rgba(0,0,0,0.4), 0 0 15px 25px rgba(253,184,67,0.1);
}

.switch input:checked ~ label .bulb > .bulb-center {
    background-color: #feed6b;
    box-shadow: inset 0 0 0 2px #fdec6a, 0 0 6px 5px #bca83c, 0 0 10px 7px #a1664a;
}

.switch input:checked ~ label .bulb > .bulb-center:after {
    background-color: #fef401;
    box-shadow: 0 0 1px 2px #fdb843;
}

.switch input:checked ~ label .bulb >.filament-1:before,
.switch input:checked ~ label .bulb >.filament-2:before,
.switch input:checked ~ label .bulb >.filament-1:after,
.switch input:checked ~ label .bulb >.filament-2:after {
    border-color: #fef4d5;
}

.switch input:checked ~ label .bulb > .sparks .spark1 {
    height: 1px;
    width: 1px;
    -webkit-animation: spark1 2s ease-in-out;
            animation: spark1 2s ease-in-out;
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s;
}

.switch input:checked ~ label .bulb > .sparks .spark2 {
    height: 1px;
    width: 1px;
    -webkit-animation: spark2 2.4s ease-in-out;
            animation: spark2 2.4s ease-in-out;
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s;
}

.switch input:checked ~ label .bulb > .sparks .spark3 {
    height: 1px;
    width: 1px;
    -webkit-animation: spark3 2s ease-in-out;
            animation: spark3 2s ease-in-out;
    -webkit-animation-delay: 0.9s;
            animation-delay: 0.9s;
}

.switch input:checked ~ label .bulb > .sparks .spark4 {
    height: 1px;
    width: 1px;
    -webkit-animation: spark4 1.7s ease-in-out;
            animation: spark4 1.7s ease-in-out;
    -webkit-animation-delay: 0.9s;
            animation-delay: 0.9s;
}

@-webkit-keyframes spark1 {
    0% {
        right: -2px;
        height: 1px;
        width: 1px;
        opacity: 0;
    }
    20% {
        height: 1px;
        width: 1px;
        right: 0px;
        opacity: 1;
    }
    30% {
        right: -2px;
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    70% {
        height: 1px;
        width: 1px;
    }
    100% {
        right: -30px;
        bottom: 20px;
        opacity: 0;
    }
}

@keyframes spark1 {
    0% {
        right: -2px;
        height: 1px;
        width: 1px;
        opacity: 0;
    }
    20% {
        height: 1px;
        width: 1px;
        right: 0px;
        opacity: 1;
    }
    30% {
        right: -2px;
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    70% {
        height: 1px;
        width: 1px;
    }
    100% {
        right: -30px;
        bottom: 20px;
        opacity: 0;
    }
}

@-webkit-keyframes spark2 {
    0% {
        height: 1px;
        width: 1px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        right: -10px;
        bottom: 50px;
        opacity: 0;
    }
}

@keyframes spark2 {
    0% {
        height: 1px;
        width: 1px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        right: -10px;
        bottom: 50px;
        opacity: 0;
    }
}

@-webkit-keyframes spark3 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    100% {
        left: 0px;
        bottom: 50px;
        opacity: 0;
        height: 1px;
        width: 1px;
    }
}

@keyframes spark3 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    100% {
        left: 0px;
        bottom: 50px;
        opacity: 0;
        height: 1px;
        width: 1px;
    }
}

@-webkit-keyframes spark4 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    100% {
        left: -10px;
        bottom: -5px;
        opacity: 0;
        height: 1px;
        width: 1px;
    }
}

@keyframes spark4 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
        height: 1px;
        width: 1px;
    }
    100% {
        left: -10px;
        bottom: -5px;
        opacity: 0;
        height: 1px;
        width: 1px;
    }
}


/* ふわふわ */

.fuwafuwa_0 {
    animation: fuwafuwa_0 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.5s ease-in-out;
    width: 300px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_0 {
    0% {
        transform:translate(0, 0) rotate(-2deg);
    }
    100% {
        transform:translate(0, 0) rotate(2deg);
    }
}

.fuwafuwa_1 {
    animation: fuwafuwa_1 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.5s ease-in-out;
    width: 450px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_1 {
    0% {
        transform:translate(0, 0) rotate(2deg);
    }
    100% {
        transform:translate(0, 0) rotate(-2deg);
    }
}

.fuwafuwa_2 {
    animation: fuwafuwa_2 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.8s ease-in-out;
    width: 250px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_2 {
    0% {
        transform:translate(0, 0) rotate(-2deg);
    }
    100% {
        transform:translate(0, 0) rotate(2deg);
    }
}

.fuwafuwa_3 {
    animation: fuwafuwa_3 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.8s ease-in-out;
    width: 250px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_3 {
    0% {
        transform:translate(0, 0) rotate(-2deg);
    }
    100% {
        transform:translate(0, 0) rotate(2deg);
    }
}

.fuwafuwa_4 {
    animation: fuwafuwa_4 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.8s ease-in-out;
    width: 400px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_4 {
    0% {
        transform:translate(0, 0) rotate(2deg);
    }
    100% {
        transform:translate(0, 0) rotate(-2deg);
    }
}

.fuwafuwa_5 {
    animation: fuwafuwa_5 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.8s ease-in-out;
    width: 300px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_5 {
    0% {
        transform:translate(0, 0) rotate(2deg);
    }
    100% {
        transform:translate(0, 0) rotate(-2deg);
    }
}

.fuwafuwa_6 {
    animation: fuwafuwa_6 2s infinite ease-in-out .8s alternate;
    display: inline-block;
    transition: 1.8s ease-in-out;
    width: 400px;
    height: 70px;
    margin-top: 15px;
}

@keyframes fuwafuwa_6 {
    0% {
        transform:translate(0, 0) rotate(-2deg);
    }
    100% {
        transform:translate(0, 0) rotate(2deg);
    }
}

@media screen and (max-width:1300px) {
	/* 959px以下に適用されるCSS（タブレット用） */

    .fuwafuwa_5 {
        animation: fuwafuwa_5 2s infinite ease-in-out .8s alternate;
        display: inline-block;
        transition: 1.8s ease-in-out;
        width: 200px;
        height: 70px;
        margin-top: 15px;
    }

    .fuwafuwa_6 {
        animation: fuwafuwa_6 2s infinite ease-in-out .8s alternate;
        display: inline-block;
        transition: 1.8s ease-in-out;
        width: 300px;
        height: 70px;
        margin-top: 15px;
    }
}
