:root {
    --text: #0f0f0f;
    --binder: #3f2f1f;
    --accent: #cfbfaf;
    --accent-hover: #efdfcf;
    --metalA: #cfcfcf;
    --metalB: #afafaf;
    --metalC: #8f8f8f;
    --hole: #3f3f3f;
    --paper: #efefef;
    --paper-of: #dfdfdf;
    --tab: #4f3f2f;
    --tab1: hsl(calc(360 * (0 / 8)), 100%, 62%);
    --tab2: hsl(calc(360 * (1 / 8)), 100%, 62%);
    --tab3: hsl(calc(360 * (2 / 8)), 100%, 62%);
    --tab4: hsl(calc(360 * (3 / 8)), 100%, 62%);
    --tab5: hsl(calc(360 * (4 / 8)), 100%, 62%);
    --tab6: hsl(calc(360 * (5 / 8)), 100%, 62%);
    --tab7: hsl(calc(360 * (6 / 8)), 100%, 62%);
    --tab8: hsl(calc(360 * (7 / 8)), 100%, 62%);
    --shadow: rgba(0, 0, 0, 0.25);

    --black1: #0f0f0f;
    --black2: #1f1f1f;
    --black3: #2f2f2f;
    --black4: #3f3f3f;
    --gray: #7f7f7f;
    --white4: #bfbfbf;
    --white3: #cfcfcf;
    --white2: #dfdfdf;
    --white1: #efefef;

    --redA: #ff5f5f;
    --redB: #ff7f7f;
    --redC: #ff9f9f;
    --blueA: #5f5fff;
    --blueB: #7f7fff;
    --blueC: #9f9fff;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100vw - 16px);
    height: calc(100vh - 64px);
    margin: 32px 8px;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--text);
}
#background {
    z-index: -1;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: center;
    background-color: #7f7f7f;
    background-image: url('/kitfes_54th/assets/wallpaper.jpg'); /* Created by 恩田 匠大 */
    background-blend-mode: screen;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    transition: 0.25s;
    transition-timing-function: ease;
}
a {
    text-decoration: none;
    border-bottom: dotted 1px var(--accent);
    color: var(--accent);
    transition: 0.25s;
}
a:hover {
    border-bottom: double 3px var(--accent-hover);
    color: var(--accent-hover);
    transition: 0.25s;
}
img {
    vertical-align: top;
}

#binder {
    position: relative;
    display: flex;
    width: 100%;
    max-width: calc(640px - 16px);
    /* max-width: calc(30.9% - 16px); */
    height: 100%;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background-color: var(--binder);
    box-shadow: 0 0 8px 4px var(--shadow);
}
@media screen and (min-width: 1921px) {
    #binder {
        width: 100%;
        max-width: calc(960px - 16px);
        height: 100%;
        max-height: calc(1620px - 64px);
    }
}
#binder > .header,
#binder > .footer {
    position: absolute;
    display: inline-block;
    margin: 4px;
    color: var(--paper);
}
#binder > .header {
    top: 0;
    left: 72px;
}
#binder > .footer {
    bottom: 0;
    right: 72px;
    font-size: 12px;
}
#binder > .header > .triangle_right {
    display: inline-block;
    vertical-align: 0;
    width: 0;
    height: 0;
    margin: 0 8px;
    border-top: solid 6px transparent;
    border-bottom: solid 6px transparent;
    border-left: solid 6px var(--paper);
}
#binder > .corner1-top,
#binder > .corner1-bottom,
#binder > .corner2-top,
#binder > .corner2-bottom {
    position: absolute;
    display: inline-block;
    right: 0;
    width: 0;
    height: 0;
}
#binder > .corner1-top {
    z-index: 2;
    top: 0;
    border-top-right-radius: 12px;
    border-top: solid 56px var(--metalB);
    border-left: solid 56px transparent;
}
#binder > .corner2-top {
    z-index: 1;
    top: 0;
    border-top-right-radius: 14px;
    border-top: solid 64px var(--metalA);
    border-left: solid 64px transparent;
}
#binder > .corner1-bottom {
    z-index: 2;
    bottom: 0;
    border-bottom-right-radius: 12px;
    border-bottom: solid 56px var(--metalB);
    border-left: solid 56px transparent;
}
#binder > .corner2-bottom {
    z-index: 1;
    bottom: 0;
    border-bottom-right-radius: 14px;
    border-bottom: solid 64px var(--metalA);
    border-left: solid 64px transparent;
}

