/*
Theme Name: culturalastronomy WEB
Description: 2023 文化天文学用のテーマです
Author: Kuninori Iwashiro
Version: 1.0
Tags: cultural_astro
*/

/* 初期化 */
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, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    outline:0;
    font-size:1em;
    vertical-align:baseline;
    background:transparent;
}
body {
    line-height:1em;
}
article,aside,details,figcaption,figure,
footer,header,menu,nav,section {
    display:block;
}
blockquote, q {
    quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}
a {
    margin:0;
    padding:0;
    font-size:1em;
    vertical-align:baseline;
    background:transparent;
}
a:hover {
	-webkit-transition: background 0.5s;
}
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}
del {
    text-decoration: line-through;
}
abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}
hr {
    display:block;
    height:1px;
    border:0;
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}
input, select {
    vertical-align:middle;
}
img {
  vertical-align: bottom;
}

/* clearfix */
.cf:before, 
.cf:after { 
    content:""; 
    display:table; 
} 
 .cf:after {    clear:both;} 
 .cf {    zoom:1;}

html,
body {
	height:100%;
}



/*===== 認知天文学用CSS定義 開始 =====*/
/****** 全ページ共通基本CSS ******/
body {
	font-family: sans-serif;
	vertical-align: baseline;
	font-size: 1.1em;
	color: #6e6e6e;
	font-weight: 300;
	letter-spacing: 1px;
	line-height: 1.5em;
	background: #000;
}
a {
	color: #4d5aaf;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* scrollUp */
#scrollUp {
	padding: 10px;
	position: fixed;
	right: 0;
	bottom: 10px;
	text-align: center;
	font-weight: 700;
	background:#fff;
	border:1px solid #ccc;
	border-radius:10px;
}

/*===== フレームCSS =====*/
/****** header フレームCSS ******/
header {
    position:relative;
}
#headerWrap {
    background: url(images/cognitAS_back.jpg) no-repeat;
    background-size:cover;
    background-position:left center;
	height: 400px;
	position: relative;
	margin:30px 0 0;
	padding:0;
}
#hgroup {		/* ヘッダ枠 */
	position: absolute;
	bottom: 0px;
	margin:0 20px;
	padding:3px 0;
}
#hgroup h1 {
	margin-top: 0px;
	font-size: 12px;
	font-weight: 300;
	line-height:14px;
	color:#CCC;
}
#hgroup h2{
	line-height:1em;
}
#hgroup h2 a{
	font-size: 26px;
	color:#CCC;
	line-height:30px;
	font-weight:200;
	padding:0;
	margin:0;
}
#hgroup img {
	width: auto;
}

#search {
	margin: 10px 0;
}
#search form input.searchText{
	width: calc(100% - 40px);
	font-size:18px;
	height:30px;
}
#search form input.button {
	width: 20px;
	height: 20px;
	background: url(images/search_button.png) top no-repeat;
	border: none;
	font-size:0px;
}
#search input.button:hover {
	background: url(images/search_button.png) bottom no-repeat;
}

.top_bar {
	display:block;
	position:fixed;
	font-size: 16px;
	font-weight:200;
	line-height:1em;
	top:0;
	background:#f5f5f5;
	width:100%;
	height:26px;
	margin:0;
	padding:5px;
	text-align: center;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
	z-index:100;
}
.top_bar ul{
	margin:0;
	padding:0;
	display:inline-block;
}
.top_bar li{
	margin:0;
	padding:0;
	display:inline-block;
	list-style-type:none;
	width:100px;
}
.top_bar a{
	font-family:"M PLUS Rounded 1c", "Proxima Nova Light", 'Helvetica Neue', Arial, Helvetica, sans-serif;
	margin:0;
	padding:0;
	color:#666;
	text-decoration:none;
}
.top_bar a:hover{
	color:#000;
}
.top_bar #logo{
	position:absolute;
	left:10px;
}
.top_bar #logo li{
	width:auto;
}
.top_bar #logo a{
	color:#999;
}
.top_bar #naoj {
	font-size:0;
}
.top_bar #naoj a{
	display:inline-block;
	font-size:0;
	width:74px;
	height:26px;
	background-image: url('images/naoj_logo.png');
	background-size: contain;
	background-repeat:no-repeat;
	vertical-align:12px;
}
.top_bar #pub a{
	font-size:0.8em;
}
.top_bar .top-menu {
	font-size:0.8em;
	padding-top:6px;
}

