/* =========================
   Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  color: #f2f2f2;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
  background: linear-gradient(to bottom,
      #000000 0%,
      #000000 25%,
      #0b0f18 45%,
      #0c1830 70%,
      #081a3f 85%,
      #061737 100%);
}

section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  background: transparent;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin: 0 auto 14px;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.section-sub {
  font-size: 0.68rem;
  opacity: 0.6;
}

/* =========================
   Hero
========================= */
.hero {
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 6px;
}

.hero p {
  margin-top: 30px;
  font-weight: 300;
  opacity: 0.45;
}

/* =========================
   Garage
========================= */
.garage-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 40px 90px;
}

.garage-slider {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.garage-content {
  width: 100%;
  max-width: 820px;
  position: relative;
  z-index: 20;
}

.garage-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 10;
}

.garage-label {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 14px;
}

.garage-slide {
  width: 100%;
}

.garage-slide.is-animating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.garage-image-wrap {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 14px;
  position: relative;
}

.garage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.garage-text {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
  margin-top: 10px;
  text-align: left;
}

.garage-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 10px;
  color: #f2f2f2;
  text-align: left;
  letter-spacing: 0.02em;
}

.garage-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.slide-leave-left {
  transform: translateX(-80px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide-leave-right {
  transform: translateX(80px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide-enter-left {
  transform: translateX(-80px);
  opacity: 0;
}

.slide-enter-right {
  transform: translateX(80px);
  opacity: 0;
}

.slide-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.garage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 2.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  z-index: 30;
}

.garage-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

.garage-arrow.left {
  left: -100px;
}

.garage-arrow.right {
  right: -100px;
}

#garageMedia {
  width: 100%;
  height: 100%;
}

#garageMedia .garage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.garage-dots {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  z-index: 28;
}

.garage-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.garage-dot:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.15);
}

.garage-dot.active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.2);
}

.garage-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.garage-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
}

.garage-spec-label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.garage-spec-value {
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

/* Archive差別化 */
.garage-archive-section .garage-image {
  filter: brightness(0.9) contrast(0.95);
}

.garage-archive-section .garage-spec-item {
  background: rgba(255,255,255,0.02);
}

/* =========================
   Links
========================= */
.links-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.links-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.links-label {
  width: 100%;
  margin: 0 0 12px 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: #f2f2f2;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}

.link-card:hover {
  background: rgba(120, 170, 255, 0.08);
  border-color: rgba(120, 170, 255, 0.28);
  transform: translateY(-4px);
}

.link-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.link-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe9ff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-card:hover .link-icon {
  background: rgba(120, 170, 255, 0.14);
  color: #ffffff;
  transform: scale(1.05);
}

.link-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f2f2f2;
  line-height: 1.2;
}

.link-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 640px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Contact
========================= */
/* =========================
   Contact
========================= */
.contact-section {
  min-height: 100vh;
}

.contact-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact-label {
  width: 100%;
  margin: 0 0 26px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  margin-bottom: 20px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #0c1830;
  color: #f2f2f2;
}

.contact-form textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(120, 170, 255, 0.6);
  box-shadow: 0 0 8px rgba(120, 170, 255, 0.2);
}

.contact-form button {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background: rgba(8, 26, 63, 0.8);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-form button:hover {
  background: rgba(12, 42, 102, 0.9);
  box-shadow: 0 0 10px rgba(12, 42, 102, 0.4);
}

#formMessage {
  text-align: center;
  margin-top: 20px;
  display: none;
  color: #0f0;
}

/* =========================
   Footer
========================= */
footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  z-index: 1000;
}

footer>div:first-child {
  opacity: 0.6;
  font-weight: 300;
  letter-spacing: 1px;
}

.footer-links {
  margin-top: 6px;
}

.footer-links a {
  margin: 0 12px;
  text-decoration: none;
  color: #777;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  section {
    padding: 36px 22px;
  }

  /* ===== Hero ===== */
  .hero {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.2rem);
  }

  /* ===== Garage ===== */
  .garage-section {
    padding: 60px 22px 100px;
  }

  .garage-slider {
    max-width: 100%;
    padding: 0 36px;
  }

  .garage-content {
    max-width: 100%;
  }

  .garage-image-wrap {
    max-width: 600px; /* 少し縮める */
    margin-bottom: 18px;
  }

  .garage-text {
    margin-top: 16px;
  }

  .garage-text h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 12px;
  }

  .garage-text p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  /* specs軽く圧縮 */
  .garage-specs {
    gap: 8px;
    margin-top: 16px;
  }

  .garage-spec-item {
    padding: 7px 10px;
  }

  .garage-spec-label {
    font-size: 0.64rem;
  }

  .garage-spec-value {
    font-size: 0.86rem;
  }

  /* arrows（ちょい内側に） */
  .garage-arrow {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    top: 42%;
  }

  .garage-arrow.left {
    left: 8px;
  }

  .garage-arrow.right {
    right: 8px;
  }

  /* ===== Links ===== */
  .links-inner {
    max-width: 100%;
  }

  .links-grid {
    gap: 14px;
  }

  .link-card {
    min-height: 105px;
    padding: 16px 18px;
  }

  .link-card-top {
    gap: 12px;
    margin-bottom: 12px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
  }

  .link-icon svg {
    width: 20px;
    height: 20px;
  }

  .link-name {
    font-size: 1.2rem;
  }

  .link-desc {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  section {
    padding: 26px 18px;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 270px;
  }

  .hero h1 {
  margin-top: -10px;
  }

  .garage-section {
    padding: 70px 18px 110px;
  }

  .garage-slider {
    padding: 0;
  }

  .garage-stage {
    min-height: auto;
  }

  .garage-image-wrap {
    aspect-ratio: 16 / 9;
    max-width: 90%;
    margin-bottom: 14px;
  }

  .garage-image {
    border-radius: 18px;
  }

  .garage-arrow {
    display: none !important;
  }

  .garage-text {
    margin-top: 0;
    padding: 0 4px;
  }

  .garage-text h2 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .garage-text p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .garage-label {
    margin-bottom: 16px;
  }

  .garage-dots {
    margin-top: 7px;
    gap: 10px;
  }

  .garage-dot {
    width: 9px;
    height: 9px;
  }

  .garage-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .garage-spec-item {
    padding: 6px 8px;
  }

  .garage-spec-label {
    font-size: 0.6rem;
  }

  .garage-spec-value {
    font-size: 0.82rem;
  }

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

  .link-card {
    min-height: 90px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .link-card-top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .link-icon {
    width: 34px;
    height: 34px;
  }

  .link-icon svg {
    width: 18px;
    height: 18px;
  }

  .link-name {
    font-size: 1rem;
  }

  .link-desc {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}