.character {
    width: 100%;
}

#c-tab-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.tab-btn {
    width: 15%;
}

.tab-btn a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0 10px;
    text-align: center;
    opacity: 0.5;
    /* 初期状態は不透明度0.5 */
    transition: opacity 0.3s;
    /* 不透明度の変更にアニメーションを適用 */
}

#c-tab-menu li a.active {
    opacity: 1;
    /* アクティブなリンクは不透明度1 */
}

/* hover時にopacityを1にする */
#c-tab-menu li a:not(.active):hover {
    opacity: 1;
}

#c-tab-contents {
    display: flex;
    flex-wrap: wrap;
}

#c-tab-contents .c-tab {
    width: 100%;
    display: none;
}

#c-tab-contents .c-tab.active {
    display: block;
}

.chara-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chara-cont {
    position: relative;
    width: 78%;
    height: 100%;
    margin: 6rem 0 0;
    background-repeat: repeat-x, repeat-x;
    background-position: top 60% left, top 60% left;
    background-size: auto 26%, 100% 26%
}

.c1-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg1.png);
}

.c2-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg2.png);
}

.c3-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg3.png);
}

.c4-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg4.png);
}

.c5-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg5.png);
}

.c6-bg1 {
    background-image: url(../img/character/text_bg.png), url(../img/character/bg6.png);
}

.c-01 {
    position: absolute;
    width: 50%;
    top: 0;
    right: 12%;
    z-index: 2;
}

.c-02 {
    position: absolute;
    width: 50%;
    top: 0;
    right: -15%;
    z-index: 1;
}

.chara-name {
    position: absolute;
    width: 36%;
    top: 22%;
    left: 0;
}

.chara-name img {
    margin: 0 0 .6rem;
}

.chara-name p {
    color: #865725;
    font-size: 24px;
    font-family: "Kameron", serif;
    letter-spacing: 0.05em;
}

.chara-notes {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 4%;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: min(16px, 1.6vw);
    font-weight: 600;
    line-height: 1.8;
    z-index: 3;
}


.t-s-1 {
    text-shadow: 
    0 0 4px #ff7187, 
    0 0 4px #ff7187, 
    0 0 4px #ff7187;
}

.t-s-2 {
    text-shadow: 
    0 0 4px #7ebf85, 
    0 0 4px #7ebf85, 
    0 0 4px #7ebf85;
}

.t-s-3 {
    text-shadow: 
    0 0 4px #5ea8d7, 
    0 0 4px #5ea8d7, 
    0 0 4px #5ea8d7;
}

.t-s-4 {
    text-shadow: 
    0 0 4px #4fbaa6, 
    0 0 4px #4fbaa6, 
    0 0 4px #4fbaa6;
}

.t-s-5 {
    text-shadow: 
    0 0 4px #76a1c1, 
    0 0 4px #76a1c1, 
    0 0 4px #76a1c1;
}

.t-s-6 {
    text-shadow: 
    0 0 4px #a55c37, 
    0 0 4px #a55c37, 
    0 0 4px #a55c37;
}

.chara-face {
    width: 18%;
    padding: 10% 0;
}

.chara-face div {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
}

.c1-bg2 {
    background-image: url(../img/character/c1_bg.png);
}

.c2-bg2 {
    background-image: url(../img/character/c2_bg.png);
}

.c3-bg2 {
    background-image: url(../img/character/c3_bg.png);
}

.c4-bg2 {
    background-image: url(../img/character/c4_bg.png);
}

.c5-bg2 {
    background-image: url(../img/character/c5_bg.png);
}

.c6-bg2 {
    background-image: url(../img/character/c6_bg.png);
}


@media screen and (min-width: 1px) and (max-width: 750px) {

    .character {
        width: 100%;
    }

    #c-tab-menu {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: 30%;
        margin: 0 0 0.5rem; 
    }

    .chara-box {
        height: auto;
        display: block;
    }

    .chara-cont {
        width: 100%;
        height: 33rem;   
        margin: 1rem 0;
        background-position: top 74% left, top 74% left;
        background-size: auto 40%, 100% 40%
    }

    .c-01 {
        width: 50%;
        top: 0;
        right: 12%;
        z-index: 2;
    }

    .c-02 {
        width: 50%;
        top: 0;
        right: -15%;
        z-index: 1;
    }

    .chara-name {
        width: 40%;
        top: 12%;
        left: 0;
    }

    .chara-name img {
        margin: 0 0 .3rem;
    }

    .chara-name p {
        font-size: min(18px, 4.62vw);
    }

    .chara-notes {
        top: 49%;
        left: 4%;
        font-size: min(12px, 3.08vw);
    }

    .chara-face {
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .chara-face div {
        width: 29%;
        margin: 0 2%;
    }

    .c1-bg2 {
        background-image: url(../img/character/c1_bg.png);
    }

    .c2-bg2 {
        background-image: url(../img/character/c2_bg.png);
    }

    .c3-bg2 {
        background-image: url(../img/character/c3_bg.png);
    }

    .c4-bg2 {
        background-image: url(../img/character/c4_bg.png);
    }

    .c5-bg2 {
        background-image: url(../img/character/c5_bg.png);
    }

    .c6-bg2 {
        background-image: url(../img/character/c6_bg.png);
    }

}

@media screen and (min-width: 751px) and (max-width: 1024px) {
    #c-tab-menu {
        justify-content: space-between;
    }

    #c-tab-menu li {
        list-style-type: none;
        width: 20%;
    }
}

@media screen and (min-width: 1025px) {}