@charset "utf-8";

/* =Reset default browser CSS.
Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, 
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, 
small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td 
{
  border: 0;
  font-family: inherit;font-size: 100%;font-style: inherit;font-weight: inherit;
  margin: 0;outline: 0;padding: 0;vertical-align: baseline;
}
:focus {outline: 0;}

ol, ul {list-style: none;}

table {border-collapse: separate;border-spacing: 0;}
caption, th, td {font-weight: normal;text-align: left;}

blockquote:before, blockquote:after,q:before, q:after {content: "";}
blockquote, q {quotes: "" "";}
a img {border: 0;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}

body{
  font: 12px/1.5 "メイリオ","Meiryo",arial,
    "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",
    Osaka,
    "ＭＳ Ｐゴシック","MS PGothic",
    Sans-Serif;
  color:#333;
  -webkit-text-size-adjust: none;
  background:#f2f2f2;
}


/* link
------------------------------------------------------------*/
a{
  margin:0;
  padding:0;
  text-decoration:none;
  outline:0;
  vertical-align:baseline;
  background:transparent;
  font-size:100%;
  color:#313131;
}

a:hover, a:active{
  outline: none;
  color:#6f6f6f;
}


/**** Clearfix ****/
nav .panel:after, nav#main-nav:after, .news-title:after, .bg:after,.post:after, ul.post li:after,nav#main-nav .inner:after{content:""; display: table;clear: both;}
nav .panel,nav#main-nav,.news-title,.bg, .post, ul.post li,nav#main-nav .inner{zoom: 1;}


/* page layout
------------------------------------------------------------*/
#wrapper, .inner{
margin:0 auto;
width:880px;
}

#header{
  overflow:hidden;
  display: flex;
}

#content{
  float:right;
  width:627px;
  padding:22px 0 10px;
}

#sidebar{
  float:left;
  width:233px;
  padding:22px 0 10px;
}

#footer{
  clear:both;
} 


/* header
*****************************************************/

/* page header -- site description
----------------------------------*/
#header div.pg-header{
  margin:0 auto;
  width:880px;
  display: flex;
}

#header div.logo{
  padding: 0 10px 0;
}

#header h1{
  padding:20px 0px 0;
  font-size:80%;
  font-weight:normal;
  text-align:left;
}


/* logo & site title
----------------------------------*/
#header h2{
  clear:both;
  padding:5px 10px 20px;
  color: #515151;
  font-size:150%;
  font-weight:bold;
  text-align:left;
}

#header div.header-note{
  font-size:70%;
  text-align: right;
  margin: 0 0 0 auto;  
}

/* top page main image
----------------------------------*/
#main-img{
  clear:both;
  margin-top:5px;
  line-height:0;
  text-align:center;
  z-index:0;
}

.post{
  margin:0 0 20px 0;
  padding:20px 10px 20px 20px;
  border:1px solid #d5d5d5;
  background: #fff;
}

.toppage h4{
  margin:0 0 10px;
  font-size:16px;
  font-weight:normal;
  color:#333;
}

.toppage{padding:10px 10px 20px 20px;}


/* article
*****************************************************/
.list{
padding:10px 0;
border-bottom:1px dashed #dcdcdc;
}

.list:last-child{border:0;}

.post .list p{padding:0;}

.list span{padding-left:10px;}


/* typography
*****************************************************/
h2.title{
  clear:both;
  margin:0;
  padding:7px 10px 7px 10px;
  font-size:110%;
  color:#000;
  border:1px solid #d5d5d5;
  border-bottom:0;
  background:#fff url(images/headingBg.png) repeat-x 0 100%;
}

.date-label{
  text-align:right;
  font-weight:bold;
  color:#858585;
}

.post p{padding-bottom:15px;}

/* list
 -------------------------------- */
.post ul{margin: 0 0 10px 10px;}

.post ul li{
  margin-bottom:5px;
  padding-left:15px;
  background:url(images/bullet.png) no-repeat 0 8px;
}