nav#global {		/* global メニュー */
    position:absolute;
    top:0;
	display: block;
	width: 100%;
	padding: 0;
	background-color: rgba(255,255,255,0.8);
	font-size:14px;
	text-shadow: 1px 1px 0 #fff;
	-webkit-box-shadow: 0 1px 2px rgb(170,170,170);
	-moz-box-shadow: 0 1px 2px rgb(170,170,170);
	box-shadow: 0 1px 2px rgb(170,170,170);
}
nav#global li{
	list-style-type:none;
}

.nav-menu {
	margin: 0 auto;
	max-width: 800px;
	padding:0;
}
.nav-menu ul {
	display:none;
	position:absolute;
	top:0;
	left:0;
	padding:0;
	margin:0;
}
.nav-menu li {
	float: left;
	text-align: center;
	z-index: 100;
	padding:0;
	margin-left:-1px;
	width:200px;
	height: 100px;
    line-height: 100px;
    font-size:20px;
	border-left:1px solid #AAA;
	border-right:1px solid #AAA;
	list-style-type:none;
	box-sizing: border-box;
}
.nav-menu li:hover>ul {
	display: block
}
.nav-menu li:hover{
	background: #efefef;
	color: #000;
	text-shadow: none;
}
.nav-menu li a {
	display: block;
	color: #666;
	padding:0;
	text-decoration: none;
}
.nav-menu li.current-menu-item>a {
	color: #900;
	font-weight:600;
	display: block;
}

.nav-menu ul.sub-menu{
    position:absolute;
	top:100px;
	left:0;
	width:100%;
	background-color: rgba(255,255,255,0.80);
}
.sub-menu li {
	height:auto;
	width:100%;
	line-height:2em;
	float:none;
	border:none;
}
.sub-menu li a {
	color: #666;
	text-shadow: 0px 0px 0 #fff;
}
.sub-menu li a:hover {
	color: #828282;
	text-shadow: 1px 1px 0 #fff;
}

.accordion div {
	display: block;
	margin:0;
	padding:0;
}
.accordion>li>p {
	display: none;
}
.original-background-css {
	background: #000;
}

/****** footerフレームCSS ******/
footer {
	padding-top: 10px;
	width: 100%;
	min-height: 76px;
	background: url(images/footer.png) top repeat-x;
	font-size: 12.6px;
	text-align: center;
	color: #999;
}
footer ul {
	margin: 10px;
}
footer li {
	margin: 5px;
	display: inline;
}

/****** コンテンツフレームCSS ******/
#Wrap {
	background-image: url(images/background.jpg);
	background-size:100% auto;
}
#CenterWrap {
	padding: 40px 10px 86px 10px;
	margin: auto;
	min-height: 100%;
	max-width: 1400px;
	background: url(images/nav_bg.png) no-repeat center top;
	position: relative;
}

