*{
  margin: 0;
  padding: 0;
}
body{
  box-sizing: border-box;
}
body *{
  box-sizing: inherit; /* box-sizingの値は継承されないので明示的に設定 */
}

a {
    text-decoration: none;
    color: white;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

/*header*/

.header {
  width: 100%;
  height: 780px;
  background-image: url(../images/leadHP.home.jpg);
  background-position: center center; 
  background-repeat: no-repeat; 
  background-size: cover;
  position: relative;
}

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

  .sp {
    display: none;
  }
}

@media screen and (max-width: 420px) {
  .header {
    background-image: none;
    background-color: white;
  }

  .header_img {
    width: 100%;
    height: 100%;
    background-image: url(../images/leadHP.home.jpg);
    background-position: center center; 
    background-repeat: no-repeat; 
    background-size: cover;
    display: inline-block;
  }

  .header_title{
    display: none !important;
  }

  .header_title2{
    display: none !important;
  }

  .top_main_companyName {
    display: none;
  }

  .top_main {
    position: relative;
  }

  .header_sp1 {
    color: #a56238 !important;
    font-size: 20px;
    padding-top: 25px ;
    padding-left: 30px;
  }

  .sp {
    margin-top: 100px;
    text-align: center;
  }

  .sp_header_1 {
    font-size: 18px;
    letter-spacing:0.35em;
  }

  .sp_header_2 {
    margin-top: 15px;
    font-size: 12px;
  }

  .sp_header_3 {
    font-size: 12px;
  }
  
  .logo {
    margin: 20px;

    /* animation */
    animation-name: fadeInAnime;
    animation-fill-mode:backwards;
    animation-duration:3s;
    animation-timing-function:ease;
    animation-delay: 0.5s;
    animation-direction:normal;
  }

  @keyframes fadeInAnime{
    0% {
      opacity: 0.1;
    }
  
    100% {
      opacity: 1;
    }
  }

  .sp_subjects {
    font-size: 20px;
    color: #a56238;
    font-weight: bold;
    margin: 8px 0;
  }

  .sp_subjects_space {
    letter-spacing: 0.3rem;
    padding-bottom:3px;
  }

  .scroll {
    margin: 50px;
  }
  .arrows {
    margin-top: 50px;
    width: 50px;
    height: 72px;
  }
  
  .arrows path {
    stroke: black;
    fill: transparent;
    stroke-width: 2px;  
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite; 
  }
  
  @keyframes arrow
  {
  0% {opacity:0}
  40% {opacity:1}
  80% {opacity:0}
  100% {opacity:0}
  }
  
  @-webkit-keyframes arrow /*Safari and Chrome*/
  {
  0% {opacity:0}
  40% {opacity:1}
  80% {opacity:0}
  100% {opacity:0}
  }
  
  .arrows path.a1 {
    animation-delay:-1.3s;
    -webkit-animation-delay:-1.3s; /* Safari 和 Chrome */
  }
  
  .arrows path.a2 {
    animation-delay:-0.8s;
    -webkit-animation-delay:-0.8s; /* Safari 和 Chrome */
  }
  
  .arrows path.a3 { 
    animation-delay:0s;
    -webkit-animation-delay:0s; /* Safari 和 Chrome */
  }
}

@media screen and (min-width : 420px) and (max-width : 820px){
  
  .header {
    height: 70vh;
  }
  
  .header_title {
    font-size: 27px !important;
    top: 40% !important;
  }

  .header_title2 {
    font-size: 27px !important;
    top: 50% !important;
  }

  .top_main_companyName {
    font-size: 35px !important;
  }
}

.header_title {
  text-align: center;
  position: absolute;
  top: 30%;
  font-size: 38px;
  color: white;
  background-color: rgba(71, 62, 51, 0.85);
  letter-spacing: .3em;
  display: inline-block;
  padding: 10px 15px;
  font-weight: bold;
}

.header_title2 {
  text-align: center;
  position: absolute;
  top: 40%;
  font-size: 38px;
  color: white;
  background-color: rgba(97, 81, 61, 0.85);
  letter-spacing: .3em;
  display: inline-block;
  padding: 10px 15px;
  font-weight: bold;
}

