body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: #0d0d0d;
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.logo {
  min-width: 180px;
}

.logo img {
  min-width: 95px;
  height: 80px;
  display: block;
}


.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #00ffff;
  transition: 0.3s;
}

.nav a:hover,
.nav a.active {
  color: #00ffff;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  font-size: 24px;
}

.hero {
  text-align: center;
  padding: 150px 20px;
}

.hero h2 {
  font-size: 32px;
  background: linear-gradient(90deg, #00ffff, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  opacity: 0.8;
}

.section {
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 100px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  transition: 0.3s;
  aspect-ratio: 16 / 9;
}

.work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.work-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  transform: translateY(100%);
  transition: 0.3s;
  color: #fff;
}

.work-card:hover .work-info {
  transform: translateY(0);
}

.detail-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

/* これ追加（重要） */
.section.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, #00ffff, #007cf0);
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 255, 255, 0.4);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent);
  transform: translateX(-100%);
}

.btn:hover::before {
  transform: translateX(100%);
  transition: 0.6s;
}

.back-btn {
  position: sticky;
  top: 20px;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn::before {
  content: "← ";
  margin-right: 5px;
}

.back-btn:hover {
  background: #00ffff;
  color: #000;
  transform: translateX(-3px);
}

.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s;
}

.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s;
}

.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s;
}

.show {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* SP */
@media(max-width:768px) {

  .menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    right: -220px;
    top: 70px;
    width: 200px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 20px;
    transition: 0.3s;
  }

  .nav.active {
    right: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media(max-width:1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}