#transform_cover {
    background-color: #ffffff;
}

/* 新ヘッダーのための暫定スタイル */
#main .bg-white {
    background-color: #ffffff;
}

#open_modal_typo_report {
    position: fixed;
    right: calc(((100% - 980px) / 2) + 20px);
    bottom: 0;
    z-index: 11;
    box-sizing: border-box;
    display: none;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-bottom: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#open_modal_typo_report > a {
    display: flex;
    align-items: center;
    justify-self: start;
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
}

#open_modal_typo_report > a:hover {
    text-decoration: underline;
}

.icon.spell-check {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    background: url(../img/icon/icon_spellcheck.png);
    background-size: contain;
}

#modal_typo_report textarea:read-only {
    background-color: #cccccc;
}

#section_comment .content_inner .selectbox_area {
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px 0 0;
}

#section_comment .content_inner .selectbox_area form {
    width: auto;
}

@media screen and (max-width: 768px) {
    #section_comment .content_inner .selectbox_area {
        padding: 10px 10px 0 0;
    }
}

@media screen and (max-width: 980px) {
    #open_modal_typo_report {
        right: 20px;
    }
}

#modal_bookmark_check ul.note {
    padding-left: 1em;
    font-size: 12px;
}

#modal_bookmark_check ul.note li + li {
    margin-top: 3px;
}

#modal_bookmark_check ul.note li::before {
    margin-left: -1em;
    content: '※';
}

#modal_bookmark_check .text-red {
    color: #ff0000;
}

#modal_bookmark_check p a {
    font-size: 12px;
    color: #00ac98;
    text-decoration: none;
}

#section_works_info .state_button_set {
    display: flex;
    justify-content: flex-end;
}

#section_episode .state_button_set {
    display: flex;
    justify-content: center;
}

#section_works_info .state_button_set .help {
    display: none;
}

#section_episode .state_button_set .help {
    width: 100%;
    margin-top: 15px;
}

#section_episode .state_button_set .help p a {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0 1.25em 0 0;
    margin: 0;
    font-size: 12px;
    font-weight: normal;
    color: #00ac98;
    background-color: transparent;
    background-image: url(../img/icon/icon_link.png);
    filter: none;
    background-repeat: no-repeat;
    background-position: right top 2px;
    background-size: auto 1em;
    border-radius: 0;
}

#story_index_header {
    position: relative;
    box-sizing: border-box;
    justify-content: space-between;
    height: 51px;
    padding: 5px 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
}

#story_index_header * {
    box-sizing: border-box;
}

#story_index_header .left_area {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

#story_index_header .right_area {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

#story_index_header .center_area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#story_index_header .center_area .logo img {
    width: auto;
    height: 23.5px;
}

.button_set.loginBtn {
    text-decoration: none;
}

.button_set.loginBtn p {
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .button_set.loginBtn p {
        font-size: 10.5px;
    }
}

#section_works_info .read_time {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0 0;
}

#section_works_info .read_time p {
    font-size: 12px;
}