.post ol{margin: 0 0 10px 30px;}

.post ol li{list-style:decimal;}

/* h1-h3
 -------------------------------- */
.post h1{
  margin:20px 0;
  padding:5px 0;
  font-size:150%;
  color: #000;
  border-bottom:3px solid #000;
}

.post h2{
  margin:10px 0;
  padding-bottom:2px;
  font-size:130%;
  font-weight:normal;
  color: #333;
  border-bottom:2px solid #515151;
}

.post h3{
  margin:10px 0;
  font-size:100%;
  font-weight:normal;
  color:#2e2c2c;
  border-bottom:1px solid #515151;
}

/* blockquote
 -------------------------------- */

.post blockquote {
  clear:both;
  padding:10px 0 10px 15px;
  margin:10px 0 15px 30px;
 border-left:5px solid #ccc;
}
 
.post blockquote p{padding:5px 0;}

/* table
 -------------------------------- */
.post table{
  border: 1px #ccc solid;
  border-collapse: collapse;
  border-spacing: 0;
  margin:10px 0 20px;
}

.post table th{
  padding:10px;
  border: #ccc solid;
  border-width: 0 0 1px 1px;
  background:#f2f2f2;
}

.post table td{
  padding:10px;
  border: 1px #ccc solid;
  border-width: 0 0 1px 1px;
  background:#fff;
}

.post dt{font-weight:bold;}

.post dd{padding-bottom:10px;}


.post img{max-width:100%;height:auto;}

/* image
 -------------------------------- */
img.aligncenter {
  display: block;
  margin:5px auto;
}

img.alignright, img.alignleft{
  margin: 10px 10px 10px 10px;
  display:inline;
}

img.alignleft{margin:10px 10px 10px 10px;}



#gallery-1 img{
  border:1px solid #eaeaea !important;
  padding:5px;
  background:#fff;
}

#gallery-1 img:hover{background:#fffaef;}


.alignright{float:right;}
.alignleft{float:left;}

/* side bar widget
*****************************************************/
section.widget ul, 
.widget_search, 
#calendar_wrap, 
.textwidget
{
  margin:0 0 10px 0;
  padding:10px 10px 10px 17px;
  border:1px solid #d5d5d5;
 background: #fff;
}

section.widget ul ul{
  border:0;
  margin:0;
  padding:0 0 0 10px;
}

section.widget h3{
  clear:both;
  margin:0;
  padding:7px 10px 7px 10px;
  font-size:110%;
  border:1px solid #d5d5d5;
  border-bottom:0;
  color:#000;
  background:#fff url(images/headingBg.png) repeat-x 0 100%;
}

section.widget li a{
  display:block;
  padding:7px 0 7px 12px;
  background:url(images/arrow.gif) no-repeat 0 12px;
  border-bottom:1px dashed #dcdcdc;
}

section.widget li:last-child a{border:0;}

#searchform input[type="text"]{
  line-height:1.7;
  height:24px;
  width:90px;
  vertical-align:bottom;
}

/* ----------------------------------------------------------- */
/* page contents widget */
/* ----------------------------------------------------------- */

/* ----------------------------------------------------------- */
/* news widget */
/* ----------------------------------------------------------- */
.news-title{
  clear:both;
  margin:0;
  padding:7px 10px 7px 10px;
  font-size:110%;
  border:1px solid #d5d5d5;
  border-bottom:0;
  color:#000;
  background:#fff url(images/headingBg.png) repeat-x 0 100%;
}

.news-title h3{
  float:left;
  font-weight:normal;
}

.news-title p{
  float:right;
  padding:0 0 0 10px;
  font-size:80%;
  background:url(images/arrow.gif) no-repeat 0 5px;
}

.news p{
  clear:both;
  padding-bottom:2px;
  border-bottom:1px dashed #dcdcdc;
}

.news p:last-child{border:0;}

