@media screen and (max-width: 670px) {


    img{
    max-width: 100%;
    height: auto;
    width /***/:auto;
    }
    
header {
    margin: 0;
    padding: 100;
    background-color: black;
    display: flex;
    align-items: center;
    height: 70px;
    letter-spacing: 1.8px;
    position: fixed;
    width: 100%;
}

body {
    font-family: 'Meiryo', sans-serif;
}


.br-pc {
    display: none; 
}


.companyname {
    font-size: 30px;
    color: white;
    margin: 0 0 0 30px;
    display: inline-block;
}

/* ーーーーーーーーーーーーーーーーハンバーガー用の記述 ーーーーーーーーーーーーーーーーーーーーー*/

.menu-btn {
    position: fixed;
    top: 5px;
    right: 8px;
    display: flex; /* 配下の要素を縦並びではなく横並びにする */
    height: 60px;
    width: 60px;
    justify-content: center; /* flexの時に左右中央寄せ */
    align-items: center; /* flexの時に上下中央寄せ */
    background-color: rgb(0, 0, 0);
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 30px;
    background-color: #ffffff;
    position: absolute;
    transition: 0.3s;
}
.menu-btn span:before {
    bottom: 10px;
    transition: 0.5s;
}
.menu-btn span:after {
    top: 10px;
    transition: 0.5s;
}

#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);
}

.globalnavi {
    width: 100%;
    display: inline-block;
    text-align: center;
    background-color: grey;
    color: white;
    font-size: 20px;
    margin-top: 350px;
    position: absolute;
    left: 100%;
    transition: 0.5s;
    z-index: 90;
}

#menu-btn-check:checked ~ .globalnavi {
    left: 0;/*メニューを画面内へ*/
}

.globalnavi ul li {
    width: 100%;
    height: 70px;
    padding-top: 25px;
    border-bottom: solid #a8a8a8;
}

.globalnavi ul li:nth-child(4) {
    width: 100%;
    height: 70px;
    padding-top: 25px;
    border-bottom: none;
}

/* ーーーーーーーーーーーーーーーーハンバーガー用の記述 ーーーーーーーーーーーーーーーーーーーーー*/

.topvisual {
    width: 100%;
    background-color: black;
    text-align: center;
    vertical-align: middle;
    height: 550px;
    background-image: url("image/top01_sp.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding-top: 70px;
}

.topimage {
    position: relative;
}

.topimage img {
    z-index: 0;
    height: 20%;
}

.toptext {
    display: none;
    color: white;
    font-size: 40px;
    margin: auto;
    padding-top: 250px;
    letter-spacing: 1.8px;
}


.maincontents {
    text-align: center;
}

.wrapper-service {
    width: 100%;
    height: auto;
    background-color: transparent;
}

.wrapper-service h1 {
    display: inline-block;
    color: black;
    margin-top: 100px;
    letter-spacing: 10px;
}

.wrapper-about {
    width: 100%;
    height: auto;
    background-image:url("image/lighthouse_02.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.wrapper-about h1 {
    display: inline-block;
    color: white;
    margin-top: 150px;
    letter-spacing: 18px;
}

.wrapper-about > .content {
    color: white;
}

.wrapper-company {
    width: 100%;
    height: auto;
    background-color: white;
}

.wrapper-company h1 {
    display: inline-block;
    color: black;
    margin-top: 150px;
    letter-spacing: 8px;
}

.wrapper-company > .content {
    width: 90%;
    margin: auto;
    display: block;
}

.wrapper-company > .content > .paragraph > .sentence {
    font-size: 18px;
    line-height: 35px;
    letter-spacing: 1.8px;
    padding-top: 0px;
    padding-bottom: 0px;
}


.wrapper-contact {
    width: 100%;
    height: auto;
    background-color: white;
}

.wrapper-contact h1 {
    display: inline-block;
    color: black;
    margin-top: 100px;
    letter-spacing: 18px;
}

.wrapper-contact > .content >.paragraph {
    text-align: center;
    width: 90%;
    display: inline-block;
}


.content {
    width: 100%;
    margin: auto;
    display: block;
}

.paragraph {
    text-align: left;
    width: 90%;
    display: inline-block;
}

.sentence {
margin: 0 auto 0 5% ;
}

h1 {
    font-size: 50px;
    color: black;
}

h2 {
    font-size: 25px;
    margin-top: 50px;
}

.sentence {
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 1.8px;
}

.btn {
    padding: 10px 50px;
    border-radius: 4px;
    letter-spacing: 2.0px;
    text-align:center;
    display: inline-block;
    color: white;
    background-color: black;
    font-size: 20px;
    width: 225px;
    height: 40px;
    margin-bottom: 80px;
}

footer {
    background-color: black;
    color: white;
    letter-spacing: 1.8px;

}

.footer {
    width: 55%;
    margin-left: auto;
    margin-right: auto;
    line-height: 30px;
}

.footer-logo {
    width: 60%;
    margin: auto;
    padding: 10px ;
    font-size: 30px;
    height: 60px;
    vertical-align: middle;
}

.footer-end {
    margin: auto;
    padding: 10px ;
    font-size: 10px;
    height: 30px;
    vertical-align: middle;
    text-align: center;
}

/* ----------------▼各ページ▼------------------ */

.topvisual-page {
    width: 100%;
    background-color: black;
    text-align: center;
    vertical-align: middle;
    height: 200px;
    padding-top: 70px;
}

.toptext-page{
    color: white;
    font-size: 40px;
    margin: auto;
    padding-top: 50px;
    letter-spacing: 18px;
}

.wrapper-company > .content-contact {
    width: 100%;
    margin: auto;
    display: block;
}

.wrapper-company > .content-contact > .paragraph > .sentence-contact {
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 1px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.content-service {
    width: 90%;
    height: auto;
    margin: auto;
    display: block;
    text-align: center;
}

.service-box {
    width: 100%;
}

.service-body {
height: auto;
}

.service-box-title {
    font-size: 28px;
    color: white;
    width: 100%;
    background-color: black;
    display: inline-block;
    height: 60px;
    padding-top: 16px;
}

.service-box-text {
    font-size: 18px;
    width: 100%;
    height: auto;
    display: inline-block;
    text-align: left;
    letter-spacing: 1.8px;
    line-height: 25px;

}


/* ----------------ハンバーガーメニュー------------------ */


.header__hamburger {
    width: 48px;
    height: 100%;
  }
  
  .hamburger {
    background-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    border-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    z-index: 9999;
    float: right;
    padding-right: 15px;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    background-color: white;
    position: relative;
    transition: ease .6s; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
    display: block;
    margin-top: 20px;
  }
  
  .hamburger span:nth-child(1) {
    top: 0;
  }
  
  .hamburger span:nth-child(2) {
    margin: 8px 0;
  }
  
  .hamburger span:nth-child(3) {
    top: -11px;
  }

  /* ハンバーガーメニュークリック後のスタイル */
  /* ただの三本線 */
  .header__nav.active {
    transform: translateX(0);
  }
  
  .hamburger.active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    top: -17px;
    transform: rotate(-45deg);
  }

  /* ↑↑ただの三本線↑↑ */


  .nav-items {
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  
  /* ナビのリンク */
  .nav-items__item a {
    display: none;
  }
  
  .active a {
    color: white;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 20px;
    border-bottom: 2px;
    border-bottom-color: white;
  }
  
  .active li {
    margin-top: 20px;
}

  .nav-items__item:last-child a {
    margin-bottom: 0;
  }

.active ul {
    margin-top: 170px;
    display: block;
    background-color: black;
    width: 100%;
    height: 200px;
    border-color: white;
}


}
