@charset "utf-8";

/* 共通部分
-------------------------------------------------*/
html {
    background-color: #fff;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    font-size: 62.5%;
    color: #666666;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
}

a {
    color: #00ACB2;
    transition: 0.25s all;

    &:hover {
        opacity: 0.5;
    }
}

.buttonlink {
    padding: 8px 10px;
    background: #00acb2;
    color: #fff;
    @media screen and (max-width: 400px) {
        font-size: 1.2rem;
    }
}

.flex {
    display: flex;
}

#totop {
    display: inline-block;
    color: #fff;
    background-color: #00ACB2;
    opacity: .9;
    padding: 5px;
    text-align: center;
    line-height: 1.6rem;
    font-weight: medium;
    border-radius: 8px;

    position: fixed;
    right: -45px;
    bottom: 10%;
    transition: .5s;
    z-index: 89;
}

#totop.is-show {
    right: 15px;
}

h2 {
    font-weight: 500;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.pc {
    display: block;

    @media screen and (max-width: 709px) {
        display: none;
    }
}
.sp {
    display: none;

    @media screen and (max-width: 709px) {
        display: block;
    }
}

/*-------------------------------------------------

  ヘッダー

-------------------------------------------------*/
header {
    width: 710px;
    padding: 20px 0 30px;
    margin: 0 auto;

    @media screen and (max-width: 709px) {
        width: 500px;
    }
    @media screen and (max-width: 500px) {
        padding: 20px 15px 30px;
        width: 100%;
    }

    .flex {
        display: flex;
        justify-content: space-between;
        align-items: end;
        margin-bottom: 18px;

        h1 {
            /* color: #00ACB2;
            font-size: 2.1rem;
            font-weight: 700; */
            img {
                width: 200px;
                height: auto;
            }
        }
    
        .link_new {
            display: block;
        }
    }


    ul {
        display: flex;
        width: 100%;

        li {
            width: calc(100% / 5);
            width: 100%;
            text-align: center;
            background-color: #00ACB2;

            a {
                display: inline-block;
                width: 100%;
                height: 50px;
                line-height: 50px;
                color: #fff;
                font-size: 1.8rem;
                font-weight: 700;
            }
        }
    }

}

/* スマホ用固定メニュー
-------------------------------------------------*/
.sp_fixedheader {
    display: none;
    z-index: 90;

    @media screen and (max-width: 499px) {
        display: block;
        position: fixed;
        top: -260px;
        width: 100%;
        height: 60px;
        background-color: rgba(255, 255, 255, .9);
        transition: .3s;

        .flex {
            justify-content: space-between;
            padding: 0 15px;
            margin-top: 10px;

            h1 {
                img {
                    width: auto;
                    height: 40px;
                }
            }

            h1,
            .hamburger_icon {
                z-index: 99;
            }

            /* ハンバーガーアイコン */
            .hamburger_icon {
                display: inline-block;
                position: relative;
                height: 40px;
                width: 40px;
                border-radius: 3px;
                background-color: #00ACB2;

                span,
                span:before,
                span:after {
                    content: '';
                    display: block;
                    height: 3px;
                    width: 20px;
                    border-radius: 3px;
                    background-color: #fff;
                    position: absolute;
                }
                span {
                    top: 18px;
                    right: 10px;
                }
                span:before {
                    bottom: 8px;
                }
                span:after {
                    top: 8px;
                }
            }
            #hamburger_icon_check:checked ~ .hamburger_icon span {
                background-color: #00ACB2;
            }
            #hamburger_icon_check:checked ~ .hamburger_icon span::before {
                bottom: 0;
                transform: rotate(45deg);
            }
            #hamburger_icon_check:checked ~ .hamburger_icon span::after {
                top: 0;
                transform: rotate(-45deg);
            }
        }

        /* ハンバーガーメニュー(メニュー)
        -------------------------------------------------*/
        .hamburger_nav {
            width: 100%;
            height: 100%;
            padding: 70px 10px 0;
            position: fixed;
            left: 0;
            bottom: 150%;/*bottomの値を変更してメニューを画面外へ*/
            z-index: 90;
            background-color: #fff;
            transition: all 0.3s;

            ul {
                margin-bottom: 15px;
                font-size: 1.4rem;

                li {
                    margin-bottom: 1px;
                    padding: 6px 5px;
                    background-color: #F1F3F5;

                    a {
                        display: block;
                        width: 100%;
                    }
                }
            }

            p {
                margin-bottom: 8px;
                font-size: 1.6rem;
                font-weight: bold;

                span {
                    font-size: 1rem;
                }
            }
        }

        #hamburger_icon_check:checked ~ .hamburger_nav {
            bottom: 0%;/*メニューを画面内へ*/
        }

    }
}
.sp_fixedheader.is-show {
    top: 0;
}