.news p a{
  display:block;
  padding:5px 0;
  color:#333;
  font-style:italic;
  font:italic 110% "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

/* Gothic font */
.news a span{
  color:#515151;
  font:normal 90% Arial, 'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','ＭＳ Ｐゴシック',sans-serif;
}

.news span{padding-left:10px;}

.news a:hover span{color:#6f6f6f;}



/* footer
*****************************************************/

#copyright{
  clear:both;
  padding:5px 0 10px;
  text-align:center;
  color:#000;
  font-size:12px;
}


/* page navigation
------------------------------------------------------------*/
.pagenav{
  clear:both;
  width: 100%;
  height: 30px;
  margin: 5px 0 10px;
}

.prev{float:left}

.next{float:right;}

#page-links{
  clear:both;
  color:#4f4d4d;
  text-align:center;
}


/* top page top news
------------------------------------------------------------*/
ul.post{
  padding:0;
}

ul.post li{
  margin:0 10px;
  padding:20px 0 15px;
  border-bottom:1px dashed #dcdcdc;
}

ul.post li:last-child{border:0;}

ul.post img{
  float:left;
  margin:0 15px 5px 10px;
}

ul.post h3{
  margin:0 0 10px 10px;
  font-size:14px;
  font-weight:normal;
  color:#333;
  border:0;
}


/*------------------------------------------------------------
 画面幅の90%の幅で画像を表示 add by NISHIMURA
------------------------------------------------------------*/
.image-20vw {
  width : 20vw ; 
  max-width : 168px ;
}

.iframeWrap {
     position: relative;
     padding-bottom: 56.25%;
     height: 0;
     overflow: hidden;
}

.iframeWrap iframe {
     position: absolute;
     top: 0;
     left: 0;
     width: 50%;
     height: 50%;
}
/* main menu for tablet size
------------------------------------------------------------*/

@media only screen and (max-width:1024px){

	nav .panel{
	  display: none;
	  width:100%;
	  position: relative;
	  right: 0;
	  top:0;
	  z-index: 1;
	}

	nav div.panel{float:none;}
	
	#main-img{margin-bottom:20px;}
}


/* for small screen than 959px - 1 column
------------------------------------------------------------*/

@media only screen and (max-width: 959px){
  #wrapper, .inner{width:100%;}

	#header{width:96%;padding:0 2%;}
	
	.contact{padding:10px 0 10px;}

	nav div.panel{float:none;}
	
	#main-img img{width:98%;height:auto;}

	#content, #sidebar{clear:both;width:95%;float:none;margin:0 auto;padding:10px 0;	}
	
	.banner{width:100%;margin:0 auto;text-align:center;}
	p.banner img{width:100%;height:auto;}
	section.widget_search{text-align:center;}
	#calendar_wrap table{width:260px;}
	
	#footer li{margin-bottom:10px;}
	
}


/* for small screen than 644px
------------------------------------------------------------*/

@media only screen and (max-width: 644px){
	nav#main-nav{width:98%;}
	#header{text-align:center;background-image:none;}
	#header h2,.contact{float:none;}
	.contact{padding:0 0 20px;}
	.contact p{text-align:center;}
	#header-info{width:250px;margin:0 auto;}
	img.alignright, img.alignleft{display: block;	margin:5px auto;}
	.alignright,.alignleft{float:none;}
}

/* ----------------------------------------------------------- */
/* main navigation menu for PC or Tablet */
/* ----------------------------------------------------------- */
nav div.panel{
		display:block !important;
		float:left;
}

a#menu{ display:none; }

/* whole menu */
nav#main-nav {
  text-align: center;
}

/* menu side by side  */
nav#main-nav ul {
  display: flex;
  justify-content: center;
}

/* second menu */
nav#main-nav ul ul {
  display: block;
}

/* origin of sub menu item is parent li */
nav#main-nav ul li {
  position: relative;
}

/* menu link */
nav#main-nav ul li a {
  display: block;
  background-color: #d0f0f0;
  color: #000;
  padding: 10px 35px;
  /* transition: all 0.4s; */ /* speed of animation */
}

