﻿.wrapper{
	max-width: 1280px;
	margin: 0 auto;
}

/* header */

header{
	display: black;
	width:60%;
	margin-left: 20%;
	overflow: hidden;
}

header h1{
	font-size:150%;
	background: #313131;
	color:white;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-top: 20px;
	margin-bottom: 20px;
	padding-left: 10px;
	padding-right: 10px;
	border:1px solid #313131;
	border-radius: 5px;
	letter-spacing: 3px;
	font-weight:700;
	text-align:center;
}

/* branding */

#branding{
	width:80%;
	margin-left: 10%;
	background-color: #306;
	background-image: url("../images/sample.jpg"); /* 写真を背景に */
	background-size: 1024px 512px contain; /* 写真の大きさ指定 */
	overflow: hidden;
}

#branding p{
	font-size:140%;
	color:yellow;
	letter-spacing: 0.15em;
	font-weight: 400;
	line-height: 150px; /* brandingのheightはここで決定 */
	padding-left: 5%;
	padding-bottom: 15%; /* brandingのheightはここで決定 */
}


/* Navigation */

nav{
	width: 100%; /* ナビ全体の幅 */
	border-top: solid 1px royalblue; /* ナビ上側の線 */
	border-bottom: solid 1px royalblue; /* ナビ下側の線 */
	margin-bottom: 5px;
	overflow: hidden;
}

nav ul{
	width: 90%; /* 各ナビの幅 */
	margin-left: 5%; /* ナビ左側のマージン */
}

nav li{
	width: calc(20% - 2px); /* 各ナビから削るべき幅指定(borderにより1pxずつ縮小) */
	font-size: 110%; /* フォントサイズ */
	letter-spacing: 3px; /* 文字間隔 */
	font-weight: bold; /* フォント太さ */
	line-height: 45px; /* ナビの高さ */
	border-left: solid 1px royalblue;  /* 各ナビの左側に線を引く */
	color: #313131; /* 文字色変更 */
	cursor: pointer; /* ナビにカーソルが当たった場合のアイコン指定 */
	text-align: center; /* 各ナビのテキストの位置 */
	float: left;　/* 並び順 */
}

nav a{
	text-decoration: none;
	color: blue;
}

nav li:last-child{
	border-right: solid 1px royalblue; /* 右端ナビの右側に線を引く */
}

nav li:hover{
	background-color: gold; /* ナビにカーソルが当たった場合の背景色 */
	transition: background-color 0.5s ease-out; /* カーソルが当たった場合の反応 */
	color: #fff;
}

.main{
	width: 100%;
	margin: 5px auto;
	overflow: hidden;
}


.left {

	box-sizing: border-box;
	width: calc(40% - 5px);
	border: solid green 1px;
	border-radius: 5px;
	margin-left: 10%;
	margin-top: 5px;
	margin-right: 5px;
	margin-bottom: 1%;
	padding: 5px;
	overflow: hidden;
	float:left;
}

article{

	box-sizing: border-box;
	width: 100%;
	padding-left: 2%;
	padding-top: 1%;
	padding-right: 1%;
	padding-bottom: 2%;
	overflow: hidden;
	float: left;
}

.right {

	box-sizing: border-box;
	width: 40%;
	border: solid green 1px;
	border-radius: 5px;
	margin-left: 10px;
	margin-top: 5px;
	margin-right: 10%;
	margin-bottom: 1%;
	padding: 5px;
	overflow: hidden;
}




ul{
	padding-left:20px;
	padding-right:5px;
	padding:bottom:10px;
	line-height: 20px;
}

p {
	font-size: 100%;
	color: black;
	letter-spacing: 2px;
	line-height: 100%;
	float: left;
}

p5 {
	width: 80%;
	margin-left:10%;
	font-size: 125%;
	color: black;
	letter-spacing: 2px;
	line-height: 105%;
	float: left;
	text-align: center;
}



.btn{
	width:17%;
	color: white;    /*文字色の変更*/
	border: 1px blue;   /*線を描く（ホバー時のずれを防ぐため）*/
	background-color: blue;   /*背景色の指定*/
	padding-top: 10px;  /*文字上部の余白を指定*/
	padding-bottom: 10px;   /*文字下部の余白を指定*/
	padding-right: 30px;    /*文字右側の余白を指定*/
	padding-left: 30px; /*文字左側の余白を指定*/
	border-radius: 5px; /*線の角を丸くする*/
	letter-spacing: 5px;    /*文字と文字の間隔をあける*/
	text-decoration: none;  /*ブラウザ標準のリンク装飾をオフに*/
	overflow: hidden;   /*おまじない*/
	float: left;
	margin-left: 39%;
	margin-bottom: 3%;
	text-align: center;
}

.btn:hover{
	background-color: yellow; /*背景色の指定*/
	border: 1px yellow;   /*線を描く*/
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;   /*ホバー時の変化をなめらかに*/
	color: blue;  /*文字色の指定*/
	overflow: hidden;   /*おまじない*/
}

.title{
	font-size:140%;
	color: white;
	background-color:green;
	border: 1px green;
	border-radius:3px;
	padding: 3px;
	margin-bottom: 10px;
	letter-spacing; 3px;
	float: left;
}


/* Footer */

footer {
	padding-top: 5px;
	padding-bottom: 5px;
	background: maroon;
	text-align: center;
}

footer address{
	color: white;
	letter-spacing: 2px;
}

footer a{
	text-decoration: none;
	color: white;
}

.small {
	font-size:80%;
	letter-spacing: 0px;
}





/*以下、画面幅が600px以下の場合のスタイル*/


@media (max-width: 600px){

	.container {


		flex-direction: column;

	}


	.main,
	
	.side {

		width: 100%;
	}

}