/****** サイドバー ******/
#sidebar {
	margin-bottom: 10px;
	width: 280px;
	float: right;
}
#sidebar h2 {
	padding: 0 0 0 5%;
	width: 95%;
	height: 30px;
	background: none;
	line-height: 30px;
	color: #fff;
	font-weight: 300;
	text-shadow: -1px -1px 0 #999;
}
#sidebar p {
	margin: 10px 0px !important;
}
#sidebar img {
	max-width: 100%;
}
#sidebar .original-background-css {		/* sidebar widget */
	border-radius: 0px 0px 5px 5px;
	-webkit-border-radius: 0px 0px 5px 5px;
	-moz-border-radius: 0px 0px 5px 5px;
}
#sidebar ul ul,
#sidebar .textwidget {
	margin: 10px 0;
}
#sidebar .textwidget p {
	margin: 0 5px;
}
#sidebar ul>li {
	margin-bottom: 10px;
	line-height: 1.5em;
}
#sidebar ul>li ul {
	margin-left: 5%;
}
#sidebar .side_nav {	/* sidebar サブメニュー */
  margin-bottom: 30px;
}
#sidebar .side_nav h2 {
	margin: 0;
	padding: 0;
	background: #4d5aaf;
	display: block;
	font-size: 14px;
	padding: 15px 10px 10px;
	color: #fff;
	font-weight: normal;
}
#sidebar .side_nav h2 a {
	color: #fff;
	text-decoration: none;
}
#sidebar .side_nav ul {
	margin: 0;
	padding: 0;
}
#sidebar .side_nav li {
	margin: 0;
	padding: 0;
	list-style-type:none;
}
#sidebar .side_nav li > a {
	display: block;
	border-color: #ccc;
	border-width: 0 0 1px 0;
	border-style: dotted;
	background: #56564b;
	font-size: 16px;
	font-weight:600;
	text-decoration: none;
	margin: 0;
	padding: 15px 10px;
	color: #fff;
	text-align:center;
}
#sidebar .side_nav li > a:hover {
	color: #666;
	background-color: #e4f1fa;
}
#sidebar .side_nav li.current-page-item > a, .side_nav li.current_page_item > a, .side_nav li.current-cat > a {
	background-color: #e4f1fa;
}
#sidebar .side_nav li li > a {
	font-size: 14px;
	padding-left: 37px;
	background-image: url(images/arrow_02.png);
	background-repeat: no-repeat;
	background-position: 10px 22px;
	background-color:transparent;
	color: #333;
	font-weight:normal;
	text-align:left;
}
#sidebar #login{		/* ログインボタン */
	padding:10px 20px;
	border-radius:10px;
	border:2px #FFF solid;
	background:#eee;
}
#sidebar #login h2{
	padding:0;
	font-weight:900;
	color:#999;
	text-shadow: none;
}
#sidebar #login p{
	padding:0;
	font-size:0.9em;
}


/****** コンテンツCSS ******/
#MainContents {
	margin-bottom: 10px;
	width:calc(100% - 300px);
	float: left;
}
#MainContents h1 {
	margin: 0 0 0 0.3em;
	line-height: 1.2em;
	color: #646464;
	font-size: 160%; 
	font-weight: 300;
	text-shadow: 1px 1px 0 #fff;
	clear: both;
}
#MainContents h2 {
	padding:0;
	margin: 2em 0 0;
	line-height:1.2em;
	font-size: 140%;
	font-weight:600;
	color:#597380;
}
#MainContents h3 {
	padding: 0;
	margin: 1.5em 20px 0;
	font-size: 120%;
	font-weight:600;
	color:#4e6647;
}
#MainContents h4 {
	padding: 0;
	margin: 1.5em 20px 0.3em;
	font-size: 110%;
	font-weight:600;
	color:#626063;
}
#MainContents h5 {
	padding: 3px 0 2px;
	margin-bottom: 10px;
	color:#626063;
	font-size: 100%;
	border-top:1px solid #e6eae6;
	border-bottom:1px solid #e6eae6;
	font-weight: 300;
}
#MainContents h5:before{
	content:"▸ ";
	color:#e6eae6;
}
#MainContents h6 {
	padding: 2px 0;
	margin-bottom: 10px;
	color:#626063;
	font-size: 100%;
}
#MainContents p{
	margin:0.5em 20px 0;
	line-height:200%;
}
#MainContents dl {
	margin:0 20px;
}
#MainContents ul {
    margin-left:1em;
}
#MainContents ul li {
	margin:0 1em 0.5em;
	line-height:1.5em;
}
#MainContents ul li p {
	line-height: 2em;
}
#MainContents ul li img {
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
}
#MainContents ol li {
	margin-left:20px;
	margin-right:20px;
	list-style: decimal;
	list-style-position: inside;
}
#MainContents .list-style-none li {
    list-style-type: none;
}
#MainContents pre {
	margin-left:20px;
	margin-right:20px;
	padding: 10px;
	background: #fff;
}
#MainContents img {
	max-width: 100%;
	height: auto;
}
#MainContents textarea {
	margin: auto;
	width: 98%;
}

