@charset "UTF-8";
@import url(http://fonts.googleapis.com/earlyaccess/notosansjapanese.css);
/*    font-family: 'Noto Sans Japanese', sans-serif;*/
/*================================================
 *  CSSリセット
 ================================================*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;font-weight:normal;}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}

/*================================================
 *  一般・共通設定
 ================================================*/
body {
	font-size:20px;
    background-color: #fff;
	color: #666;
	font-family:"メイリオ",Meiryo,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
	line-height:2em;

    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    
    box-sizing: border-box;
}


a {
    text-decoration: none;
    color: #a58c00;
}
a:visited {
    color: #666;
}
a:hover {
    color: #ccc;
}


/*================================================
 *  どうでもいい枠線
 ================================================*/
.bd {
    position: fixed;
    background-color: #a58c00;
    z-index: 1000;
}
#T,#B {
    height: 2px;
    width: auto;
    left: 15px;
    right: 15px;
}
#T {
    top: 15px;
}
#B{
    bottom: 15px;
}
#L,#R {
    width: 2px;
    height: auto;
    top: 15px;
    bottom: 15px;
}
#L {
    left: 15px;
}
#R {
    right: 15px;
}


/*================================================
 *  ヘッダー
 ================================================*/
header {
    box-sizing: border-box;
    width: 100%;
    height: 500px;
    background-color: #ccc;
    background: url("../images/bg.jpg") no-repeat fixed;
    -webkit-background-size: cover;
    background-size: cover;
    
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}


h1 {
    position: relative;
    width: 70%;
    padding: 30px 50px;
    text-align: center;
    font-size: 36px;
    color: #fff;
    line-height: 2em;
    border: 1px solid #000;
}

.fa {
    margin: 0 15px;
    font-size: 16px;
    color: #a58c00;
}
/*================================================
 *  ナビゲーション
 ================================================*/
nav {
    box-sizing: border-box;
    width: 30%;
    padding: 0 0 15px 0;
    background-color: #000;
}


/*================================================
 *  メニュー
 ================================================*/

#menu {
    width: 100%;
}

#menu li {
    border-bottom: 1px solid #2a2a2a;
}

#menu li a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 30px;
    background-color: #000;
    
    transition: all 0.5s ease;
    position: relative;
}

#menu li a:hover {
    background-color: #fff;
    padding: 20px 30px;
}


/*================================================
 *  囲い
 ================================================*/
#contents {
    box-sizing: border-box;
    width: 70%;
    padding: 50px;
}


/*================================================
 *  メイン本文
 ================================================*/
.main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    
    margin-top: 50px;
}


.kiji {
    margin-top: 100px;
    max-width: 960px;
}

h2 {
    box-sizing: border-box;
    width: 90%;
    padding: 30px 15px;
    color: #000;
    font-size: 24px;
    line-height: 2em;
    text-align: center;
    border-top: 1px solid #a58c00; 
    border-bottom: 1px double #a58c00; 
    
    position: relative;
}
h2::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    top: 95%;
    left: 0;
    background-color: #a58c00;
}

h3 {
    margin-top: 30px;
    color: #fff;
    padding-left: 1em;
    background-color: #a58c00;
}

h4 {
    margin-top: 30px;
    color: #a58c00;
    font-weight: bold;
}

p {
    margin-top: 30px;
}
p:not(.equation) {
    text-indent: 1em;
}

p a {
    border-bottom: 1px solid #ccc;
}


.kiji > ul,
.kiji > ol {
    margin: 0 auto;
    margin-top: 30px;
    padding-left: 1.5em;
    list-style-type: none;
}
.kiji > ol{
    counter-reset: o_list;
}
.kiji > ul > li,
.kiji > ol > li{
    position: relative;
    padding-left: 1.5em;
}
.kiji > ul > li::before,
.kiji > ol > li::before{
    position: absolute;
    content: "";
    top: 0.5em;
    left: 0;
}
.kiji > ul > li::before {
    width: 1em;
    height: 1em;
    background-color: #a58c00;
    border-radius: 50%;
}
.kiji > ol > li::before{
    content: counter(o_list) ".";
    counter-increment: o_list;
    color: #a58c00;
    line-height: 1em;
}

.kiji > table {
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 30px;
    max-width: 100%;
}
.kiji > table tr {
    border-bottom: 1px solid #a58c00;
    border-top: 1px solid #a58c00;
}
.kiji > table td,
.kiji > table th {
    padding: 0.5em;
}
.kiji > table th {
    position: relative;
    text-align: left;
    padding-right: 1.5em;
}
.kiji > table td {
    text-align: center;
}
.kiji > table th::before {
    position: absolute;
    content: "";
    top: 20%;
    right: 0;
    height: 60%;
    width: 1px;
    background-color: #a58c00;
}
.equation {
    text-align: center;
    font-style: oblique;
}


/*================================================
 *  フッター
 ================================================*/
footer {
    box-sizing: border-box;
    width: 100%;
    padding: 100px 15px;
    background: url(../images/crissXcross.png);
    background-color: #000;
}

.copyright {
    width: 100%;
    text-align: center;
}

/*================================================
 *  トップ行き
 ================================================*/

#totop {
    position: fixed;
    bottom: 5%;
    right: 2%;
    z-index: 1000;
}

#totop i {
    display: block;
    color: #fff;
    background-color: #000;
    padding: 10px;
    border-radius: 50%;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#totop i:hover {
    color: #a58c00;
    background-color: #ccc;
}

/*================================================
 *  タブレット向け
 ================================================*/
@media screen and (max-width:979px) {
    header {
        height: 400px;

    }


    h1 {
        width: 60%;
        font-size: 28px;
        padding: 30px;
    }

    
    nav {
        width: 100%;
        order: 1;
    }
    
    #contents {
        width: 100%;
    }
    
    
    .main {
        margin-top: 20px;
    }


    .kiji {
        width: 100%;
        margin-top: 50px;
        max-width: 960px;
    }

    h2 {
        width: 90%;
        padding: 30px 15px;
        color: #000;
        font-size: 20px;
    }

    
    footer {
        order: 2;
    }

}
/*================================================
 *  スマートフォン向け
 ================================================*/
@media screen and (max-width:767px){
    .bd {
        display: none;
    }

    header {
        height: 60vw;
/*背景画像のサイズによって柔軟に対応してほしい*/
        overflow: hidden;
        -webkit-background-size: 100% auto;
        background-size: 100% auto;
    }
    h1 {
        width: 80%;
        font-size: 20px;
        padding: 50px 30px;
        border: none;
    }

    #menu li a {
        padding: 5px;
    }
    #menu li a:hover {
        padding: 5px;
    }
    
    
    #contents {
        padding: 5px;
    }
    .kiji {
        margin-top: 20px;
    }
    h2 {
        width: 100%;
        padding: 15px;
        font-size: 20px;
    }
    p {
        margin-top: 10px;
    }

}