:root{
    --color-1: #ffffff;
    --color-1-trans: #ffffff00;
    --color-2: #1873be;
    --color-2-trans: #734848cc;
    --color-2-trans-2: #73484880;
    --color-3: #cccccc;
    --color-4: #0052ce;
    --color-5: #8a1515;
    --color-5-trans: #8a1515cc;
    --color-6: #3c2b2b;
    --color-7: #b9e4f8;
    --color-7-trans: #e48b8b00;
    --color-8: #dedede99;
    --color-9: #63acff;
    --color-10: #c5c1a4;
    --color-11: #666666;
    --color-11-trans: #66666600;
    --color-12: #33333380;
    --color-13: #68c6c6;
}

html, body, div, span, iframe,  h1, h2, h3, h4, p, pre, del, em, img, b, i, dl, dt, dd, ol, ul, li, form, table, tbody, tr, th, td, article, aside, footer, header, nav, section{
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    box-sizing:border-box;
}
article, aside, footer, header, nav, section{
    display:block;
}
body{
    line-height:1;
    overflow-wrap:break-word;
    word-wrap:break-word;
}
input, textarea, select{
    font-family:inherit;
    font-size:inherit;
    color:inherit;
    vertical-align:middle;
    box-sizing:border-box;
}
a{
    margin:0;
    padding:0;
    text-decoration:none;
    outline:none;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}
a img{
    border-style:none;
}
ul, li{
    list-style-type:none;
}
hr{
    border:0;
    display:block;
    margin:1em 0;
    padding:0;
    height:1px;
}
.cf:before, .cf:after{
    content:" ";
    display:table;
}
.cf:after{
    clear:both;
}

/* ==========
background, text, link 
========== */

html{
    font-size:62.5%;
    height:100%
}
body{
    background:var(--color-);
    color:var(--color-2);
    font-size:1.3em;
    font-family:'Segoe UI','游ゴシック Medium','Yu Gothic Medium','游ゴシック体','YuGothic','Hiragino Kaku Gothic ProN','メイリオ','Meiryo', sans-serif;
    letter-spacing:.1em;
    line-height:1.5;
    text-align:center;
    height:100%;
}

/* link */
a{
    color:inherit;
}
#rightcolumn a{
    border-bottom:1px solid var(--color-3);
    color:var(--color-4);
    display:inline-block;
    margin:3px 3px 3px 0;
    transition:.6s;
}
#rightcolumn a:hover{
    background:var(--color-5-trans);
    border-radius:5px;
    color:var(--color-1);
}
#rightcolumn a.bg-none, a.bg-none{
    border-bottom:0;
}
#rightcolumn .line > a{
    border-bottom:0;
    margin:0;
}
#rightcolumn a.bg-none:hover, a.bg-none:hover{
    background:none;
    color:inherit;
}

/* ==========
basic
========== */

header, #rightcolumn-wrap, #leftcolumn, #index{
    background:var(--color-5);
}
#wrapper{
    background:var(--color-1);
    color:var(--color-1);
    position:relative;
    text-align:left;
    text-shadow:5px 5px 1px var(--color-6);
    min-height:100%;
}
#header-inner{
    padding:20px;
    text-align:right;
}
#rightcolumn-wrap{
    float:right;
    margin-left:-250px;
    width:100%;
}
#rightcolumn{
    background:var(--color-1);
    color:var(--color-2);
    border-radius:10px 0 0 0;
    margin-left:250px;
    padding:20px 20px 20px 35px;
    position:relative;
    text-shadow:none;
}
#leftcolumn-wrap{
    background:var(--color-1);
    float:left;
    width:250px;
}
#leftcolumn{
    border-radius:0 0 10px 0;
    padding:20px 20px 20px 35px;
}
footer{
    text-align:center;
    text-shadow:none;
}
#footer-inner{
    padding:10px 20px;
}

/* ==========
menu 
========== */

#menu{
    display:block;
    margin:0 auto;
}
nav li a, nav li span{
    color:var(--color-1);
    display:block;
    font-size:1.3em;
    font-weight:700;
    padding:5px 0;
    position:relative;
}
nav li a:first-letter, nav li span:first-letter{
    color:var(--color-7);
}
nav li a:hover, nav li span:hover{
    background:var(--color-8);
    border-radius:5px;
    transition:.6s;
}
.sub-menu{
    display:none;
    margin:0;
    overflow:hidden;
}
.sub-menu li{
    text-indent:1em;
}
.sub-menuli a:first-letter{
    color:inherit;
}

/* menu arrow */
nav li span:after{
    border-top:3px solid var(--color-1);
    border-right:3px solid var(--color-1);
    content:"";
    display:block;
    margin-top:-5px;
    position:absolute;
    height:5px;
    width:5px;
    top:50%;
    right:10px;
    -ms-transform:rotate(45deg);
    -webkit-transform:rotate(45deg);
    transform:rotate(45deg);
    transition:.5s;
}
nav li span.open:after{
    -ms-transform:rotate(135deg);
    -webkit-transform:rotate(135deg);
    transform:rotate(135deg);
}

