@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}


header {
    display: flex;
    position: fixed;
    top: 0%;
    left: -1%;
    width: 100%;
    margin-bottom: 7%;
    vertical-align: bottom;
    z-index: 100000;
  
}
  
header h1 img {
    display: block;
    width: 25%;
}

.NavMenu {
    display: none;
}
nav {
    width: 40%;
    margin-left: auto;
    /* background-color: aqua; */
}

nav ul {
    display: flex;
    margin-top: 7%;
    list-style-type: none;
}

nav ul li {
    width: 100%;
    text-align: center;
    mix-blend-mode: difference;
}

nav ul li a {
    position: relative;
    font-size: 1.2vw;
    font-family: "Merriweather", serif;
    font-weight: 700;
    line-height: 2.6;
    text-decoration: none;
    color:rgb(24, 33, 110);
}
  
  /*ヘッダー動く下線部分*/
nav ul li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: rgb(254, 126, 57);
    bottom: -1px;               /*アンダーラインがaタグの下端から現れる*/
    transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
    transform-origin: top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
    transition: transform 0.3s; /*変形の時間*/
}
      
nav ul li a:hover::after {
    transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
}

.box:nth-of-type(1) {
    position: relative;
    width: 60%;
    padding-top: 15%;
    margin-left: 30%;
    color: rgb(24, 33, 110);
    z-index: 100;
}
.box:nth-of-type(2) {
    position: relative;
    width: 70%;
    margin-left: 21%;
    color:orange;
    text-shadow:  palegoldenrod 7px 0 10px;
    vertical-align: bottom;
    z-index: 100;
   
}
/* border */
.border {
    position: relative;
    width: 82%;
}
  
  
.border:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: solid 2px rgb(24, 33, 110);
    animation: border_anim 2s linear forwards;
}
  
@keyframes border_anim {
    0% {
      width: 0%;
    }
    100% {
      width: 100%;
    }
}
  
.box:nth-of-type(3) {
    position: relative;
    width: 60%;
    margin-top: 1%;
    margin-left: 36%;
    color: rgb(24, 33, 110);
    z-index: 10;
}
.text-animation {
    font-size: 6vw;
    font-weight: 600;
    font-family: "Nanum Myeongjo", serif;
    opacity: 0;

    &.show {
      opacity: 1;

      .text-animation-span {
        display: inline-block;
        overflow: hidden;

      }
      span {
        display: inline-block;
        letter-spacing: 0.1em;
        animation: showText .5s backwards;
      }
    }
}
  
