@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

/*################################################ 768px(768pxは含まない)以上の形状 ################################################*/

/*----------------------- サイト全体 -----------------------*/
body{
	background-color: #fff;
	font-family: 'Noto Sans JP', sans-serif;
	margin-top: 0;
}

/*----------------------- ヘッダー -----------------------*/
.header {
	height: auto;
	background-color: #fff;
	color: #333;
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
}


/*--- ページトップ画像 ---*/
.title-logo{
	max-width: 360px;
	width: 100%;
	height: auto;
}

/*------------ ナビゲーションドロップダウン ------------*/

/*--- ナビゲーション全体 ---*/
nav{
	background:#333;
	color:#fff;
	text-align: center;
}

/*--- ナビゲーションを横並びに ---*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
	padding-left: 0;
}

/*--- 2階層目以降は横並びにしない ---*/
nav ul ul{
	display: block;
}

/*--- 下の階層のulや矢印の基点にするためliにrelativeを指定 ---*/
nav ul li{
	position: relative;
}

/*--- ナビゲーションのリンク設定 ---*/
nav ul li a{
	display: block;
	text-decoration: none;
	color: #999;
	padding:20px 35px;
	transition:all .3s;
}

nav ul li li a{
	padding:10px 35px;
}

nav ul li a:hover{
	color:#fff;	
}

/*--- 矢印の設定 ---*/

/*--- 2階層目を持つliの矢印の設定 ---*/
nav ul li.has-child::before{
	content:'';
	position: absolute;
	left:15px;
	top:25px;
	width:6px;
	height:6px;
	border-top: 2px solid #999;
  border-right:2px solid #999;
  transform: rotate(135deg);
}

/*--- 3階層目を持つliの矢印の設定 ---*/
nav ul ul li.has-child::before{
	content:'';
	position: absolute;
	left:6px;
	top:17px;
	width:6px;
	height:6px;
  border-top: 2px solid #fff;
  border-right:2px solid #fff;
  transform: rotate(45deg);
}

/*--- 2・3階層目の共通設定 ---*/

/*--- 下の階層を持っているulの指定 ---*/
nav li.has-child ul{
  /*--- 絶対配置で位置を指定 ---*/
	position: absolute;
	left:0;
	top:62px;
	z-index: 4;
  /*--- 形状を指定 ---*/
	background:#999;
	width:180px;
  /*--- はじめは非表示 ---*/
	visibility: hidden;
	opacity: 0;
  /*--- アニメーション設定 ---*/
	transition: all .3s;
}

/*--- hoverしたら表示 ---*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul{
  visibility: visible;
  opacity: 1;
}

/*--- ナビゲーションaタグの形状 ---*/
nav li.has-child ul li a{
	color: #333;
	border-bottom:solid 1px rgba(255,255,255,0.6);
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
	background:#ccc;
}


/*--- 3階層目 ---*/

/*--- 3階層目の位置 ---*/
nav li.has-child ul ul{
	top:0;
	left:182px;
	background:#ccc;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
	background:#fff;
}

/*----------------------- フッター -----------------------*/
.footer{
	height: auto;
	text-align:center;
	background: #ccc;
	color: #333;
	clear: both;
	border-radius: 10px;
	padding: 5px;
}

/*----------------------- メイン・左・右カラムの親 -----------------------*/
.main{
	display: flex;
	align-items: stretch;
	width: 96%;
	margin: auto;
	margin-bottom: 20px;
	min-height: 700px;
}

/*----------------------- メインカラム -----------------------*/
.main-contents {
	background-color: #666;
	color: #fff;
	width: 70%;
	padding-left: 5px;
	padding-right: 5px;
}

/*--- 日付の文字と二重線のレイアウト ---*/
.main-contents p {
	font-size: small;
	text-align: right;
	border-bottom: 4px double #fff;
}

/*--- リンクのレイアウト ---*/
.main-contents a {
  color: #0000EE;
}

.main-contents a:hover {
	color: #fff;text-decoration: none;background-color: #003396;
}

