.inner{
    padding: 0 15px;
}

.list-menu__box{
    display: flex;
}

.icon-grid{
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/html/user_data/assets/img/common/icon_grid.svg') no-repeat center;
}
.icon-list{
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/html/user_data/assets/img/common/icon_list.svg') no-repeat center;
}
/* セレクトボックス */
.ec-select select{
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    background: url('/html/user_data/assets/img/common/icon_sort.svg') no-repeat left;
    background-size: 16px 16px;
    padding-left: 23px;
}
.ec-select select::-ms-expand {
    display: none; 
}

.form-check{
    padding-top: 6px;
}

.change_viewtype{
    display: flex;
    justify-content: end;
    gap: 20px;
}
.change_viewtype label{
    display: flex;
    align-items: center;
    justify-content: end;
}
.change_viewtype label.active{
    display: none;
}
.change_viewtype input{
    display: none;
}


/* -------------------
UIナビ
-------------------*/

@media screen and (min-width:768px){
    .ec-searchnavRole .ec-searchnavRole__infos{
        display: block;
    }
}
.ec-searchnavRole .ec-searchnavRole__counter,
.ec-searchnavRole .ec-searchnavRole__actions{
    width: 100%;
}
.list-menu{
    display: flex;
    justify-content: end;
    margin-top: 30px;
}
.list-menu .ec-select{
    margin-bottom: 0;
}
.ec-searchnavRole__counter{
    font-size: 11px;
}
.ec-searchnavRole__counter .all{
    font-size: 20px;
    margin-right: 5px;
}
.ec-searchnavRole__actions{
    border-bottom: 1px solid var(--color-main);
    margin-bottom: 20px;
}

.ec-shelfRole{
    padding: 0;
    margin-bottom: 50px;
}
.ec-shelfRole .moreBtn{
    font-size: 14px;
    padding: 3px 25px 3px 10px;
    margin-top: 10px;
}

@media screen and (max-width:767px){
    .ec-shelfGrid,
    .ec-searchnavRole .ec-searchnavRole__infos{
        padding: 0 10px;
    }
    .list-menu{
        margin-top: 0;
        flex-wrap: wrap;
    }
    .list-menu,
    .ec-select select{
        font-size: 12px;
    }
}
.ec-shelfGrid .ec-shelfGrid__item img{
    width: 249px;
}
/* -------------------
リストレイアウト
-------------------*/

.ec-shelfList .listOnly{
    display: block;
}
.ec-shelfList .gridOnly{
    display: none;
}
.ec-shelfGrid .gridOnly{
    display: block;
}
.ec-shelfGrid .listOnly{
    display: none;
}

