@charset "utf-8";
/*
Theme Name: Hayashi
Description: hayashi-template
Author: beaut imaging office.
Version: 1.0
*/

/* fonts */
@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?3kxpk0');
  src:  url('fonts/icomoon.eot?3kxpk0#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?3kxpk0') format('truetype'),
    url('fonts/icomoon.woff?3kxpk0') format('woff'),
    url('fonts/icomoon.svg?3kxpk0#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-mail:before {
  content: "\e900";
}
.icon-rightarrow:before {
  content: "\e901";
}
.icon-tel:before {
  content: "\e902";
}
.icon-menu:before {
  content: "\e903";
}

/* 源柔ゴシック */
@font-face {
  font-family: "GenJyuuGothicXP";
  src: url("fonts/GenJyuuGothicX-P-Regular.ttf") format('ttf'),
       url("fonts/GenJyuuGothicX-P-Regular.woff2") format('woff2'),
       url("fonts/GenJyuuGothicX-P-Regular.woff")  format('woff');
}
/* 源ノ明朝 */
@font-face {
  font-family: "SourceHanSerifJP";
  src: url("fonts/SourceHanSerifJP-Light.woff2") format('woff2'),
          url("fonts/SourceHanSerifJP-Light.woff") format('woff'),
          url("fonts/SourceHanSerifJP-Light.otf") format('opentype');
  font-weight: normal;
  font-style: normal;
}


/* common.css */
html:before, html:after, body:before, body:after {
  background: none;
}

.pankz ol li a {
  color: #001A65;
}

#header .lead {
  background: #001A65;
}

#header .logo {
  height: 62px;
  margin: 30px 0;
}
#header .logo a {
  height: 62px;
}
#header .logo a img {
  max-width: 100%;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #header .logo {
    margin: 1rem 0;
  }
}

#contacts {
  margin: 22px 0;
}
a.tel_link {
  position: relative;
  margin: 25px 2em 0 0;
  color: #001A65;
  background: none;
}
a.tel_link:before {
  position: absolute;
  display: block;
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  content: "\e902";
  color: #001A65;
  font-size: (14px*1.7);
  font-size: 1.7rem;
  line-height: 1;
  top: 0;
  left: 0;
}
#contacts dl {
  color: #333;
  margin: 4px 2em 0 0;
}
#sp_contacts dl {
  color: #333;
  margin-bottom: 5px;
}
#contacts dl dt,
#sp_contacts dl dt {
  width: 70px;
  background-color: #FFF;
  border: 1px solid #001A65;
  color: #001A65;
  padding: 3px;
  font-size: 14px;
  font-weight: normal;
}
#contacts dl dd,
#sp_contacts dl dd {
  width: 140px;
  margin-left: 5px;
  padding: 5px;
  font-size: 14px;
  font-weight: normal;
}
#contacts dl dd:last-child {
  width: 100%;
  color: #333;
  margin: 0;
  font-size: 12px;
}
#contacts dl dd span {
  display: block;
  line-height: 1.5;
}
#contacts .btn {
  position: relative;
  margin: 22px 0 0 0;
  background: #001A65;
  border: 2px solid #001A65;
  color: #FFF;
  border-radius: 20px;
  font-size: 14px;
  padding: 6px 0 6px 25px;
}
#contacts .btn:before {
  position: absolute;
  display: block;
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  content: "\e900";
  color: #FFF;
  font-size: (14px*1.7);
  font-size: 1.7rem;
  line-height: 1;
  top: 3px;
  left: 12px;
}
#contacts .btn:hover {
  background-color: #FFF;
  color: #001A65;
}
#contacts .btn:hover:before {
  color: #001A65;
}

#headnav {
  border-top: 1px solid #001A65;
}
#headnav ul li a {
  position: relative;
  color: #001A65;
}
#headnav ul li a:after {
  position: absolute;
  display: block;
  content: "";
  border-right: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
  width: 4px;
  height: 4px;
  bottom: 1em;
  left: 0;
  right: 0;
  margin: auto;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
