﻿@charset "UTF-8";

/*================================================
 *  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;
	color: #666;
	font-family:"メイリオ",Meiryo,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
	line-height:2;
    
    background-color: #ccc;
    background: url(../images/congruent_pentagon.png) left top repeat fixed;
}


/*================================================
 *  ヘッダー
 ================================================*/
header {
    background: url(../images/dog0147-041.jpg) left top no-repeat fixed;
    background-size: 100% auto;
    -webkit-background-size: 100% auto;
    -moz-background-size: 100% auto;
    -o-background-size: 100% auto;

    
    height: 300px;
    
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
}

h1 {
    font-size: 52px;
    -moz-transform: rotateZ(-1.5deg);
    -webkit-transform: rotateZ(-1.5deg);
    transform: rotateZ(-1.5deg);
    box-sizing: border-box;
    width: 60%;
    margin-left: 5%;
    
    text-shadow: 0.1em 0.1em 0em rgba(0,0,0,0.3);
}
h1 a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    
}

/*================================================
 *  囲い
 ================================================*/
#contents {
    width: 100%;
    max-width: 1500px;
    
    display: -webkit-flex;
    display: flex;
    
}

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


nav::-moz-scrollbar { width: 10px; }
nav::-webkit-scrollbar { width: 10px; }

nav::-moz-scrollbar-thumb { border-radius: 10px; background-color: #ffd23e; }
nav::-webkit-scrollbar-thumb { border-radius: 10px; background-color: #ffd23e; }

nav {
    width: 30%;
    min-width: 300px;
    height: 100%;
    margin-top: 50px;
}

/*
nav {
    position: fixed;
    right: 10%;
    top: 0;
    width: 25%;
    height: 100%;
    overflow-y: scroll;
    z-index: 400;
}
*/

#menu {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

#menu li {
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    border-radius: 15px;
    padding: 10px;
    margin-top: 5px;
}

#menu a {
    text-decoration: none;
    border-bottom: 2px dashed #6bafff;
/*
    -webkit-transition: color 0.25s ease;
    transition: color 0.25s ease;
*/
    
    color: #666;
}

#menu a:hover {
    border-bottom: none;
}

#menu a:visited {
    color: #ccc;
    border-bottom: 2px dashed #ffd23e;
}

#menuHoge {
    display: none;
}

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

h2 {
    font-size: 24px;
    line-height: 2.4em;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    color: #666;
    background-color: #ffd23e;
    border-radius: 10px;
}

h2::before {
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    border: 15px solid transparent;
    border-top: 20px solid #ffd23e;
    top: 100%;
    left: 30px;
}

#main {
    width: 70%;
    padding: 30px;
    margin: 0 auto;
}

.kiji {
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;    
}

#main p {
    padding: 10px 0px;
}

p a {
    color: #666;
    text-decoration: none;
    border-bottom: 2px dashed #6bafff;
}
p a:visited {
    color: #ccc;
    border-bottom: 2px dashed #ffd23e;
}

p a:hover {
    border-bottom: none;  
}

/*================================================
 *  フッター
 ================================================*/

footer {
    width: 100%;
    background-color: rgba(0,0,0, 0.6);
    color: #ccc;
    text-align: center;
}

/*================================================
 *  トップ行き
 ================================================*/
#totop {
    position: fixed;
    bottom: 2%;
    right: 5%;
    z-index: 1000;
    background-color: #6bafff;
    
    opacity: 0.8;
}
#totop:hover {
    opacity: 1.0;
}
#totop a {
    display: block;
}
#totop a img { 
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/*================================================
 *  タブレット向け
 ================================================*/
@media screen and (max-width:979px) {
    
    header {
        height: 150px;
    }
    h1 {
        font-size: 36px;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    
    #contents {
        width: 100%;
        min-width: 0;
        display: block;
    }
    #main {
        box-sizing: border-box;
        width: 100%;
    }
    
    nav {
        width: 100%;
        position: static;
        margin-top: 0px;
    }
    #menu {
        width: 90%;
        margin: 0 auto;
    }
    #menu li {
        text-align: center;
        width: 49%;
        margin-top: 15px;
    }
    #menu li:nth-child(even){
        margin-left: 10px;
    }
}

/*================================================
 *  スマートフォン向け
 ================================================*/
@media screen and (max-width:767px){
    header {
        height: 100px;
    }
    h1 {
        font-size: 22px;
    }
    h2 {
        font-size: 20px;
    }
    #main {
        padding: 10px;
    }
    .kiji {
        padding: 10px;
    }
    #menu li {
        text-align: center;
        width: 100%;
        margin-top: 15px;
    }
    
    #menu li:nth-child(even){
        margin-left: 0;
    }
}
