@charset "utf-8";

/* /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
 全デバイス共通のスタイルとスマートフォンおよび小型タブレット向けレイアウトの指定
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/

/*==========================================
 body
===========================================*/
body {
  width: 100%;
  background-color:#FFF;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color:#000;
}
a {
  color:#000;
  text-decoration:none;
}
a:hover {
  color:#333;
  text-decoration:underline;
}
/*==========================================
 ヘッダーのスタイル
===========================================*/
header {
  text-align:center;
}
header h1 {
	margin: auto;
	padding: 15px 5px 7px 5px;
	width: 100%;
}
header h1 img {
	width: auto;
	min-width: 313px;
}
header {
  position:relative;
  overflow:hidden;
}
header ul#s_nav {
  margin-bottom:15px;
  position:relative;
  left:50%;
  float:left;
}
header ul#s_nav li {
  float:left;
  position:relative;
  left: -50%;
}
header ul#s_nav li a {
  display:block;
  font-size:0.8em;
  margin-right:20px;
  padding-left:20px;
}
header ul#s_nav li.contact a {
  background:url(../../images/icn_contact.jpg) no-repeat left center;
}
header ul#s_nav li.news a {
  background:url(../../images/icn_news.jpg) no-repeat left center;
}
header ul#s_nav li.sitemap a {
  background:url(../../images/icn_sitemap.jpg) no-repeat left center;	
}
header p {
  width:100%;
}
header p img {
  width:100%;
  height:auto;
  max-width:960px;
}

/*==========================================
 グローバルナビゲーションのスタイル
===========================================*/
nav ul {
  margin-bottom:15px;
}
nav ul li {
  text-align:center;
  float:left;
  width:50%;
  border-bottom:2px solid #000;
}
nav ul li:nth-child(odd) {
  width:49%;
  border-right:1px dotted #000;
}
nav ul li a{
  display:block;
  width:100%;
}
/* カレント表示用クラス */
.active {
  background-color:#000000;
}

/*==========================================
 コンテンツエリア全体のスタイル
===========================================*/
div#contents {
  background:url(../../images/bg_footer.jpg) no-repeat bottom;
  padding-bottom:90px;
}

/*==========================================
 コンテンツエリア -> WORKSのスタイル
===========================================*/
div#contents section#work h2 {
  margin:0 0 15px 5px;
}
div#contents section#work article {
  text-align:center;
  width:50%;
  min-width:120px;
  float:left;
  margin-bottom:30px;
}
div#contents section#work article img {
  width:100%;
  height:auto;
  max-width:184px;
}
div#contents section#work article h3 {
  font-size:0.9em;
  font-weight:bold;
}
div#contents section#work article p {
  text-align:left;
  font-size:0.7em;
  line-height:2.0em;
  padding:0 15px;
  display:none;
}

/*==========================================
 ページトップへボタンのスタイル
===========================================*/
a#pagetopBtn img {
  position:fixed;
  bottom:10px;
  right:1px;
}
/*==========================================
 フッターのスタイル
===========================================*/
footer {
  border-top:10px solid #000;
}
footer div {
  margin:20px 0 0 20px;
}
footer div p {
  font-size:0.7em;
  line-height:2.0em;
}
footer div small {
  font-size:0.6em;
}

