* {
  box-sizing: border-box; /* 追加: パディングとボーダーを含めたレイアウト計算 */
}


html {
  box-sizing: border-box;
  font-size: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}


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


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

img {
  max-width: 100%;
}

a:hover {
  opacity: 0.7;
}

.main-text {
  text-align: center;
  margin:3rem auto;
  font-size:20px;
  color:white;
  width:50%;
  padding:10px;
}

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


/* ヘッダー */
#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: 10px 16px;
  position: fixed;
  z-index: 10;
  background: none;
}

#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: 30px;
  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;
}

  /* コンテンツ */

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

.page-title {
  text-align: center;
  margin:1rem auto;
  font-size:18px;
  margin-top:7rem;
  line-height: 25px;
}

.page-text {
  margin-top:3rem;
  line-height: 35px;
}

/* フッター */

.contact-text2 {
  color:white;
}

/* PC用 */
@media screen and (min-width: 866px) {

* {
  box-sizing: border-box; /* 追加: パディングとボーダーを含めたレイアウト計算 */
}

  body {
      padding: 0;
      margin: auto;
  }

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

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

   /* コンテンツ */
.page-title {
  text-align: center;
  margin:1rem auto;
  font-size:18px;
  margin-top:7rem;
}

  .contents {
    width: 100%;
    max-width: 100%;
    height:auto;
    padding:16px 30px;
    box-sizing: border-box; /* 追加: パディングとボーダーを含めたレイアウト計算 */
  }
  
.page-text {
  margin-top:4rem;
}
}