
/*============ ファーストビューのデザイン ============*/
#first-view{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: var(--fv-bg-color);
    transition: opacity 0.3s ease-in-out;

}

#first-view::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px; 
  background: linear-gradient(to bottom, 
              rgba(0,0,0,0) ,  
              var(--fv-bg-color));
  pointer-events: none;
}

#first-view #fv-background{
    position: absolute;
    object-fit: cover;
    filter: grayscale(0%);
    margin: 0%;
    width: 100%;
    height: 100%;
    
}
.window{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    max-width: 800px;
    width: 70%;
    aspect-ratio:8/5;
    /* background-color: rgba(236,236,236,0.6); */
    background-color: rgba(36,36,36,0.8);
    border: 1px solid #696969;
    border-radius: 5px;
    box-shadow: 0 0 20px 5px #4a4a4a;
    z-index: 1;
  }

  
  .titlebar{
    width: 100%;
    height: 20px;
    background: #e1e1e1;
    border-bottom: 1px solid #b6b6b6;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
  }
 
  .buttons{
    width: 55px;
    height: 20px;
    display: flex;
    align-items: center;
    margin: 0 5px;
  }
  .buttons div{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 3px;
    cursor: pointer;
  }
  .buttons .close{
    background: #ff5f57;
    border: 1px solid #e45952;
  }
  .buttons .hide{
    background: #ffbd2d;
    border: 1px solid #e1a73e;
  }
  .buttons .full{
    background: #27c93f;
    border: 1px solid #2bac2d;
  }
  
  #first-view p{
    margin: 0;
    color: white;
    font-size: 12px;
    line-height: .9;
    text-align: left;
    font-family: "Source Code Pro", monospace;
  }

  #first-view .ascii-text{
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    font-size: 14px;  
    font-weight: bolder;
    line-height: .9;  
    display: block;  
    padding: 10px;  
    letter-spacing: -.2em;
    color: #0f0;
  }
  /* カーソルを表示 */
.typing:after {
    content: "|";
    animation: typingCursor 0.8s ease infinite;
}

@keyframes typingCursor {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*============ aboutのデザイン ============*/
#about {
    height: auto;
    justify-content: center;
    align-items: center;
    /* background-color: var(--fv-bg-color); */
    background: linear-gradient(var(--fv-bg-color), 90%, gray);
    margin: 0;
    padding-top: 20vh;
    padding-bottom: 20vh;
  }

  #about h2 {
    color: var(--sub-font-color);
    text-align: center;
  }


  #about-content {
    z-index: 1;
    width: 50%;
    color: var(--sub-font-color);
    padding: 0 10%;
    margin: 0 auto;
}
@media (max-width: 768px) {
 #about-content{
  width: 70%;
 }
}



.about-content {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* aboutボタン */
#about-btn{
    text-decoration:none;
    color:var(--sub-font-color);
    font-weight:bold;
    display:block;
    width:135px;
    margin:0 auto;
    border:solid 4px var(--button-color);
    line-height:56px;
    text-align:center;
    transition:0.2s;
  }
  #about-btn:hover{
    color:var(--sub-font-color);
    border:solid 4px var(--main-font-color);
    background:var(--button-color);
  }
  
/*============ serviceのデザイン ============*/
#service {
    display: flex;
    flex-wrap: wrap; /* 子要素を折り返す */
    justify-content: space-between;
    box-sizing: border-box; /* パディングを含むボックスサイズにする */
    gap: 5%; /* カラム間のスペース */
}

#service-header,
#service-intro {
    margin: 0 auto;
    text-align: center;
    width: 50%;
}
@media (max-width: 768px) {
  #service-header,
  #service-intro{
   width: 70%;
  }
 }

#service-intro{
    text-align: justify;
    text-justify: inter-ideograph;
    margin-bottom: 50px;

}

.service-title h2,
.service-content p {
    text-align: left;
    margin-bottom: 20px;
    width: 100%; /* 親要素の幅に合わせる */
}
.service-title h2{
  font-size: 18px;
}

.service {
    display: flex;
    gap: 8px;
    position: relative;
    width: 47%; /* 2カラムにするために幅を48%に設定 */
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    opacity: 0;
    margin-bottom: 20px;
    box-sizing: border-box; /* パディングを含むボックスサイズにする */
}



.service-content {
    flex: 1 1 65%;
    color: var(--main-font-color);
    background-color: transparent; /* 背景の透過黒 */
    box-sizing: border-box; /* パディングを含むボックスサイズにする */
}

.service-img {
    flex: 1 1 35%; /* 35%の幅を指定 */
    width: auto;
    height: auto;
    max-width: 10vw; 
    max-height: 10vw; 
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 30%;
    box-sizing: border-box; /* パディングを含むボックスサイズにする */
}



@media (max-width: 768px) {
  .service {
    width: 100vw;
    flex-direction: column;
    position: relative;
    padding: 20px;
    margin: 0 auto 20px;
}

.service-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  
    height: 90%;
    max-width: none;
    max-height: none;
    opacity: 0.2;
    z-index: -1;
    border-radius: 0;
}

.service-content {
    width: 70%;
    margin-left: 0;
    z-index: 1;
}

.service-title h2,
.service-content p {
    color: var(--main-font-color);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}
}



/* ============ formsのデザイン ============ */
#forms{
    display: flex;
    margin: 0 ;
    padding: 0;
    justify-content: center;
}

.form-btn{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--main-font-color);
    width: 50%;
    overflow: hidden;
    aspect-ratio: 8/5;
    border: 1px solid var(--main-bg-color);
    
}

.form-btn a{
    display: flex; 
    position: absolute;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none; 
}

.form-btn h2,
.form-btn p{
    color: var(--sub-font-color);
    margin: 0;
    z-index: 1;
}

.form-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: 100%;
    height: inherit;
    border-radius: inherit;
    background: linear-gradient(
      125deg,
      var(--fv-bg-color), 90%, white
    );
    animation: anim-out .3s ease-out forwards;
  }

.form-btn a:hover::before {
  animation: anim .3s ease-out forwards;
}

@keyframes anim {
  0% {transform: translateX(-100%);}
  100% {transform: translateX(0%);}
}
@keyframes anim-out {
  0% {transform: translateX(0%);}
  100% {transform: translateX(100%);}
}
@media (max-width: 768px) {
.form-btn h2{
  font-size: 24px;
  }
.form-btn p{
    font-size: 12px;
}
}