@charset "UTF-8";

/* デバッグ 消し忘れ注意 */
/* div, span { outline: 1px solid red } */

/* 共通設定 */
:root {
    --color1: #1EB8FE;
    --color2: #fb2691;
    --color3: #0f81b5;
    --color4: #D7008A;
}

html { font-size:62.5%; }
body {
    font-size:1.4rem;
    font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'ＭＳ Ｐゴシック',sans-serif;
    background: url("../img/pc/bg.jpg") no-repeat top center / cover;
}
*, *::before, *::after { box-sizing:border-box; }
.clearfix::after {
    content:'';
    display:block;
    clear:both;
}
a {
    color: #000000;
    text-decoration: none;
    img, i { transition: .3s }
    &:hover {
        img, i {
            opacity: 0.7;
            transition: .3s
        }
    }
}


h2 { font-size: 1.6rem }
h3 { font-size: 1.4rem }
table { border-collapse: collapse; }

/* SP (モバイルファースト 全環境共通デザイン)----------------------------------- */
div.container {
    margin: 0 auto;
}
header {
    margin: 0 auto;
    picture {
        position: relative;
    }
    img {
        width: 100%;
    }
    .logo {
        position: absolute;
        width: 42%;
        left: 3%;
        bottom: 40%;
    }
}

.topics,
.standard,
.rtr,
.next,
.archive {
    margin: 2% 1%;
    padding: 5px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 8px #afafaf;
}

/* アコーディオンパネル */
.acp {
    position: relative;
    cursor: pointer;
}
.acp_icn {
    position: absolute;
    width: 7%;
    font-size: 2rem;
    text-align: center;
    span::after {
        content: "＋";
    }
    span.open::after {
        content: "－";
    }
}

/* ページトップへ */
#page_top {
    position: fixed;
    right: 2%;
    bottom: 1%;
    font-size: 3rem;
    opacity: 65%;
}

