body {
  margin: 0;
  font-family: serif;
}

/* ヘッダー */
header {
  height: 120px;
}

#header_wrap{
  width: 49%;
  display: inline-block;
  margin-left: 5%;
}

#header_logo {
  padding-top:10px;
  width: 10%;
  display: inline-block;
  height: 100px;
  vertical-align: middle;
}

.header_name{
  display: inline-block;
  width: 60%;
}

.header_name h1{
  font-size: 1em;
}

.logo {
  position: absolute;
  height: 100px;
  display: inline-block;
  padding-left: 4%;
}

.header_item {
  float: right;
  width: 40%;
  display: inline-block;
}

header ul {
  float: right;
  list-style: none;
}

header li {
  display: inline-block;
  margin-right: 30px;
  font-size: 130%;
  opacity: 1;
}

#menu{
  margin-top: 60px;
}

#menu a {
  text-decoration: none;
  color: black;
}

header li:hover {
  border-bottom: solid 2px orange;
}

/* ヘッダー終了 */
/* ラップ１ */
.main-wrap {
  height: 700px;
  width: 100%;
  background-image: url(../img/slider1.jpg);
  background-size: cover;
  text-align: center;
}

.main-wrap p {
  color: white;
  font-size: 3.0em;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  padding-top: 8%;
  margin-left: 38%;
  letter-spacing: 10px;
  line-height: 100px;
  font-weight: 300;
  animation: fadeIn 10s ease 20s 3 normal;
  -webkit-animation: fadeIn 5s ease 0s 1 normal;
  font-family: serif;
}

@keyframes fadeIn {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

/* ラップ１終了 */
/* ラップ２ */
.wrap2 {
  width: 100%;
  background-color: white;
  text-align: center;
  background-size: cover;
  font-family: serif;
}

.wrap2-inner{
  display: block;
  margin: 0 auto;
  width: 60%;
}

.wrap2 h1 {
  padding-top: 100px;
  color: #ff8856;
  font-size: 2.6em;
  font-weight: 600;
  text-decoration: underline;
}

.space{
  height: 30px;
  margin-left: 5%;
  margin-right: 5%;
}

.space2{
  height: 30px;
  border-bottom: 1px solid gray;
  margin-left: 15%;
  margin-right: 15%;
  opacity: 0.7;
}


.wrap2_text {
  display: block;
  width: 70%;
  margin: 0 auto;
}


.wrap2_text p {
  margin-top: 3%;
  font-size: 1rem;
  color: #6f514c;
  line-height: 270%;
  text-align: center;
}




.slider{
  margin: 50px auto;
  width: 80%;
}

.smart_text{
  margin-left: 3%;
    margin-right: 3%;
    margin-top:5%;
    line-height: 120%;
    color: #6f514c;
    font-size: 16px;
}





/* 可視範囲fadein */
.fadein {
  opacity: 0;
  transform: translate(0, 50px);
  transition: all 1500ms;
}

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





/* 可視範囲fadein 終了*/

.wrap3 {
  width: 100%;
  text-align: center;
  padding-bottom: 10%;
  /* height: 1100px; */
}

.text3 h1 {
  font-size: 2.5rem;
  font-weight: 600;
  padding-top: 8%;
}

.wrap3left {
  width: 50%;
  float: left;
}

.p3l p {
  margin-top: 10%;
  font-size: 1.8rem;
}

.l3t {
  font-size: 1.6rem;
  margin-top: 5%;
  line-height: 130%;
  text-align: left;
  margin-left: 15%;
}

.wrap3left img {
  margin-top: 7%;
}

.wrap3rigth {
  width: 50%;
  float: right;
}

.p3r p {
  margin-top: 10%;
  font-size: 1.8rem;
}

.r3t {
  font-size: 1.6rem;
  margin-top: 5%;
  line-height: 130%;
  text-align: left;
  margin-left: 15%;
}

.wrap3rigth img {
  margin-top: 11%;
}

.service img{
  width: 100%;
}







/* お問い合わせ */
.contact_wrap {
  height: 400px;
  width: 100%;
  text-align: center;
  clear: both;
}

.contact_wrap h1 {
  font-size: 40px;
  font-weight: 700;
  /* padding-top: 10%; */
}

.contact_box {
  width: 300px;
  padding: 30px 70px;
  text-align: center;
  border: 1px solid black;
  margin: 60px auto;
}

.contact_box p{
  font-size: 1.1rem;
}

.contact-text {
  font-weight: 400;
  line-height: 200%;
  font-size: 15px;
  padding-top: 25px
}

.contact_box:hover {
  background: orange;
}

.contact-a{
  color: black;
  text-decoration: none;
}





/* ページトップへ */
#page-top {
  position: fixed;
  bottom: 20px;
  right: 5%;
  font-size: 60%;
}

