@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/*(全期間)*/
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 1200px;
    color: #333333;
    font-family: 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: #e6f7ff;
}

@media screen and (min-width: 1200px) {
    body {
        background-position-x: center;
    }
}

section {
    margin-bottom: 64px;
}

h1 {
    margin: 0;
    background-image: url('/v2/img/novel_cup/2608/kv_bg.webp');
    background-size: cover;
    background-repeat: repeat;
}

h2 {
    margin: 0 auto 24px;
    padding: 8px 24px;
    width: fit-content;
    color: white;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 28px;
    text-align: center;
    border-radius: 8px;
    background-color: #198cdc;
}

h3 {
    margin: 0 auto 16px;
    color: #604d43;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 24px;
}

.h3-underline-pink {
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 4px;
    text-decoration-color: #fdcfe5;
}

.h3-underline-green {
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 4px;
    text-decoration-color: #e3f6f0;
}

.h3-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 44px;
    border-radius: 8px;
}

.h3-bg--blue {
    background-color: #e6f7fd;
}

.h3-bg--green {
    background-color: #e3f6f0;
}

h4 {
    margin: 0;
    color: #604d43;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    padding-left: 1em;
    text-indent: -1em;
}

p {
    margin: 0;
}

a {
    color: #1478bd;

    &:hover {
        color: #6cbbf2;
        opacity: 0.8;
    }
    &:active {
        color: #045791;
    }
}