/* トップページへ */
header.short_h {
    position: relative;
    background: linear-gradient(to right, #ededeb 0%,#ededeb 49%,#ededeb 49%,#fafaf8 50%,#fafaf8 100%);
    line-height: 0.8;
    margin-bottom: 2%;
    .top_link {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0 auto;
        padding: 3vw 2% 0 0;
        text-align: right;
        font-size: 1rem;
        line-height: 1.4;
        z-index: 1;
        i {
            padding-right: 5.3%;
            font-size: 2rem;
        }
        a {
            color: var(--color1);
        }
    }
    img {
        width: 100%;
    }
}

/* メインバナー */
.main_banner {
    margin-top: 1%;
    text-align: center;
    img {
        width: 93%;
    }
}

/* TOPICS */
.topics {
    padding: 0 0 1% 0;
    h2 {
        width: 100%;
        padding: 2% 2% 2% 3.5%;
        margin-bottom: 2%;
        border-radius: 10px 10px 0 0;
        color: #FFFFFF;
        background: var(--color1);
        line-height: 1.2;
    }
    dl {
        margin: 2% 2% 0 3%;
        dt {
            font-size: 1.4rem;
        }
        dd {
            margin-bottom: 2%;
            line-height: 1.2;
            font-size: 1.3rem;
            a {
                color: var(--color1);
                text-decoration: underline;
            }
        }
    }
}

/* 選出基準*/
.standard {
    div:has(> h2) {
        width: 98%;
        margin: 0 auto;
        background: var(--color1)
    }
    h2 {
        margin: 1% 2%;
        padding-top: 0.4%;
        line-height: 2;
        color: #FFFFFF;
    }
    .acp_icn {
        top: 5%;
        right: 2%;
        color: #FFFFFF;
    }
}
.standard_contents {
    display: none;
    width: 98%;
    margin: 0 auto;
    ol {
        padding-top: 2%;
        + p {
            margin: 1% auto;
            font-size: 1.2rem;
        }
    }
    li {
        list-style-type: none;
        counter-increment: cnt;
        font-size: 1.3rem;
        margin-bottom: 3%;
        h3 {
            display: inline-block;
            width: 92%;
            padding-top: 0.5%;
            vertical-align: top;
            line-height: 1.3;
        }
        p {
            margin: 2% 0 0 7%;
            line-height: 1.2;
        }
    }
    li::before {
        padding: 0.4% 2%;
        margin-right: 1%;
        content: counter(cnt);
        color: #FFFFFF;
        font-weight: bold;
        background: var(--color1);
    }
}

/* ファイル更新時間 */
.file_time {
    width: 100%;
    padding-right: 2%;
    text-align: right;
    font-size: 1rem;
}

/* RTR */
.rtr {
    padding: 0 0 1% 0;
    h2 {
        position: relative;
        width: 100%;
        padding: 2% 2% 4% 3.5%;
        margin-bottom: 2%;
        border-radius: 10px 10px 0 0;
        color: #FFFFFF;
        line-height: 1.2;
        span {
            display: block;
            position: absolute;
            right: 3%;
            font-size: 1.2rem;
            font-weight: normal;
        }
    }
    h3 {
        width: 98%;
        margin: 0 auto;
        padding: 2%;
        margin-bottom: -2px;
    }
    .acp_icn {
        top: 8%;
        right: 2%;
    }
}
.area_list {
    display: none;
    table {
        width: 98%;
        margin: 0 auto;
        th {
            white-space: nowrap;
            font-size: 1.2rem;
            color: #FFFFFF;
        }
        td {
            padding: 0 1%;
            text-align: center
        }
        .sp_rank_modal {
            margin: 2%;
            padding: 8% 5%;
            border-radius: 5px;
            font-size: 1rem;
            line-height: 1.2;
            color: #FFFFFF;
            cursor: pointer;
        }
        td:nth-of-type(1) {
            font-weight: bold;
            vertical-align: bottom;
            padding-bottom: 0.5%;
        }
        th:nth-of-type(n+4),
        td:nth-of-type(n+4) {
            display: none;
        }
        th:nth-of-type(n+2) {
            width: 42%;
        }
        td:has(+td[colspan="5"]) {
            vertical-align: middle;
        }
        td[colspan="5"] {
            font-size: 1.4rem;
            line-height: 3;
        }
    }
}
/* 奇数偶数処理 */
.rtr.odd {
    h3,
    .area_list :where(th, td) {
        border: 2px solid var(--color4);
    }
    .area_list th {
        background: var(--color2);
    }
    .area_list tr:nth-of-type(2n) td {
        background: #fff5fb;
    }
    h2 {
        background: url("../img/blue_spots.png") var(--color1);
    }
    .area_list .sp_rank_modal {
        background: url("../img/pink_spots.png") var(--color2);
    }
}
.rtr.even {
    h3,
    .area_list :where(th, td) {
        border: 2px solid var(--color3);
    }
    .area_list th {
        background: var(--color1);
    }
    .area_list tr:nth-of-type(2n) td {
        background: #eaf3ff;
    }
    h2 {
        background: url("../img/pink_spots.png") var(--color2);
    }
    .area_list .sp_rank_modal {
        background: url("../img/blue_spots.png") var(--color1);
    }
}

.rtr_box {
    display: flex;
    flex-flow: space-between;
    div {
        /* flex-basis: 50%; */
        text-align: center;
    }
    div:nth-of-type(1) {
        width: 38%;
        margin-top: 18%;
        line-height: 1;
        font-size: 1.2rem;
        &:has( > img) {
            margin: 0;
        }
        img {
            width: 100%;
            margin-top: 5%;
        }
    }
    div:nth-of-type(2) {
        width: 62%;
        padding-top: 8%;
        line-height: 1.7;
        span {
            display: block;
            font-size: 1.3rem;
            white-space: nowrap;
            font-weight: bold;
        }
        span:nth-of-type(1) {
            color: #D7008A;
        }
        span:nth-of-type(3) {
            font-size: 1.1rem;
        }
    }
    .none {
        margin: 0 auto;
        font-size: 4rem;
    }
}

/* SP用1～5位 モーダル*/
#modal_rank {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    i {
        position: relative;
        top: 0.5%;
        left: 75%;
        color: #FFFFFF;
        font-size: 3rem;
    }
    table {
        width: 50%;
        margin: 1% auto 0 auto;
        th {
            white-space: nowrap;
            font-size: 1.2rem;
            color: #FFFFFF;
        }
        td {
            padding: 0 1%;
            text-align: center;
            background: #FFFFFF;
        }
        img {
            width: 70%;
            margin: 10% 0 7% 0;
        }
        #rank_jyo {
            padding: 2%;
        }
    }
    /* .rtr_box div:nth-of-type(2) {
        padding-top: 6%;
    } */
}
#modal_rank {
    &.odd {
        th, td {
            border: 2px solid  var(--color2);
        }
        th {
            background: var(--color4);
        }
    }
    &.even {
        th, td {
            border: 2px solid  var(--color3);
        }
        th {
            background: var(--color1);
        }
    }
}