#binder > .clip {
    position: relative;
    width: 48px;
    margin: 16px -16px 16px 16px;
    border-radius: 2px;
    background-color: var(--metalA);
}
#binder > .clip::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(50% - 4px);
    width: 8px;
    height: 100%;
    background-color: var(--metalB);
}
#binder > .clip > .fitting-top,
#binder > .clip > .fitting-bottom {
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 16px;
    background: var(--metalB);
    box-shadow: 0 0 8px var(--shadow);
}
#binder > .clip > .fitting-top {
    top: -8px;
    left: 2px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: solid 4px var(--metalC);
}
#binder > .clip > .fitting-bottom {
    bottom: -8px;
    left: 2px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top: solid 4px var(--metalC);
    border-bottom: none;
}
#binder > .clip > .fitting-bottom:hover {
    border-bottom: none;
}
#binder > .clip > .ring-top,
#binder > .clip > .ring-middle,
#binder > .clip > .ring-bottom {
    z-index: 3;
    position: absolute;
    display: inline-block;
    left: 4px;
    width: 40px;
    height: 8px;
    border-radius: 4px;
    background: transparent;
    box-shadow: 0 0 8px var(--shadow);
}
#binder > .clip > .ring-top {
    top: calc(25% - 4px);
}
#binder > .clip > .ring-middle {
    top: calc(50% - 4px);
}
#binder > .clip > .ring-bottom {
    top: calc(75% - 4px);
}
#binder > .clip > .ring-top::before,
#binder > .clip > .ring-middle::before,
#binder > .clip > .ring-bottom::before {
    z-index: 2;
    position: absolute;
    display: inline-block;
    content: '';
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--hole);
    border-radius: 50%;
}
#binder > .clip > .ring-top::after,
#binder > .clip > .ring-middle::after,
#binder > .clip > .ring-bottom::after {
    z-index: 3;
    position: absolute;
    display: inline-block;
    content: '';
    width: 40px;
    height: 8px;
    border-radius: 4px;
    background: var(--metalC);
}
#binder > .tag {
    z-index: 3;
    position: absolute;
    top: -16px;
    right: 16px;
    padding: 4px 8px;
    font-weight: 500;
    border-radius: 4px;
    border: solid 1px var(--redA);
    color: var(--white1);
    background-color: var(--redB);
}

#binder > #page {
    position: relative;
    z-index: 1;
    width: calc(100% - 144px);
    margin: 32px 0;
    padding: 24px 24px 24px 48px;
    background-color: var(--paper);
    overflow-y: scroll;
    box-shadow: 0 0 8px var(--shadow);
}
@media screen and (max-width: 639px) {
    #binder > #page {
        padding-left: 32px;
    }
}