#MainContents .is-style-regular table {
    border-collapse:  collapse;     /* テーブル：シンプルライン */
}
#MainContents .is-style-regular th, #MainContents .is-style-regular td{
    border: solid 1px;
    padding:2px 4px;
    min-width:2.5em;
}
#MainContents .wp-block-file{
    margin:1em 0;
}
#MainContents .h1_box{		/* コンテンツボックス*/
	background:rgba(255,255,255,0.6);
	border-radius:6px;
	border:1px #ccc solid;
	box-sizing: border-box;
	padding:20px;
	margin:10px 0 40px;
}
#MainContents .list_link {		/* リスト一覧ボタン*/
  position: relative;
  margin:0;
  padding:0;
  width:100%;
}
#MainContents .list_link a {
	position:absolute;
	display: block;
	right: 10px;
	top: -78px;
	margin:0;
}
#MainContents .list_link a img {
	margin: 0;
}
#MainContents .menu-item{
	margin-left:20px;
}

/* パンくずリンク */
#MainContents .bread_text {
	font-size: 80%;
	padding:0;
	margin:-20px 0 20px 0;
}
#MainContents .bread_text li {
	display: inline;
	padding:0;
	margin:0;
}
#MainContents .bread_text li:before {
	content: ">";
}
#MainContents .bread_text li:first-child:before {
	content: "";
}
#MainContents .bread_text li a {
	margin:0;
}

/* pager */
#MainContents #pager #next a,
#MainContents #pager #prev a {
	margin: 10px 0;
	padding: 2%;
	min-width: 100px;
	height: auto;
	background: #999;
	display: block;
	text-align: center;
	color: #fff;
	text-decoration: none;
	border-radius: 0px 0px 5px 5px;
    -webkit-border-radius: 0px 0px 5px 5px;
    -moz-border-radius: 0px 0px 5px 5px;
}
#MainContents #pager #next a:hover,
#MainContents #pager #prev a:hover {
	background: #666;
}
#MainContents #pager #next {
	float: right;
}
#MainContents #pager #prev {
	float: left;
}



/*===== ページ別CSS =====*/
/* 404 */
#notfound {
	width: 100%;
	margin: auto;
	text-align: center;
}
#notfound img {
	width: 100%;
}

/* ホームページ*/
.home #MainContents h1 {
	padding: 0;
	margin-bottom: 20px;
}
.home #MainContents .whatsnew dt{
    width:10em;
}

/* サイトマップ */
#MainContents .sitemap li {
	margin: 0 0 20px 10px ;
	list-style: none;
}
#MainContents .sitemap ul li {
	margin: 0 0 10px 10px ;
	list-style: none;
}

/* 検索結果 */
#MainContents .PostList li {
	padding:20px 0;
	margin: 0;
	list-style: none;
	border-bottom: dotted 1px #cbcbcb;
}
#MainContents .PostList li:before{
    content:"";
    line-height:0;
}
#MainContents .PostList li a {
	color: #666;
	margin:0;
	padding:0;
}
#MainContents .PostList li h2 {
	margin: 0;
	padding:0;
	font-size: 120%;
	font-weight: 600;
}
#MainContents .PostList li h2 a {
	color: #666;
}
#MainContents .PostList li img {
	margin-right: 10px;
	float: left;
}
.PostList li:before{
    content:"";
}
.more {		/* 続きを読む */
	width: 100%;
	display: block;
	text-align: right;
}

