@font-face {
font-family: motoya;
src: url(../fonts/MTXma6kp.ttc);
}

@keyframes scrollLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}

@keyframes cityScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}

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

body, html {
      margin: 0;
      padding: 0;
      height: 100vh;
      width: 100vw;
      position: fixed;
      overflow: hidden;
 }

.scroll-wrapper {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: absolute;
  bottom: 0;
  left: 0;
}

.scroll-track {
  display: flex;
  width: 200vw;
  animation: scrollLoop 100s linear infinite;
}

.loop-img {
  width: 100vw;
  height: auto;
  object-fit: cover;
}

.city-wrapper {
  overflow: hidden;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 90vh;
  z-index: 2;
}

.city-track {
  display: flex;
  width: 200vw;
  animation: cityScroll 40s linear infinite;
}

.city-img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

    .foreground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 930px;
  height: 930px;
  z-index: 10;
  background-image: url('../images/anime.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: auto; /* ← 忘れずに！ */
  cursor: grab;
user-select: none;
    }

    .logo {
      position: absolute;
      top: 0;
      right: 0;
      width: 800px;
      height: 350px;
      z-index: 15;
      background-image: url('../images/logo.png');
      background-size: contain;
      background-repeat: no-repeat;
  transform: scale(0.7);
      background-position: top right;
    }


.text {
  position: absolute;
  top: 350px;
  right: 50px;
  z-index: 5;
  width: 55vw;
  font-size: 40px;
  font-family:'motoya', sans-serif;
  color: white;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 12px;
  padding: 20px 40px;
  box-sizing: border-box;
line-height: 1.2;
}

.text2 {
  position: absolute;
  top: 350px;
  right: 50px;
  z-index: 5;
  width: 55vw;
  font-size: 40px;
  font-family:'motoya', sans-serif;
  padding: 20px 40px;
  border-radius: 12px;
  border: 2px solid white;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 32px;
  line-height: 1.8;
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  box-sizing: border-box;
}

.text2 img.half-img {

  display: block;
  margin: 16px auto;
}

.info-table {
  position: absolute;
  top: 350px;
  right: 50px;
  z-index: 5;
  width: 53vw;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 12px;
  color: white;
  font-size: 28px;
  font-family:'motoya', sans-serif;
  text-align: left;
  animation: fadeIn 0.6s ease forwards;
}

.info-table table {
  border-collapse: collapse;
  width: 100%;
}

.info-table td {
  border: 1px solid white;
  padding: 5px 5px;
}

.char {
  opacity: 0;
  display: inline-block;
  transition: opacity 0.5s ease-in;
}


.fadein {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  display: block;
  margin-bottom: 8px;
}

.floating-buttons {
  position: fixed;
  z-index: 999;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.fade {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.show {
  display: block !important;
  opacity: 1;
}

/* 初期状態（text2は非表示） */
.text2 {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}


/* 各ボタン共通スタイル */
.btn {
  font-family:'motoya', sans-serif;
  font-size: 30px;
  padding: 20px 80px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.08);
}

.company {
  background: linear-gradient(to right, #ff4e50, #f06d6a); /* 赤系 */
}

.service {
  background: linear-gradient(to right, #0072ff, #00c6ff); /* 青系 */
}

.contact {
  background: linear-gradient(to right, #28a745, #6bd76b); /* 緑系 */
}




@media screen and (max-width: 768px) {

  .foreground {
    width: 80vw;
    height: 80vw;
    left: -13%;
bottom: 29vw;
  }

.logo {
    width: 50vw;
  top: -30px;
  left: -30px;
}

  .text {
  top: 20vw;
  left: 5vw;
    width: 60vw;
    font-size: 14px;
    padding: 12px 10px;
    line-height: 1.6;
    right: 2%;
    transform: translateX(55%);
  }

  .text2 {
  top: 20vw;
  left: 5vw;
    width: 60vw;
    font-size: 14px;
    padding: 12px 10px;
    line-height: 1.6;
    right: 2%;
    transform: translateX(55%);
  }

.info-table {
  top: 20vw;
  right: 2vw;
  z-index: 5;
  width: 60vw;
  padding: 10px;
  font-size: 14px;
}

 .floating-buttons {
    flex-direction: column;
    right: 12px;
    left: auto;
    bottom: 12px;
    transform: none;
    gap: 12px;
  }

  .btn {
    font-size: 18px;
    padding: 8px 16px;
  }

.loop-img {
  width: auto;
  height: 150vw;
  object-fit: cover;
}

.city-img {
  width: auto;
  height: 230vw;
  object-fit: cover;

}

}