@charset "UTF-8";

:root {
 --toribia_bg: #c6ebe4;
 --toribia_bg_yellow: #ebea9f;
 --toribia_ttl_yellow: #fdd055;
}

.bg-trivia{
    background: var(--toribia_bg);
}
#trivia{
    position: relative;
    background: url(../images/toribia/toribia_top_bg_y.svg) no-repeat center -35px, url(../images/toribia/toribia_bottom_bg.png) no-repeat center bottom, var(--toribia_bg);
    overflow-x: hidden;
}

.ttl{
    position: relative;
}

.level{
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
}

li.trivia_article{
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding-bottom: 25px;
}

.article_ttl{
    background: var(--toribia_ttl_yellow);
    padding: 20px 20px 10px 20px;
    border-radius: 10px 10px 0 0;
}
.article_ttl:has(.detail_btn){
    padding: 20px 70px 10px 20px;
}

#articles{
    position: relative;
}

#articles ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
#articles ul li.trivia_article .num{
    position: relative;
}
#articles ul li.trivia_article .num::before{
    display: block;
    font-size: 1.2rem;
    color: var(--brown);
    font-weight: 600;
    margin-right: 12px;
}

.page1 #articles ul{
    counter-reset: counter-vol 6;
}
.page1 #articles ul li.trivia_article{
    counter-increment: counter-vol -1;
}
.page1 #articles ul li.trivia_article .num::before{
    content: "vol."counter(counter-vol);
}

.page2 #articles ul{
    counter-reset: counter-vol2 11;
}
.page2 #articles ul li.trivia_article{
    counter-increment: counter-vol2 -1;
}
.page2 #articles ul li.trivia_article .num::before{
    content: "vol."counter(counter-vol2);
}

.page3 #articles ul{
    counter-reset: counter-vol3 16;
}
.page3 #articles ul li.trivia_article{
    counter-increment: counter-vol3 -1;
}
.page3 #articles ul li.trivia_article .num::before{
    content: "vol."counter(counter-vol3);
}

.page4 #articles ul{
    counter-reset: counter-vol4 21;
}
.page4 #articles ul li.trivia_article{
    counter-increment: counter-vol4 -1;
}
.page4 #articles ul li.trivia_article .num::before{
    content: "vol."counter(counter-vol4);
}

.city {
    font-size: 1rem;
    background: var(--brown);
    color: #fff;
    width: auto;
    height: fit-content;
    border-radius: 20px;
    text-align: center;
    line-height: 1;
    padding: 5px 2em;
}

.article_ttl h3{
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
}

.detail_btn{
    position: absolute;
    top: 0;
    right: 0;
}
.detail_btn img{
    width: 50%;
    height: auto;
    transform: translateX(100%);
}
div.text{
    padding: 20px 20px 0;
}

.img{
    display: none;
}

.page_list{
    margin: 80px auto 50px;
}
#articles .page_list > ul{
    flex-direction: row;
    gap: 13px;
}
.page_list ul li {
    display: flex;
    padding: 10px;
    outline: solid 2px var(--brown);
    font-weight: bold;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
}
.page_list ul li.active{
    opacity: .5;
}
.page_list ul li.prev a,
.page_list ul li.next a{
    position: relative;
    width: 35px;
    height: 35px;
}
.page_list ul li.prev a:before,
.page_list ul li.next a:before{
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--brown);
    border-right: 2px solid var(--brown);
    z-index: 2;
}
.page_list ul li.prev a:before{
    -webkit-transform: rotate(45deg);
    transform: translate(50%, -50%) rotate(220deg);
}
.page_list ul li.next a:before{
    -webkit-transform: rotate(135deg);
    transform: translate(0, -50%) rotate(45deg);
}

@media screen and (min-width: 1001px) {
    #trivia{
        position: relative;
        background: url(../images/toribia/toribia_top_bg_y.svg) no-repeat center 5px, url(../images/toribia/toribia_bottom_bg.png) no-repeat center bottom, var(--toribia_bg);
        overflow-x: hidden;
    }
    li.trivia_article{
        border-radius: 20px;
        padding-bottom: 50px;
    }
    .article_ttl{
        padding: 24px 50px 5px 50px;
        border-radius: 20px 20px 0 0;
    }
    .article_ttl:has(.detail_btn){
        padding: 24px 140px 5px 50px;
    }
    .article_ttl h3{
        font-size: 2rem;
        margin-top: 10px;
    }    
    #articles ul {
        gap: 80px;
    }
    #articles ul li.trivia_article .num::before{
        font-size: 1.5rem;
        margin-right: 1em;
    }
    .city{
        font-size: 1.75rem;
        width: 200px;
        height: auto;
        border-radius: 20px;
        padding-block: 5px;
    }
    div.text{
        padding: 50px 50px 0;
    }
    .img{
        display: block;
    }
    .img > img{
        position: absolute;
    }
    .img > img:nth-of-type(1){
        top: 10%;
        left: calc(50% - 580px);
    }
    .img > img:nth-of-type(2) {
        top: 37%;
        left: calc(50% - 810px);
        transform: scaleX(-1);
    }
    .img > img:nth-of-type(3) {
        top: 57%;
        left: calc(50% - 795px);
    }
    .img > img:nth-of-type(4) {
        top: 64%;
        left: calc(50% - 726px);
    }
    .img > img:nth-of-type(5) {
        top: 5%;
        right: calc(50% - 520px);
    }
    .img > img:nth-of-type(6) {
        top: 41%;
        right: calc(50% - 798px);
        transform: rotate(150deg);
    }
    .img > img:nth-of-type(7) {
        top: 56%;
        right: calc(50% - 868px);
    }
    .img > img:nth-of-type(8) {
        top: 71%;
        right: calc(50% - 770px);
    }
    .detail_btn img{
        width: 100%;
        transform: translateX(0);
    }
    .page_list{
        margin: 150px auto 120px;
    }
}