/*スクロールありの場合はフッターはポディション解除とbodyの高さを調整*/
body.character {
    height: 100%;
    overflow-y: auto
}

/*main {
    min-height: calc(100vh - 80px);
}*/

/*ここからメイン*/
.warp {
    margin: 10px auto 0;
    width: 90%;
}

.warp ul {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    list-style: none;
}

.warp li {
    width: 18%;
    margin: 1%;
    padding: 1em;
    background: #7A7A7A;
    box-sizing: border-box;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .5);
    transition: all 1s;
    display: none;
    position: relative;
}

.warp li::before {
    content: "ORIGIN";
    position: absolute;
    top: 2.1em;
    right: 1em;
    color: #fff;
    z-index: 3;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: .9em;
}

.warp li::after {
    content: "";
    border: 50px solid #FFA200;
    border-left-color: transparent;
    border-bottom-color: transparent;
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.warp li.parallel::before {
    content: "PARALLEL";
    top: 2.5em;
    right: 0em;
}

.warp li.parallel::after {
    border: 50px solid #00A0E9;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.warp ul.active li {
    display: block;
    animation: upmove 1s forwards;
}

@keyframes upmove {
    0% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
    }
}

.warp ul li:nth-child(5n + 2),
.warp ul li:nth-child(5n + 4) {
    margin-top: 60px;
}

.warp li:hover {
    transform: scale(1.05);
    transition: all 0.5s 0s ease;
}

.warp a {
    text-decoration: none;
}

.warp li img {
    width: 100%;
}

.name {
    text-align: center;
    color: #fff;
    font-size: clamp(14px, 1vw, 24px);
    margin: 0.5em 0;
}

.english {
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.warp .activity li {
    background: #ccc;
}

.warp .activity .name,
.warp .activity .english {
    color: #000;
}

/*個別ページ*/
.characterwarp {
    position: relative;
    height: calc(100vh - 280px);
    width: 90%;
    max-width: 1000px;
    margin: 10px auto 0;
    background: #ffffffb3;
}

.textbox {
    width: 60%;
    height: 100%;
    padding: 3em 3em 0;
    position: relative;
    z-index: 2;
}

.pc-imgbox {
    position: absolute;
    right: 5%;
    top: 0;
    transform: translate(0, -50px);
    height: 130%;
    z-index: 1;
}

.pc-imgbox.yunagi {
    right: -5%;
}

.pc-imgbox img {
    height: 100%;
}

.sp-imgbox {
    display: none;
}

.namebox {
    width: 100%;
    width: 100%;
    padding-bottom: 1em;
    border-bottom: 10px solid;
}

.namebox.mess {
    border-color: #FF7474;
}

.namebox.amahime {
    border-color: #e96686;
}

.namebox.reikai {
    border-color: #ff830d;
}

.namebox.urameshi {
    border-color: #b0a4d2;
}

.namebox.yorumiya {
    border-color: #9fdfff;
}

.namebox.yunagi {
    border-color: #f07700;
}

.character-name {
    font-size: 70px;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 4;
}

.character-en {
    font-size: 20px;
    margin-top: 1em;
    text-align: center;
}

.character-catch {
    width: 100%;
    border-top: 10px solid;
    font-size: 40px;
    margin: 10px 0 0;
    padding: 10px 0 0;
}

.character-profile {
    margin: 1em 0;
}

.character-profile p {
    margin-bottom: 0.5em;
}

.character-coment {
    line-height: 1.5;
    overflow-y: auto;
    margin-top: 2em;
    max-height: calc(100% - 310px);
    overflow-y: auto;
}

.choicebox {
    width: 90%;
    margin: 1em auto;
    overflow-x: auto;
}

.choice {
    width: max-content;
    background: #FF0000;
    padding: 1em 2em;
    color: #FFF;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.choice.active {
    background: #DFDFDF;
    color: #000;
}

.snsbox {
    width: 100%;
    display: flex;
    align-items: center;
}

.snsbox p {
    margin-right: .5em;
    margin-top: .3em;
}

.snsbox p.youtube a {
    color: #FF0000;
    font-size: 60px;
}

.snsbox p.twitter a {
    color: #fff;
    background: #000;
    padding: 0em .5em .1em;
    border-radius: 10px;
    font-size: 40px;
}

/*850px以下　SP・Tab表示処理*/
@media screen and (max-width: 850px) {
    .warp li {
        width: 48%;
    }

    .situation {
        font-size: 0.6em;
        margin-left: -1.5em;
        width: calc(100% + 2.8em);
    }

    .characterlist {
        overflow-x: auto;
        box-sizing: border-box;
        position: inherit;
    }

    .warp ul li:nth-child(5n + 2),
    .warp ul li:nth-child(5n + 4) {
        margin-top: 0;
    }

    .warp li::after {
        border: 40px solid #FFA200;
        border-left-color: transparent;
        border-bottom-color: transparent;
    }

    .warp li::before {
        top: 1.5em;
        right: .5em;
    }

    .warp li.parallel::before {
        top: 2.4em;
        right: -.5em;
    }

    .characterlist ul {
        display: block;
        width: max-content;
    }

    .characterlist li {
        width: 120px;
        display: inline-block;
        box-sizing: border-box;
        margin: 0;
    }

    .characterlist li p:nth-child(1) {
        height: auto;
    }

    .characterwarp {
        height: auto;
    }

    .textbox {
        width: 100%;
        box-sizing: border-box;
        padding: 1em 1em 0;
    }

    .namebox {
        margin: auto;
    }

    .character-name {
        font-size: 30px;
    }

    .pc-imgbox {
        display: none;
    }

    .sp-imgbox {
        display: block;
        width: 50%;
    }

    .sp-imgbox img {
        width: 100%;
    }

    .character-catch {
        font-size: 14px;
    }

    .warp li:nth-child(even) {
        margin-top: 1%;
    }

    .warp ul {
        align-items: inherit;
    }

    .spbox>div:nth-child(1) {
        width: 100%;
    }

    .character-en {
        font-size: 14px;
    }

    .character-profile {
        font-size: 0.8em;
    }

    .spbox div:nth-child(2) {
        margin: 1em auto;
    }

    .character-catch {
        border-top: 4px solid #FF7474;
    }

    .character-coment {
        height: auto;
        overflow-y: inherit;
        font-size: 0.8em;
        margin: 1em 0;
    }

    .warp li.topset {
        margin-top: 0;
    }
}