/* ----------------------------

  共通設定

  1. PCサイズ（769px以上）
    1.1 Base
    1.2 Header
    1.3 fv
    1.4 Scroll Down
    1.5 Page Top
    1.6 contact-section
    1.7 Footer
    1.8 Loading Animation
  
  2. SPサイズ（768px以下）
    2.1 Base
    2.2 Header
    2.3 fv
    2.4 Page Top
    2.5 contact-section
    2.6 Footer
    2.7 Loading Animation

---------------------------- */

/* ---------------------------- */
/* 1. PCサイズ（769px以上）
/* ---------------------------- */

/* 1.1 Base */
html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  letter-spacing: .05em;
  font-family: "游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro",メイリオ,Meiryo,"sans-serif";
  color: #4f4139;
}

img {
  vertical-align: bottom;
  width: 100%;
}

section {
  padding: 100px 0;
}

.section-inner, .footer-inner {
  width: 1000px;
  margin:0 auto;
}

.section-title {
  max-width: 1000px;
  color: #4f4139;
  font-size: 40px;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif,"sans-serif";
  font-weight: bold;
}

.tategaki, .tategaki-title {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode:vertical-rl;
}

.text-right {
  text-align: right;
}

.text-white {
  color: #fff;
}

.link-btn, .link-btn-s {
  display: block;
  line-height: 60px;
  background-color: #fff;
  border:#96af87 solid 1px;
  border-radius: 30px;
  text-align: center;
  color: #96af87;
  text-decoration: none;
  transition: .3s;
}

.link-btn {
  width: 320px;
  margin: 0 auto;
  margin-top: 80px;
}

.link-btn-s {
  width: 200px;
}

.link-btn:hover, .link-btn-s:hover {
  transition: .3s;
  color: #fff;
  background-color: #96af87;
}

.sp-br, .img-sp {
  display: none;
}

.fadein {
  transform : translate(0, 50px);
  opacity : 0;
  transition:all 0.8s;
}

.fadein.scrollin {
  transform : translate(0, 0);
  opacity : 1;
}

/* 1.2 Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  padding: 20px 30px;
  box-sizing: border-box;
  background-color: #fff;
  transition: .3s;
}

header a {
  display: block;
  color: #4f4139;
  font-weight: bold;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif,"sans-serif";
  transition: .3s;
  text-decoration: none;
}

header a:hover {
  opacity: .7;
  transition: .3s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.site-logo {
  width: 200px;
}

.nav-list {
  display: flex;
}

.nav-list li {
  padding: 0 20px;
}

.nav-list li + li {
  border-left:1px solid #4f4139;
}

.nav-list li::after {
  display: block;
  width: 0;
  border-bottom: solid 3px #d3381c;
  transition: all .4s ease;
  -webkit-transition: all .4s ease;
  content: "";
}

.nav-list li:hover::after {
  width: 100%;
}

/* 1.3 fv */
.fv {
  background-image: url(../img/img-fv.jpg);
  height: 100vh;
  min-height: 550px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.fv h1 {
  position: absolute;
  left: 48%;
  top: 200px;
  color: #fff;
  letter-spacing: 2rem;
  font-size: 60px;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif,"Noto Serif JP","sans-serif";
}

/* 1.4 Scroll Down */
/*スクロールダウン全体の場所*/
.scrolldown {
  /*描画位置※位置は適宜調整してください*/
  position:absolute;
  bottom:1%;
  right:20%;
  /*矢印の動き1秒かけて永遠にループ*/
  animation: arrowmove 1s ease-in-out infinite;
}
/*下からの距離が変化して全体が下→上→下に動く*/
@keyframes arrowmove {
  0% { bottom: 1%; }
  50% { bottom: 3%; }
  100% {bottom: 1%; }
}
/*Scrollテキストの描写*/
.scrolldown span { 
  /*描画位置*/
  position: absolute;
  left:-30px;
  bottom:24px;
  /*テキストの形状*/
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}
/* 矢印の描写 */
.scrolldown:before {
  content: "";
  /*描画位置*/
  position: absolute;
  bottom: 0;
  right: -4px;
  /*矢印の形状*/
  width: 1px;
  height: 12px;
  background: #fff;
  transform: skewX(-31deg);
}
.scrolldown:after {
  content:"";
  /*描画位置*/
  position: absolute;
  bottom:0;
  right:0;
  /*矢印の形状*/
  width:1px;
  height: 80px;
  background:#fff;
}

/* 1.5 Page Top */
#page_top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%; /*角の丸み*/
  background: #4f4139; /*ボタンの色*/
  opacity: 0.6;
}