/*--- ブログタイトル ---*/
#blog-title {
	text-align: center;
}

/*--- ページネーション ---*/
.pagination{
	height: 40px;
	display: flex;
	margin-left: 10px;
	margin-right: 10px;
}

.pagination :last-child{
	margin-left: auto;
}

.pagination a:hover {
	color: #fff;text-decoration: none;background-color: #003396;
}

/*------------------------- 左カラム ----------------------------*/
.left-navi {
	background-color: #999;
	color: #333;
	width: 15%;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	padding-top: 5px;
	padding-left: 5px;
}

/*--- 検索ボックス ---*/
#box{
	width: 100%;
  position:relative;
	margin: 1%;
  padding-bottom:10px;
}

#headerSearchText{
	width: 83%;
  line-height:30px;
	padding-left: 3%;
	padding-right: 10%;
}

#headerImage{
  width:20px;
  position:absolute;
  top:10px;
	right: 5%;
}

/*--- リンクのレイアウト ---*/
.left-navi a {
  color: #0000EE;
}

.left-navi a:hover {
	color: #fff;text-decoration: none;background-color: #003396;
}

/*--- 他サイトリンク ---*/
.link-table{
	border: solid 2px; 
	border-collapse: collapse;
	border-color: #333;
	line-height: 2;
	width: 80%;
	margin: auto;
	text-align: center;
}

/*------------------------- 右カラム ----------------------------*/
.right-navi {
	background-color: #999;
	color: #333;
	width: 15%;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

/*--- タイトル ---*/
.title {
	text-align: center;
}

/*--- 日付アーカイブレイアウト ---*/
.archive{
	display: block;
	width: 70px;
	margin: auto;
	padding-right: 10%;
	font-size: large;
	border-left: 4px double;
	border-right: 4px double;
}

.right-navi ul li{
	list-style: none;	
}

.right-navi ul{
	text-align: right;
	font-style: italic;
	font-weight: bold;
	padding: 0;
}

/*--- リンクのレイアウト ---*/
.right-navi a {
  color: #0000EE;
}

.right-navi a:hover {
	color: #fff;text-decoration: none;background-color: #003396;
}

/*----------------------- コメント -----------------------*/
/*--- コメント全体 ---*/
.comment{
	display: block;
	height: auto;
	width: 95%;
	background: #666;
	color: #fff;
	clear: both;
	border-radius: 10px;
	padding: 10px;
	margin: auto;
	margin-bottom: 20px;
}

/*--- 入力欄 ---*/
#comin{
	height: 30px;
	width: 80%;
	border:2px solid #333;
	border-radius: 10px;
}

/*--- コメント欄 ---*/
#commentv{
	font-size:13px;
	line-height:15px;
	color:#fff;
	width:580px;
	height:160px;
	border:1px solid #333;
	padding:8px;
	overflow-y:scroll;
	display:none;
}

/*--- 現在不明 ---*/
#com{
	width:301px;
	height:201px;
	border:0px;
	padding:0px;
	overflow:hidden;
	display:none;
}

/*--- 送信ボタン ---*/
#comsubmit{
  display       : inline-block;
  border-radius : 10%;          /* 角丸       */
  text-align    : center;      /* 文字位置   */
  cursor        : pointer;     /* カーソル   */
  padding       : 10px;   /* 余白       */
  background    : #ccc;     /* 背景色     */
  color         : #333;     /* 文字色     */
  line-height   : 1em;         /* 1行の高さ  */
  transition    : .3s;         /* なめらか変化 */
  border        : 2px solid #333;    /* 枠の指定 */
}

#comsubmit:hover{
  box-shadow    : none;        /* カーソル時の影消去 */
  color         : #666666;     /* 背景色     */
  background    : #ffffff;     /* 文字色     */
}

/*################################################ 768px以下の形状 ################################################*/