#page-top a {
  background: #666;
  text-decoration: none;
  color: #fff;
  width: 80px;
  padding: 20px 0;
  text-align: center;
  display: block;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}

#page-top a:hover {
  text-decoration: none;
  /* background: #999; */
  background: orange;
}

#page-top {
  position: fixed;
  bottom: 20px;
  right: 5%;
  font-size: 60%;
}

/* レスポンシブル */
@media screen and (min-width: 920px) {
  header ul {
    margin-top: 120px;
  }
}
/*
@media screen and (max-width: 410px) {
  .logo {
    width: 200px;
    margin-top: 10%;
  }
} */

@media screen and (max-width: 510px) {
  .wrapper {
    height: 810px;
  }
}

@media screen and (max-width: 510px) {
  .main-wrap {
    height: 600px;
  }
}

@media screen and (max-width: 1100px) {
  .main-wrap p {
    margin-left: 33%;
  }
}

@media screen and (max-width: 830px) {
  .main-wrap p {
    margin-left: 28%;
  }
}

@media screen and (max-width: 600px) {
  .main-wrap p {
    margin-left: 23%;
  }
}


@media screen and (max-width: 510px) {
  .main-wrap p {
    margin-left: 0;
    font-size: 2.5em;
    margin-left: 13%;
  }
}

/* ラップ２開始 */
@media screen and (max-width: 1280px) {
  .wrap2_text p {
    line-height: 120%;
    margin-right: 0;
    margin-left: 0;
  }
}

/* @media screen and (min-width: 1250px) {
  .wrap2 {
    height: 800px;
  }
} */

@media screen and (max-width: 1250px) {
  .wrap2_text {
    width: 100%;
    float: none;
    text-align: center;
    /* padding-bottom: 7%; */
  }
}

@media screen and (min-width: 1400px) {
  .wrap2 {
    padding-bottom: 5%;
  }
}

@media screen and (max-width: 1250px) {
  .wrap2_text p {
    margin-top: 5%;
  }
}

@media screen and (max-width: 510px) {
  .wrap2 h1 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 770px) {
  .wrap2 h1 {
    /* font-size: 1.4em; */
    padding-top: 5%;
  }
}