/* hide button on open menu */
#open{
    display:none;
}

/* ==========
link to page top
========== */

#pagetop{
    background:var(--color-2-trans);
    border-radius:30px;
    box-sizing:border-box;
    color:var(--color-1);
    display:block;
    font-size:13px;
    letter-spacing:normal;
    line-height:20px;
    padding-top:12px;
    position:fixed;
    text-align:center;
    height:40px;
    width:40px;
    bottom:-80px;
    z-index:10;
}
#pagetop:before{
    content:"";
    display:block;
    border-left:2px solid var(--color-1);
    border-top:2px solid var(--color-1);
    position:absolute;
    top:10px;
    left:16px;
    height:6px;
    width:6px;
    -ms-transform:rotate(45deg);
    -webkit-transform:rotate(45deg);
    transform:rotate(45deg);
}
#pagetop:hover{
    background:var(--color-2-trans-2);
}
#fl a{
    background:var(--color-2);
    border-radius:5px;
    color:var(--color-1);
    display:inline-block;
    padding:5px;
}

/* ==========
index
========== */

#index{
    margin:0 auto;
    height:auto;
}
.indexbox{
    background:var(--color-1);
    border-radius:10px;
    margin:20px auto;
    padding:20px;
    text-align:left;
    max-width:580px;
}

/* ==========
heading, frame, line
========== */

h1{
    font-size:2em;
    margin:0 0 10px;
}
h1:first-letter{
    color:var(--color-4);
}
h2{
    border-bottom:2px solid var(--color-9);
    font-size:1.4em;
    letter-spacing:.2em;
    margin:10px 0 10px -10px;
    padding:.2em 0;
    position:relative;
    text-shadow:5px 5px 1px var(--color-3);
}
h2:first-letter{
    color:var(--color-9);
    font-size:1.6em;
}
h2::after{
    background-color:var(--color-2);
    position:absolute;
    bottom:-2px;
    left:0;
    content:'';
    height:2px;
    width:20%;
    z-index:2;
}
#leftcolumn h2{
    font-size:1.1em;
    text-shadow:5px 5px 1px var(--color-6);
}
#leftcolumn h2:first-letter{
    font-size:1.4em;
}
h3{
    font-size:1.1em;
    margin:10px 0;
}
h3 span{
    background:var(--color-10);
    border-radius:3px;
    color:var(--color-1);
    display:inline-block;
    padding:0 15px;
}
h2 + h3{
    margin-top:0;
}
#leftcolumn > h2:first-child, #rightcolumn h2:first-child{
    margin-top:5px;
}
dt{
    clear:both;
    font-weight:700;
    float:left;
    margin:0 0 5px;
    padding:0 5px;
    width:12em;
}
dd{
    border-bottom:dotted 1px;
    margin:0 0 5px 14em;
}
em{
    font-style:normal;
    font-weight:700;
}
input, textarea{
    background:var(--color-1);
    border:1px solid var(--color-2);
    color:var(--color-2);
    margin:3px 0;
    width:200px;
}
textarea{
    height:50px;
}
hr{
    border-top:1px solid var(--color-3);
}
.marker{
    background:var(--color-7);
    background:-webkit-linear-gradient(var(--color-7-trans) 80%, var(--color-7) 0%);
    background:linear-gradient(var(--color-7-trans) 80%, var(--color-7) 0%);
}
.dcline{
    border-left:5px solid;
    margin:8px 0;
    padding:3px 3px 3px 10px;
}
.textbox{
    border:1px dashed;
    border-radius:5px;
    margin:10px 0;
    padding:3px;
    text-align:center;
}
.title{
    color:var(--color-5);
    font-size:1.5em;
    font-weight:700;
    margin:2em 0;
    text-shadow:5px 5px 1px var(--color-3);
}

/* right alignment */
.r-justified{
    text-align:right;
}
.r-justified p{
    display:inline-block;
    text-align:left;
}
.inline{
    display:inline-block;
}

/* line below text */
.line{
    padding-bottom:0.1em;
    background-color:var(--color-1);
    background-image:-webkit-linear-gradient(left, var(--color-1) 1.1px, var(--color-1-trans) 1px),-webkit-linear-gradient(top, var(--color-11) 1.1px, var(--color-11-trans) 1px);
    background-image:linear-gradient(left, var(--color-1) 1.1px, var(--color-1-trans) 1px),linear-gradient(top, var(--color-11) 1.1px, var(--color-11-trans) 1px);
    background-size:2px 2.6rem;
    line-height:2;
}

/* ==========
my own stuff
========== */
.logo{
    width:160px;
}

/* images */
.row{
    display:flex;
}
.column{
    flex:33.33%;
    padding:5px;
}