nav#main-nav ul li.curr-pg a {
  color: #008;
  text-decoration-line: underline;
}

nav#main-nav ul li li a {
  background-color: #b8d0d0;
  padding: 10px 35px;
}

nav#main-nav ul li li li a {
  background-color: #a0b0b0;
  padding: 10px 35px;
}

nav#main-nav ul li a:hover {
  color: #fff;
  background-color: #448ed3;
}

/* display arrow for menu which has second menu */
nav#main-nav ul li.parent::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
  transform: rotate(135deg);
}

/* display arrow for menu whih has third menu */

nav#main-nav ul ul li.parent::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* common style for sub menu */
nav#main-nav li.parent ul {
  position: absolute;
  left: 0;
  top: 57px;
  z-index: 4;
  background-color: #28bfe7;
  width: 180px;
  /* start with hidden */
  visibility: hidden;
  opacity: 0;
  /* animation */
  /*transition: all 0.4s; */
}

/* show when hover */
nav#main-nav li.parent:hover > ul,
nav#main-nav li.parent ul li:hover > ul,
nav#main-nav li.parent:active > ul,
nav#main-nav li.parent ul li:active > ul {
  visibility: visible;
  opacity: 1;
}

/* style of sub menu */
nav#main-nav li.parent ul li a {
  color: #000;
  border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

nav#main-nav li.parent ul li:last-child > a {
  border-bottom: none;
}

nav#main-nav li.parent ul li a:hover,
nav#main-nav li.parent ul li a:active {
  color: #fff;
  background-color: #3577ca;
}

/* position of 3rd menu */
nav#main-nav li.parent ul ul {
  top: 0;
  left: 181px;
  background-color: #66adf5;
}

nav#main-nav li.parent ul ul li a:hover,
nav#main-nav li.parent ul ul li a:active {
  background-color: #448ed3;
}

/* ----------------------------------------------------------- */
/* main navigation menu  for small screen */
/* ----------------------------------------------------------- */
@media screen and (max-width: 768px) {
  nav#main-nav {
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 0;
  }

  /* ---------------------------- */
  nav#main-nav a.menu{
	width:100%;
	display:block;
	height:37px;
	line-height:37px;
	font-weight: bold;
	text-align:left;
    color: #ccc;
    background: url(images/menuOpen.png) no-repeat 5px 8px;
  }
  
  nav#main-nav a#menu span{ padding-left:35px;}
	
  nav#main-nav a.menuOpen{
	background: url(images/menuOpen.png) no-repeat 5px -34px;
  }


  nav#main-nav a#menu:hover{
    color: #fff;
    cursor:pointer;
  }
  
  nav .panel{
	display: none;
	width:100%;
	position: relative;
	right: 0;
	top:0;
	z-index: 1;
  }
  /* ---------------------------- */

  nav#main-nav ul {
    margin:0;
    padding:0;
    /* display: block; */
    display: none;
  }

  nav#main-nav li.parent ul,
  nav#main-nav li.parent ul ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    opacity: 1;
    /* show using slidetoggle */
    display: none;
  }

  nav#main-nav ul li li {
    text-indent: 2em;
  }
  nav#main-nav ul li li li {
    text-indent: 4em;
  }

  nav#main-nav ul li a {
    background-color: #c0f0f0;
    border-bottom: solid 1px #ccc;
  }

  nav#main-nav ul li li a {
    background-color: #a0d0d0;
    padding: 10px 35px;
  }

  nav#main-nav ul li li li a {
    background-color: #80b0b0;
    padding: 10px 35px;
  }

  /* direction of allow */
  nav#main-nav ul li.parent::before {
    right: 15px;
  }

  nav#main-nav ul ul li.parent::before {
    transform: rotate(135deg);
    top: 15px;
    right: 15px;
  }

  nav#main-nav ul li.parent.active::before {
    transform: rotate(-45deg);
  }
}