.storyIndexContainer .button_area {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.storyIndexContainer .button_area.organization {
    width: 100%;
}

.storyIndexContainer .button_area:not(.organization) a.button_set {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    line-height: 1;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .storyIndexContainer .button_area:not(.organization) a.button_set {
        max-width: 100%;
    }
}

p.state_lamp span {
    padding: 2px 4px;
}

p.state_lamp span.private.high-fantasy { background-color: #ff0000; }
p.state_lamp span.private.low-fantasy { background-color: #8b1129; }
p.state_lamp span.private.sf { background-color: #29659b; }
p.state_lamp span.private.romance { background-color: #ff5dff; }
p.state_lamp span.private.horror { background-color: #2f2725; }
p.state_lamp span.private.mystery { background-color: #824da9; }
p.state_lamp span.private.essay { background-color: #2b7c06; }
p.state_lamp span.private.history { background-color: #7d5133; }
p.state_lamp span.private.literature { background-color: #548235; }
p.state_lamp span.private.blog { background-color: #2b7c06; }
p.state_lamp span.private.drama { background-color: #468dce; }
p.state_lamp span.private.poem { background-color: #3fbf3f; }
p.state_lamp span.private.introduction { background-color: #2b7c06; }
p.state_lamp span.private.license { background-color: #cc00cc; }
p.state_lamp span.private.others { background-color: #ff9933; }
p.state_lamp span.private.comedy { background-color: #eebf03; }

#section_episode .sns_set .button_area.center {
    text-align: center;
}

#section_episode .episode_list ul li .comment_link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#section_episode .episode_list ul li .comment_link a::before {
    margin-right: 5px;
}

#section_episode .member-only {
    padding: 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #0cbf97;
}

#section_episode .episode_list .comment_link span.read-time {
    margin-right: 5px;
    font-size: 12px;
}

#section_episode .episode_list .comment_link span.read-time > span {
    margin-left: 5px;
}

#section_episode .episode_list ul li .update_date p span {
    margin-left: 5px;
}

@media screen and (max-width: 768px) {
    #section_episode .episode_list ul li .update_date p span.wbr::after {
        white-space: pre;
        content: '\A';
    }
}

#section_works_info .new_member_regist {
    width: 100%;
    text-align: center;
    background-color: #6b7a9b;
}

#section_works_info .new_member_regist div::before {
    display: inline-block;
    width: 21px;
    height: 21px;
    margin-right: 5px;
    vertical-align: middle;
    content: "";
    background: url(/img/logo_icon.png) no-repeat center center;
    background-size: contain;
}

#section_works_info .new_member_regist p {
    display: inline-block;
    vertical-align: middle;
}

@media screen and (max-width: 320px) {
    #section_works_info .new_member_regist {
        padding: 8px 5px;
    }

    #section_works_info .new_member_regist div::before {
        width: 14px;
        height: 14px;
    }

    #section_works_info .new_member_regist p {
        font-size: 14px;
    }
}

.flex_banner_area {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 20px 0 0 0;
}

@media screen and (max-width: 768px) {
    .flex_banner_area {
        flex-direction: column;
    }
}

#story_index {
    padding-bottom: 50px;
}

@media screen and (min-width: 769px) {
    #section_suggest_list .content_wrapper .content_item {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        align-items: flex-start;
        -webkit-box-align: start;
        -ms-flex-align: start;
    }

    #section_suggest_list .content_wrapper .content_item .one_set {
        margin: 0 0;
    }
}

.storyLink {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.storyLink_item {
    font-size: 12px;
    text-decoration: none;
}

a.storyLink_item {
    color: #00ac98;
}

.fixed_bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.fixed_bottom a {
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background-color: #0cbf97;
}

.signup_banner {
    display: block;
    width: 100%;
    padding: 5px 0;
    font-weight: bold;
}

.signup_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 10px 10px auto;
    font-size: 13.5px;
    font-weight: bold;
    line-height: 1;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border-radius: 80px;
}

.episodeMeta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
}

