html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Noto Serif JP', serif;
}

.site-header {
  position: fixed;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
}

.logo img {
  height: 60px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-size: 22px;
  font-weight: 100;
}

.main-nav a:hover {
  opacity: 0.7;
}

.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.circle-container {
  position: relative;
}

.circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.catch {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 10px;
  font-size: 54px;
  text-align: center;
  width: 400px;
  z-index: 1;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
}

.catch span {
  padding-left: 60px;
}

.intro {
  padding: 180px 40px;
  font-size: 24px;
  text-align: center;
}

.feature-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 100px auto;
  position: relative;
  max-width: 80vw;
  gap: 0;
}

.circle-item {
  width: 350px;
  height: 350px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 38px;
  letter-spacing: 0.15em;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: 0.3s ease;
  margin: 0 -20px;
  opacity: 0;
  transform: translateX(0);
  transition: none;
}

.circle-item.center {
  opacity: 1;
}

.circle-item.slide-in-left {
  animation: slideInLeft 1.2s ease forwards;
}
.circle-item.slide-in-right {
  animation: slideInRight 1.2s ease forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(200px);
    opacity: 0;
  }
  to {
    transform: translateX(-20px);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(-200px);
    opacity: 0;
  }
  to {
    transform: translateX(20px);
    opacity: 1;
  }
}

.circle-item:nth-child(2) {
  background: #fff;
  color: #000;
  z-index: 2;
}

.description {
  padding: 100px 40px;
  font-size: 26px;
  line-height: 1.8;
  background: #111;
  text-align: center;
}

.works {
  padding: 100px 0 0 0;
  background: #000;
  text-align: center;
  position: relative;
  z-index: 10;
}
.works img {
	width: 300px;
	margin-bottom: 30px;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

/* .slider-container.back を中央配置に調整 */
.slider-container.back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.back-carousel {
  transform: scale(0.5); /* スケールで縮小 */
  transform-origin: center center; /* 縮小基準を中央に */
  pointer-events: none;
  filter: blur(4px);     /* 背景用としてぼかし効果 */
  opacity: 0.4;          /* 薄くする */
  width: 100%;           /* slickレイアウト維持のため必要 */
}
.back-carousel .slick-slide {
  padding: 20px;          /* .main-carouselと同じ */
  box-sizing: border-box;
}


.slider-container.front {
  z-index: 2;
  position: relative;
}

.work-item {
  padding: 10px;
  font-size: 22px;
  text-align: left;
  font-family: monospace;
  font-weight: bold;
}
.work-item .thumb img {
  width: 100%;
  height: 250px;
  margin-bottom: 10px;
  border-radius: 8px;
}
.work-item .thumb {
  background: #ccc;
  height: 250px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.slick-slide {
  padding: 20px;
  box-sizing: border-box;
}

.slick-list {
  margin: 0 -20px;
}
.back-carousel .work-item {
  padding: 10px;
  font-size: 22px;
  text-align: left;
  font-family: monospace;
  font-weight: bold;
}
.back-carousel .work-item .thumb {
  background: #ccc;
  height: 250px;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* 参考サイトボタン */
.portfolio-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portfolio-button {
  position: relative;
  padding: 10px 24px;
  color: #fff;
  border: none;
  background: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  overflow: hidden;
  transition: color 0.3s ease;
}

.portfolio-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.portfolio-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.portfolio-button:hover {
  color: #aaa;
}

.bottom-logo {
  padding: 120px 0;
  text-align: center;
}

.bottom-logo img {
  height: 150px;
}

.bottom-logo p {
  margin-top: -20px;
  font-size: 24px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* Fadeinここから */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== スマホ対応レイアウト ====== */
@media (max-width: 768px) {
  html, body {
  overflow-x: hidden;
}
  .site-header {
    display: block;
    padding: 10px 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav a {
    font-size: 18px;
  }

  .hero {
    height: 100vh;
    padding: 0;
  }

  .circle {
    width: 250px;
    height: 250px;
  }

  .catch {
    font-size: 32px;
    width: 200px;
  }

  .intro {
    padding: 100px 20px;
    font-size: 18px;
  }

  .feature-circles {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 380px;
    max-width: 100vw;
    position: relative;
    margin: 100px 0;
  }

  .circle-item {
    width: 200px;
    height: 200px;
    font-size: 24px;
    margin: 0;
    opacity: 1 !important;
    transform: none;
  }

  .circle-item.left {
    transform: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
  }
  .circle-item.center {
    transform: translate(0, 0);
    position: absolute;
    top: 0;
  }
  .circle-item.right {
    transform: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
  }
  @keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(50px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .description {
    padding: 60px 20px;
    font-size: 16px;
  }

  .slider-container {
  overflow-x: hidden;
}
  .back-carousel {
    max-width: 100%;
    overflow: hidden;
  }

  .slider-container.back {
    display: none;
  }
  .works img {
    width: 30%;
  }

  .work-item {
    font-size: 16px;
  }

  .portfolio-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .bottom-logo img {
    height: 100px;
  }

  .bottom-logo p {
    font-size: 18px;
  }
  .slick-slide {
    padding: 20px 10px;
    box-sizing: border-box;
  }
  .slick-list {
    margin: 0;
  }

  .work-item {
    font-size: 18px;
    padding: 0 20px;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
  }

  .work-item .thumb {
    width: 100%;
    max-width: 100%;
    height: 120px;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
  }
   .work-item p {
    display: none;
   }
  .work-item .thumb img {
    width: 100%;
    max-width: 100%;
    height: 120px;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
  }
}
