html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* 追加: 横スクロールを防止 */
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.5s;
}

img {
  max-width: 100%;
}

a:hover {
  opacity: 0.7;
}

.main-text {
  text-align: center;
  margin:3rem auto;
}

li {
  list-style: none;
}

.site-title {
  line-height: 1px;
}

.site-title a {
  display: block;
}

.sec-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s;
}

video {
  max-width: 100%;
  width: 100%;
  height:auto;
  margin:auto auto;
}

/* コンテンツ */
.contents {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* 追加: パディングとボーダーを含めたレイアウト計算 */
}


/* ヘッダー */
#item-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#logo {
  width: 110px;
  height: auto; /* 必要に応じて高さを調整してください */
}

header {
  width: 100%;
  display: flex;
  align-items: center; /* 垂直方向に中央揃え */
  justify-content: space-between; /* 水平方向にスペースを均等に配置 */
  padding: 20px 16px;
  position: fixed;
  z-index: 10;
  background-color: #fff;
}

#navi {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  color: #fff;
  padding: 60px 25px;
  background-color: #121212;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 20;
  opacity: 0;
}

#navi a {
  color: #fff;
}

.open #navi {
  left: 0;
  opacity: 1;
}

#navi ul {
  margin: 0;
  padding: 0;
}

#navi ul.nav-menu {
  margin-bottom: 60px;
  border-top: solid 1px #fff;
}

#navi ul.nav-menu li {
  position: relative;
  margin: 0;
  padding: 20px 0;
  border-bottom: solid 1px #fff;
}

#navi ul.nav-sns li {
  padding: 5px 0;
}

.toggle_btn {
  display: block;
  position: fixed;
  top: 25px;
  right: 20px;
  width: 30px;
  height: 30px;
  transition: all .5s;
  cursor: pointer;
  z-index: 20;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}

.toggle_btn span:nth-child(2) {
  top: 14px;
}

.toggle_btn span:nth-child(3) {
  bottom: 4px;
}

.open .toggle_btn span {
  background-color: #fff;
}

.open .toggle_btn span:nth-child(1) {
  transform: translateY(10px) rotate(-315deg);
}

.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}

.open .toggle_btn span:nth-child(3) {
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
  transition: all .5s;
}

.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 10;
  cursor: pointer;
}


/* フッター */
footer {
  background-color: black;
  color: white;
  width: 100%;
  height: 550px;
  padding-top: 0.2rem;
}

#contact-text {
  margin-left: 1rem;
  margin-right: 1rem;
}

.type-text {
  width: 100%;
  height: 20px;
}

textarea {
  width: 100%;
  height: 50px;
}

.contact-submit {
  width: 100%;
  height: 30px;
  margin-top: 1rem;
  font-size: 1rem;
}

/* スナップページ */
.contens-main {
  display: flex; /* フレックスボックスを使用 */
  flex-direction: column; /* 縦並びにするために追加 */
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
  padding-top: 8rem;
  margin: auto 1rem;
  margin-bottom:1rem;
}

.contents-text {
  margin:auto;
}

.contents-img2 {
  display: flex;
  width:70%;
  margin:1rem auto;

}

.video-5 {
  display: flex;
  width: 70%;
}


/* PC用 */
@media screen and (min-width: 866px) {
  body {
      padding: 0;
      margin: auto;
  }

  video {
    width:100%;
    height:auto;
  }

  #logo {
    width: 200px;
    height: auto; /* 必要に応じて高さを調整してください */
  }


  .sec-title {
      font-size: 2.25rem;
      margin-bottom: 30px;
  }

  #header {
      padding: 20px 40px;
  }

  .toggle_btn {
      right: 45px;
  }

  #contact-text {
      display: flex;
      justify-content: space-around;
  }

  #cantact-form {
      margin-right: 10%;
  }

  .type-text {
      padding-right: 100%;
  }

  textarea {
      padding-right: 100%;
      padding-bottom: 3rem;
  }

#navi ul.nav-menu {
  margin-bottom: 0; /* 余計な空白を削除 */
}

#navi ul.nav-sns {
  padding-top: 30px; /* メニューとSNSリストの間に隙間を追加 */
  border-top: solid 1px #fff; /* 境界線を追加 */
}

/* メイン */
.contens-main {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* 水平方向に中央揃え */
  flex-direction:row; /* 縦並びにするために追加 */
  align-items:start; /* 垂直方向に中央揃え */
  padding-top: 14rem;
  margin: auto auto;
  margin-bottom:2rem;
}

.contents-text {
  width:50%;
  margin-top:0;
}

.contents-img2 {
  width:50%;
  margin:1rem auto;
}

.video-5{
  margin-top: 0; 
  width: 50%;
  height:80%;
}


.contents-img2 {
  width:50%;
  margin:1rem auto;
}

}