.episodeMeta_column {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.episodeMeta_columnItem {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
    white-space: nowrap;
}

.episodeMeta_columnItem > span {
    display: flex;
    align-items: center;
    width: fit-content;
}

.episodeMeta_columnItem .iconImg {
    width: 15px;
    height: 14px;
    object-fit: contain;
}

.iconImg.arrow {
    width: 10px;
    height: 11px;
}

.readTime {
    display: flex;
    gap: 5px;
    align-items: center;
}

.readTime::before {
    width: 20px;
    height: 20px;
    content: '';
    background-image: url(../img/icon/icon_clock.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.readTime.grey::before {
    background-image: url(../img/icon/icon_clock_gr.png);
}

.totalEpisode {
    display: flex;
    gap: 5px;
    align-items: center;
}

.totalEpisode::before {
    width: 20px;
    height: 20px;
    content: '';
    background-image: url(../img/icon/icon_episode.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.nextUpdate {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nextUpdate::before {
    width: 20px;
    height: 20px;
    content: '';
    background-image: url(../img/icon/icon_calendar.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/* 作品目次新レイアウトここから */

#story_index .verticalComposition {
    margin-top: 0;
}

#story_index .verticalComposition .sectionWrapper#topContents {
    grid-column: 1 / -1;
    padding: 10px 0;
    background-color: var(--color-white);
}

@media screen and (max-width: 768px) {
    #story_index .sectionInner {
        padding: 0;
    }

    #story_index .verticalComposition {
        gap: 0;
        padding-top: 0;
    }

    #story_index .verticalComposition .sectionWrapper#topContents {
        padding: 10px 0 0;
    }
}

#story_index .p-10 {
    padding: 10px;
}

#story_index .px-10 {
    padding-right: 10px;
    padding-left: 10px;
}

.storyMeta a {
    color: var(--color-main-link);
    text-decoration: none;
}

.storyMeta tr th,
.storyMeta tr td {
    padding: 3px;
    font-size: 11px;
    border: 1px solid #b0b0b0;
}

.storyMeta tr th {
    white-space: nowrap;
    background-color: #f0f0f0;
}

@media screen and (max-width: 768px) {
    .otherStoryList {
        padding: 0 10px;
    }
}

.storyIndexContainer {
    background-color: var(--color-white);
}

.storyIndexHeader {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    font-size: 13.5px;
}

@media screen and (max-width: 768px) {
    .storyIndexHeader {
        gap: 10px;
    }
}

.storyIndexHeader .storyTitle {
    font-size: 15px;
    font-weight: bold;
}

.storyIndexHeader .storySeries::before {
    display: inline-block;
    width: 20px;
    height: 20px;
    content: '';
    background-image: url(../img/icon/icon_folder_gy.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.storyIndexHeader .storySeries {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 5px;
    align-items: center;
    text-decoration: none;
}

.storyIndexHeader .storySeries span {
    overflow: hidden;
    font-size: 13.5px;
    color: var(--color-main-link);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storyIndexHeader .storyAuthor {
    display: inline-block;
    height: fit-content;
    font-size: 14px;
    color: var(--color-main-link);
    text-decoration: none;
}

.storyIndexHeader .storyComment {
    padding: 10px 0;
    border: 1px solid #b0b0b0;
    border-width: 1px 0;
}

.storyIndexHeader .storyNoAgree {
    font-size: 12px;
    color: #666666;
}

.comment_wrapper .storyNoAgree {
    margin-bottom: 10px;
    font-size: 12px;
    color: #666666;
}

.storyEditButton {
    width: fit-content;
    height: fit-content;
    padding: 8.5px 10px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--color-main);
    border-radius: var(--default-radius);
}

.storyEditButton.episode {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0 auto;
    font-size: 15px;
}

.storyIndexHeader .state_lamp {
    height: fit-content;
}

.storyIndexHeader .storyComment .storyComment_headline {
    font-weight: bold;
}

.storyIndexHeader .novel_cover img {
    max-height: 500px;
}

.storyToolbarButtons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

form.api_toggle {
    display: none;
}

form.api_toggle.on {
    display: unset;
}

.storyIndexHeader .story_episode_toolbar.no-fixed,
.storyIndexFooter .story_episode_toolbar.no-fixed {
    z-index: unset;
    width: fit-content;
    height: fit-content;
    padding: 0 !important;
    margin: 0;
}

.storyIndexFooter .story_episode_toolbar.no-fixed {
    margin: 0 auto;
}

.storyIndexHeader .story_episode_toolbar.no-fixed .state_button_set,
.storyIndexFooter .story_episode_toolbar.no-fixed .state_button_set {
    gap: 8px;
}

.storyIndexHeader .story_episode_toolbar.no-fixed .toolbar_item,
.storyIndexFooter .story_episode_toolbar.no-fixed .toolbar_item {
    margin: 0 !important;
}

.storyIndexHeader .novel_synopsis p {
    padding: 15px 0;
    font-size: 15px;
    color: #333333;
    text-align: justify;
    white-space: pre-wrap;
}

.storyIndexHeader .novel_synopsis p a {
    color: var(--color-main-link);
    text-decoration: none;
}

.storyIndexFooter {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    font-size: 13.5px;
}

.storyIndexFooter .button_set.embed {
    width: auto !important;
    height: auto;
    padding: 8px 15px 8px 40px;
    text-decoration: none;
    cursor: pointer;
    background-color: #6b7a9b;
    border: none;
    border-radius: 5px;
}

.storyIndexFooter .button_set.embed div::before {
    position: absolute;
    top: 50%;
    left: 11px;
    display: inline-block;
    width: 19px;
    height: 19px;
    content: "";
    background: url(../img/icon/icon_embed.png) no-repeat center center;
    background-size: contain;
    transform: translateY(-50%);
}

.storyIndexFooter .button_set.embed p {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
}

.storyIndexFooter .time_open {
    color: var(--color-gray);
}

.stroyReport {
    text-align: right;
}

.stroyReport a {
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
}

.storyIndex.episode_list {
    padding: 0 10px !important;
}

.section .content_wrapper {
    padding: 0;
}

.section .content_wrapper .content_item .one_set {
    height: fit-content;
    margin-bottom: 0;
}

.storyIndex.content_item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.episodeList {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.episodeListItem {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 5px;
    margin-left: 20px;
    border-bottom: 1px solid #b0b0b0;
}

.episodeListItem.chapter {
    margin-left: 0;
    font-size: 16px;
    font-weight: bold;
}

.episodeListItem.guidebook::before {
    position: absolute;
    top: 0;
    left: -20px;
    display: block;
    width: 13px;
    height: 26px;
    content: '';
    background: url(../img/button/btn_tag_on.png) no-repeat center center;
    background-size: contain;
}

.episodeListItem .episodeTitle {
    display: flex;
    gap: 1em;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-main-link);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.episodeListItem .episodeTitle[data-number]:not([data-number=""])::before {
    white-space: nowrap;
    content: attr(data-number);
}

.episodeListItem .episodeTitle:visited {
    color: #999999;
}

.episodeListItem .episodeDate {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    line-height: 1;
    color: var(--color-gray);
}

@media screen and (max-width: 768px) {
    .episodeListItem .episodeDate {
        font-size: 10px;
    }
}

.episodeDate .goodCount {
    display: flex;
    gap: 5px;
    align-items: center;
}

.episodeDate .goodCount::before {
    width: 1em;
    height: 1em;
    content: '';
    background-image: url(../img/icon/icon_good_gray.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.episodeDate .readTime::before {
    width: 1em;
    height: 1em;
}

.episodeDate .publishDate {
    display: flex;
    gap: 5px;
    align-items: center;
}

.episodeDate .publishDate::before {
    content: '投稿日';
}

.episodeDate .commentLink {
    display: flex;
    gap: 5px;
    align-items: center;
    font-weight: bold;
    color: var(--color-gray);
    text-decoration: none;
}

.episodeDate .memberOnly {
    padding: 3px;
    font-weight: bold;
    color: var(--color-white);
    background-color: var(--color-main);
}

.episodeDate .commentLink::before {
    width: 1em;
    height: 1em;
    content: '';
    background-image: url(../img/icon/icon_comment_gray.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.episodeDate .commentLink::after {
    width: 1em;
    height: 1em;
    content: '';
    background-image: url(../img/icon/icon_arrow_right_gray.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/* 作品目次新レイアウトここまで */

#story_episode #main {
    max-width: 980px;
}

.episodeHeader {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--height-header_inner-pc);
    padding: 0;
    margin: 0 auto;
    background-color: var(--color-white);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.episodeHeader .closeButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
}

.episodeHeader .closeButton img {
    width: 21px;
}

.episodeHeader .episodeHeaderData {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template: "meta title" auto / auto 1fr;
    gap: 5px 10px;
    align-items: center;
    width: 100%;
    max-width: 980px;
    height: 100%;
    margin: 0 auto;
}

.episodeHeader .episodeHeaderData .storyTitle {
    grid-area: title;
    width: 100%;
    overflow: hidden;
    font-size: 15px;
    font-weight: bold;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.episodeHeader .episodeHeaderData .episodeHeaderData_meta {
    display: flex;
    grid-area: meta;
    gap: 5px;
    align-items: center;
    width: fit-content;
    font-size: 14px;
}

/*

#alternative_header.header .logo_area {
    height: 38px;
}

*/
@media screen and (max-width: 768px) {
    #episodeHeader {
        height: var(--height-header_inner-sp);
    }

    .episodeHeader .episodeHeaderData {
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        max-width: calc(100% - 40px);
        margin: 0;
    }

    .episodeHeader .episodeHeaderData .storyTitle {
        font-size: 14px;
        line-height: 1;
    }

    .episodeHeader .episodeHeaderData .episodeHeaderData_meta {
        font-size: 10px;
    }

    .episodeHeader .episodeHeaderData .episodeHeaderData_meta .totalEpisode::before {
        width: 14px;
        height: 14px;
    }

    .episodeHeader .episodeHeaderData .episodeHeaderData_meta .readTime::before {
        width: 14px;
        height: 14px;
    }
}

#section_episode .vertical_writing_cover.content_inner {
    padding: 20px 30px 30px;
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    #section_episode .vertical_writing_cover.content_inner {
        padding: 15px 0;
    }
}