/* tooltip */
.tooltip{
    position:relative;
    display:inline-block;
}
.tooltip .tooltiptext{
    visibility:hidden;
    width:120px;
    background-color:var(--color-11);
    color:var(--color-1);
    text-align:center;
    border-radius:6px;
    padding:5px 0;
    position:absolute;
    z-index:1;
    bottom:125%;
    left:50%;
    margin-left:-60px;
    opacity:0;
    transition:opacity 0.3s;
}
.tooltip .tooltiptext::after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    margin-left:-5px;
    border-width:5px;
    border-style:solid;
    border-color:var(--color-11) transparent transparent transparent;
}
.tooltip:hover .tooltiptext{
    visibility:visible;
    opacity:1;
    padding:10px;
}

/* ==========
screens at 800px width
========== */

@media screen and (max-width:800px){
    dt{
        float:none;
        clear:none;
    }
    dd{
        margin-lefT:20px;
    }
    input, textarea{
        width:100%;
    }
    img{
        max-width:100%;
        height:auto;
    }
}

/* ==========
for phones and tablets
screens at 600px width
========== */

@media screen and (max-width:600px){
    body{
        background:var(--color-5);
        font-size:1.5em;
        padding:15px;
    }
    #wrapper{
        background:none;
        margin-bottom:50px;
    }
    #header-inner{
        padding:0 0 20px;
        text-align:left;
        margin-right:70px;
        min-height:70px;
    }
    #rightcolumn{
        border-radius:10px;
        padding:20px;
    }
    #leftcolumn{
        padding:0 20px;
    }
    h1:not(.index){
        font-size:1.2em;
    }
    h2{
        margin:20px -5px;
    }
    #leftcolumn h2{
        border-left:0;
        border-right:0;
        font-size:1.3em;
        margin:20px -15px;
    }

    /* line below text */
    .line{
        background-size:2px 3rem;
        line-height:2;
    }
    #wrapper{
        height:auto;
        width:auto;
    }
    #rightcolumn-wrap{
        float:none;
        margin-left:0;
    }
    #rightcolumn{
        margin-left:0;
    }
    #leftcolumn{
        border-radius:0;
        float:none;
    }

    /* ==========
    menu for phones and tablets
    ========== */

    /* slide */
    #leftcolumn-wrap{
        background:var(--color-5);
        line-height:2;
        margin:0;
        padding:80px 0 20px;
        position:fixed;
        height:100%;
        width:280px;
        top:0;
        right:0;
        -ms-transform:translate(280px);
        -webkit-transform:translate(280px);
        transform:translate(280px);
        transition:.3s;
        z-index:1000;
    }
    #side-bg{
        background:var(--color-12);
    }

    /* menu */
    #menu{
        background:var(--color-9);
        margin:0 -20px;
        text-shadow:none;
    }
    nav li{
        border-bottom:1px solid var(--color-3);
    }
    nav ul li ul li:last-child{
        border:0;
    }
    nav li a, nav li span{
        font-size:1.3em;
        padding:5px 10px;
    }
    nav li a:hover, nav li span:hover{
        border-radius:0;
    }
    nav li a:first-letter, nav li span:first-letter{
        color:inherit;
    }
    .sub-menu li a{
        background:var(--color-1);
        color:var(--color-2);
    }

    /* hide button on open menu */
    #open{
        background:var(--color-13);
        border:1px dashed var(--color-1);
        border-radius:3px;
        box-shadow:0 0 0 5px var(--color-13), 5px 5px 8px var(--color-6);
        color:var(--color-1);
        display:inline-block;
        position:absolute;
        text-align:center;
        height:46px;
        width:46px;
        right:10px;
        text-shadow:none;
        z-index:1001;
    }
    #open-icon, #open-icon:before, #open-icon:after{
        background:var(--color-1);
    }

    #leftcolumn{
        height:100%;
        overflow:auto;
        -webkit-overflow-scrolling:touch;
    }
    #leftcolumn-wrap.open{
        -ms-transform:translate(0);
        -webkit-transform:translate(0);
        transform:translate(0);
    }
    #side-bg{
        display:none;
        position:fixed;
        height:100%;
        width:100%;
        top:0;
        left:0;
        z-index:999;
        cursor:pointer;
    }
    #open.buttonclose{
        position:fixed;
        top:15px;
        right:25px;
    }
    .open-text{
        font-size:12px;
        position:absolute;
        bottom:0;
        left:0;
        width:100%;
    }
    #open-icon{
        display:block;
        margin:-1px 0 0 -10px;
        position:absolute;
        top:15px;
        left:50%;
        height:2px;
        width:20px;
    }
    #open-icon:before, #open-icon:after{
        content:"";
        display:block;
        position:absolute;
        top:50%;
        left:0;
        height:2px;
        width:20px;
        transition:.3s;
    }
    #open-icon:before{
        margin-top:-7px;
    }
    #open-icon:after{
        margin-top:5px;
    }
    #open .close{
        background:transparent;
    }
    #open .close:before, #open .close:after{
        margin-top:0;
    }
    #open .close:before{
        -ms-transform:rotate(-45deg);
        -webkit-transform:rotate(-45deg);
        transform:rotate(-45deg);
    }
    #open .close:after{
        -ms-transform:rotate(-135deg);
        -webkit-transform:rotate(-135deg);
        transform:rotate(-135deg);
    }
}