body {
    text-align: center;
    background-color: #f5c8cc;
    color: black;
    font-family: "Noto Serif JP", serif;
    font-weight: 650;
    font-size: clamp(16px, 3vw, 20px);
    margin: 0;
}

#title {
    margin-top: 3vh;
}
.torii {
    position: relative;
}
.torii img {
    opacity: 0.2;
    width: 70%;
    height: auto;
}
.torii-front {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.nazotoki-game {
    margin-bottom: 0;
}
.maintitle {
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(30px, 8vw, 50px);
    color: #ffde59;
    -webkit-text-stroke: 3px red;
    paint-order: stroke;
    margin: 0 3vw ;
    justify-content: center;
}
.subtitle {
    margin-top: 0.2em;
}
.kiku {
    position: relative;
}
.kiku img {
    width: 40%;
    height: auto;
    margin-top: 3vh;
    margin-left: 35vw;
    margin-bottom: 0;
    opacity: 0.5;
}
.white-fox {
    font-size: clamp(25px, 8vw, 45px);
    margin-bottom: 0;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.blue {
    color: #5170ff;
}
.green {
    color: #1CC352;
}
.pink {
    color: #ff66c4;
}
.orange {
    color: #ff9218;
}
.purple {
    color: #cb6ce6;
}
.first-line {
    margin-right: 10vw;
}
.second-line {
    margin-left: 10vw;
}

.fox {
    width: 30%;
    height: auto;
    opacity: 0.3;
    margin-right: 40vw;
    margin-top: 0;
}

#kasamasi {
    position: sticky;
    right: 20px;
    bottom: 0;
    width: 25%;
    display: flex;
    align-items: flex-start;
    margin-left: auto;
    z-index: 1000;
    padding: 0;
    justify-content: end;
    font-size: 80%;
    white-space: nowrap;
}
#kasamasi img {
    width: 3em;
    height: auto;
    display: block;
}

.section-title {
    background-color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #be3333;
    border-radius: 12px;
    padding: 0 1em;
    line-height: 0.5;
    margin: 10vh auto 5vh;
    white-space: nowrap;
    width: 90%;
}
.section-title img {
    width: 1.5em;
    height: auto;
    display: block;
}

#event-period {
    margin-top: 10vh;
}
.line {
    position: relative;
    background-color: #be3333;
    color: white;
    padding: 30px;
    border-radius: 100px;
    width: fit-content;
    padding: 2em;
    margin: 10vh auto 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.line::after {
    content: "";
    position: absolute;
    white-space: nowrap;
    bottom: -43px;
    left: 70px;
    transform: rotate(25deg);
    border-width: 30px;
    border-style: solid;
    border-color: #be3333 transparent transparent transparent;
}
.img-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 3vh;
}
.small-fox {
    width: 30%;
    height: auto;
    margin-left: 5%;
}
.asiato {
    width: 25%;
    height: auto;
    opacity: 0.5;
}
.small-torii {
    width: 40%;
    height: auto;
    opacity: 0.5;
    margin-right: 0;
}

.beside {
    display: flex;
    justify-content: center;
}
.side {
    width: 30%;
}
.clock {
    width: auto;
    height: 6em;
}

#link {
    margin-top: 10vh;
}
.beside2 {
    display: flex;
    justify-content: center;
}
.image-link {
    position: relative;
    display: inline-block;
}
.image-link img {
    width: 90%;
    height: auto;
}
.link-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-decoration: none;
    color: #be3333;
}

.step {
    background-color: white;
    color: #951e21;
    width: 80%;
    margin: 5vh auto;
    padding: 0.5em;
    border-radius: 50px;
}
#rule {
    margin-bottom: 5vh;
}

footer {
    margin-bottom: 0;
    padding-top: 3vh;
    padding-bottom: 1px;
    width: 100%;
    background-color: white;
}
footer a {
    text-decoration: none;
    color: black;
}

@media screen and (min-width: 960px) {
    .pc {
    display: contents;
    }
    #title {
        margin-top: 8vh;
    }
    .torii img {
        width: 40%;
    }
    .kiku img {
        width: 30%;
    }
    .fox {
        width: 20%;
    }
    .section-title {
        margin-top: 30vh;
        width: 70%;
    }
    .section-title img {
        width: 2em;
    }
    .line {
        margin-top: 20vh;
        width: 40%;
    }
    .small-fox {
        width: 20%;
    }
    .asiato {
        width: 15%;
    }
    .small-torii {
        width: 20%;
    }
    .side {
        width: 20%;
    }
    #link {
        margin-top: 30vh;
    }
    .image-link {
        width: 35%;
    }
    .step {
        width: 50%;
        margin: 10vh auto;
    }
}