.header_sp1 {
  color: #ffffff;
}

.header_title2 span {
  color:white;
  font-size: 50px;
}

.header_sp1 {
  font-size: 20px;
  padding-top: 25px;
  padding-left: 25px;
}

.top_bottom {
    position: absolute;
    top: 70%;
    width: 100%;
}

.top_bottom_position {
  width: 100%;
}
 
.slash {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-weight: bold;
  color: white;
  font-size: 40px;
  margin:20px 0px;
}
 
.slash::before,
.slash::after {
  content: "";
  width: 40px;
  height: 3px;
  background-color: white;
  margin: 0px 4px 4px;
}
 
.slash::before {
  transform: rotate(60deg);
}
 
.slash::after {
  transform: rotate(-60deg);
}

ul {
    display: flex;
    padding: 10px 0;
    margin: 0 auto;                     
}

ul li {
    font-size: 1,5rem;
    margin-left: 40px
}

ul li a {
    transition: all 0.3s;
    color: white;
    font-size: 1rem;
}

nav {
    margin: 27px auto 0;
  
    position: relative;
    width: 80%;
    height: 60px;
    background-color: #a56238;
    border-radius: 8px;
    font-size: 0;
  }
  nav a {
    width: 100%;
    line-height: 60px;
    height: 100%;
    font-size: 15px;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    color: white;
    cursor: pointer;
  }
  nav .animation {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: 0;
    transition: all .5s ease 0s;
    border-radius: 8px;
  }
  .nth-child1 {
    width: 25%;
  }
  .nth-child2 {
    width: 25%;
  }
  .nth-child3 {
    width: 25%;
  }
  .nth-child4 {
    width: 25%;
  }
  nav .start-home, .nth-child1:hover~.animation {
    width: 23%;
    left: 0;
    background-color: #ad9180;
  }
  nav .start-about, .nth-child2:hover~.animation {
    width: 27%;
    left: 23%;
    background-color: #ad9180;
  }
  nav .start-blog, .nth-child3:hover~.animation {
    width: 23%;
    left: 50%;
    background-color: #ad9180;
  }
  nav .start-portefolio, .nth-child4:hover~.animation {
    width: 23%;
    left: 77%;
    background-color: #ad9180;
  }