#headnav ul li a:hover {
  color: #FF0000;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #toggle > a {
    background: none;
  }

  #headnav nav {
    background: rgba(26,0,102,.9);
  }
  #headnav ul li a:after {
    display: none;
  }
}

@media only screen and (min-width: 0px) and (max-width:480px) {
  #sp_contacts a.tel_link {
    background: none;
    display: table;
    margin: 0 auto 10px;
  }
  #sp_contacts a.tel_link:before {
    top: 2px;
  }
  #sp_contacts p {
    color: #333;
    font-weight: normal;
  }
  #sp_contacts dl dt:first-child {
    margin-bottom: 5px;
  }
  #sp_contacts dl dd {
    padding: 5px;
  }
  #sp_contacts dl dd span {
    display: block;
  }
}

#splash {
  background-image: url(img/splash_default.png);
}

@media only screen and (min-width: 0px) and (max-width:480px) {
  body #splash {
    background-color: #001A65;
  }
}

#main .mfrm .mhead {
  font-size: 32px;
  font-weight: normal;
  font-family: GenJyuuGothicXP, "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
  color: #FFFFFF;
  margin-bottom: 2em;
}
#main .mfrm .mhead h2 {
  display: table;
  margin: 0 auto;
  background-color: #001A65;
  border-radius: 10px;
  padding: 10px 50px;
}
#main .mfrm .mbody {
  margin-top: 60px;
}

@media only screen and (min-width: 0px) and (max-width:480px) {
  #main .mfrm .mhead {
    font-size: 22px;
    margin: 2em 0;
  }
  #main .mfrm .mhead h2 {
    padding: .5rem;
  }
}

#sec h2 {
  display: table;
  margin: 0 auto;
  color: #FFF;
  padding: .5rem 3rem;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #sec h2 {
    font-size: 22px;
  }
}

#caseexample {
  border-top: 1px solid #FFB973;
}

#caseexample .bg {
  background-color: #FFF;
}

#main #caseexample .mhead {
  color: #FFF;
}
#caseexample .mbody ul li a {
  color: #001A65;
}
#caseexample .mbody ul li p {
  color: #383712;
}

#keyword {
  background: url(img/key_bg.jpg) no-repeat fixed 0 0 / cover;
}

#keyword .bg {
  background: none;
}

#main #keyword .mhead {
  color: #FFF;
}
#keyword .mbody div {
  background: #FFFFFF;
}
#keyword .mbody h3 {
  color: #333;
  font-family: SourceHanSerifJP, "游明朝", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}
#keyword .mbody ul {
  background-color: #EEE;
  color: #333;
  padding: 5px;
}
#keyword .mbody ul li {
  background: url(img/blt_rtri_gy.png) left 7px no-repeat;
}

#pagetop a {
  background-image: none;
	position: relative;
	display: block;
	width: 45px;
	height: 45px;
	background-color: #001A65;
	text-indent: 100%;
	white-space: nowrap;
  overflow: hidden;
  padding-top: 0;
}
#pagetop a:before {
	position: absolute;
	display: block;
	content: "";
	border-style: solid;
	border-width: 0 7.5px 13px 7.5px;
	border-color: transparent transparent #FFF transparent;
	width: 0;
	height: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
}

#footer {
  background-color: #001A65;
}


/* format.css */
a.btn {
  position: relative;
  background-color: #FFF;
  border: none;
  color: #402000;
  border-radius: 20px;
  font-size: 14px;
  padding: 5px 0 5px 20px;
}
a.btn:hover {
  background-color: #402000;
  color: #FFF;
}
a.btn.fr {
  color: #402000;
}
a.btn.fr:before {
  position: absolute;
  display: block;
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  content: "\e901";
  color: #001A65;
  font-size: (14px*1);
  font-size: 1rem;
  line-height: 1;
  top: 50%;
  left: 12px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
a.btn.fr:hover {
  color: #FFF;
}
a.btn.fr:hover:before {
  color: #FFF;
}

/* index.css */
#splash {
  height: 450px;
  background-position: center;
}
#splash .inr {
  width: 100%;
  padding: 0;
}
#splash-under {
  height: 250px;
}
#catch {
  position: relative;
  display: block;
  height: 450px;
}
#catch .catch-wrapper {
  position: absolute;
  display: block;
  top: 50%;
  width: 100%;
  height: 150px;
  background-color: #FFF;
  opacity: .8;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