#page_top a {
  position: relative;
  width: 50px;
  height: 50px;
  display: block;
  text-decoration: none;
}

.fa-chevron-up::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 60%;
  margin: auto;
  color: #fff; /*アイコンの色*/
  font-size: 40px;
  text-align: center;
}

/* 1.6 contact-section */
.bg-contact {
  background-image: url(../img/bg-contact.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.contact{
  display: flex;
  align-items: center;
}

.contact-mail, .contact-phone {
  width: 320px;
  margin: 60px auto 0;
  padding: 10px 20px;
  border:#96af87 solid 4px;
  border-radius: 60px;
  background-color: #fff;
  color: #96af87;
  text-align: center;
  text-decoration: none;
  transition: .3s;
}

.contact-mail {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-mail {
  text-decoration: none;
  color: #96af87;
  margin: 30px;
}

.btn-mail:hover {
  opacity: .7;
}

.phone-number {
  font-size: 40px;
  font-weight: bold;
}

.fa-envelope, .fa-phone-volume {
  font-size:40px;
  margin-right: 4px;
}

.contact-text {
  display: flex;
  justify-content: center;
  line-height: 40px;
}

/* 1.7 Footer */
footer {
  transition: .8s ease-in-out;
}

.footer-inner {
  margin: 60px auto;
}

.footer-logo {
  width: 200px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-nav-list {
  display: flex;
}

.footer-nav-item {
  padding: 0 20px;
  height: 30px;
}

.footer-nav-item a {
  color: #4f4139;
  text-decoration: none;
}

.footer-nav-item a:hover {
  opacity: .7;
}

.footer-nav-list li + li {
  border-left: 1px solid #999;
}

.bg-footer {
  height: 40vh;
  background-image: url(../img/img-footer.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.copy {
  position: relative;
  bottom:-36vh;
  font-size: 12px;
  color: #fff;
}

footer.active-b {
  opacity: 0;
}

/* 1.8 Loading Animation */
#loading {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: #333;

  opacity: 1;
  visibility: visible;
}

#loading.loaded {
  opacity: 0;
  visibility: hidden;
  transition: .8s ease-in-out .5s;
}

#progress {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 1100;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.60);
  animation: 1s progress infinite ease-in-out .5s;
  transform-origin: right;
}

#progress.loaded {
  transform: scaleX(0);
  transition: .8s ease-in-out;
}

#percent {
  position: fixed;
  bottom: 100px;
  right: 10%;
  color: #fff;
  font-size: 26px;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif,"sans-serif";
}

#percent span {
  display: inline-block;
  margin: 0 5px 0 0;
  font-size: 46px;
  font-weight: bold;
}

#percent.loaded {
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: .8s ease-in-out;
}

@keyframes progress {
  from {
    opacity: .5;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: .5;
  }
}

@keyframes bg_loaded {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#opening {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

#opening.done {
  opacity: 0;
  visibility: hidden;
  transition: 1s .1s;
}

#opening img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: 1.5s;
}

#opening img.show {
  opacity: 1;
  visibility: visible;
  animation: 3.5s scaleDown ease-in-out both;
}

@keyframes scaleDown {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1);
  }
}