.down {
  background-image: url(../images/lead-background-color.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 62px;
  padding-bottom: 73px;
}

.container {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.container h1 {
  font-size: 30px;
    letter-spacing: .08em;
    color: #3b2d23;
    display: block;
    text-align: center;
}

.underbar_h1 {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #e8a02b;
  margin: 27px auto 0;
}

.content_wrapper {
  display: flex;
  justify-content: center;
  gap: 1,5em;
  flex-wrap: wrap;
  margin-top: 78px;
  
  /* box-sizing: border-box; スマホ時注意　*/
}

.sentence_box {
  margin: -20px auto 0;
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 26px 29px 26px 33px;
  position: relative;
  width: 300px;
  height: 170px;
}

.sentence_box h2 {
  font-size: 23px;
  letter-spacing: .08em;
  color: #3b2d23;
}

.underbar_h2 {
  width: 40px;
  height: 2px;
  display: block;
  background-color: #e8a02b;
  margin-top: 20px;
}

.sentence_box p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: #3b2d23;
  font-weight: bold;
}

.option {
  margin: 0 20px 20px 20px;
  border: 7px solid #a56238;
}
/* .box1 {
  margin: 0 20px 20px 20px;
}

.box2 {
  margin: 0 20px 20px 20px;
}

.box3 {
  margin: 0 20px 20px 20px;
} */

/* <div class="option">
    <div class="box"></div>
    <div class="sentence_box">
            <h2>エコキュート</h2>
            <p></p>
    </div>
</div> */


/* main up */
.up{
  width:100%;
  height: 500px;
  background-image: url(../images/leadHP.up.jpg);  
  background-position: center center; 
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.main_h2{
  font-size: 30px;
  padding-top: 80px;
}

.explanation2 {
  margin-top: 30px;
  font-size: 50px;
}

.explanation3 {
  margin-top: 30px;
  font-size: 60px;
}

.a_number {
  display: inline-block;
  padding: 10px 20px;
  background-color: #a56238;
  margin-top: 20px;
}

.a_number {
  width: 300px;
  height: 50px;
  display: inline-block;
  font-size: 20px;
}
/* sp */
/* @media screen and (min-width: 600px) {
  .top_bottom {
    display: none;
 } */
/* bar menuを隠す */
/* */

@media (max-width: 768px) { /* 画面サイズが768px以下の場合*/
  
  .up{
    width:100%;
    height: 500px;
    background-image: url(../images/leadHP.up.jpg);  
    background-position: center center; 
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
  }
  
  .main_h2{
    font-size: 15px;
    padding-top: 80px;
  }
  
  .explanation2 {
    margin-top: 30px;
    font-size: 30px;
  }
  
  .explanation3 {
    margin-top: 30px;
    font-size: 40px;
  }
  
  .a_tag{
    height: 100px;
    width: 280px;
    display: inline-block;
    text-align: center;
    /* background-color: #a56238; */
    margin-top: 20px;
    background-color: #a56238;
    position: relative;
    border-radius: 15px;
  }

  .a_number {
    display: inline-block;
    height: 100px;
    width: 280px;
    margin-top: 0 ;
    font-size: 30px;
    padding-top: 10px;
    position: absolute;
    top: 80px;
    left: 140px;
    transform: translate(-50%, -50%);
    border-radius: 15px;
  }
  .top_bottom {
    display: none; /* sidebarを非表示にする */
  }
}


/* sp */
/* @media screen and (min-width: 600px) { } */

/* チェックボックス隠す */
.list {
  display: none;
}

#menu-btn-check {
  display: none;
}

@media (max-width: 768px) { /* 画面サイズが768px以下の場合 */

  /* middleの横幅を調整 */
  .middle {
    width: auto;
  }
  
  /* listクラスのやつを横書きにする */
  .list {
    display: flex;
    flex-direction: column;
    writing-mode: horizontal-tb;
    justify-content: center;
    position: relative;
    left: 0;
  }

  .list li {
    font-size: 14px;
    text-align: top;
    list-style: none;
    margin: 2px;
    padding: 3px;
  }

  /* 三本線ボタンの実装 */
  .menu-btn {
      position: fixed;
      top: 10px;
      right: 10px;
      display: flex;
      height: 55px;
      width: 55px;
      justify-content: center;
      align-items: center;
      z-index: 90;
      background-color: #ae9b8f;
      border-radius: 15px;

  }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
      content: '';
      display: block;
      height: 3px;
      width: 25px;
      border-radius: 3px;
      background-color: #ffffff;
      position: absolute;
  }
  .menu-btn span:before {
      bottom: 8px;
  }
  .menu-btn span:after {
      top: 8px;
  }

  /* ×マークにする */
  #menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
  }
  #menu-btn-check:checked ~ .menu-btn span::before {
      bottom: 0;
      transform: rotate(45deg);
  }
  #menu-btn-check:checked ~ .menu-btn span::after {
      top: 0;
      transform: rotate(-45deg);
  }

  /* チェックボックス隠す */
  #menu-btn-check {
      display: none;
  }

  /* メニューの実装 */
  .menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    background-color: #0f3668;
  }
  .menu-content ul {
      padding: 70px 10px 0;
  }
  .menu-content ul li {
      border-bottom: solid 1px #ffffff;
      list-style: none;
  }
  .menu-content ul li a {
      display: block;
      width: 100%;
      font-size: 15px;
      box-sizing: border-box;
      color:#ffffff;
      text-decoration: none;
      padding: 9px 15px 10px 0;
      position: relative;
  }
  .menu-content ul li a::before {
      content: "";
      width: 7px;
      height: 7px;
      border-top: solid 2px #ffffff;
      border-right: solid 2px #ffffff;
      transform: rotate(45deg);
      position: absolute;
      right: 11px;
      top: 16px;
  }

  /* メニューを画面外に */
  .menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: #a56238;
    transition: all 0.5s;/*アニメーション設定*/
  }

  /* ボタンタップ時にメニュー表示 */
  #menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
  }
}