@media screen and (max-width: 1250px) {
  .wrap2_text p {
    font-size: 1.1em;
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (max-width: 660px) {
  .wrap2_text p {
    font-size: 0.9rem;
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media screen and (max-width: 480px) {
  .wrap2_text p {
    font-size: 1rem;
    margin-left: 5%;
    margin-right: 5%;

  }
}




@media screen and (max-width: 1100px) {
  .wrap2_text img {
    display: none;
  }
}

/* @media screen and (min-width: 1100px) {
  .wrap3 {
    height: 900px;
  }
} */

/* ラップ２終了 */



/* ラップ３開始 */
@media screen and (max-width: 1200px) {
  .wrap3 {
    padding-bottom: 0;
  }
  .contact_wrap {
  margin-top: 10%;
  }
}

@media screen and (max-width: 1200px) {
  .wrap3rigth img {
    margin-top: 11%;
    width: 400px;
    height: 200px;
  }
}

@media screen and (max-width: 1050px) {
  .wrap3rigth img {
    margin-top: 15%;

  }
}

@media screen and (max-width: 963px) {
  .wrap3rigth img {
    margin-top: 20%;

  }
}



@media screen and (max-width: 1200px) {
  .wrap3left img {
    margin-top: 7%;
    width: 400px;
    height: 200px;
  }
}

/* @media screen and (max-width: 850px) {
  .wrap3 {
    height: 1200px;
  }
} */

/* @media screen and (max-width: 650px) {
  .wrap3 {
    height: 1100px;
  }
} */

@media screen and (max-width: 850px) {
  .wrap3left {
    width: 100%;
    float: none;
  }
}

@media screen and (max-width: 850px) {
  .wrap3rigth {
    width: 100%;
    float: none;
  }
}

@media screen and (max-width: 850px) {
  .p3l p {
    margin-top: 5%;
    font-size: 1rem;
    font-weight: 700;
  }
}

@media screen and (max-width: 850px) {
  .space2{
height: 15px;
  }
}

@media screen and (max-width: 850px) {
  .l3t {
    margin-top: 5%;
    font-size: 1.3rem;
    margin-left: 20%;
  }
}

@media screen and (max-width: 650px) {
  .l3t {
    margin-left: 15%;
  }
}

@media screen and (max-width: 450px) {
  .l3t {
    margin-left: 10%;
  }
}

@media screen and (max-width: 850px) {
  .wrap3left {
    width: 100%;
    float: none;
  }
}

@media screen and (max-width: 850px) {
  .p3r p {
    margin-top: 7%;
    font-weight: 700;
    font-size: 1rem;
  }
}

@media screen and (max-width: 850px) {
  .r3t {
    margin-top: 5%;
    font-size: 1.3rem;
    margin-left: 20%;
  }
}

@media screen and (max-width: 650px) {
  .r3t {
    margin-left: 15%;
  }
}

@media screen and (max-width: 450px) {
  .r3t {
    margin-left: 10%;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 850px) {
  .wrap3rigth img {
    margin-top: 5%;
  }
}

/* @media screen and (max-width: 420px) {
  .wrap3 {
    height: 800px;
  }
} */


@media screen and (max-width: 420px) {
  .wrap3rigth img {
    width: 300px;
    height: 150px;
  }
}

@media screen and (max-width: 420px) {
  .wrap3left img {
    width: 300px;
    height: 150px;
  }
}

@media screen and (max-width: 420px) {
  .text3 h1 {
    padding-top: 15%;
    font-size: 20px;
  }
}

@media screen and (max-width: 420px) {
  .p3l {
    margin-top: 10%;
    font-size: 1.0rem;
  }
}

@media screen and (max-width: 420px) {
  .l3t {
    margin-top: 8%;
    font-size: 0.9rem;
  }
}








/* コンタクトボックス */
@media screen and (max-width: 1010px) {
  .contact_box {
    width: 200px;
  }
}


@media screen and (max-width: 700px) {
  .contact-text {
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media screen and (max-width: 400px) {
  .contact-text {
    font-size: 13px;
  }
}

@media screen and (max-width: 1010px) {
  .contact_box p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 570px) {
  .contact_box {
width: 150px;
padding: 15px 30px;
  }
  .contact_box p{
    font-size: 10px;
  }
}



@media screen and (max-width: 1200px) {
  .slider img {
height: 300px;
  }
}

@media screen and (max-width: 850px) {
  .slider img {
height: 250px;
  }
}

@media screen and (max-width: 690px) {
  .slider img {
height: 200px;
  }
}

@media screen and (max-width: 690px) {
  .wrap2 h1 {
font-size: 1.7rem;
margin-top: 5%;
  }
}

@media screen and (max-width: 690px) {
  .wrap2_text p {
font-size: 0.8rem;
  }
}

@media screen and (max-width: 550px) {
  .slider img {
height: 150px;
  }
  .contact_wrap h1{
    font-size: 24px;
    margin-top: 5%;
  }
  .contact-text{
    font-size: 10px;
  }
  .wrap2 h1{
    font-size: 1.3rem;
  }
  .contact_box{
    margin: 30px auto;
  }
  .contact-text{
    margin-left: 10%;
    margin-right: 10%;
  }
  .contact_wrap{
    height: 250px;
  }
}

@media screen and (max-width: 420px) {
  .slider img {
height: 140px;
width: 260px;
  }
}

@media screen and (max-width: 420px) {
  .wrap2_text p {
font-size: 0.7rem;
display: none;
  }
}

@media screen and (min-width: 420px) {
.smart_text {
display: none;
  }
}

@media screen and (max-width: 420px) {
.main-wrap p {
font-size: 1.8rem;
line-height: 70px;
margin-left: 23%;
padding-top: 15%;
 }
}

@media screen and (max-width: 420px) {
.main-wrap{
height: 500px;
 }
}
