@charset "utf-8";

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #e3f0e3;
  font: .86em/160% Osaka, sans-serif;
  color: #666;
}
a:link, a:visited {
  color: #0c7a04;
  text-decoration: none;
  display: inline-block;
}
a:hover {
  text-decoration: underline;
  color: #dd0000;
}

p {
	margin: 0 0 1.2em;
	padding: 0;
}

p2 {
	margin: 0 0 1.2em;
	padding: 0;
	text-align: left;
	color: #ff1100;
	font-size: 120%;
	font-weight: bolder;
}

img, fieldset {
	border: 0;
}

/* set image max width to 100% */
img {
	max-width: 100%;
	height: auto;
	width: auto¥9; /* ie8 */
}

/* set html5 elements to block */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block;
}

#body-area {
    width: 900px;
    background: #f5f5f5;
    margin: 0 auto;
}

#header{
    background-color:#000;
    background-image:url(img/header.jpg);
    width: 100%;
    background-position:top right;
    background-repeat:no-repeat;
    overflow:hidden;
}

/*h1タグの設定*/
#header h1 {
  color: #fff;
  font-size: 9px;		/*文字サイズ*/
  line-height: 10px;	/*行間*/
  text-align: left;
  margin:10px 10px 0 10px;
  font-weight: normal;	/*hタグのデフォルトの太字を標準に。太字がいいならこの１行削除。*/
}

#main-area {
  width: 100%;
  color: #666;
  font-weight: normal;
}
#content {
  float: left;
  width: 580px;
  margin: 20px 0;
  text-align: center;
  border-right: 1px solid #fff;
}
#navi {
  width: 290px;
  float: right;
  margin: 20px 0;
}
#footer {
  width: 100%;
  height: 50px;
  clear: both;
  text-align: center;
  border-bottom: 5px solid #808000;
}
#footer a:hover {
  color: #dd0000;
}

/**** サイド画面 ****/
div.sidebody {
  margin: 1.5em 10px  1.5em  20px;
  line-height: 130%;
  font-size: 98%;
}
div.sidebody ul {
  margin: 0 0 0 1.5em;
  padding: 1px;
}
div.sidebody li {
margin-bottom: 0.5em;
}
div.side-ttl {
  border-left: 4px solid #0c7a04;
  padding-left: 7px;
  margin: 1em 0;
  font-weight: bold;
}
div.sidlink {
  margin: 1em;
}

/* ヘッダータイトル */
h2 {
  color: #fff;
  font-size: 160%;
}
h2 a {
  color: #ffa500 !important;
}
div#head-box {
  text-align: left;
  margin: 0 auto;
  width: 94%;
  padding: 1em 1.5em;
}
/* サブタイトル */
p#subttl {
  margin: 1em 0;
  color: #ffd700;
}

/* 記事 */
div.article {
  margin: 0 auto;
  text-align: left;
  border-bottom: 2px dotted #666;
  padding: 10px;
  width: 92%;
}
div.body {
  margin: 1em;
}
/* 記事タイトル */
div.subject {
  border-left: 6px solid #d2691e;
  font-weight: bold;
  font-size: 120%;
  padding: 2px 7px;
  margin: 1em 0;
  letter-spacing: 1px;
  color: #575757;
}
/* 記事日付 */
div.date {
  margin-left: 1em;
  color: #8b4513;
}
/* 記事下部 */
div.art-bot {
  text-align: right;
  font-size: 12px;
  color: gray;
}
/* 固定記事下部（TB/COM） */
div#pm-bot {
  margin: 1em;
  text-align: left;
}
div.pm-ttl {
  font-weight: bold;
  margin: 15px 0 10px 0;
  border-left: 4px solid #ff6262;
  padding-left: 7px;
}
input#tb-url {
  width: 360px;
  margin-left: 1.5em;
}
input#com-name {
  width: 250px;
}
textarea#com-msg {
  width: 250px;
  height: 7em;
}
div#com-btn {
  margin-top: 4px;
}
div#com-btn input {
  width: 70px;
  height: 28px;
}

/* カレンダ */
table#calen {
  margin: 1em auto;
  width: 96%;
}
table#calen th {
  font-size: 14px;
  font-weight: normal;
  padding: 8px;
  text-align: center;
  background: #eee;
}
table#calen th span {
  display: inline-block;
  margin: 0 8px;
}
table#calen td {
  font-size: 13px;
  padding: 4px 6px;
  text-align: center;
}
table#calen tr.day td {
  color: #969696;
}
table#calen td.sun {
  color: #d50000;
}
table#calen td.sat {
  color: #0000ce;
}
#calen td a {
  text-decoration: underline;
}

/* SIDEBAR **************************************/
#sidebar {
	width: 280px;
	float: right;
	margin: 10px 0;
}
div.sidebody ul {
  margin: 0 0 0 2em;
  padding: 0;
}
div.sidebody li {
margin-bottom: 1em;
}
div.side-ttl {
  border-left: 4px solid #5396c6;
  padding-left: 7px;
  margin: 1em 0;
  font-weight: bold;
}