.ec-shelfList{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.ec-shelfList .ec-shelfList__item-image{
    float: none;
    width: 146px;
}
.ec-shelfList .ec-shelfList__item img{
    width: 146px;
}
.result_list_item.ec-shelfList__item {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.result_list_item.ec-shelfList__item .item-container{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.result_list_item.ec-shelfList__item .item-container .item-title{
    width: auto;
}

.result_list_item.ec-shelfList__item .item-description{
    width: calc(100% - 146px - 15px);
}
.ec-shelfList .item-container .item_price{
    font-size: clamp(12px, 2vw, 14px);
    margin-top: 5px;
    text-align: left;
}
.ec-shelfList .item-container .item_price .tax{
    font-size: clamp(10px,2vw,11px);
}
.ec-shelfList .listOnly.moreBtn-box{
    display: flex;
}

@media screen and (max-width:767px){
    .ec-shelfList .ec-shelfList__item-image{
        width: 100px;
    }
    .result_list_item.ec-shelfList__item .item-description{
        width: calc(100% - 100px - 15px);
    }
    .result_list_item.ec-shelfList__item{
        width: 100%;
        padding: 0 10px;
    }
}

/* -------------------
ページャー
-------------------*/
.ec-pager {
    background: var(--color-white);
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid var(--color-main);
    padding: 0;
    width: fit-content;
    margin-bottom: 50px;
    display: flex;
}
.ec-pager .ec-pager__item--active {
    background: #F3F3F3;
    background: var(--color-main);
    color: var(--color-white);
}
.ec-pager .ec-pager__item, .ec-pager .ec-pager__item--active{
    padding: 0;
}
.ec-pager .ec-pager__item a, .ec-pager .ec-pager__item--active a{
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}
.ec-pager li:first-child{
    margin-left: 30px;
}
.ec-pager li:first-child:has(.arrow){
    margin-left: 0;
}
.ec-pager li:last-child{
    margin-right: 30px;
}
.ec-pager li:last-child:has(.arrow){
    margin-right: 0;
}
@media screen and (max-width:767px){
    .ec-pager .ec-pager__item a, .ec-pager .ec-pager__item--active a{
        font-size: 11px;
        padding: 0 5px;
    }
    .ec-pager li:first-child{
        margin-left: 15px;
    }
    .ec-pager li:last-child {
        margin-right: 15px;
    }
}

/* -------------------
キャラクタープロフィール
-------------------*/

/* 説明文 */
#charactor-profile{
    max-width: 550px;
    margin: 40px auto;
    padding: 0 10px;
}

.comment-box{
    font-size: 12px;
    margin: 0 0 0 auto;
    width: fit-content;
    display: flex;
    align-items: center;
}
.comment-box .comment{
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('/html/user_data/assets/img/common/icon_comment.svg') no-repeat center;
    background-size: contain;
    margin-right: 5px;
}

/* -------------------
作品プロフィール
-------------------*/
#page_work_list .work-h1{
    position: relative;
}
#page_work_list .work-h1 .work-frame {
    font-size: 15px;
    font-family: var(--font-main);
    background: var(--color-main);
    color: var(--color-white);
    width: fit-content;
    padding: 3px 10px;
    position: relative;
    margin: 0 auto;
    position: absolute;
    top: calc(-1em - 10px);
    left: 50%;
    transform: translateX(-50%);
}
#page_work_list .work-h1 .work-frame::before {
    display: block;
    content: "";
    width: 9px;
    height: 100%;
    background: var(--color-main);
    position: absolute;
    left: -8px;
    top: 0;
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%);
}
#page_work_list .work-h1 .work-frame::after {
    display: block;
    content: "";
    width: 9px;
    height: 100%;
    background: var(--color-main);
    position: absolute;
    right: -8px;
    top: 0;
    clip-path: polygon(0 0, 2px 0, 100% 100%, 0 100%);
}

#page_work_list .work-title{
    text-align: center;
    margin: 25px;
}
#page_work_list .work-table{
    max-width: 860px;
    margin: 30px auto;
}
#page_work_list .work-table dl{
    display: flex;
    margin: 0;
    border-bottom: 1px solid var(--color-white);
}
#page_work_list .work-table dl:last-of-type{
    margin-bottom: 10px;
}
#page_work_list .work-table dt{
    min-width: 120px;
    background: var(--color-main);
    color: var(--color-white);
    font-weight: normal;
    padding: 10px;
}
#page_work_list .work-table dd{
    background: var(--color-white);
    margin: 0;
    padding: 10px;
    width: calc(100% - 120px);
}
#page_work_list .ec-blockBtn--action:has(.plus){
    margin: 0 auto 80px;
}

#page_work_list .is-open>.plus::after{
    opacity: 0;
}

@media screen and (max-width:767px){
    #page_work_list .work-table dl{
        flex-direction: column;
        margin-bottom: 5px;
    }
    #page_work_list .work-table dd{
        width: 100%;
    }
}


/* 作品プロフィール>キャラクター一覧 */
.work-charactor-wrap{
    display: flex;
    gap: 30px;
    margin-top: 60px;
}
.work-charactor-list{
    width: 210px;
    position: sticky;
    align-self: flex-start;
    top: 150px;
    margin-bottom: 50px;
}
.work-charactor-list a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid;
}
.work-charactor-list li:first-child a{
    border-top: 1px solid;
}
.work-charactor-list a .arrow-bl{
    padding: 10px;
    rotate: 90deg;
}
.work-charactor-box{
    flex: 1;
}
.work-charactor-type{
    margin-bottom: 80px;
}
.work-charactor-type h2{
    border-top: 1px solid;
    position: relative;
}
.work-charactor-type h2::before{
    display: block;
    content: "";
    width: 100%;
    height: 3px;
    background: var(--color-main);
    left: 0;
    top: -6px;
    position: absolute;
}

.work-charactor-type h2:not(:first-of-type){
    margin-top: 80px;
}