#catch .main-catch {
  width: 840px;
  height: 150px;
  margin: 0 auto;
  background-color: #001A65;
  opacity: 1;
  text-align: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
}
#catch h2 {
  font-size: 32px;
  font-weight: normal;
  font-family: GenJyuuGothicXP, "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
  margin-bottom: 5px;
  padding-bottom: 5px;
  line-height: 1.4;
  border-bottom: 1px dotted #FFF;
}
#catch h2 span {
  display: block;
}
#catch h2 br {
  display: none;
}
#catch h3 {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 2px;
}
#splash-under .inr {
  width: 100%;
  padding: 0;
}
#splash-under #catch {
  position: relative;
  width: 100%;
  height: 250px;
}
#splash-under #catch .catch-wrapper {
  position: absolute;
  display: block;
  top: 50%;
  height: 100px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
#splash-under #catch .main-catch {
  width: 840px;
  height: 100px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2rem 0;
}
#splash-under #catch .main-catch h2 {
  font-size: 24px;
  text-align: center;
  border-bottom: none;
  margin: 0;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #catch {
    width: auto;
    height: auto;
    border-bottom: 1px solid #FFF;
  }
  #catch .catch-wrapper {
    position: relative;
    top: 0;
    height: 100%;
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  #catch .main-catch {
    width: 100%;
    height: 100%;
    opacity: 1;
    padding: .5rem;
  }
  #catch h2 {
    font-size: 18px;
    margin: 0 0 5px;
    padding-bottom: 5px;
  }
  #catch h2 br {
    display: block;
  }
  #catch h3 {
    font-size: 14px;
    letter-spacing: 0;
  }
  #splash-under #catch {
    height: auto;
  }
  #splash-under #catch .catch-wrapper {
    background: none;
  }
  #splash-under #catch .main-catch {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 1rem;
  }
  #splash-under #catch .main-catch h2 {
    font-size: 18px;
  }
}


#field {
  background: url(img/bg.png) center repeat;
}
#main #field .mhead h2 {
  display: table;
  margin: 0 auto;
  background-color: #FFF;
  color: #001A65;
}
#field .mbody div {
	margin-top: 60px;
}
#field .mbody div h3,
#field .mbody div p {
	width: 920px;
  float: right;
}
#field .mbody div:nth-child(even) h3,
#field .mbody div:nth-child(even) p {
	float: left;
}
#field .mbody div h3 {
  position: relative;
	padding: 5px 0 5px 30px;
	color: #333;
	font-weight: bold;
  font-size: 22px;
  background: #FFF;
  border: 2px solid transparent;
  border-radius: 5px;
	box-sizing: border-box;
}
#field .mbody div h3:before {
  position: absolute;
  display: block;
  content: "";
  background: #663300;
  height: 25px;
  width: 7px;
  top: 9px;
  left: 10px;
}
#field .mbody div p {
  font-size: 16px;
  color: #FFF;
}

@media only screen and (min-width: 0px) and (max-width:480px) {
  #field .mbody div img {
    float: none;
    margin: 0 0 1em;
  }
  #field .mbody div:nth-child(even) img {
    float: none;
    margin: 0 0 1em;
  }
  #field .mbody div h3,
	#field .mbody div p {
		width: 100%;
		float: none;
		clear: both;
  }
  #field .mbody div:nth-child(even) h3,
	#field .mbody div:nth-child(even) p {
		float: none;
  }
  #field .mbody div p {
    font-size: 14px;
  }
}