img {
    display: block;
    margin: auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.p-md {
    margin-bottom: 8px;
}

.p-text {
    text-align: center;
}

.header__kv {
    width: 1200px;
    height: auto;
}

.header__schedule {
    background-image: linear-gradient(0deg, #448acb 0%, #54a6ce 68%, #5db5d0 100%);
}

.header__schedule-img {
    padding: 16px 0;
    width: 830px;
}

.sns-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: auto;
    width: 960px;
    height: 40px;

    a:hover {
        opacity: unset;
    }
}

.main {
    margin: 0 auto 64px;
    width: 960px;
}

.contents {
    padding: 48px 120px;
    background-color: white;
    border: 4px solid #caf2e3;
    border-radius: 16px;
}

.content {
    margin-bottom: 40px;
}

.summary {
    display: grid;
    gap: 16px;
}

.themes {
    position: relative;
    padding: 16px 32px 24px;
    background-color: #fff7fb;
}

.themes:before,
.themes:after {
    position: absolute;
    content: "";
    width: 120px;
    height: 90px;
    background-image: url('/v2/img/novel_cup/2608/tape.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.themes:before {
    top: -16px;
    left: -32px;
}

.themes:after {
    right: -32px;
    bottom: -16px;
}

.themes__detail {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.themes__detail:last-child {
    margin-bottom: 0;
}

.themes__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.themes__name:before {
    content: "";
    display: block;
    width: 30px;
    height: 24px;
    background-image: url('/v2/img/novel_cup/2608/heart.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.advice {
    position: relative;
    border-radius: 8px;
    background-color: #e7ecf7;
}

.advice:before,
.advice:after {
    position: absolute;
    z-index: 2;
    content: "";
    width: 90px;
    height: 55px;
    background-image: url('/v2/img/novel_cup/2608/wave.webp');
    background-size: cover;
    background-repeat: no-repeat;
}

.advice:before {
    top: -16px;
    right: -16px;
}

.advice:after {
    bottom: -16px;
    left: -16px;
}

.andarche-book {
    position: relative;
    padding: 16px 48px 24px;
    text-align: center;
    border-radius: 8px;
    background-color: #fffdea;
}

.andarche-book:before,
.andarche-book:after {
    position: absolute;
    content: "";
    z-index: 2;
    background-size: cover;
    background-repeat: no-repeat;
}

.andarche-book:before {
    top: 8px;
    left: 4px;
    width: 83px;
    height: 77px;
    background-image: url('/v2/img/novel_cup/2608/book.svg');
}

.andarche-book:after {
    top: 4px;
    right: 16px;
    width: 68px;
    height: 68px;
    background-image: url('/v2/img/novel_cup/2608/triangle.svg');
}

.andarche-book__sub-heading {
    margin-bottom: 4px;
    color: #f84e93;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.andarche-book__heading {
    margin-bottom: 16px;
    padding: 16px 24px;
    width: fit-content;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 24px;
    border-radius: 8px;
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: white;
}

.andarche-book__contents {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin: 32px auto 0;
}

.andarche-book__contents:before {
    position: absolute;
    top: 18%;
    left: -80px;
    z-index: 2;
    content: "";
    width: 68px;
    height: 68px;
    background-image: url('/v2/img/novel_cup/2608/triangle.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.andarche-book__content {
    position: relative;
    padding: 12px 24px;
    width: 290px;
    height: 140px;
    border-radius: 8px;
    background-color: white;
}

.andarche-book__content:before,
.andarche-book__content:after {
    position: absolute;
    z-index: 2;
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
}

.andarche-book__content:before {
    top: -12px;
    left: -20px;
    width: 60px;
    height: 55px;
    background-image: url('/v2/img/novel_cup/2608/crown.svg');
}

.andarche-book__content:first-child:after {
    top: -24px;
    right: -10px;
    width: 110px;
    height: 60px;
    background-image: url('/v2/img/novel_cup/2608/comment.svg');
}

.andarche-book__content:nth-child(2):after {
    top: 50%;
    right: -40px;
    transform: rotate(-12deg) scaleX(-1);
    width: 83px;
    height: 77px;
    background-image: url('/v2/img/novel_cup/2608/book.svg');
}

.andarche-book__content:nth-child(3):after {
    bottom: -20px;
    left: -65px;
    transform: rotate(-12deg) scaleX(-1);
    width: 83px;
    height: 77px;
    background-image: url('/v2/img/novel_cup/2608/book.svg');
}

.andarche-book__content:nth-child(4):after {
    bottom: -20px;
    right: -75px;
    width: 68px;
    height: 68px;
    background-image: url('/v2/img/novel_cup/2608/triangle.svg');
}

.andarche-book__prize {
    margin-bottom: 8px;
    padding-bottom: 8px;
    color: #f84e93;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px dotted #5f5f5f;
}

.andarche-book__title {
    margin-bottom: 4px;
    color: #333333;
    text-decoration-line: underline;
    text-underline-offset: 2px;
}

.andarche-book__author {
    color: #333333;
    font-size: 14px;
    text-decoration-line: underline;
    text-underline-offset: 2px;
}

.tag-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 8px;
    width: fit-content;
    color: white;
    font-weight: bold;
    line-height: 1;
    border-radius: 40px;
    background-color: #0f7df2;
}

.how-to-entry {
    color: #604d43;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.score {
    margin-bottom: 24px;
}

.bonus__heading {
    position: relative;
    margin: 0 auto 16px;
    padding: 8px 16px;
    width: fit-content;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    border-radius: 6px;
    background-color: #fff8c1;
}

.bonus__heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid #fff8c1;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}

.bet-image {
    margin-bottom: 24px;
}

.bet-style {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bet-style__content {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #40c18e;
    border-radius: 8px;
}

.bet-style__number {
    display: grid;
    justify-items: center;
    align-content: end;
    min-width: 44px;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 9px;
    font-weight: bold;
    border-radius: 44px;
    background-color: #40c18e;

    span {
        font-size: 14px;
    }
}

.book-author {
    margin-bottom: 32px;
    color: #604d43;
    font-weight: bold;
    text-align: center;
}

.conditions {
    margin: 0 auto;
    padding: 16px;
    width: 480px;
    border-radius: 8px;
    background-color: #e3f6f0;
}

.indent {
    font-size: 14px;
    padding-left: 1em;
    text-indent: -1em;
}

.schedule-image {
    margin-bottom: 40px;
}

.term {
    margin-bottom: 40px;
    text-align: center;
}

.pdf:before {
    content: url('/v2/img/novel_cup/icon-pdf.png');
}

.banner {
    width: 735px;
}

.page-top-icon {
    position: fixed;
    right: calc(50% - 572px);
    bottom: 10px;
    z-index: 5;
    transition: all .5s;
    width: 96px;
    height: 96px;
}

.footer {
    padding: 40px 0;
    min-width: 1200px;
    text-align: center;
    background-color: black;
}

.footer img {
    margin-bottom: 8px;
    width: 330px;
}

.copyright {
    color: white;
    font-size: 12px;
}

/*SNS表示(開催期間以降)*/
.header {
    position: relative;
}

.header__sns {
    position: absolute;
    right: 40px;
    bottom: 290px;
}

/*BET表示(開催期間以降)*/
.bet-count {
    padding: 20px 0;
    background-color: #0f7df2;
}

.bet-count__inner {
    margin: auto;
    width: 900px;
}

.bet-count__text {
    margin-bottom: 8px;
    padding-left: 4px;
    color: white;
    font-size: 18px;
    line-height: 1;
    border-left: 11px solid #fffcb2;
}

.bet-count__text--total {
    float: left;
}

.bet-count__text--condition {
    float: right;
}

.bet-count__text b {
    color: #fffcb2;
    font-size: 26px;
}

.bet-gauge {
    position: relative;
    clear: both;
    padding: 12px 20px;
    width: 900px;
    border-radius: 10px;
    background: white;
}

.bet-gauge__bar-wrap {
    position: absolute;
    top: 36px;
    left: 61px;
    overflow: hidden;
    width: 800px;
    height: 26px;
    border-radius: 5px;
}

.bet-gauge__bar {
    transform-origin: left;
    transition: all 2s;
    max-width: 100%;
    height: 100%;
    text-align: right;
    background-image: linear-gradient(to right, #feb8d7, #ff489d);
    background-size: 800px;
    background-repeat: no-repeat;
}

.bet-count__about-bet {
    text-align: right;
}

.bet-count__about-bet a {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/*タブ表示(開催期間以降)*/
.tabs {
    display: flex;
    margin-bottom: 40px;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 50px;
    transition: background-color 0.5s;
    background-color: #efefef;
    cursor: pointer;
}

.tab:hover {
    opacity: 0.8;
}

.tab.selected {
    position: relative;
    color: white;
    font-weight: bold;
    background-color: #198cdc;
}

.tab.selected:after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    content: '';
    width: 0;
    height: 0;
    margin: auto;
    border-top: 10px solid #198cdc;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

/*BET作品表示(開催期間以降)*/
.my-contents {
    margin-bottom: 32px;
    padding: 20px 30px;
    display: grid;
    gap: 8px;
    border: 3px solid #caf2e3;
    border-radius: 20px;
    background-color: white;
}

.my-notes {
    font-size: 18px;
    font-weight: bold;
}

.name {
    color: #198cdc;
    word-break: break-all;
}

.my-notes__break {
    display: none;
}

.my-content {
    display: flex;
    overflow: hidden;
    border: 1px solid #0f7df2;
    border-radius: 8px;
}

.bet-number {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    background-color: #0f7df2;
}

.vote-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    min-width: 0;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.entry {
    display: flex;
    gap: 16px;
    padding: 16px 8px;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
}

.entried {
    background-color: #fffcec;
}

.canceled {
    background-color: #ece9e9;
}

.title {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title a {
    color: #ff813e;
    text-decoration: none;
}

.current-rank b {
    color: #198cdc;
}

.current-bet b {
    color: red;
}

/*未ログイン時表示(開催期間以降)*/
.login {
    margin-bottom: 32px;
    padding: 24px 80px;
    border: 4px solid #caf2e3;
    border-radius: 16px;
    background-color: white;
}

.heading-back-ribbon {
    margin-bottom: 24px;
    padding: 12px 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: #198cdc;
    clip-path: polygon(0 0, 16px 50%, 0 100%, 100% 100%, calc(100% - 16px) 50%, 100% 0);
}

form {
    display: grid;
    gap: 16px;
    padding: 0 16px;
}

.email,
.password {
    display: flex;
    height: 40px;
}

label {
    display: flex;
    align-items: center;
    flex-grow: 1;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

input {
    width: 600px;
    padding: 8px;
    border: 1px solid #acacac;
    border-radius: 8px;
    background-color: #f4f4f4;
}

.submit {
    margin: auto;
}

.submit input {
    width: 300px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #f5a520;
    border-radius: 2px;
    background-color: #f5a520;
    transition: background-color 0.3s;
    cursor: pointer;
}

.submit input:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15);
}

.reminder,
.register {
    font-size: 12px;
}

.reminder {
    text-align: right;
}

.register {
    text-align: center;
}

/*ボーナスタイム表示(開催期間以降)*/
.next-bonustime {
    margin-bottom: 32px;
    padding: 24px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    border-radius: 16px;
    background-color: #fffcb2;
}

.next-bonustime b {
    color: #ff74b7;
    font-size: 36px;
}

.bonustime {
    margin-bottom: 16px;
    border: 3px solid #caf2e3;
    border-radius: 20px;
    background-color: white;
}

.bonustime-now {
    position: relative;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background-color: #caf2e3;
}

.bonustime-now:after {
    position: absolute;
    top: -20px;
    right: -30px;
    transform: rotate(10deg);
    content: '順位\Aアップの\A大チャンス!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    color: white;
    font-size: 19px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    background-color: #198cdc;
    white-space: pre;
}

.bonustime p {
    padding: 8px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.bonustime p b {
    color: #198cdc;
    font-size: 32px;
}

.bonustime__chance {
    display: none;
}

.what-is-bonus {
    margin-bottom: 32px;
    font-size: 14px;
    text-align: right;
}

/*ランキング表示(投票期間終了後以降)*/
.aggregate {
    margin-bottom: 136px;
    padding: 32px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    border: 3px solid #caf2e3;
    border-radius: 20px;
    background-color: white;
}

.aggregate p span {
    color: red;
    font-size: 36px;
}

/*ランキング表示(開催期間以降)*/
.entry-contents {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 4px solid #caf2e3;
    border-radius: 16px;
    background-color: white;
}

.paginator {
    text-align: center;
}

.paginator .current,
.paginator a {
    display: inline-block;
    width: 40px;
    margin-left: 8px;
    border: solid 1px #707070;
    color: #000000;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
}

.paginator a:hover {
    text-decoration: underline;
}

.paginator .current {
    font-weight: bold;
}

.entry-content {
    display: grid;
    grid-template-rows: 1fr 50px;
    grid-template-columns: 70px 1fr;
    gap: 8px;
    padding-top: 16px;
}

.entry-content + .entry-content {
    border-top: 1px solid #cccccc;
}

.entry-content {
    border-top: none;
}

.entry-content__rank {
    display: grid;
    justify-content: center;
    align-content: start;
    gap: 16px;
    font-weight: bold;
}

.entry-content__rank-number {
    color: #198cdc;
    font-size: 22px;
}

.entry-content__rank-number--1,
.entry-content__rank-number--2,
.entry-content__rank-number--3 {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    width: 60px;
    height: 55px;
    color: white;
    font-size: 14px;
    clip-path: polygon(15% 100%, 0 30%, 33% 45%, 50% 0, 67% 45%, 100% 30%, 85% 100%);
}

.entry-content__rank-number--1 {
    background-color: #f4c349;
}

.entry-content__rank-number--2 {
    background-color: #a8a8a8;
}

.entry-content__rank-number--3 {
    background-color: #b1714f;
}

.entry-content__rank-arrow {
    width: 25px;
    height: 25px;
}

.entry-content__warp {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.entry-content__info {
    display: grid;
    gap: 8px;
}

.entry-content__tag {
    padding: 0 24px;
    width: fit-content;
    color: white;
    font-size: 12px;
    background-color: #96b4ff;
}

.entry-content__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 20px;
    font-weight: bold;
}

.entry-content__author {
    word-break: break-all;
}

.entry-content__bet {
    display: grid;
    align-content: start;
    gap: 4px;
    margin-top: 16px;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
}

.entry-content__bonus {
    font-size: 24px;
}

.entry-content__bonus span {
    color: red;
}

.entry-content__bet-count span {
    color: #198cdc;
    font-size: 20px;
}

.entry-content__buttons {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    display: flex;
    justify-content: space-between;
}

.entry-content__button {
    display: flex;
    gap: 16px;
}

.entry-content__button-read,
.entry-content__button-cheer,
.entry-content__button-bet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 50px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;

    &:hover {
        color: white;
    }
}

.entry-content__button-read {
    background-color: #f5a520;
}

.entry-content__button-cheer {
    font-size: 18px;
    line-height: 1;
    background-color: black;
}

.entry-content__button-bet {
    background-color: #198cdc;
    cursor: pointer;
}

/*BETのダイアログ表示(開催期間以降)*/
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.overlay.open {
    display: block;
    opacity: 1;
}

.dialog {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    opacity: 0;
    pointer-events: none;
}

.dialog.open {
    display: block;
    opacity: 1;
    pointer-events: none;
}

.dialog-form {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    overflow: auto;
    display: grid;
    gap: 24px;
    margin: auto;
    padding: 48px 32px 16px;
    width: fit-content;
    max-height: 100%;
    height: fit-content;
    font-size: 26px;
    text-align: center;
    white-space: normal;
    border-radius: 16px;
    background-color: white;
    pointer-events: auto;
}

.dialog-form__title {
    color: #f5a520;
}

.dialog-form__vote-count {
    color: #ff3e9d;
}

.dialog-form__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.dialog-form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 50px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #d5d5d5;
    cursor: pointer;
}

.dialog-form__button:hover {
    opacity: 0.8;
}

.dialog-form__button--cancel {
    background-color: #8f8f8f;
}

.dialog-form__button--submit {
    background-color: #198cdc;
}

.dialog-form ul {
    font-size: 14px;
    text-align: left;
}

/*BETエラー表示(開催期間以降)*/
.message.error {
    margin-bottom: 16px;
    padding: 1em;
    color: red;
    border: 1px solid #fd8484;
    background-color: #ffdadc;
}

/*TODO 結果発表以降*/
