/**
* margin,paddingの共通処理
*/
body,header,footer,h1,h2,h3,h4,h5,h6,ul,a,p{
    margin: 0;
    padding: 0;
}

/**
* リスト装飾非表示
*/
ul{
    list-style: none;
}

/**
* リンク下線非表示
*/
a,a:hover{
    text-decoration: none;
}

/*
* スクロールバー無効
*/
body{
    overflow-y: scroll;
    scrollbar-width: none;
}

body::-webkit-scrollbar{
    display:none;
}

/**
* Body
*/

body{
    background: #f6f6f6;
    min-height: 100vh;
    width: 100vw;
}

/**
* Body Particles
*/
#background-particles{
    position: absolute;
    left: 0;
    top: 80px;
    width: calc(100vw - 50px);
    min-height: calc(100vh - 80px);

    z-index: 1;
}

/**
* Body Main Content
*/

#main-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    
    font-size: 18px;

    padding: 30px 0;
}

#main-content, #main-content *{
    z-index: 5000;
}

/**
* Main Content Wrapper
*/

.content-wrapper{
    display: flex;
    flex-direction: row;
    margin: 20px 0;

    border: 1px solid #e0e0e0;
    border-left: none;
}

.content-wrapper h2{
    width: 18px;

    font-weight: 300;
    font-size: 0.8em;
    color: #f5f5f5;
    
    writing-mode: vertical-lr;
    text-orientation: mixed;

    background: #424242;

    padding: 10px 0px;
}

.content-wrapper h2 a{
    color: #f5f5f5;
}

.content-wrapper > div{
    width: calc(100vw - 50px - 100px);
    max-width: 1000px;
    background: #f6f6f6;
}

.content-wrapper * figure{
	padding: 5px;
	text-align: center;
}

.content-wrapper * figure img{
	border: 2px solid #e0e0e0;
}


/**
* Header
*/

header{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;

    position: sticky;
    top: 0;
    left: 0;

    height: 80px;
    padding: 0 300px;
    
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f6f6f6;

    z-index: 9000;
}

/**
* Header Page Logo
*/

header #logo{
    display: flex;
    align-items: center;
    
    padding: 0 10px;
}

#logo h1{
    color: #212121;
    font-weight: 900;
    font-size: 1.5em;
}

#logo h1 a{
    color: #212121;
}

/**
* Header Page Links
*/

#header-links, #header-links *{
    display: flex;
}

#header-links ul li{
    align-items: center;
}

#header-links ul li a{
    color: #424242;
    font-weight: 800;
    font-size: 1.0em;

    padding: 0 10px;
}

/**
* Background particles
*/

.background-particles-wrap {
	width: 100%;
	height: 100%;
	position: absolute;
}


/**
* Footer
*/

footer{
    display: flex;
    justify-content: center;
    padding: 20px 0;

    background: #f6f6f6;
    z-index: 8800;
}

/**
* Footer Copyright
*/

footer .copyright{
    font-weight: 400;
    font-size: 13px;
}

/**
* Media Link Area
*/

#media-links{
    position: fixed;
    right: 0;
    top:80px;
    height: calc(100vh - 80px);
    width: 50px;

    border-left: 1px solid #e0e0e0;
    background: #f6f6f6;

    z-index: 8500;
}

#media-links ul{
    margin: auto 0;
}

#media-links ul li{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    height: 50px;
}

#media-links ul li::before{
    content: '';
    width: 35px;
    border-bottom: 1px solid #e0e0e0;
}

#media-links ul li:first-of-type::before{
    content: '';
    border-bottom: none;
}

#media-links * svg{
    color: #424242;
    font-size: 25px;
}

/**
* Error Message
*/

.error_message{
    margin: 60px;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
}

/**
* Tablet Responsive Styles
*/
@media screen and (max-width: 1200px){
    header{
        padding: 0 100px;
    }
}

/**
* Smartphone Responsive Styles
*/

@media screen and (max-width: 480px){
    .content-wrapper{
        display: flex;
        flex-direction: column;
    }

    .content-wrapper h2{
        height: 18px;
        width: calc(100% - 20px);

        writing-mode: horizontal-tb;

        padding: 0px 10px;
    }

    header{
        justify-content: center;
        padding: 0 10px;
    }

    #background-particles{
        width: 100vw;
    }

    .content-wrapper:first-of-type{
        margin: 40px 0;
        margin-bottom: 0;
    }

    .content-wrapper{
        margin: 20px 0;

        border: 1px solid #e0e0e0;
        border-left: none;
        border-right: none;
    }
    .content-wrapper > div {
        width: calc(100vw - 18px);
        max-width: none;
    }

    #media-links{
        right: 0;
        top:80px;
        height: 50px;
        width: 100vw;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;

        z-index: 8500;
    }

    #media-links ul {
        display: flex;
        justify-content: center;
    }

    #media-links ul li {
        width: 50px;
    }
    
    #media-links ul li::before{
        content: none;
    }
    #media-links ul li:first-of-type::before{
        content: none;
    }


    #background-particles{
        width: 100vw;
    }
}