/* inquiry.css */
.wpcf7-submit {
  display: block;
  border: 1px solid #001A65;
  background-color: #fff;
  color: #001A65;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  padding: 20px;
  width: 150px;
  cursor: pointer;
}
.wpcf7-submit:hover {
  color: #fff;
  background: #001A65;
  opacity: 1;
}
.formarea input[type="email"],
.formarea input[type="tel"] {
  padding: 8px;
  border: 1px solid #BEBEBE;
  border-radius: 3px;
  font-size: 14px;
}

#staff .bg {
	background: none;
}
#staff .mbody div {
  margin: 0;
}
#staff .mbody > div {
  margin-top: 60px;
}
#staff .mbody div img {
  float: none;
  margin-right: 0;
}
#staff .mbody .staff-section.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  margin: 0 -2em -2em 0;
  padding-bottom: 2em;
}
#staff .mbody .staff-section.flex dl {
  -ms-flex-preferred-size: 50%;
      flex-basis: 50%;
      max-width: 50%;
  padding: 0 2em 2em 0;
  box-sizing: border-box;
}

#staff dl {
  text-align: left;
}
#staff .mbody div dl dt {
  position: relative;
  margin-top: 20px;
  padding: 0 0 5px 24px;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid #333;
}
#staff .mbody div dl dt:before {
  position: absolute;
  display: block;
  content: "";
  background-color: #001A65;
  width: 12px;
  height: 12px;
  top: 8px;
  left: 1px;
}
#staff .mbody div dl dt:first-child {
	margin-top: 0;
}
#staff .mbody div dl dd {
  font-size: 16px;
  padding: 15px;
}
#staff .mbody div dl dd span {
  font-size: 20px;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #staff .mbody .staff-section.flex dl {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        max-width: 100%;
  }
  #staff dl {
    margin-bottom: 1em;
  }
  #staff .mbody div dl dd {
    font-size: 14px;
  }
}


#company {
  border-top: 1px solid #EEE;
}
#company .mbody > div {
  margin-top: 60px;
}
#company .mbody table {
  width: 100%;
	margin: 0;
  border-top: none;
}
#company .mbody tr {
	border: none;
}
#company .mbody tr:first-child th {
  border-top: 1px solid #001A65;
}
#company .mbody tr:first-child td {
  border-top: 1px solid #DDD;
}
#company .mbody th,
#company .mbody td {
  display: table-cell;
  width: auto;
	height: auto;
	border-right: none;
	color: #333;
	vertical-align: middle;
  background: none;
  text-align: left;
  padding: 10px 15px;
}
#company .mbody th {
  border-bottom: 1px solid #001A65;
  width: 10em;
}
#company .mbody td {
  width: auto;
	color: #333;
  background: #fff;
  border-bottom: 1px solid #DDD;
	box-sizing: border-box;
}
#company .mbody .company {
  overflow: hidden;
}
#company .mbody .company-main {
  float: left;
  width: 100%;
  margin-right: -380px;
  padding-right: 420px;
  box-sizing: border-box;
}
#company .mbody .company-image {
  float: right;
  width: 380px;
  box-sizing: border-box;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #company .mbody {
    font-size: 14px;
  }
  #company .mbody tr:first-child th {
    border-top: none;
  }
  #company .mbody tr:first-child td {
    border-top: none;
  }
  #company .mbody th,
  #company .mbody td {
    display: block;
    padding: 0;
  }
  #company .mbody th {
    border-bottom: none;
    color: #001A65;
    font-weight: bold;
  }
  #company .mbody td {
    border-bottom: none;
    padding: 5px 0 1em 1em;
  }
  #company .mbody .company-main {
    float: none;
    margin: 0 0 1em 0;
    padding-right: 0;
  }
  #company .mbody .company-image {
    float: none;
    width: 100%;
  }
}

#footer .lead {
  border-bottom: 1px solid #FFF;
}

/* スマホ修正 */
.formarea .per60 {
  width: 60%;
  box-sizing: border-box;
}

.footer_menu {
  display: none;
}