/* ルール (選考期間終了後は1行目のルールを非表示) */
.rule {
    margin: 2% 2% 0% 6%;
    font-size: 1.2rem;
    li {
        margin: 1% 0;
        line-height: 1.2;
    }
}
.rule.sel_end {
    li:first-child {
        display: none;
    }
}

/* 開催回専用バナー */
.times_banner {
    padding-bottom: 2%;
    text-align: center;
    img {
        width: 40%;
        margin: 0 2%;
    }
}

/* ネクスト */
.next {
    position: relative;
    width: 98%;
    padding: 2% 2% 4% 3.5%;
    border-radius: 10px;
    border: 2px solid #FFFFFF;
    line-height: 1.2;
    a {
        color: #FFFFFF;
    }
    span {
        display: block;
        position: absolute;
        right: 3%;
        font-size: 1.2rem;
        font-weight: normal;
    }
    &.odd {
    background: url("../img/blue_spots.png") var(--color1);
    }
    &.even {
    background: url("../img/pink_spots.png") var(--color2);
    }
}

/* archive */
.archive {
    position: relative;
    padding: 2% 0 1.5% 3.5%;
    .arc_txt {
        position: absolute;
        display: inline-block;
        right: 8%;
        margin-top: 1%;
        font-weight: normal;
        font-size: 1.3rem;
    }
    .acp_icn {
        top: 0;
        right: 2%;
        font-size: 1.4rem;
    }
}
.archive_list {
    display: none;
    max-height: 35vw;
    font-size: 1.2rem;
    overflow-y: auto;
    list-style: none;
    li {
        margin: 4% 0 4% 5%;
        font-weight: bold;
        color: var(--color1);
        a {
            color: var(--color1);
        }
    }
}

/* フッターバナー */
.footer_banner {
    position: relative;
    padding: 4%;
}
ul.banner_box {
    width: 95%;
    height: 14vw;
    margin-left: 3%;
    z-index: 1;
    li a {
        width: 95%;
        img {
            width: 90%;
        }
    }
    &.slider {
        display: none;
    }
    &.slider.slick-initialized {
        display: block;
    }
}
.bnr_arrows {
    position: absolute;
    left: 0;
    top: 32%;
    width: 100%;
    i {
        position: relative;
        font-size: 2.5rem;
        color: var(--color2);
    }
    i:nth-of-type(1){
        left: -1%;
    }
    i:nth-of-type(2){
        left: 84%;
    }

}

/* フッター */
footer {
    width: 100%;
    text-align: center;
    background: #FFFFFF;
    .logo {
        width: 80%;
        margin: 4%;
    }
    .sns_box {
        a {
            margin: 4%;
            vertical-align: middle;
            img {
                width: 8%;
            }
        }
    }
    p {
        margin-top: 4%;
        line-height: 2.5;
        font-size: 1.2rem;
    }
}

/* error */
#error {
    div {
        text-align: center;
        h2 {
            margin: 25% 0;
            padding: 0;
        }
        p {
            margin: 10% 5%
        }
    }
    + footer {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 27vh;
    }
}