/*-------------------------------------------------

  メインコンテンツ

-------------------------------------------------*/
.wrapper_710,
.index-top {
    width: 710px;
    margin: 0 auto;
    @media screen and (max-width: 709px) {
        width: 500px;
    }
    @media screen and (max-width: 500px) {
        width: 100%;
        margin: 0;
    }
}

.index-top {
    @media screen and (max-width: 500px) {
        padding: 0 15px;
    }
}

.wrapper_710 {
    display: flex;
    @media screen and (max-width: 709px) {
        display: block;
    }
}

main {
    width: 500px;
    margin: 0 50px 60px 0;
    @media screen and (max-width: 500px) {
        width: 100%;
        padding: 0 15px;
        margin: 0 auto 60px;
    }
}

section {
    margin-bottom: 60px;

    img {
        width: 100%;
    }
}

.sec_text {
    margin-bottom: 50px;
    p {
        margin-bottom: 20px;
    }
}

h3 {
    width: 100%;
    font-size: 2rem;
    font-weight: 500;
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 25px;

    &::after {
        position: absolute;
        left: 0;
        bottom: 0;
        content: '';
        width: 60px;
        height: 15px;
        border-bottom: 2px solid #ccc;
    }
    
}

/* ランキングカード
-------------------------------------------------*/
.rankcard {
    padding-right: 20px;
    margin-bottom: 50px;

    dt {
        margin-bottom: 5px;
        display: flex;

        .top5 {
            display: block;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            border-radius: 50%;
            background-color: #F3DB30;
            color: #fff;
            font-size: 1.4rem;
            margin: 3px 20px 0 0;
            margin-right: 20px;
        }

        .blackno {
            display: block;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            color: #666666;
            font-size: 1.4rem;
            margin: 2px 20px 0 0;
        }

        .no2 {
            background-color: #B5B6B7;
        }
        .no3 {
            background-color: #DB9882;
        }
        .no4 {
            background-color: #EC6C5C;
        }
        .no5 {
            background-color: #90D1DA;
        }

        a {
            display: block;
            width: calc(100% - 40px);
            font-size: 1.8rem;
            line-height: 2.5rem;
        }
    }

    dd {
        margin-bottom: 10px;
        padding: 0 0 0 40px;

        &.flex {
            align-items: center;
        }

        .genre {
            background-color: #F1F3F5;
            padding: 5px;
            margin-right: 10px;
            border-radius: 10%;
            font-size: 1.4rem;
            white-space: nowrap;
        }

        .stringlength {
            font-size: 1.4rem;
        }
    }

    .story {
        /* text-align: justify; */
        width: 100%;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    details {
        margin: 0 0 40px 40px;
        background-color: #f1f3f5;

        summary {
            text-align: center;
            color: #00acb2;
            font-weight: 500;
            cursor: pointer;
            padding: 5px 0;

            &::-webkit-details-marker {
                display: none;
            }
        }

        .keywordlink {
            font-size: 1.4rem;
            transform: translateY(-10px);
            opacity: 0;
            margin: 0;
            padding: 0 10px 10px;
            color: #666666;
            transition: transform .5s, opacity .5s;
            @media screen and (min-width: 500px) {
                font-size: 1.6rem;
                padding: 10px 15px 15px;
            }

            div {
                margin-bottom: 10px;

                p {
                    margin-bottom: 5px;   
                    .point {
                        color: #00acb2;
                        margin-right: 10px;
                    }
                }
            }


            .flex {
                align-items: center;

                a {
                    margin-right: 8px;
                    @media screen and (min-width: 500px) {
                        margin-right: 15px;
                    }
                }
            }

            .novelinfo {
                    background-color: #fff;
                    color: #00acb2;
            }

        }
    }

    details[open] .keywordlink {
        transform: none;
        opacity: 1;
    }

}

.ranktype {
    margin-bottom: 30px;

    ul {
        display: flex;
        gap: 15px;

        .thispage {
            padding: 5px;
            border-radius: 10px;
            background: #00acb2;
            color: #fff;
            font-weight: 500;
        }
    }
}

/* 新着カード
-------------------------------------------------*/
.newcard {
    margin-bottom: 50px;

    dt {
        margin-bottom: 5px;

        a {
            display: inline-block;
            font-size: 1.8rem;
            /* font-weight: 700; */
            line-height: 2.5rem;
        }
    }

    dd {
        margin-bottom: 10px;

        &.flex {
            align-items: center;
        }

        .genre {
            background-color: #F1F3F5;
            padding: 5px;
            margin-right: 10px;
            border-radius: 10%;
            font-size: 1.4rem;
        }

        .stringlength {
            font-size: 1.4rem;
        }
    }

    .story,
    .kikakustory {
        /* text-align: justify; */
        width: 100%;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        /* ブラウザがサポートしていない場合のフェールセーフ */
        /* max-height: 24px; */
    }

    .kikakustory {
        -webkit-line-clamp: 3;
    }

    .keyword {
        padding: 10px;
        background-color: #f1f3f5;
    }

    .snslink {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        margin: 5px 0;

        a {
            display: block;
            width: calc(100% - 5px);
            height: 30px;
            line-height: 30px;
            text-align: center;
            background-color: #fff;
            cursor: pointer;
        }

        .x {
            border: #000 1px solid;
            color: #000;
        }
        .bluesky {
            border: #007bff 1px solid;
            color: #007bff;
        }
    }
}

.flexpagenation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

    a {
        display: block;
    }
}