@keyframes showText {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

ul.box li img {
    width: 60%;
}

.scroll_up {
    transition: 0.8s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
  }
.bg {
    width: 80%;
    position: absolute;
    top: -15%;
    left: 10%;
    list-style: none;
    z-index: 0;
  }
  .scroll_up.on {
    transform: translateY(0);
    opacity: 1.0;
  }

@keyframes sdl06 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* スクロールバー */
.single-scroll-down-animation {
    margin-top: 10%;
}
.scroll-down4{
    width: 3px;
    height: 8vw;
    background: rgb(0, 0, 255);
    animation: scrollDown4 2s ease infinite;
    margin: 0 auto; 
}

@keyframes scrollDown4{
    0%{
        transform-origin: top;
        transform: scaleY(0);
    }
    45%{
        transform-origin: top;
        transform: scaleY(1);
    }
    55%{
        transform-origin: bottom;
        transform: scaleY(1);
    }
    100%{
        transform-origin: bottom;
        transform: scaleY(0);
    }
}



.flex1 {
    display: flex;
    position: relative;
}
h2 {
    position: sticky;
    top: 17%;
    margin-top: 5%;
    padding: 2%;
    color: rgb(254, 126, 57);
    font-size: 4vw;
    font-family: "Merriweather", serif;
    writing-mode: tb-rl;
    background-color:rgb(24, 33, 110);
    border-radius: 5px;
}
h2 span {
    font-size: 1vw;
    writing-mode: tb-rl;
    font-family: "Noto Sans JP", sans-serif;
}
.flex1 img {
    width: 30%;
    height: 35vw;
    margin-left: 15%;
    margin-top: -20%;
    z-index: 10;
}
.flex1 .position-box1 {
    position: absolute;
    top: 200%;
    left: 22%;
    width: 10%;
    height: 5vw;
    background-color: blue;
    border-radius: 5px;
    z-index: 0;
    transition: 1s;
}
.flex1 .position-box1:hover {
    background-color: #fe7e39;
    border: 1px solid rgba(0, 0, 0, 0);
    transition: 1s;
}

.text {
    opacity: 0;
    width: 60%;
    margin-top: -15%;
    margin-left: 10%;
    font-size: 1.1vw;
    line-height: 2;
    white-space: pre-line;
    font-family: "Noto Sans JP", sans-serif;
    color: #202020;
  }
  
  .text.active {
    animation: 2s fadeup ease-in-out forwards;
  }
  
  @keyframes fadeup {
    0% {
      opacity: 0;
      transform: translateX(-50px);
    }
  
    100% {
      opacity: 1;
      transform: translateX(0);
    }
}
.text span {
    font-size: 1.1vw;
    font-weight: 600;
    line-height: 2;
    color: rgb(254, 126, 57);
}

.contentBox{
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
  
.buttonBox{
    margin-left: 75%;
    position:relative;
    width: 15%;
}
  
button{
    width:100%;
    height:4vw;
    position:relative;
    background-color: #18216e;
    color: #fe7e39;
    border-radius: 5px;
    font-weight:700;
    line-height: 2;
    border:none;
    font-size: 1.2vw;
    outline:none;
    font-family: "Merriweather", serif;
    transition: 0.5s;
}

  
  
  /* FIRST BUTTON */
  
.border1{
      position:absolute;
      background:none;
      transition:all .5s ease-in-out;
}
  
#first>.border1:nth-of-type(1){
    top:0;
    left:0;
    border-left:3px solid  rgb(254, 126, 57);
    border-top:3px solid rgb(254, 126, 57);
    width:12%;
    height:2vw;
    transition: 0.3s;
}
  
#first>.border1:nth-of-type(2){
    bottom:0;
    right:0;
    border-right:3px solid rgb(254, 126, 57);
    border-bottom:3px solid rgb(254, 126, 57);
    width:12%;
    height:2vw;
    transition: 0.3s;
}

#first:hover .border1 {
    width:102%;
    height:105%;
}
#first:hover button {
    color: rgb(24, 33, 110);
    background-color: white;
    transition: 0.5s;
}

.loop-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 3vw;
    background:rgba(0, 0, 255, 0.5);
    margin-top: 5%;
    margin-bottom: 15%;
    mix-blend-mode: difference;
}
.loop-area {
  display: flex;
  animation: loop-slide 50s infinite linear 0.3s both;
  list-style: none;
  margin: 0;
  padding: 0;
}
.loop-area .content {
  width: 500px;
  font-size: 1vw;
  font-weight: 700;
  color:aliceblue;
}
@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.scroll_up1 {
    list-style-type: none;
    transition: 0.8s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
    width: 40%;
    height: 40vw;
    margin-top: -21%;
    margin-left: 12%;
    margin-right: auto;
    padding-top: 2%;
    padding-bottom: 3%;
    font-size: 2vw;
    text-align: center;
    color: rgb(24, 33, 110);
    font-family: "Merriweather", serif;
    border: 1px solid rgba(24, 33, 110, 0.5);
    border-radius: 5px;
    transform: 1s;
}
.scroll_up1:hover {
    color: rgb(254, 126, 57);
    background-color: rgb(24, 33, 110);
    border-radius: 5px;
    transition: 1s;
}
.scroll_up1:nth-of-type(2) {
    margin-left: 2%;
}
.scroll_up1.on {
    transform: translateY(0);
    opacity: 1.0;
}