/* SP 横向き------------------------------------------------------------ */
@media (orientation: landscape) {
    /* RTR枠 */
    .rtr {
        h2 {
            padding: 1% 2% 1.8% 3.5%;
        }
        .acp_icn {
            top: 25%;
        }
    }
    /* 地区詳細 */
    .rtr_box {
        div:nth-of-type(1) {
            margin-top: 10%;
            img {
                width: 50%;
                margin-top: 2%;
            }
        }
        div:nth-of-type(2) {
            padding-top: 6%;
        }
    }
    /* SP用1～5位 モーダル*/
    #modal_rank {
        table {
            width: 30%;
            tbody {
                display: block;
                height: 90vh;
                overflow-y: scroll;
            }
            img {
                width: 60%;
            }
        }
    }
    /* ネクスト */
    .next {
            padding: 1% 2% 1.8% 3.5%;
    }
    /* archive */
    .archive {
        padding: 2% 0 1.5% 3.5%;
        .arc_txt {
            margin-top: 1%;
        }
    }
    .archive_list {
        li {
            margin: 2% 0 2% 5%;
        }
    }
    /* フッターバナー */
    .bnr_arrows {
        i {
            font-size: 4rem;
        }
        i:nth-of-type(1){
            left: 1%;
        }
        i:nth-of-type(2){
            left: 87%;
        }
    }
    /* error */
    #error {
        div {
            h2 {
                margin: 5% 0;
            }
            p {
                margin: 2% 5%
            }
        }
        + footer {
            position: relative;
            height: auto;
        }
    }
}