#binder > .space {
    width: 8px;
    margin: 32px 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--shadow);
}
#binder > .tab {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    margin: 48px 24px 48px 0;
    padding: 8px 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: var(--tab);
}
#binder > .tab > .menu,
#binder > .tab > a {
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0 4px 0;
    padding: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    color: var(--text);
    border-bottom: none;
    transition: 0.25s;
}
#binder > .tab > .menu {
    width: 40px;
    height: 50%;
    margin-left: -8px;
    background-color: var(--paper);
}
#binder > .tab > .link {
    width: 32px;
    height: 100%;
}
#binder > .space.a0,
#binder > .tab > .a0 {
    background-color: var(--tab1);
}
#binder > .space.a1,
#binder > .tab > .a1 {
    background-color: var(--tab2);
}
#binder > .space.a2,
#binder > .tab > .a2 {
    background-color: var(--tab3);
}
#binder > .space.a3,
#binder > .tab > .a3 {
    background-color: var(--tab4);
}
#binder > .space.a4,
#binder > .tab > .a4 {
    background-color: var(--tab5);
}
#binder > .space.a5,
#binder > .tab > .a5 {
    background-color: var(--tab6);
}
#binder > .space.a6,
#binder > .tab > .a6 {
    background-color: var(--tab7);
}
#binder > .space.a7,
#binder > .tab > .a7 {
    background-color: var(--tab8);
}
#binder > .tab .icon {
    text-align: center;
    width: 24px;
    font-size: 20px;
}
#binder > .tab > .menu > .icon i {
    transform: rotate(0deg);
    transition: 0.25s;
}
#binder > .tab .name,
#binder > .tab .name-mobile {
    width: 0;
    margin-right: 0;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0;
    color: transparent;
    transition: 0.25s;
}
#binder > .tab .name {
    text-align: left;
}
#binder > .tab .name-mobile {
    text-align: right;
}
#binder > .tab > .menu:hover {
    padding: 4px 8px 4px 0;
    transition: 0.25s;
}
#binder > .tab > .link:hover {
    width: calc(32px + 128px);
    margin-left: calc(-32px + -96px);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    transition: 0.25s;
}
#binder > .tab > .none:hover {
    color: var(--gray);
    background-color: var(--white2);
    background-image: repeating-linear-gradient(
        -45deg,
        var(--white1),
        var(--white1) 6px,
        transparent 0,
        transparent 12px
    );
    transition: 0.25s;
}
#binder > .tab > .link:hover > .name,
#binder > .tab > .link:hover > .name-mobile {
    color: var(--text);
    transition: 0.25s;
}
#binder > .tab > .none:hover > .name,
#binder > .tab > .none:hover > .name-mobile {
    color: var(--gray);
    transition: 0.25s;
}
#binder > .tab > .link:hover > .name {
    width: 0;
    font-size: 0;
    margin-left: 8px;
}
#binder > .tab > .link:hover > .name-mobile {
    width: 96px;
    font-size: 16px;
    margin-right: 8px;
}
#binder > .tab > .isOpen {
    width: calc(32px + 128px);
    margin-left: calc(-32px + -96px);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    /* box-shadow: 0 0 8px 4px var(--shadow); */
    transition: 0.25s;
}
#binder > .tab > .menu.isOpen {
    background-color: var(--accent);
}
#binder > .tab > .menu.isOpen > .icon i {
    transform: rotate(180deg);
    transition: 0.25s;
}
#binder > .tab > .isOpen > .name,
#binder > .tab > .isOpen > .name-mobile {
    width: 96px;
    margin-right: 8px;
    font-size: 16px;
    color: var(--text);
    transition: 0.25s;
}
#binder > .tab > .isOpen > .name {
    width: 0;
    font-size: 0;
    margin-left: 8px;
}
#binder > .tab > .isOpen > .name-mobile {
    width: 96px;
    font-size: 16px;
    margin-right: 8px;
}
#binder > .tab > .isOpen:hover {
    padding: 4px 8px 4px 0;
    transition: 0.25s;
}
@media screen and (min-width: 880px) {
    #binder > .tab > .menu > .icon i {
        transform: rotate(180deg);
    }
    #binder > .tab > .link:hover {
        width: calc(32px + 128px);
        margin-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    #binder > .tab > .link:hover > .name {
        width: 96px;
        font-size: 16px;
    }
    #binder > .tab > .link:hover > .name-mobile {
        width: 0;
        font-size: 0;
    }
    #binder > .tab > .isOpen {
        margin-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    #binder > .tab > .menu.isOpen > .icon i {
        transform: rotate(0deg);
    }
    #binder > .tab > .isOpen > .name {
        width: 96px;
        font-size: 16px;
    }
    #binder > .tab > .isOpen > .name-mobile {
        width: 0;
        font-size: 0;
    }
}

#lightbox {
    transition: none;
}
#lightbox a {
    border-bottom: none;
    color: none;
    transition: none;
}
#lightbox .lb-container,
#lightbox .lb-outerContainer,
#lightbox .lb-image {
    padding: 0;
    border-radius: 0;
}
#lightbox .lb-data .lb-number {
    color: transparent;
}
