@import url("https://fonts.googleapis.com/css?family=Average|EB+Garamond|Sawarabi+Mincho&display=swap");

body {
  background-color: #ffffff;
}

.custom-logo {
  height: 59px !important;
}

#masthead {
  height: 80px;
}

#masthead .corp-container {
  max-width: 100%;
  padding-right: 0;
  box-sizing: border-box;
}

.main-navigation ul li a {
  font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: normal !important;
}

div.top_contact {
  display: flex;
  box-sizing: border-box;
  background: -moz-linear-gradient(left, rgba(41,46,66,0.71) 0%, rgba(41,46,66,1) 31%, rgba(41,46,66,1) 100%);
  background: -webkit-linear-gradient(left, rgba(41,46,66,0.71) 0%,rgba(41,46,66,1) 31%,rgba(41,46,66,1) 100%);
  background: linear-gradient(to right, rgba(41,46,66,0.71) 0%,rgba(41,46,66,1) 31%,rgba(41,46,66,1) 100%);
  height: 80px;
  width: 200px;
  margin: -10px 0 -10px 0;
  padding-left: 1em;
}

div.top_contact a {
  line-height: 80px;
  color: #fff;
  font-family: 'Average','Century',serif;
  vertical-align: middle;
  text-align: center;
}

.fa-envelope {
  margin-top: -4px;
  font-size: 1.5em;
  vertical-align: middle;
}

.top_copy p {
  font-family: 'Sawarabi Mincho',"游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.top_copy {
  padding: 20px 30px;
  position: absolute;
  display: block;
  width: auto;
  background-color: rgba(255,255,255,0.7);
  top: 40%;
  left: 0px;
  transform: translatey(-50%);
}

h4 {
  font-size: 28px;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: 'Average','Century',serif;
  font-weight: normal;
}

#middle_hero .sow-slider-image,
.bgbottom .sow-slider-image {
  background-position: center bottom !important;
}

.middle_hero_textwrap {
  position: absolute;
  width: 100%;
  top: 10%;
  left: 50%;
  transform: translatex(-50%);
}

.bottom-bar .corp-container {
  display: block !important;
}

.site-footer .site-info {
  text-align: center;
}

table#news {
  border: none;
  border-top: solid 1px #999;
  border-bottom: solid 1px #999;
}

table#news td {
  border: none;
}

hr {
  background-color: #999;
  border: 0;
  height: 1px;
  margin-bottom: 27px;
}

.site-footer .widgets {
  padding-top: 20px;
}

.site-footer .widgets .widget {
  margin: 0 2.75% 0px 0;
}

.gotop {
  background-color: #cc2e2e;
  padding: 10px;
}

.gotop p {
  margin: 0;
}

.toptextwrap {
  display: block;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-shadow: 0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff,0 0 5px #fff;
}

@media screen and (max-width:1280px) {
  .main-navigation ul li {
    margin: 0 8px -10px 8px;
  }

  div.top_contact {
    width: 130px;
  }
}

@media screen and (max-width:770px) {
  div.top_contact {
    display: none;
  }

  #masthead .corp-container {
    padding-right: 10px;
  }

  .top_copy {
    padding: 10px 5px;
    position: relative;
    display: block;
    width: auto;
    background-color: rgba(255,255,255,0.7);
    text-align: center;
  }

  .top_copy p {
    font-size: 3.2vw !important;
  }
}

.layered {
  background-color: #fff;
  position: absolute;
  width: 430px !important;
  top: 50%;
  transform: translatey(-50%);
  z-index: 5;
  padding: 30px !important;
}

.layer-left {
  left: 0;
}

.layer-right {
  right: 0;
}

.layered h3 {
  line-height:150%;
  margin-bottom: 10px;;
}
.layered p {
  margin-bottom: 0;
  white-space:nowrap;
}

.panel-grid-cell {
  position: relative;
}
@media screen and (max-width:770px){
  .layered{
    position:relative;
    width:100% !important;
    top:0;
  transform: translatey(0);
    
  }
}