/* ---------------------------- */
/* 2. SPサイズ（768px以下）
/* ---------------------------- */
@media screen and (max-width: 768px) {

  /* 2.1 Base */
  body {
    font-size: 1.4rem;
  }

  section {
    padding: 40px 10px;
  }

  .section-inner {
    width: 100%;
    max-width: 355px;
  }

  .section-title {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    font-size: 24px;
  }

  .section-title:before {
    position: absolute;
    bottom: 0px;
    left: calc(50% - 20px);
    width: 40px;
    height: 3px;
    background: #d3381c;
    content: '';
  }

  .tategaki {
    writing-mode: horizontal-tb;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode:horizontal-tb;
  }

  .text-right {
    text-align: center;
  }

  .sp-br {
    display: block;
  }

  .pc-br, .company-img {
    display: none;
  }

  /* 2.2 Header */
  header {
    padding: 10px 20px;
  }

  header a {
    font-size: 18px;
  }

  .site-logo {
    width: 120px;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li + li {
    border-left:none;
  }

  .nav-item::after {
    border-bottom: none;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: flex;
    text-align: center;
    position: fixed;
    right : 20px;
    top   : 10px;
    width : 40px;
    height: 40px;
    z-index : 3;
    cursor: pointer;
  }

  .hamburger span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 2px ;
    left    : 6px;
    background : #4f4139;
    -webkit-transition: 0.5s all;
    -moz-transition   : 0.5s all;
    transition        : 0.5s all;
  }

  .hamburger span:nth-child(1) {
    top: 10px;
  }

  .hamburger span:nth-child(2) {
    top: 20px;
  }

  .hamburger span:nth-child(3) {
    top: 30px;
  }

  /* ナビ開いてる時のボタン */
  .hamburger.active span:nth-child(1) {
    top : 22px;
    left: 7px;
    -webkit-transform: rotate(-45deg);
    -moz-transform   : rotate(-45deg);
    transform        : rotate(-45deg);
  }

  .hamburger.active span:nth-child(2) {
    left: 60%;
    opacity: 0;
    -webkit-animation: active-btn17-bar02 .8s forwards;
    animation: active-hamburger-bar02 .8s forwards;
  }

  .hamburger.active span:nth-child(3) {
    top: 22px;
    -webkit-transform: rotate(45deg);
    -moz-transform   : rotate(45deg);
    transform        : rotate(45deg);
  }

  @-webkit-keyframes active-hamburger-bar02 {
    100% {
      height: 0;
    }
  }

  @keyframes active-hamburger-bar02 {
    100% {
      height: 0;
    }
  }

  .hamburger::after {
    display: block;
    position: absolute;
    border-radius: 50%;
    transition: all .75s;
    content: '';
  }

  header nav {
    position: fixed;
    z-index : 2;
    top  : 0;
    left : 0;
    text-align: center;
    transform: translateX(100%);
    transition: all 0.6s;
    background: #96af87;
    width: 100%;
    padding: 40px 0;
    height: 100vh;
  }

  .nav-list {
    background: #96af87;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    opacity: .7;
  }

  .nav-list li {
    list-style-type: none;
    padding: 0;
    width: 100%;
  }

  .nav-list li:last-child {
    padding-bottom: 0;
  }

  .nav-list li a:hover{
    color:#fff;
  }
  
  .nav-list li a {
    display: block;
    color: #000;
    padding: 1.5em 0;
    text-decoration :none;
  }

  /* このクラスを、jQueryで付与・削除する */
  header nav.active {
    transform: translateX(0%);
  }

  #opening,#loading{
    display: none;
  }

  /* 2.3 fv */
  .fv h1 {
    left: 43%;
    font-size: 32px;
  }


  /* 2.4 Page Top */
  #page_top {
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 10px;
  } 

  .fa-chevron-up::before{
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    left: 0;
    margin: auto;
    color: #fff; /*アイコンの色*/
    font-size: 20px;
    text-align: center;
  }

  /* 2.5 contact-section */
  .contact {
    flex-direction: column;
  }

  .contact-mail, .contact-phone {
    height: 80px;
    width: 280px;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid #96af87;
  }

  .phone-number {
    font-size: 20px;
  }

  /* 2.6 Footer */
  .footer-nav {
    flex-direction: column;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-nav-list {
    flex-direction: column;
    margin-top: 12px;
  }

  .footer-nav-item {
    padding: 0;
  }

  .footer-nav-list li + li {
    border-left: none;
  }

  .footer-inner {
    width: 335px;
    margin-top: 20px;
  }

  /* 2.7 Loading Animation */
  #percent {
    bottom: 80px;
    right: 10%;
    font-size: 18px;
  }

  #percent span {
    font-size: 24px;
  }
}