div.sideaccd-2{
  margin-left: 1em;
}

/****************************/
/* 元のアーカイブリストは非表示 */
#archive {
  display: none;
}

/* 年ごとのセクション */
.year-section {
  border-bottom: 1px solid #fff;
  margin-bottom: 4px;
}

/* 年の見出し（クリックで展開） */
.year-header {
  cursor: pointer;
  font-weight: bold;
  padding: 8px;
  background-color: #f5f5f5;
  transition: background-color 0.3s;
}

.year-header:hover {
  background-color: #e0e0e0;
}

/* 展開アイコン（▶︎ / ▼） */
.toggle-icon {
  margin-right: 8px;
  color: #666;
}

/* 月リスト（折りたたみ） */
.month-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-left: 0;
  margin: 0;
}

/* 展開された年の月リストを表示 */
.year-section.expanded .month-list {
  max-height: 500px;
}

/* 月リストの項目 */
.month-list li {
  list-style-type: disc;
  margin-left: 1.0em;
  margin-bottom: 4px;
  color: #555;
}

/* リンクのスタイル */
.month-list li a {
  text-decoration: none;
  color: #0077cc;
}

.month-list li a:hover {
  text-decoration: underline;
}

/****************************/

/* フッター */
div#foot-box {
  padding: 10px;
}

/* ページ繰越 */
div.page {
  margin: 0 0 1em 0;
}
#paging {
  text-align: center;
}
#paging li {
  background-color: #eee;
  border: 1px solid #000;
  display: -moz-inline-box;
  display: inline-block;
  line-height: 25px;
  width: 25px;
  height: 25px;
}
* html #paging li {
  display: inline;
  margin-right: 3px;
  zoom: 1;
}
*+html #paging li {
  display: inline;
  margin-right: 3px;
  zoom: 1;
}
#paging li a {
  display: block;
  text-decoration: none;
  width: 25px;
}
#paging li b {
  color: #d54609;
}

/* 寄せ */
.ta-c {
  text-align: center;
}
.ta-l {
  text-align: left;
}
.ta-r {
  text-align: right;
}

/* アイコン */
img.icon {
  vertical-align: middle;
  border: none;
}

/* 記事検索 */
input#find {
	width: 120px;
}

/* 検索結果画面 */
table#find {
  margin: 1em auto;
  border-collapse: collapse;
}
table#find th, table#find td {
  border: 1px solid #8080c0;
  padding: 6px;
}
table#find th {
  background: #cbcbe4;
}
table#find td {
  background: #fff;
}

/* TB・コメント一覧 */
div.com-log {
  margin: 8px 0 8px 2em;
  font-size: 85%;
  line-height: 150%;
}
div.com-msg {
  margin-left: 1em;
}
div.com-log span {
  color: #666;
}



/* Page Topに戻る */
#pageTop {
      display: block;
      position: fixed;
      bottom: 100px; /* ボタンの位置を調整 */
      right: 48px; /* ボタンの位置を調整 */
      padding: 6px 10px;
      background-color: rgba(255,69,0,0.4); /* ボタンの背景色 */
      color: #fff; /* ボタンの文字色 */
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      border: 1px solid #fff;	/*枠線の幅、線種、色*/
    }
#pageTop:hover {
      background-color: rgba(255,69,0,1.0); /* マウスホバー時の背景色 */
    }

/* Page BoTomに行く */
#pageBottom {
      display: block;
      position: fixed;
      bottom: 50px; /* ボタンの位置を調整 */
      right: 48px; /* ボタンの位置を調整 */
      padding: 6px 15px;
      background-color: rgba(0,123,255,0.4); /* ボタンの背景色 */
      color: #fff; /* ボタンの文字色 */
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      border: 1px solid #fff;	/*枠線の幅、線種、色*/
    }
#pageBottom:hover {
      background-color: rgba(0,123,255,1.0); /* マウスホバー時の背景色 */
    }

/* PC画面 980 ---------------------------------------------------------*/
@media screen and (max-width: 960px) {

	/* body-area */
	#body-area {
		width: 96%;
	}

	/* content */
	#content {
		width: 55%;
		padding: 3% 0%;
	}

	/* sidebar */
	#sidebar {
		width: 100%;
		margin: 0;
		float: none;
	}
	#sidebar .widget {
		padding: 3% 4%;
		margin: 0 0 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}
}

/*　タブレット 650 */
@media screen and (max-width: 650px) {

	/* header */
	#header {
		height: auto;
	}

	/* search form */
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}

	/*nav */
	#nav {
		position: static;
	}

	/* site logo */
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	/* content */
	#content {
		width: auto;
		float: none;
		margin: 20px 0;
	}

	/* navi_sidebar */
	#navi {
		width: 100%;
		margin: 0;
		float: none;
	}
	#navi .widget {
		padding: 3% 0%;
		margin: 0 0 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}

}

/* スマホ 480 */
@media screen and (max-width: 480px) {

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#main-nav a {
		font-size: 90%;
		padding: 10px 0px;
	}

	/* img float */
	img {float: none;
	}
		
}