﻿body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@font-face {
  font-family: "ちゃりふぉんと";
  src: url("Charifont.otf") format("opentype");
}

ul li {
    list-style:none;
}

.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    z-index: 0;
    margin: 0;
}

.cb-slideshow li span {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 36s linear infinite 0s;
    -moz-animation: imageAnimation 36s linear infinite 0s;
    -o-animation: imageAnimation 36s linear infinite 0s;
    -ms-animation: imageAnimation 36s linear infinite 0s;
    animation: imageAnimation 36s linear infinite 0s; 
}
 
.cb-slideshow li:nth-child(1) span {
    background-image: url(img/bg1.jpg);
}
.cb-slideshow li:nth-child(2) span {
    background-image: url(img/bg2.jpg);
	-webkit-animation-delay: 6s;
    -moz-animation-delay: 6s;
    -o-animation-delay: 6s;
    -ms-animation-delay: 6s;
    animation-delay: 6s;
}

.cb-slideshow li:nth-child(3) span {
    background-image: url(img/bg3.jpg);
	-webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 	
}

.cb-slideshow li:nth-child(4) span {
    background-image: url(img/bg4.jpg);
    -webkit-animation-delay: 18s;
    -moz-animation-delay: 18s;
    -o-animation-delay: 18s;
    -ms-animation-delay: 18s;
    animation-delay: 18s;
}

.cb-slideshow li:nth-child(5) span {
    background-image: url(img/bg5.jpg);
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s;
}

.cb-slideshow li:nth-child(6) span {
    background-image: url(img/bg6.jpg);
    -webkit-animation-delay: 30s;
    -moz-animation-delay: 30s;
    -o-animation-delay: 30s;
    -ms-animation-delay: 30s;
    animation-delay: 30s; 
}

@keyframes imageAnimation {
    0% { opacity: 0; animation-timing-function: ease-in; }
    4% { opacity: 1; animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
}

@keyframes titleAnimation {
    0% { opacity: 0 }
    4% { opacity: 1 }
    17% { opacity: 1 }
    19% { opacity: 0 }
    100% { opacity: 0 }
}

.main {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    width: 300px;
    height: 300px;
    border-radius: 20px;
}

.main h1, .sub h1 {
    margin: 30px;
    padding: 30px;
    border-bottom: solid 1px #333333;
    text-align: center;
    font-weight: normal;
    font-size: 25px;
    font-family: "ちゃりふぉんと", sans-serif;
    color: #333333;
}

.main p, .sub p {
    text-align: center;
    font-size: 20px;
    font-family: "ちゃりふぉんと", sans-serif;
    color: #333333;
}

.main p a, .sub p a {
    color: #333333;
    text-decoration: none;
}

.main p a:hover, .sub p a:hover {
    color: #dc143c;
}

.main p a:visited, .sub p a:visited {
    color: #333333;
}