@media screen and (max-width:768px){
	/*----------------------- サイト全体 -----------------------*/
	body{
		background-color: #fff;
		font-family: 'Noto Sans JP', sans-serif;
	}

	/*----------------------- ヘッダー -----------------------*/
	.header {
		height: auto;
		background-color: #fff;
		color: #333;
		position: static;
	}

	/*------------ ナビゲーションドロップダウン ------------*/

	/*--- ナビゲーション全体 ---*/
	nav{
		padding: 0;
	}
	
	nav ul{
		display: block;
		padding-left: 10px;
	}
	
	nav li.has-child ul,
	nav li.has-child ul ul{
  	position: relative;
		left:0;
		top:0;
		width:100%;
		visibility:visible;/*JSで制御するため一旦表示*/
		opacity:1;/*JSで制御するため一旦表示*/
		display: none;/*JSのslidetoggleで表示させるため非表示に*/
		transition:none;/*JSで制御するためCSSのアニメーションを切る*/
	}
	
	nav ul li a{
		border-bottom:1px solid #ccc;
	}

	/*--- 矢印の位置と向き ---*/

	nav ul li.has-child::before{
		left:20px;	
	}

	nav ul ul li.has-child::before{
    transform: rotate(135deg);
		left:20px;
	}
    
	nav ul li.has-child.active::before{
    transform: rotate(-45deg);
	}

	/*----------------------- フッター -----------------------*/
	.footer{
		height: auto;
		text-align:center;
		background: #ccc;
		color: #333;
		clear: both;
		border-radius: 10px;
		padding: 5px;
	}

	/*----------------------- メイン・左・右カラムの親 -----------------------*/
	.main{
		align-items: stretch;
		width: 96%;
		margin: auto;
		margin-bottom: 20px;
		display: flex;
		flex-direction: column;
	}

	/*----------------------- メインカラム -----------------------*/
	.main-contents {
		width: 95%;
		background-color: #666;
		color: #fff;
		border-radius: 10px;
		padding: 10px;
		order: 1;
	}

	/*----------------------- 左カラム -----------------------*/
	.left-navi {
		width: 95%;
		background-color: #999;
		color: #333;
		border-radius: 10px;
		padding: 10px;
		order: 3;
		margin-top: 20px;
	}

	/*----------------------- 左カラム -----------------------*/
	.right-navi {
		width: 95%;
		background-color: #999;
		color: #333;
		border-radius: 10px;
		padding: 10px;
		margin-top: 20px;
		order: 2;
	}

	/*----------------------- コメント -----------------------*/
	/*--- コメント全体 ---*/
	.comment{
		display: block;
		height: auto;
		background: #666;
		color: #fff;
		clear: both;
		border-radius: 10px;
		padding: 10px;
		margin-bottom: 20px;
		width: 91%;
	}
	
	/*--- 入力欄 ---*/
	#comin{
		height: 30px;
		width: 75%;
		border:2px solid #333;
		border-radius: 10px;
	}
	
	/*--- コメント欄 ---*/
	#commentv{
		font-size: 13px;
		line-height: 15px;
		color: #fff;
		width: 80%;
		height: auto;
		border: 1px solid #333;
		padding: 8px;
		overflow-y: scroll;
		display: none;
	}
	
	/*--- 現在不明 ---*/
	#com{
		width: 80%;
		height:	auto;
		border: 0px;
		padding: 0px;
		overflow: hidden;
		display: none;
	}
	
	/*--- 送信ボタン ---*/
	#comsubmit{
		display       : inline-block;
		border-radius : 10%;          /* 角丸       */
		text-align    : center;      /* 文字位置   */
		cursor        : pointer;     /* カーソル   */
		padding       : 10px;   /* 余白       */
		background    : #ccc;     /* 背景色     */
		color         : #333;     /* 文字色     */
		line-height   : 1em;         /* 1行の高さ  */
		transition    : .3s;         /* なめらか変化 */
		border        : 2px solid #333;    /* 枠の指定 */
	}
	
	#comsubmit:hover{
		box-shadow    : none;        /* カーソル時の影消去 */
		color         : #666666;     /* 背景色     */
		background    : #ffffff;     /* 文字色     */
	}
}
