@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);

/* reset */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
  margin: 0;
  padding: 0;
}

address, caption, cite, code, dfn, em, strong, th, var {
  font-style: normal;
}

ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th {
  text-align: left;
}

q:before, q:after {
  content: '';
}

object, embed {
  vertical-align: top;
}

legend {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
}

img, abbr, acronym, fieldset {
  border: 0;
}

body {
  font: 14px/1.9 'Noto Sans JP', Arial, Verdana, 游ゴシック, YuGothic, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, sans-serif;
  font-weight: 300;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  color: #000;
  background: #fff;
}

a {
  color: #000;
  text-decoration: none;
  display: block;
  width: 80%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.0);
  padding-left: 10px;
}

a:hover, .active {
  border-bottom: 1px solid #000;
}

a:active, a:focus, input:active, input:focus {
  outline: 0;
}


/* ヘッダー*/
#mainnav a {
  color: #000;
  font-family: 'Noto Sans JP', serif;
}

/* フッター*/
#footer {
  clear: both;
  padding: 50px 10px 50px 0;
  text-align: center;
  font-size: 12px;
}

/* PCSP共通*/
h1, h2 {
  font-family: 'Noto Sans JP', serif;
  font-weight: 500 !important;
}

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


/* RESPONSIVE 設定*/
/*PC設定*/
@media only screen and (min-width: 800px) {
  body {
    font-size: 18px;
  }

  #wrapper {
    width: 100%;
  }

  #content {
    width: 80%;
    position: relative;
    right: 0;
  }

  /*サイドメニュー*/
  #sidebar {
    width: 17%;
    position: fixed;
    top: 0;
    right: 2%;
    background: #fff;
  }

  a#menu {
    display: none;
  }

  /*スマホ用メニューボタンPC版では非表示*/
  .panel {
    display: flex !important;
    flex-direction: column;
  }

  #sidebar h1 {
    padding: 20px 0 10px 0;
    text-align: left;
  }

  /*看板画像*/
  #mainnav li {
    font-size: 18px;
    padding: 10px 0;
  }

  #sns {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
  }

  #sns li {
    width: 20%;
  }

  #sns a {
    display: inline;
  }

  #sns a:hover {
    border: none;
  }

  #sns a:hover img {
    opacity: .8;
  }

  #news li {
    display: flex;
    font-size: 16px;
  }

  #news div:nth-child(odd) {
    margin-right: 5px;
  }

  #news div:nth-child(even) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /*フッター*/
  footer::after {
    content: '©2019 REXUS co.,ltd';
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    display: block;
  }
}


/*スマホ設定*/
@media only screen and (max-width: 799px) {
  #sidebar {
    position: fixed;
    width: 100%;
    z-index: 9999;
    top: 0;
  }

  #sidebarWrap {
    position: relative;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #ccc;
  }

  /*メニュー機能*/
  #sidebar h1 {
    text-align: center;
    padding-top: 20px;
  }

  #sidebar h1 img {
    width: auto !important;
    max-height: 25px;
  }

  a#menu {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
    margin: 10px;
  }

  #menuBtn {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -7px;
    background: #000;
    transition: .2s;
  }

  #menuBtn:before, #menuBtn:after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 2px;
    background: #000;
    transition: .3s;
  }

  #menuBtn:before {
    margin-top: -7px;
  }

  #menuBtn:after {
    margin-top: 5px;
  }

  a#menu .close {
    background: transparent;
  }

  a#menu .close:before, a#menu .close:after {
    margin-top: 0;
  }

  a#menu .close:before {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }

  a#menu .close:after {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
  }

  /*メニュースタイル*/
  .panel {
    width: 100%;
    display: none;
    overflow: hidden;
    position: relative;
    left: 0;
    top: -10px;
    z-index: 100;
  }

  #mainnav {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: right;
  }

  #mainnav ul {
    background: #fff;
    text-align: left;
  }

  #mainnav li a {
    position: relative;
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid #ccc;
    color: #000;
    font-weight: 400;
  }

  #mainnav li a:before {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 6px;
    height: 6px;
    margin: -4px 0 0 0;
    border-top: solid 2px #000;
    border-right: solid 2px #000;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  #mainnav #sns {
    display: flex;
    justify-content: flex-start;
  }

  #mainnav #sns li {
    display: inline-block;
  }

  #mainnav #sns li a {
    border: none;
  }

  #mainnav #sns li a:before {
    border: 0;
  }

  #mainnav #news {
    display: none;
  }

  /*各セクションタイトル*/
  div.contentWrap h2 {
    margin: 55px auto;
  }

  /*フッター*/
  footer::after {
    content: '©2019 REXUS co.,ltd';
    width: 100%;
    text-align: center;
    font-size: 1.5vw;
    display: block;
    margin: 0 auto;
  }
}

img.item-img {
  overflow: hidden;
  transform-origin: bottom;
}