.charactor-container{
    margin: 20px 0;
}
.charactor-item {
    display: flex;
    align-items: center;
    border-top: 1px solid;
    padding-top: 20px;
    margin-bottom: 20px;
    gap: 25px;
}
.charactor-item img{
    width: 100px;
}
.charactor-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}
.charactor-item-title h3{
    font-size: 28px;
}
.charactor-item a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.charactor-item a .arrowBtn{
    width: 14px;
    height: 14px;
    padding: 3px;
}
.charactor-table li{
    display: flex;
}
.charactor-table-title {
    background: var(--color-main);
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 15px;
    width: 20%;
    min-width: 10em;
    border-bottom: 1px solid var(--color-base);
}
.charactor-table-item {
    background: var(--color-white);
    display: flex;
    flex: 1;
    flex-direction: column;
}
.charactor-table-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--color-base);
}
.charactor-table-detail a {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.charactor-table-detail a .arrow{
    width: 20px;
    padding: 6px;
}

@media screen and (max-width:767px){
    .work-charactor-list{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        position: static;
        margin-bottom: 0;
        justify-content: space-between;
    }
    .work-charactor-list a{
        padding: 10px;
        border-top: 1px solid;
        padding: 5px;
        font-size: 14px;
    }
    .work-charactor-wrap{
        flex-direction: column;
        margin-top: 30px;
    }
    .work-charactor-type{
        padding-top: 5px;
        margin-bottom: 40px;
    }
    .charactor-item-title{
        flex-direction: column;
        align-items: end;
    }
    .charactor-item-title h3{
        width: 100%;
    }
    .charactor-table li{
        flex-direction: column;
    }
    .charactor-table-title{
        width: 100%;
        font-size: 14px;
        padding: 5px 10px;
    }
    .charactor-table-detail{
        flex-direction: column;
        align-items: end;
        padding: 5px 10px;
    }
    .charactor-table-detail p{
        width: 100%;
    }
}

/* -------------------
シリーズ一覧
-------------------*/

#series .seriesList{
    max-width: 620px;
    margin: 40px auto;
}
#series .seriesList a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid;
    margin: 0 10px 15px;
}
#series .seriesList h2{
    flex: 1;
    padding-left: 5px;
}

/* -------------------
作品一覧
-------------------*/

#series-work-list .series-info{
    margin: 40px auto 0;
    max-width: 60%;
}
#series-work-list .inner{
    padding: 0 10px;
}
#series-work-list .work-list{
    max-width: 860px;
    margin: 40px auto;
    border-top: 1px solid var(--color-main);
    padding-top: 10px;
    position: relative;
}
#series-work-list .work-list::before {
    display: block;
    content: "";
    width: 100%;
    height: 3px;
    background: var(--color-main);
    left: 0;
    top: -6px;
    position: absolute;
}
#series-work-list .work-list a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid;
    margin: 0 0 10px;
    height: 100%;
    align-items: center;
}
#series-work-list .work-list h3{
    flex: 1;
    padding-left: 5px;
}
#series-work-list .sub-series-name {
    margin-top: 20px;
    background: #E3E1DA;
    padding: 5px;
    font-weight: 600;
    border-bottom: 1px solid var(--color-main);
    margin-bottom: 20px;
}
#series-work-list .work-list ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}
#series-work-list .work-list ul li {
    width: calc(100% / 2 - 5px);
}
@media screen and (max-width:767px){
    #series-work-list .series-info{
        max-width: none;
        margin-top: 30px;
    }
    #series-work-list .work-list ul li{
        width: 100%;
    }
    #series-work-list .work-list{
        margin-top: 30px;
    }
}


.series-info {
    margin-bottom: 20px;
}
.work-list {
    margin-bottom: 20px;
}

/* CSVテーブル */
.work-other-info table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.work-other-info td{
    background: var(--color-white);
    border: 1px solid var(--color-base);
    font-weight: bold;
}

.work-other-info tr:first-child td,
.work-other-info .title-row + tr td {
    background: var(--color-main);
    color: var(--color-white);
    text-align: center;
}
.work-other-info .title-row-text{
    margin: 20px 0 20px;
    padding: 0;
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 28px);
    border-top: 1px solid;
    position: relative;
    font-weight: normal;
}

.work-other-info .title-row-text::before{
    display: block;
    content: "";
    width: 100%;
    height: 3px;
    background: var(--color-main);
    left: 0;
    top: -6px;
    position: absolute;
}

.work-other-info td:first-child{
    text-align: center;
    width: 10%;
    min-width: 100px;
}
.work-other-info .title-row td:first-child {
    background: none;
    color: var(--color-main);
    text-align: left;
}

.work-other-info td:nth-child(2){
    width: 30%;
}

@media screen and (max-width:767px){
    .work-other-info{
        overflow-x: auto;
    }
    .work-other-info table{
        width: max-content;
        min-width: 100%;
    }
    .work-other-info .title-row-text{
        margin: 20px 0 10px;
    }
}