@media only screen and (min-width: 0px) and (max-width:480px) {
  #container {
    padding-top: 0 !important;
  }

  #header {
	  position: static;
    box-shadow: none;
  }

  #header .lead {
    display: none;
  }

  #header .logo {
    padding: 0;
  }

  #contacts p {
    display: none;
  }

  #contacts .btn {
    display: none;
  }

  #toggle {
    display: none;
  }

  #headnav {
    height: 0;
    border-top: none;
  }

  #headnav nav {
    position: fixed;
  }

  #sp_contacts {
    padding: 0 20px 0;
    overflow: inherit;
  }

  #sp_contacts .btn {
    font-size: 12px;
    width: 100%;
    margin-bottom: 10px;
  }

  #pagetop {
    bottom: 80px;
  }

  #access {
    margin-bottom: 80px;
  }

  #footer {
    padding-bottom: 80px;
  }

  .footer_menu {
    display: block;
    position: fixed;
    padding: 10px;
    bottom: 0;
    height: 65px;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 1000;
    border-top: 1px solid #001A65;
  }

  .footer_menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }

  .footer_menu ul li {
    -ms-flex-preferred-size: 33%;
    flex-basis: 33%;
    max-width: 33%;
    text-align: center;
    padding-top: 25px;
  }

  .footer_menu ul li a {
    color: #001A65;
    text-decoration: none;
  }

  .footer_menu ul li.menu span {
    position: relative;
  }

  .footer_menu ul li.menu span:before {
    position: absolute;
    display: block;
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    content: "\e903";
    color: #001A65;
    font-size: (14px*1.3);
    font-size: 1.3rem;
    line-height: 1;
    top: -25px;
    left: 0;
    right: 0;
    margin: auto;
  }

  .footer_menu ul li.tel span {
    position: relative;
  }

  .footer_menu ul li.tel span:before {
    position: absolute;
    display: block;
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    content: "\e902";
    color: #001A65;
    font-size: (14px*1.6);
    font-size: 1.6rem;
    top: -35px;
    left: 2px;
    right: 0;
    margin: auto;
  }

  .footer_menu ul li.mail span {
    position: relative;
  }

  .footer_menu ul li.mail span:before {
    position: absolute;
    display: block;
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    content: "\e900";
    color: #001A65;
    font-size: (14px*1.8);
    font-size: 1.8rem;
    line-height: 1;
    top: -28px;
    left: 0;
    right: 0;
    margin: auto;
  }

  .formarea .per60 {
    width: 100%;
  }
}

#splash-under {
  height: 250px;
  background-image: url(img/splash_default_under.png);
  background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #splash-under {
    height: auto;
    background-position: center top;
    background-size: auto 150px;
  }
}

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

/* キーワード記事用 */
#detail .mbody .post-list li {
  float: left;
  width: 580px;
  margin-top: 40px;
}
#detail .mbody .post-list li:nth-child(odd) {
  margin-right: 20px;
}
#detail .mbody .post-list li a {
  font-size: 16px;
  font-weight: bold;
  color: #555;
}
#detail .mbody .post-list img {
  float: left;
  margin-right: 10px;
  max-width: 120px;
  height: auto;
}
#keyword_list .mbody li a {
  font-size: 16px;
  font-weight: bold;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  #detail .mbody .post-list li {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
  #detail .mbody .post-list li:nth-child(odd) {
    margin-right: 0;
  }
  #detail .mbody .post-list img {
    max-width: 90px;
  }
}


/* 前の記事へ、次の記事へ　リンク  */
.paging {
  overflow: hidden;
  padding: 20px 0;
}
.paging .prev {
  float: left;
}
.paging .prev a {
  font-size: 16px;
  font-weight: bold;
}
.paging .next {
  float: right;
}
.paging .next a {
  font-size: 16px;
  font-weight: bold;
}
.paging .back {
  text-align: center;
}
.paging .back a {
  font-size: 16px;
  font-weight: bold;
}


/* 下層ページ用 */
.category_text p {
  font-size: 16px;
}
#detail .mbody p {
  font-size: 16px;
}
@media only screen and (min-width: 0px) and (max-width:480px) {
  .category_text p {
    font-size: 14px;
  }
  #detail .mbody p {
    font-size: 14px;
  }
}
