@charset "UTF-8";
@import url("grid.css");

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}

nav a {
    display:block;
    color: #666;
    text-decoration: none;
}
nav a:hover { 
    color: #999;
}
nav a img:hover {
	opacity: 0.8;
}

/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 5 0 0;
}

.head h1 { 
    padding: 15px 5px 10px 5px;
	margin-right:1rem;
}
.head p {
	font-size: 80%;
	margin-left: 2rem;
	vertical-align: text-bottom;
}

.author {
	margin-left: auto;
	font-size: 1.5rem;
	padding: 15px 5px;
	color:#0a0769;
}

/*ナビゲーションメニューバー*/
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 0rem;
}
nav li {
    display: block;
    flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
	color: #e8cc4f;
	background-color: #e57c15;
	font-size:80%;

}
nav a:hover {
	color:#dae331;    
    background-color: #087b87;
}
nav a {
    padding: 1rem;
}

@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 767px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}

.author {
	margin-left: 0;
	text-align: center;
	color:#0a0769;
}

.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }

nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open,#close  {
    display: block;
    width: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メイン画像
-------------------------------------*/
.mainimg img {
	width: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

/*本文
-------------------------------------*/
.main h2 {
    border-bottom: 3px solid #000;
	padding-bottom: 0.5rem;
}
.main li {
    list-style-type: none;
	/*border-bottom: 1px solid #ccc;*/
	padding: 0.5rem 0;
}
.main a {
  color: #eec681;
  text-decoration:none }

.main a:hover {
  color: #0FA0CE; }

/*左側見出し
---------------*/
.contents_l {
	font-family: "ＭＳ ゴシック", "MS Gothic", "Osaka－等幅", Osaka-mono, monospace;
	font-size: 16px;
	color: #193138;
	background-color: #faf6e5;
	width:95%;
	border: 2px dashed #a93e0f;
	line-height: 200%;
	margin-top: 20px;
	margin-bottom: 20px;
	list-style-position: inside;
	list-style-type: disc;
	padding: 5px;
}

.contents_l a {
	margin-left:8px;
	padding-left:8px;
	color:#3a126e;
}

.contents_l b {
	background-color: #a97419;
	font-size:18px;

}

/*内容
----------------------*/
.honbuntop {
	width:100%;
	background-color:#f8f6ec;
	padding:10px 15px;
}

.honbun {
	width:100%;
	background-color:#fdf2e8;
	padding:10px 15px;
}


/*フッター
-------------------------------------*/
footer {
    background-color: #cfc4c7;
    padding: 5rem 0;
}

footer p {
    font-size:14px;
}

footer a {
	color: #0500cc;
	font-size:14px;
	text-decoration: none;
}

footer a:hover {
	color: #654C00;
	text-decoration: underline;
}

footer a:visited {
	color:#654C00
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #fff;
}
.copyright a {
    color: #000;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: #000;
    color: #fff;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: #666;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}

/*色文字*/

.red {
	color: #F00;
}

.blue {
	color: #00F;
}

.right {
	text-align:right;
}

.green{
	color : #080;
}

.b{
	font-weight:bold;
}