* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #4a4a4a;
  }

  section {
    min-height: 100vh;      /* ensures section is at least viewport height */
    width: 100%;            /* avoid forcing scrollbars with 100vw */
    scroll-snap-align: start;
    text-align: center;
    justify-content: center;
    padding: 7.5% 2rem;     /* use side padding too */
    box-sizing: border-box; /* safer sizing */
  }
  
  /* Background gradient */
  .bg-top {
    background: linear-gradient(
      to bottom,
      #d0e4f8 0%,
      #ffffff 70%
    );
  }
  
  .nav {
    width: 100%;
    padding: 32px 0;
  }
  
  .nav nav{
    gap: 5rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  
  
  @media (max-width: 768px) {
    .nav nav {
      gap: 1.5rem;
    }
  }
  
  nav a {
    position: relative;
    text-decoration: none;
    color: #7a7a7a;
    font-weight: 400;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  nav a:not(.logo):hover {
    color: #4b4b4b;
    transform: scale(1.1);
  }


  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    height: 50px;
    width: auto;
  }
  
  .hero {
    min-height: calc(100vh - 150px); /* match your nav height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #4b4b4b;
  }
  
  .subtitle {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8a8a8a;
  }

  .hero {
    animation: fadeUp 1.5s ease-out forwards;
  }
  
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(67px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes appear {
    from {
      opacity: 0;
      scale: 0.5;
    } to {
      opacity: 1;
      scale: 1;
    }
  }

  .block {
    animation: fadeUp linear;
    animation-timeline: view();
    animation-range: 0% cover 40%;
  }

  .about-section {
    padding: 6rem 2rem;
  }

  .about-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #4b4b4b;
  }
  
  .about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
  }
  
  /* Left Column: Text */
  .about-text {
    flex: 1 1 500px;
  }

  .jp {
    font-family: 'Noto Sans JP';
  }
  
  .about-text h2 {
    text-align: left;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  .about-text h2 em {
    font-style: italic;
    font-weight: 600;
  }
  
  .about-text h2 strong {
    font-weight: 600;
  }
  
  .about-text p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    color: #8a8a8a;
    margin-bottom: 1.2rem;
  }
  
  /* Right Column: Image */
  .about-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
  }
  
  .about-image img {
    max-width: 100%;
    border-radius: 1rem; /* rounded corners */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }  
  
  .projects {
    padding: 6rem 2rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6rem;
  }
  
  /* Each project block */
  .project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  @media (min-width: 769px) {
    .project {
      flex-direction: row;
      justify-content: space-between;
      flex-wrap: wrap;
      min-width: 1000px;
    }
    .project.reverse {
      flex-direction: row-reverse;
    }
    .project-media {
      flex: 0 0 440px; /* fixed width */
      max-width: 440px;
    }
  }
  
  .project-media {
    flex: 1;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f3f3f3, #fafafa);
  }
  
  model-viewer {
    display: block;
    width: 100%;
    height: 320px;
    background: transparent;
  }

  .project-media.origami {
    background: linear-gradient(135deg, #b4f2d2, #f7fbd9);
  }
  
  .project-media.heart {
    background: linear-gradient(135deg, #dcd2f2, #f2e7da);
  }  

  .project-media.soccer {
    background: linear-gradient(135deg, #f0eaa8, #f07c7c);
  }  

  .project-media.quant {
    background: linear-gradient(135deg, #f0b2a8, #94d5f4);
  }  
  
  /* Text content area */
  .project-content {
    flex: 1;
    padding: 1rem 2rem;
    text-align: left;
  }
  
  .project-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .project-content p {
    font-size: 1rem;
    color: #8a8a8a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  /* Subtle button-like link */
  .view-project {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .unfinished-project {
    text-decoration: none;
    color: #ff4d4d;
    font-weight: 500;
  }
  
  .view-project:hover {
    color: #1d4ed8;
  }
  
/* Footer Base */
.site-footer {
  background: linear-gradient(
    to top,
    #d0e4f8 0%,
    #ffffff 70%
  );
  padding: 0;
  font-family: sans-serif;
}

/* Top Moving Banner */
.footer-banner {
  position: relative;
  overflow: hidden;
  height: 2rem;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 30%,
    black 70%,
    transparent
  );
}

.banner-track {
  display: flex;
  width: max-content;
  animation: scrollBanner 30s linear infinite;
  /* gap: 4rem; */
}

.banner-track span {
  flex: none;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.6;
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.banner-track span::after {
  content: "★";
  margin: 0 3rem;
  opacity: 0.35;
}

/* Animation */
@keyframes scrollBanner {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Footer Content */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Left Column */
.footer-left h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.footer-left .star {
  font-size: 1.7rem;
}

.footer-left .subtitle {
  font-size: 1rem;
  color: #8a8a8a;
  margin-bottom: 1rem;
}

.footer-left .credit {
  font-size: 0.9rem;
  color: #8a8a8a;
}

/* Middle + Right */
.footer-middle h3,
.footer-right h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-middle li,
.footer-right li {
  margin-bottom: 0.5rem;
}

.footer-middle a,
.footer-right a {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 0.95rem;
}

.footer-middle a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-middle,
  .footer-right {
    margin-top: 1.5rem;
  }
}
