body{
  margin: 0px;
}

.fadein{
  opacity: 0;
  transition: opacity 0.5s; 
}

.menu{
  width: 480px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 99;
}

.menu > a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
}

.menu > a:hover{
  cursor: pointer;
  color: rgb(69, 240, 240);
}

.title{
  font-weight: bold;
}

.sub-title{
  font-size: 12px;
  color: rgb(129, 154, 155);
}

hr{
  width: 80%;
}

.top{
  width: 100%;
  height: 100vh;
}

.logo {
  width: 240px;
  height: 160px;
  padding:16px 0px;
  display: grid;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  line-height: 48px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  background-color: rgb(255, 255, 255);
}

.front {
  display: flex;
  font-size: 80px;
}

.front .f1, .front .r1, .front .o1, .front .n1, .front .t1 {
  opacity: 0; /* これを追加 */
}

.front .f2, .front .r2, .front .o2, .front .n2, .front .t2 {
  opacity: 0; /* これを追加 */
}

@keyframes dropFromTop {
  0% {
    transform: translateY(-200%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes riseFromBottom {
  0% {
    transform: translateY(200%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.front .f1, .front .r1, .front .o1, .front .n1, .front .t1 {
  animation: dropFromTop 1.2s forwards;
}

.front .f2, .front .r2, .front .o2, .front .n2, .front .t2 {
  animation: riseFromBottom 1.2s forwards;
}

/* アニメーションの遅延を設定 */
.front .f1 { animation-delay: 0.1s; }
.front .r1 { animation-delay: 0.2s; }
.front .o1 { animation-delay: 0.3s; }
.front .n1 { animation-delay: 0.4s; }
.front .t1 { animation-delay: 0.5s; }

.front .f2 { animation-delay: 0.5s; }
.front .r2 { animation-delay: 0.4s; }
.front .o2 { animation-delay: 0.3s; }
.front .n2 { animation-delay: 0.2s; }
.front .t2 { animation-delay: 0.1s; }


@keyframes colorChange {
  20% {
    opacity: 0;
    color: transparent;
  }
  50% {
    opacity: 1;
    color: aqua;
  }
  100% {
    opacity: 1;
    color: black;
  }
}

.and {
  margin-top: 8px;
  animation: colorChange 2s forwards; /* 2秒間のアニメーションを指定していますが、必要に応じて変更可能です */
  color: transparent; /* 最初は透明に設定 */
  animation-delay: 1.2s;
}

.about-us{
  padding-top: 64px;
}

.part-title{
  text-align: center;
}


.en-title{
  padding: 4px 16px;
  width: max-content;
  background-color: rgb(77, 91, 91);
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ja-title{
  font-size: 48px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 64px;
}

.content{
  display: flex;
}

.img-container{
  width: 45%;
}

.about-us-img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
  top: -96px;
}

.words{
  width: 56%;
  margin-right: 32px;
  margin-top: 32px;
  font-size: 20px;
  line-height: 48px;
  text-align: left;
}

.service{
  background-color: rgb(241, 247, 247);
  padding: 64px 0px;
  margin: 48px 0px;
}

.service-container{
  width: 100%;
  display: flex;
  justify-content: center;
}

.item{
  text-align: center;
}

.left{
  margin-right: 80px;
}

.service-img{
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0px 0px 3px gray;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-img > img{
  width: 280px;
  display: block;
}

.service-title{
  margin-top: 16px;
  font-size: 20px;
}

.company{
  padding: 64px 0px;
  margin: 24px 0px;
}

.info-list{
  width: max-content;
  margin-top: 64px;
  font-size: 20px;
  margin-left: auto;
  margin-right: auto;
}

.info{
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px rgb(73, 90, 90) solid;
}

.info-title{
  font-weight: bold;
  margin-right: 32px;
}

.news{
  padding: 64px 0px;
  text-align: center;
}

.news-content{
  font-size: 24px;
}

.contact{
  padding: 64px 0px;
  background-color: rgb(212, 240, 240);
}

.bottom{
  width: 100%;
  text-align: center;
  background-color: rgb(69, 69, 69);
}

.bottom-menu{
  padding: 64px;
  margin: auto;
  width: 500px;
  display: flex;
  justify-content: space-between;
}

.bottom-menu > a{
  text-decoration: none;
  font-weight: bold;
  color: white;
}

.bottom-menu > a:hover{
  color: aqua;
}

.name{
  width: 200px;
}


@media only screen and (max-width: 600px) {
  body{
    max-width: 100vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }

  a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; /* For some Androids */
}

  .menu{
    width: 100%;
    top: 16px;
    right: auto;
    justify-content: space-around;
  }

  .title{
    font-size: 11px;
  }

  .sub-title{
    font-size: 10px;
  }

  .en-title{
    font-size: 14px;
  }

  .ja-title{
    font-size: 32px;
  }

  .content{
    display: block;
  }
  
  .img-container{
    width: 100%;
    height: 240px;
    object-fit: cover;
  }

  .about-us{
    padding-top: 64px;
  }
  
  .about-us-img{
    width: 80%;
    position: relative;
    top: -48px;
  }
  
  .words{
    width: 80%;
    font-size: 18px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-container{
    width: 100%;
    display: block;
  }
  
  .item{
    text-align: center;
  }

  .left{
    margin: 0px;
    margin-bottom: 32px;
  }
  
  .service-img{
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-title{
    font-size: 16px;
  }

  .info-list{
    font-size: 16px;
  }

  .info{
    display: block;
  }

  .info-content{
    font-size: 11px;
    margin-top: 4px;
  }

  .bottom-menu{
    width: 100%;
    padding: 32px 0px;
    justify-content: space-around;
    font-size: 12px;
  }

  .news-content{
    font-size: 16px;
  }

  .num{
    font-size: 16px;
  }

  .name{
    width: 140px;
  }
}