.releasenotes {
    padding: 10px;
    background-color: #f1f3f5;
    margin-bottom: 30px;
    /* font-size: 1.4rem; */

    ul {
        margin-bottom: 10px;
    }
    p {
        font-size: 1rem;
    }
}

/*-------------------------------------------------

  特集ページ

-------------------------------------------------*/
.topimg {
    width: 100%;
    margin-bottom: 50px;

    img {
        width: 100%;
    }
}
.sec_event {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    border: gray 1px solid;
    box-shadow: 5px 5px 3px gray;
}
.p_eventcnt {
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    color: #007bff;
    margin-bottom: 30px;
}
.p_margin {
    margin: 30px 0 60px;

    a {
        font-size: 1.6rem;
    }
}
.center {
    text-align: center;
}

/*-------------------------------------------------

  フッター

-------------------------------------------------*/
footer {
    margin-top: 30px;
    text-align: center;
    
    p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .footerlink {
        margin: 15px 0;

        a {
            display: inline-block;
            margin-right: 10px;
        }
    }

    small {
        display: block;
        background-color: #4C667D;
        color: #fff;
        width: 100%;
        padding: 15px 0;
    }
}

/*-------------------------------------------------

  スライドショー

-------------------------------------------------*/
.banner {
    width: 100%;
    margin-bottom: 20px;

    img {
        width: 90%;
        margin: 0 auto;
    }

    .slick-prev {
        left: 5px;
    }
    .slick-next {
        right: 5px;
    }
    .slick-prev,
    .slick-next
    {
        z-index: 1;
    }
    .slick-prev:before {
        content: '◀';
    }
    .slick-next:before {
        content: 
        '▶';
    }
    .slick-prev:before,
    .slick-next:before {
        font-size: 1.4rem;
        /* color: #ffffff; */
    }
}

/*-------------------------------------------------

  スマホ用広告ウィンドウ(仮)

-------------------------------------------------*/
.popup-window {
    width: 100%;
    text-align: center;
    padding: 0 15px;
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 90;
}
.prtext {
    font-size: 1.2rem;
    position: absolute;
    background-color: #ffffff;
    top: -15px;
    left: 0;
    opacity: .7;
}
.popup-close {
    cursor: pointer;
    position: absolute;
    top: -26px;
    right: 0;
}
.popup-window.is-none {
    display: none;
}