body {
  height: 100dvh;
background-color: #f3ffff;
  cursor: url(./img/4/cursor4.png), auto;
  width: auto;
  background-attachment: fixed;
  margin: 0;
}

.bg-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: -1;
  pointer-events: none;
  --h1: 115px;
}

.bg {
   flex: 0 0 auto; 
  background-repeat: repeat;
  background-size: 5px; /* 必要なら調整 */
  image-rendering: pixelated;
}

/* 各画像を指定 */
.bg1 {height:var(--h1); background-image: url("./img/4/1.png"); }
.bg2 {height: var(--h1); background-image: url("./img/4/2.png"); }
.bg3 {height: var(--h1); background-image: url("./img/4/3.png"); }
.bg4 {height: var(--h1); background-image: url("./img/4/4.png"); }
.bg5 {height: var(--h1); background-image: url("./img/4/5.png"); }
.bg6 {height: var(--h1); background-image: url("./img/4/6.png"); }
.bg7 {height: var(--h1); background-image: url("./img/4/7.png"); }
.bg8 {flex: 1; background-image: url("./img/4/8.png"); }

.content {
  position: relative;
  z-index: 1;
}

.atama{
  margin-top:30px;
}
.head {
  width: 370px;
  height: 55px;
  margin-top: 0px;
  margin-left: 10px;
  text-decoration: none;
  background-color: white;
  padding-top: 10px;
}
.head a {
  color: #ffffff;
  height: 23px;
  width: 200px;
  margin: 10px 0px 0 10px;
  text-decoration-line:underline overline;
  text-decoration-color:#acacac;
 
  text-decoration-thickness:5px;
  text-underline-offset: 3px;
  background-color: #000000;
  font-size: 20px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 300;
  margin-top: 10px;
  border: none;
  /* letter-spacing: -3px; */
}
.head p {
  font-size: 12px;
  font-family: "LINE Seed JP", sans-serif;
  margin-top: 11px;
  margin-left: 19px;
  color: #000000;
  transform: scale(1, 0.8);
  

}



.sub {
  margin-top: 5px;
}
.sub a {
  font-size: 12px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  margin-top: -3px;
  margin-left: 0;
  color: #f3ffff;
  transform: scale(1, 0.8);
  text-decoration: none;
  border: none;

}

.main {
  font-family: "LINE Seed JP", sans-serif;
  width: auto;
  height: auto;
  margin-left: 20px;
}
.text {
  width: auto;
}
.text p {
  color: #000000;
  font-size: 20px;
  margin: 400px 21px 0px 21px;
  width: 90vw;
  height: auto;

  letter-spacing: 5px;
  line-height: 40px;
font-family: "LINE Seed JP", sans-serif;
  font-weight:600;
  font-style: italic;
}

.text p:hover {
  color: #ffffff;
}

.text a {
  text-decoration: none;
  color: #000000;
  font-size: 20px;

  width: 90vw;
  height: auto;

  letter-spacing: 1px;
  line-height: 40px;
}
.text a:hover {
  color: #ffffff;
}

.text hr {
  border-top: 5px solid #ffffff;
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin: 23px;
  
  margin-top: 400px;
}

.head a::-moz-selection {
  color: #000000;
  background-color: #ffffff;
}

.head a::selection {
  color: #000000;
  background-color: #ffffff;
}

::-moz-selection {
  color: #fff;
  background-color: #000000;
}

::selection {
  color: #fff;
  background-color: #000000;
}

footer {
  height: 80px;
  margin: 30px 0px;
}

footer a {
  color: #000000;
  font-size: 15px;
  margin: 30px 21px;
  margin-bottom: 50px;
  width: auto;
  height: auto;
  width: fit-content;
  letter-spacing: 1px;
  line-height: 40px;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  background-color: #000000;
}

footer hr {
  border-top: 2px dotted #000000;
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin: 23px;
}

@media screen and (max-width: 959px) {
  /* 959px以下に適用されるCSS（タブレット用） */
  .text p {
  
    font-size: 18px;
    font-weight: bold;
    
    letter-spacing: 0.9px;
    line-height: 33px;
    margin: 220px 21px 0px 21px;
    width: auto;
    height: auto;
  }
.text hr {
  border-top: 5px solid #ffffff;
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin: 23px;
  
  margin-top: 220px;
}
  .text a {

    font-size: 18px;

    width: auto;
    height: auto;

    letter-spacing: 0.8px;
    line-height: 40px;
  }
.head{
  width: 260px;
}
  .head a {
    
    height: 20px;
    width: 200px;
    /* margin: 10px 0px 0 10px; */

       text-underline-offset: 3px;
    font-size: 16px;
    font-weight: 300;
  
  }

  .sub a {
    font-size: 12px;
    margin-top: -8px;
    margin-left: 0;
    color: #f3ffff;
    transform: scale(1, 0.8);
    text-decoration: none;
  }

   .main{
    margin-left: 10px;
  }
  .bg-wrapper {
  --h1: 90px;
}
 .bg1 {height:110px; }
.bg2 {height: var(--h1); }
.bg3 {height: var(--h1); }
.bg4 {height: var(--h1);}
.bg5 {height: var(--h1); }
.bg6 {height: var(--h1);  }
.bg7 {height: var(--h1); }
.bg8 {flex: 1; }
}