/*==========================================
 メディアクリエによる切り替え
===========================================*/
/* スマホ・タブレット向けのレイアウトの指定：375px～768px */
@media only screen and (min-width: 375px) {
  header { text-align: center; position:static; overflow:visible; max-width: 768px; }
  header h1 { margin: 0 auto; padding:5px 5px 5px 5px; width:90%; }
  header_img {
	width: auto;
	height: auto;
	max-width: 375px;
}
  header ul { float: center; margin-top: 2px; position: static; }
  header ul li { float: left; position: static; }
  nav ul { list-style-type: none; padding: 0px; font-size: 12px; display: flex; justify-content: center; }
  li { display: inline; }
  a img { width: 160px; hieght: auto; }
  li:not(:Last-child) { margin-right: 10px; }
  article { width: 100%; }
  section#work article h1 { font-size: 1.8em; line-height: 2.0em; }
  section#work article h2 { font-size: 1.3em; line-height: 1.5em; }
  section#work article h3 { font-size: 1.1em; line-height: 1.5em; }
  section#work article p { font-size: 1.2em; line-height: 1.4em; }
  footer { padding-top: 5px; border-top: 6px solid #000; max-width: 768px; }
}

/* タブレット向けのレイアウトの指定：769px～960px */
@media only screen and (min-width: 769px) {
  header { position:static; overflow:visible; max-width: 960px; }
  header h1 { text-align:left; padding:15px 5px 7px 5px; width:100%; float:left; }
  header_img { width: 78.3%; height: auto; max-width: 768px; }
  body { width:100%; max-width: 960px; }
  nav ul { list-style-type: none;padding: 0px; font-size: 12px; display: flex; justify-content: center; }
  li { display: inline; }
  a img { widht:80%; hieght: auto; }
  li:not(:Last-child) { margin-right: 10px; }
  div#contents section#work article { max-width: 960px; width: 100%; }
  div#contents section#work article h1 { font-size: 3.0em; line-height: 1.4em; }
  div#contents section#work article h2 { font-size: 2.5em; line-height: 1.4em; }
  div#contents section#work article h3 { font-size: 2.5em; line-height: 1.4em; }
  section#work article p { font-size: 1.5em; line-height: 1.8em; }
  footer { padding-top: 15px; border-top: 6px solid #000; max-width: 960px; }
}

/* PC向けおよび大型タブレット向けのレイアウトの指定：769px～960px */
@media only screen and (min-width: 1024px) {
  header { position:static; overflow:visible; max-width: 1024px; }
  header h1 { text-align:left; padding:15px 5px 7px 5px; width:100%; float:left; }
  header h1 img { width: 78.3%; height: auto; max-width: 1024px; }
  body { width:100%; max-width: 960px; }
  nav ul { list-style-type: none;padding: 0px; font-size: 12px; display: flex; justify-content: center; }
  li { display: inline; }
  a img { widht:80%; hieght: auto; }
  li:not(:Last-child) { margin-right: 10px; }
  div#contents section#work article { max-width: 1024px; width: 100%; }
  div#contents section#work article h1 { font-size: 3.0em; line-height: 1.4em; }
  div#contents section#work article h2 { font-size: 2.5em; line-height: 1.4em; }
  div#contents section#work article h3 { font-size: 2.5em; line-height: 1.4em; }
  section#work article p { font-size: 1.5em; line-height: 1.8em; }
  footer { padding-top: 15px; border-top: 6px solid #000; max-width: 1024px; }
}

/* PC向けレイアウトの指定：961px以上では固定レイアウト */
@media only screen and (min-width: 1232px) {
  header { max-width: 1232px; position:static; overflow:visible; }
  header h1 { text-align:left; padding:5px 7px 7px 5px; width:100%; float:left; }
  header h1 img { width: 100%; height: auto; max-width: 1232px; }
  body { left: auto; right: auto; }
  div { alain: center; }
  nav ul {
	max-width: 1232px;
	list-style-type: none;
	padding: 0px;
	font-size: 12px;
	display: flex;
	justify-content: center;
	alignment-adjust: central;
}
  li { display: inline; }
  a img { width: 185px; height:auto; }
  li:not(:Last-child) { margin-right: 10px; }
  section#work article {
}
  section#work article h1 { font-size: 3.0em; line-height: 1.4em; }
  section#work article h2 { font-size: 2.0em; line-height: 1.4em; }
  section#work article h3 { font-size: 2.0em; line-height: 1.4em; }
  section#work article p { font-size: 1.5em; line-height: 1.8em; }
  footer { padding-top: 15px; border-top: 6px solid #000; max-width: 1232px; }
}
