@charset "UTF-8";
@import url(http://fonts.googleapis.com/earlyaccess/notosansjapanese.css);
/*================================================
 *  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;
    
}


/*================================================
 *  ヘッダー
 ================================================*/

header {
    background: url(../images/photo01.jpg);
    -webkit-background-size: cover;
    background-size: cover;
    height: 400px;
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    
    position: relative;
    z-index: 1;
}
header::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: #000c9f;
    opacity: 0.4;
    z-index: -1;
}

h1, #summary {
    font-family: 'Noto Sans Japanese', sans-serif;
    font-weight: 100;
    color: #fff;
    line-height: 2em;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 36px;
}

#summary {
    margin-top: 30px;
}

/*================================================
 *  ナビゲーション
 ================================================*/

nav {
    width: 400px;
    background-color: #000;
}


#menu li {
    float: left;
    width: 50%;
    height: 200px;
}

#menu li a {
    background-color: #681a72;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5%;
    height: 100%;
}
#menu li:nth-child(4n + 2) a, #menu li:nth-child(4n + 3) a{
    background-color: #1a2472;
}

#menu li a:hover {
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #f8f8f8;
}

a {
    background-color: #1a2472;
    padding: 0 5px;
}

a:visited {
    color: #908f8f;
}

a:hover {
    color: #908f8f;
    background-color: #681a72;
}

/*================================================
 *  囲い
 ================================================*/

#container {
    box-sizing: border-box;
    width: 100%;
    display: -webkit-flex;
    display: flex;

}

#contents {
    flex: 1;
    padding: 30px;
}


/*================================================
 *  メイン本文
 ================================================*/

.main {
    max-width: 960px;
    margin: 100px auto 0;
}

h2 {
    font-family: 'Noto Sans Japanese', sans-serif;
    text-align: center;
    font-size: 24px;
    line-height: 2em;
    position: relative;
}
/*だいたい真ん中にどうでもいい逆三角形を配置*/
h2::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    bottom: -80px;
    left: 48%;
    border: 30px solid transparent;
    border-top: 30px solid #1a2472;
}

.kiji {
    width: 90%;
    margin: 0 auto;
    margin-top: 100px;
}

p {
    margin-top: 15px;
}


/*================================================
 *  フッター
 ================================================*/
/*テキストは上下左右紂王*/
footer {
    width: 100%;
    height: 200px;
    background-color: #000000;
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    
    position: relative;
}

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

#totop {
    position: fixed;
    bottom: 0%;
    right: 5%;
}

#totop.on {
    position: absolute;
    bottom: 100%;
}

#totop a, img{
    display: block;
    position: relative;
    background-color: #000;
}
#totop a:hover {
    background-color: #000;
}

#totop a::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    border: 30px solid transparent;
    border-bottom: 30px solid #000;
}

/*================================================
 *  タブレット向け
 ================================================*/
@media screen and (max-width:979px) {
    nav {
        width: 300px;
    }
/*    メニューは一段*/
    #menu li {
        clear: both;
        width: 100%;
        height: auto;
    }
    
    
    #menu li:nth-child(odd) a{
        background-color: #681a72;
    }
    #menu li:nth-child(even) a{
        background-color: #1a2472;
    }
    
    header {
        height: 300px;
    }

    h1 {
        font-size: 30px;
    }
    
    
    #contents {
        padding: 15px;
    }

    .main {
        margin-top: 50px;
    }

    h2 {
        font-size: 20px;
    }
    h2::before {
        bottom: -70px;
        left: 46%;
    }

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

/*================================================
 *  スマートフォン向け
 ================================================*/
@media screen and (max-width:767px){
/*    1カラムにする*/
    #container {
        -webkit-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }
    nav {
        width: 100%;
    }
    #menu li a {
        padding: 2%;
    }
    
    header {
        height: 200px;
    }
    h1 {
        font-size: 20px;
        font-weight: 200;
    }
    #summary {
        display: none;
    }
    
    #contents {
        padding: 10px;
    }
    
    h2 {
        font-size: 20px;
    }
    h2::before {
        bottom: -70px;
        left: 46%;
    }
}