/* 投稿ページ */
.post-categories li {
	display: inline;
	list-style: none !important;
}
.catelist {
	padding:0 0 40px 10px;
	width: 40%;
	float: right;
	text-align: right;
}
.posttime {
	width: 40%;
	padding:0 0 0 10px;
	float: left;
}
#MainContents dl.post_list {
	margin:0;
	padding:0;
}
#MainContents  dl.post_list dt{		/* 投稿リスト*/
	margin:0 0 0;
	float:left;
	clear:left;
}
#MainContents dl.post_list dd{
	margin:0 0 0.5em 8em;
}


/*===== 携帯端末＆小画面用CSS =====*/
@media screen and (max-width: 860px) {
	body {
		font-size: 16px;
	}

	/* header */
	#headerWrap {
    	height: 200px;
	}
	#hgroup {		/* ヘッダ枠 */
        top:10px;
    }
    #hgroup h2 a{
    	font-size: 24px;
    	line-height:24px;
    }
	#hgroup img {
		width: 100% !important;
		height: auto;
	}

	/* nav global */
	nav#global {
	    position:relative;
		background: url(images/nav_back_sp.png) repeat-x center top;
		background-size:100% 100%;
		font-size:20px;
	}
	.nav-menu ul {
		display: block;
		position:relative;
	}
	.nav-menu li {
		text-align: left;
		line-height: 2em;
		height:auto;
		width:100%;
		float: none;
		background:#eee;
		font-weight: 200;
	}
	.nav-menu li a {
		padding-left: 10px;
	}
	.nav-menu ul.sub-menu{
		 position:relative;
		 top:0;
	}
	.nav-menu ul.sub-menu li a {
		padding-left: 30px;
	}

	.nav-menu li.current-menu-item>a {
		color: #900;
		font-weight:600;
		display: block;
	}
	.nav-menu li a:hover{
		background: #fff;
		display: block;
	}


	/* CenterWrap */
	#MainContents,
	#MainContents h1 {
		width: 100%;
	}

	/* sidebar */
	#sidebar,
	#sidebar h2 {
		padding: 0;
		width: 100%;
	}
	#CenterWrap #sidebar h2 {
		text-align: center;
	}

	/* footer */
	footer {
		position: static;
	}
	footer li {
		display: block;
	}

	/* accordion */
	.accordion div {
		display: none;
	}
	.accordion>li>p {
		padding-left: 10px;
		text-align: left;
		display: block;
		vertical-align: -0.05em;
	}
	.accordion>li>p:before {
		content: '≡';
		vertical-align: -0.05em;
		font-size:1.8em;
	}
	
	/* Menu */
	.MenuList li {
		width: 100%;
		padding: 0;
		float: none;
	}

	/* category */
	.catelist,
	.posttime {
		width: 100%;
		float: none;
		text-align: left;
	}
}
/*===== 携帯端末＆小画面用CSS終了 =====*/

@media only screen and (max-width: 760px) {
	.top_bar ul.top-menu {
		position:absolute;
		top:0px;
		right:10px;
		height:0;
		margin:0;
		padding:36px 0 0;
		display:inline-block;
		background-image: url("images/hamberger_off.png");
		background-position:70px 6px;
		background-repeat:no-repeat;
		background-size: 24px 24px;
		overflow: hidden;
	}
	.top_bar ul.top-menu:hover{
		background-image: url("images/hamberger_on.png");
		overflow: visible;
	}
	.top_bar ul.top-menu li{
		margin:0;
		padding:4px 0;
		display:block;
		list-style-type:none;
		width:100px;
		border-top:solid #eee 1px;
		background:#f5f5f5;
	}
}

/*===== メニュー無効処理 =====*/
nav#global li.menu-item-type-post_type, nav#global li.menu-item-type-taxonomy{
    background-color:rgba(0,0,0,0.1);
    pointer-events:none;
    text-shadow:unset;
}
nav#global li.menu-item-type-post_type a, nav#global li.menu-item-type-taxonomy a{
    color:#AAA;
}
#MainContents ul li:nth-of-type(2) {
    pointer-events:none;
}
#MainContents ul li:nth-of-type(2) a{
    color:#AAA;
}