:root {
    --main-bg-color: white;
    --headerWidth: 10rem;
    --footerHeight: 2rem;
    --mainWidth: calc(100% - var(--headerWidth));
    --mainHeight: calc(100vh - var(--footerHeight));
    --textColor: rgba(20, 20, 20, 1.0);
    --transparentText: rgba(20, 20, 20, .6);
    --linkTextColor: var(--textColor);
    --caroucelHeight: calc(calc(var(--mainHeight) * 0.25) - 1.0rem);
}

span.dummy {
    display: none;
}

span {
    /* 自動改行（変なところで改行させない）　*/
    display: inline-block;
}


/* 	メアドスパム対策用	*/

a {
    color: var(--linkTextColor);
    /* text-decoration: none */
}

a:link {
    color: var(--linkTextColor);
    /* text-decoration: none */
}

a:visited {
    color: var(--linkTextColor);
    /* text-decoration: none */
}

a:hover {
    color: var(--linkTextColor);
    /* text-decoration: none */
}

a:active {
    color: var(--linkTextColor);
    /* text-decoration: none */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    margin: 0;
}

hr {
    margin: 0;
    -ms-filter: blur(.15rem);
    filter: blur(.15rem);
}

html {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    font-size: 18px;
}

body {
    background: linear-gradient(-60deg, rgba(255, 255, 255, 1), rgb(240, 240, 240));
    background-attachment: fixed;
    /* background-size: cover; */
    font-family: goudy-old-style, ten-mincho-text, serif;
    font-weight: 400;
    font-style: normal;
    color: var(--textColor);
}

#background {
    position: fixed;
    left: 0;
    top: 0;
    /* background-image: url("./tech.jpg"); */
    background-size: cover;
    width: 100vw;
    height: 100vh;
    opacity: 0.25;
    margin: 0;
    padding: 0;
}

header {
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var( --headerWidth);
    background-color: rgba(105, 173, 186, 0.50);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

header a {
    text-decoration: none;
}

div.headerTitle {
    font-family: goudy-old-style, serif;
    font-weight: 800;
    font-style: normal;
    font-size: 4.0rem;
    /* margin: 1.0rem; */
    margin-top: 1.0rem;
}

div.subTitle {
    font-size: 2.0rem;
    margin-top: 1.0rem;
}

div.headerMenu {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 1.2rem;
}

div.headerMenu ul {
    margin: 0;
}

div.headerMenu ul li {
    display: inline-block;
    list-style: disc;
}

div.headerMenu ul li:nth-of-type(n+2)::before {
    content: " | ";
}


/* ハンバーガーメニュー */

.nav-unshown {
    display: none;
}

#nav-close {
    display: none;
}

#nav-open {
    display: none;
}

#nav-input {
    display: none;
}


/* EO ハンバーガーメニュー */

#mainContents {
    margin: 0;
    height: 100%;
    width: 100%;
}

#contentsWrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - var(--headerWidth));
    min-height: 100vh;
    /* background-color: beige; */
    /* padding: 1rem; */
    margin-bottom: 2rem;
}

#contentsWrapper h2 {
    position: absolute;
    right: 1rem;
    bottom: 0;
    font-size: 6rem;
    font-weight: 400;
    color: var(--transparentText);
    -ms-filter: blur(.2rem);
    filter: blur(.2rem);
}

#contentsWrapper a {
    text-decoration: none;
    border-bottom: dotted 1px;
}

div.chapter {
    position: relative;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: lighten;
    min-height: 66vh;
    padding: 1rem;
}

footer {
    position: fixed;
    left: var(--headerWidth);
    bottom: 0;
    width: var(--mainWidth);
    height: var(--footerHeight);
    font-size: 0.75rem;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(243, 172, 46, 0.750);
}

@media screen and (max-width: 1200px) {
    #contentsWrapper h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 850px) {
    /* 携帯横 */
    /* ハンバーガー関連 */
    header {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 66.6vw;
        max-width: 30rem;
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        background-color: rgba(105, 173, 186, 0.90);
    }
    div.headerTitle {
        display: none;
    }
    div.subTitle {
        display: none;
    }
    div.headerMenu ul {
        padding: 0;
    }
    div.headerMenu ul li {
        display: block;
        margin: 1rem;
        padding: 0;
    }
    div.headerMenu ul li:nth-of-type(n+2)::before {
        content: "";
    }
    #nav-open {
        display: block;
        position: fixed;
        top: 0.5rem;
        left: -0.25rem;
        transform: rotate(-45deg);
        z-index: 100;
    }
    /*チェックが入ったらもろもろ表示*/
    #nav-input:checked~#nav-close {
        display: block;
        /*カバーを表示*/
        opacity: .5;
    }
    #nav-input:checked~header {
        display: block;
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
        /*中身を表示（右へスライド）*/
        box-shadow: 6px 0 25px rgba(0, 0, 0, .15);
    }
    /*閉じる用の薄黒カバー*/
    #nav-close {
        display: none;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: black;
        opacity: 0;
    }
    /* EO ハンバーガー関連 */
    #contentsWrapper {
        width: 100%;
    }
    footer {
        left: 0;
        width: 100%;
    }
    #contentsWrapper h2 {
        position: unset;
        /* right: 1rem; */
        text-align: right;
        margin-bottom: 2rem;
        font-size: 3rem;
        font-weight: 400;
        color: var(--transparentText);
        -ms-filter: blur(0rem);
        filter: blur(0rem);
    }
}

@media screen and (max-width: 480px) {
    /* 携帯縦 */
    #contentsWrapper h2 {
        position: unset;
        /* right: 1rem; */
        text-align: right;
        margin-bottom: 2rem;
        font-size: 2rem;
        font-weight: 400;
        color: var(--transparentText);
        -ms-filter: blur(0rem);
        filter: blur(0rem);
    }
}