@charset "utf-8";

/*----------------------------------
　リセット
----------------------------------*/
*{
	box-sizing:border-box;
	margin:0;
	padding:0;
	font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-weight:400;
	color:#111;
	line-height:1.8;
	letter-spacing:1.5px;
}
body{
	zoom: 0.8;
	-moz-transform: scale(0.8);
	padding-top:55px; /* headerの高さ分の余白 */
}
img{
	vertical-align:bottom; /* 画像のディセンダ削除 */
	max-width:100%; /* フルードイメージ対応 */
}
ul,li{
	list-style-type:none;
}
#contents{
	width:90%;
	margin:0 auto;
}
p,li.td{
	text-align:justify;
	text-justify:distribute;
}
.clear{
	height:0;
	clear:both;
}

/*----------------------------------
　トップページ
----------------------------------*/
#top{
	padding-top:20px;
}
#top header{
	padding:0 0 40px 0;
}
#top header h1{
	text-align:center;
}
#top header h1 img{
	max-width:500px;
}


#top #contents {
	margin-bottom:80px;
}
#top #contents ul li{
	margin-bottom:40px;
	position:relative;
	z-index:1;
	overflow:visible;
}
#top #contents li a{
	border-radius:50px;
	display:block;
	width:calc(100% - 5px);
	text-decoration:none;
	text-align:center;
	font-size:25px;
	font-weight:900;
	border:3px solid #111;
	padding:9px 20px;
	background-color:#F6F6F6;
	box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px;
}
#top #contents li:hover a,
#top #contents li:active a{
	background-color:#FFC;
}
#top #contents li:active a {
  box-shadow: 0px 0px 0px 0px;
  margin-top: 4px;
  margin-left: 5px;
  margin-bottom: 0px;
}
#top #contents li:first-child:active a {
  box-shadow: 0px 0px 0px 0px;
  margin-top: 4px;
  margin-left: 5px;
  margin-bottom: -4px;
}
#top #contents li:first-child:active div {
	top:-224px;
}
#top #contents a span{
	font-size:60%;
	margin-left:20px;
	position:relative;
	top:-3px;
}
#top #contents a br{
	display:none;
}

/*----------------------------------
　サブページ
----------------------------------*/
.sub header{
	width:100%;
	height:55px;
	padding:3px 0 2px;
	position:fixed;
	top:0;
	z-index:999;
	background-color:#fff;
}
.sub header h1{
	text-align:center;
	line-height:50px;
}
.sub header h1 a{
	line-height:50px;
}
.sub header h1 img{
	max-height:50px;
}
.sub header h1 a img{
	transition:0.5s;
}
.sub header h1 a:hover img{
	opacity:0.5;
}

.sub #contents{
	padding-top:40px;
	margin-bottom:40px;
}
.sub #contents h2{
    color: #6d5353;/*文字色*/
    font-size: 25px;/*文字サイズ*/
	font-weight:bold;
    display: block;
    border: 4px solid #111;/*吹き出し線（太さ 破線 色）*/
    position: relative;
    padding: 0.4em 1.5em 0.3em;/*文字回りの余白（上下左右）*/
    border-radius: 30px;/*吹き出し角丸サイズ（四隅）*/
    display: block;
	margin-bottom:50px;
}
.sub #contents h2:before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 20%;/*吹き出しの矢印部の左右位置*/
    transform: translateX(-50%) rotate(-45deg);
    width: 10px;
    height: 10px;
    border: 4px solid #111;/*吹き出しの矢印部の線（太さ 破線 色）*/
    border-top: none;
    border-right: none;
    background-color: #eee;/*吹き出しの矢印部の内側背景*/
}
.sub #contents h2:after {
    content: '';
    background: #eee;/*背景色*/
    left: 4px;/*背景左右ずれ*/
    top: 7px;/*背景上下ずれ*/
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    border-radius: 30px;/*背景角丸サイズ（四隅）*/
}
.sub #contents #links{
	display:flex;
	flex-wrap:wrap;
}
.sub #contents #links figure{
	width:30%;
	margin-right:5%;
	margin-bottom:40px;
	border:5px solid #111;
	border-radius:20px;
}
.sub #contents #links figure:nth-of-type(3n){
	margin-right:0;
}
.sub #contents #links figure a{
	text-decoration:none;
}
.sub #contents #links figure a img{
	width:100%;
	border-radius:16px 16px 0 0;
	transition:0.5s;
}
.sub #contents #links figure a:hover img{
	opacity:0.5;
}
.sub #contents #links figure figcaption h3{
	font-weight:bold;
	text-align:center;
	line-height:1.3;
	padding:0.5em 5px 0.2em;
	color:#888;
}




/*----------------------------------
　フッター
----------------------------------*/
footer{
	padding:2em 1em;
	border-top:4px dashed #111;
}
footer p{
	text-align:center;
}
footer > div {
	padding:0 0 1.5em 0;
}
footer > div > ul {
	list-style:none;
	padding-left:0;
	display:flex;
	justify-content:center;
}
footer > div > ul > li{
	position:relative;
}
footer > div > ul > li > a{
	position:relative;
	display:block;
	padding:10px 10px;
	font-size:15px;
	line-height:1.2;
}
