@charset "utf-8";

@media screen and (max-width:768px) {

  /* ヘッダーメニュー */
  .menu {
    flex-direction: column;
    text-align: center;
  }

  .menu li a {
    margin-left: 0;
    line-height: 50px;
    font-size: 1.6rem;
  }

  #g-nav {
    position: absolute;
    z-index: 999;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: #1B1310;
    transition: all 0.6s;
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    top: 0;
  }

  /*ナビゲーション*/
  #g-nav .menu {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    position: absolute;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  /*×に変化*/
  .openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 2px;
    background-color: #fff;
    width: 50%;
  }

  .openbtn span:nth-of-type(1) {
    top: 15px;
  }

  .openbtn span:nth-of-type(2) {
    top: 23px;
  }

  .openbtn span:nth-of-type(3) {
    top: 31px;
  }

  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
  }

  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
  }

  /* ヒーローエリア */
  .hero_area {
    background-image: url(../img/fv-bgi_sp@2x.jpg);
  }


  /* サービス */
  .service_box:nth-of-type(odd) .service_textbox {
    margin-left: 0px;
  }

  .service_box:nth-of-type(even) .service_textbox {
    margin-right: 0px;
  }

  .service_box {
    flex-direction: column;
  }

  .service_box:nth-of-type(odd) {
    flex-direction: column;
  }

  .service_textbox {
    margin-bottom: 40px;
  }

  .service_subtitle {
    margin-bottom: 31px;
  }

  /* ニュース */
  .news_box {
    flex-direction: column;
  }

  .news_tile {
    width: 96%;
    margin: 0 auto 50px;
  }

  .news_tile:last-child {
    margin: 0 auto 0;
  }

}