.position-box2 {
    position: absolute;
    left: -2%;
    bottom: -8%;
    width: 10%;
    height: 5vw;
    background-color:  rgb(254, 126, 57);
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 5px;
    z-index: 0;
    transition: 1s;
}
.position-box2:hover {
    background-color:pink;
    transition: 1s;
}
.web-design {
    position: relative;
    font-size: 2vw;
    text-align: center;
    font-family: "Merriweather", serif;
    z-index: 0;
}

.overflow-1 {
    width: 100%;
    overflow: hidden;
}

.scroll_up1 a img {
    display: block;
    width: 70%;
    margin-top: 5%;
    height: 35vw;
    transition: 1s;
}
.scroll_up1 a img:hover {
    transform: scale(1.1,1.1);
    transition: 1s;
}
.position-box3 {
    position: absolute;
    top: -7.5%;
    left: 53%;
    width: 10%;
    height: 5vw;
    background-color:  rgb(254, 126, 57);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0);
    z-index: 0;
    transition: 1s;
}
.position-box3:hover {
    background-color:pink;
    transition: 1s;
}
.graphic-design {
    position: relative;
    font-size: 2vw;
    text-align: center;
    font-family: "Merriweather", serif;
}
  
/* footer */
footer {
    width: 100%;
    position: relative;
}
.h2-potision {
    width: 30%;
    font-size: 1.5vw;
    color:  rgb(254, 126, 57);
    text-indent: 1em;
    border-left: 5px solid  rgb(24, 33, 110);
    ;
    margin-left: 5%;
}

.g-mail {
    font-size: 4vw;
    color: rgb(24, 33, 110);
    text-decoration: underline;
    text-decoration-color: rgb(254, 126, 57);
    margin-top: 3%;
    margin-bottom: 5%;
    margin-left: 5%;
}
h3 {
    width: 50%;
    font-size: 4vw;
    color: rgb(24, 33, 110);
    margin-left: 3%;
    font-family: "Merriweather", serif;
    margin-bottom: 5%;
}
h3 span {
    font-size: 4vw;
    color: rgb(254, 126, 57);
    margin-left: 3%;
    font-family: "Merriweather", serif;
}

.flex3 {
    display: flex;
    width: 30%;
    margin-left: 7%;
    list-style-type: none;
}
.position-box5 {
    position: absolute;
    left: 51%;
    top: 87%;
    width: 5%;
    height: 0.1vw;
    background-color: blue;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0);
    mix-blend-mode: difference;
    transition: 1s;
}
.position-box5:hover {
    background-color:pink;
    transition: 1s;
}

.flex3 li {
    width: 100%;
    text-align: center;
    margin-left: 40%;
    z-index: 100;
}
.flex3 li a {
    font-size: 1.2vw;
    line-height: 2;
    text-decoration: none;
    color:rgb(24, 33, 110);
    transition: 0.5s;
    
}
.position-box4 {
    position: absolute;
    left: 53%;
    top: 75%;
    width: 30%;
    height: 2vw;
    background-color:  rgb(254, 126, 57);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0);
    mix-blend-mode: difference;
    z-index: 0;
    transition: 0.5s;
}
.position-box4:hover {
    background-color: rgba(254, 126, 57, 0.7);
    transition: 0.5s;
}
.position-box4 :hover {
    color: white;
}

footer p {
    text-align: center;
    line-height: 2;
    font-size: 1vw;
    color: rgb(254, 126, 57);
    background-color: rgb(24, 33, 110);
}  

.area{
    background: rgba(0, 0, 0, 0);  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    width: 100%;
}

.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20%;
    height: 20vw;
    background:rgba(192, 192, 192, 0.4);
    animation: animate 25s linear infinite;
    bottom: -40%;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 10%;
    height: 10vw;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 8%;
    height: 8vw;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 2%;
    height: 2vw;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 5%;
    height: 5vw;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 3%;
    height: 3vw;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 10%;
    height: 10vw;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 13%;
    height: 13vw;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 3%;
    height: 3vw;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 3%;
    height: 3vw;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 13%;
    height: 13vw;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}