/* PC ----------------------------------------------------------------- */
@media screen and (min-width: 1000px) {

    h2 { font-size: 2rem }
    h3 { font-size: 1.8rem }

    .sp_br { display: none; }
    div.container {
        width: 1100px;
    }
    .standard,
    .active_rtr,
    .next,
    .archive {
        margin: 5px auto;
    }
    header .logo {
        width: 36%;
        left: 4.5%;
        bottom: 13px;
    }

    /* アコーディオンパネル */
    .acp_icn {
        width: 50px;
        font-size: 3rem;
    }

    /* ページトップへ */
    #page_top {
        font-size: 5rem;
    }

    /* トップページへ */
    header.short_h {
        height: 128px;
        padding-bottom: 20px;
        .top_link {
            right: 5%;
            padding: 40px;
            width: 1366px;
            font-size: 1.6rem;
            text-shadow: 10px white;
            i {
                padding-right: 40px;
                font-size: 3rem;
            }
        }
        img {
            width: 1366px;
        }
    }

    /* メインバナー */
    .main_banner img {
        width: auto;
    }

    /* TOPICS */
    .topics {
        h2 {
            padding: 15px 0 12px 25px;
            border-radius: 10px 10px 0 0;
        }
        dl {
            margin: 0 10px 0 25px;
            dt {
                font-size: 1.6rem;
            }
            dd {
                margin-bottom: 10px;
                font-size: 1.5rem;
            }
        }
    }

    /* 選出基準*/
    .standard {
        width: 98%;
        margin-top: 20px;
        div:has(> h2) {
            width: 98%;
        }
        h2 {
            margin: 10px 15px;
        }
        .acp_icn {
            top: 0;
            right: 1%;
        }
    }
    .standard_contents {
        width: 98%;
        margin: 0 auto;
        ol {
            padding-top: 7px;
            + p {
                margin: 5px auto;
                font-size: 1.5rem;
            }
        }
        li {
            font-size: 1.5rem;
            margin-bottom: 25px;
            h3 {
                vertical-align: middle;
            }
            p {
                margin: 5px 0 0 48px;
                line-height: 1.4;
            }
        }
        li::before {
            padding: 9px 14px;
            margin-right: 10px;
        }
    }

    /* ファイル更新時間 */
    .file_time {
        padding-right: 24px;
        font-size: 1.3rem;
    }

    /* RTR */
    .rtr {
        padding: 0;
        h2 {
            width: 100%;
            padding: 15px 0 12px 30px;
            margin-bottom: 20px;
            span {
                position: absolute;
                right: 32px;
                top: 20px;
                font-size: 1.5rem;
            }
        }
        h3 {
            width: 96%;
            padding: 15px;
        }
        .acp_icn {
            top: 10%;
            right: 0%;
        }
    }
    .area_list {
        table {
            width: 96%;
            margin: 0 auto;
            th {
                font-size: 1.4rem;
                padding: 4px
            }
            td {
                padding: 0;
            }
            .sp_rank_modal {
                display: none;
            }
            td:nth-of-type(1) {
                vertical-align: middle;
            }
            th:nth-of-type(n+4),
            td:nth-of-type(n+4) {
                display: table-cell;
            }
            th:nth-of-type(n+2) {
                width: 19%;
            }
            td[colspan="5"] {
                height: 50px;
                font-size: 1.6rem;
            }
        }
    }
    .rtr_box {
        div:nth-of-type(1) {
            width: 45%;
            font-size: 1.3rem;
            img {
                width: 80%;
                margin: 10px 0 5px 0;
            }
        }
        div:nth-of-type(1) p {
            height: 80px;
            padding-top: 10px;
        }

        div:nth-of-type(2) {
            width: 55%;
            padding-top: 24px;
            span {
                font-size: 1.5rem;
            }
            span:nth-of-type(3) {
                font-size: 1.3rem;
            }
        }
    }
    /* ルール */
    .rule {
        margin: 0;
        padding: 15px 0 10px 60px;
        font-size: 1.5rem;
        li {
            margin: 10px 0;
            line-height: 1.2;
        }
    }
    /* 開催回専用バナー */
    .times_banner {
        padding-bottom: 20px;
        img {
            width: 276px;
            margin: 0 10px;
        }
    }

    /* ネクスト */
    .next {
        width: 98.2%;
        padding: 15px 0 15px 32px;
        transition: .3s;
        cursor: pointer;
        span {
            right: 32px;
            top: 20px;
            font-size: 1.5rem;
        }
        &:hover {
            opacity: 0.7;
            transition: .3s
        }
    }

    /* archive */
    .archive {
        width: 98.2%;
        margin: 20px auto;
        padding: 15px 0 15px 32px;
        .arc_txt {
            right: 57px;
            margin-top: 5px;
            font-size: 1.6rem;
        }
        .acp_icn {
            top: 5px;
            right: 20px;
            font-size: 1.6rem;
        }
    }
    .archive_list {
        max-height: 200px;
        font-size: 1.5rem;
        list-style: none;
        li {
            margin: 0 20px 0 14px;
            a {
                display: block;
                height: 100%;
                width: 100%;
                padding: 13px 0
            }
            &:hover {
                background: #ffefef;
            }
        }
    }

    /* フッターバナー */
    .footer_banner {
        padding: 20px 0 50px 40px;
    }
    ul.banner_box {
        width: 90%;
        height: 80px;
    }
    .bnr_arrows {
        top: 32px;
        left: 10px;
        width: 100%;
        i {
            font-size: 4rem;
            cursor: pointer;
        }
        i:nth-of-type(1){
            left: 1%;
        }
        i:nth-of-type(2){
            left: 87%;
        }
    }

    /* フッター */
    footer {
        .logo {
            width: 540px;
            margin: 50px 0 0 0;
        }
        .sns_box {
            padding-top: 25px;
            a {
                margin: 0px 25px;
                img {
                    width: 50px;
                }
            }
        }
        p {
            margin: 20px 0 0 0;
            padding-bottom: 0 0 30px 0;
            line-height: 3;
            font-size: 1.8rem;
        }
    }

    /* error */
    #error {
        div {
            height: 300px;
            h2 {
                margin: 8% 0;
                font-size: 2.5rem;
            }
            p {
                margin: 2% 0;
                font-size: 1.6rem;
            }
        }
        + footer {
            position: static;
            height: auto;
            padding-bottom: 10px;
        }
    }

}

/* PC フルHD以上、４K等---------------------------------------------------- */
@media screen and (min-width: 1366px) {
    header {
        height: 444px;
        text-align: center;
        background: linear-gradient(to right, #f0f0ee 0%,#f0f0ee 49%,#f0f0ee 49%,#fafaf8 50%,#fafaf8 100%);
        img {
            width: 1366px;
        }
        .logo {
            width: 480px;
            left: 60px;
            bottom: 15px;
        }
    }
}