html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background-color: #f7f7f7;
}

h1,
.name,
h3,
.section-title {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: normal;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px 0;
  background: #ffd93d;
  z-index: 100;
}

.navbar a {
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.navbar a:hover {
  color: #ff4d6d;
}

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-color: #222;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.leaving {
  opacity: 1;
  z-index: 0;
}

.hero h1 {
  position: relative;
  z-index: 2;
}

h1 {
  color: yellow;
  text-align: center;
  font-size: clamp(1.6rem, 7vw, 4rem);
  margin: 0;
  padding-top: 200px;
  padding-left: 16px;
  padding-right: 16px;
}

.about-section {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  text-align: center;
  padding: 100px 20px 120px;
}

.bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 12vw;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.about-section > *:not(.bg-text) {
  position: relative;
  z-index: 1;
}

.section-title {
  margin: 0;
  font-size: 3rem;
  color: #000;
}

.section-sub {
  margin: 4px 0 70px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #29c9ff;
}

.about-lead {
  margin: 0 0 20px;
  font-size: 1rem;
}

.about-main {
  margin: 0 0 50px;
  font-size: 1.5rem;
  font-weight: bold;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  background: #29c9ff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

.more-btn:hover {
  opacity: 0.8;
}

.profile {
  position: relative;
  padding: 120px 7% 100px;
  color: #222;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 60px;
  row-gap: 60px;
}

.name {
  font-size: clamp(1.8rem, 8vw, 4rem);
  color: red;
  margin: 0;
  line-height: 1.1;
}

h3 {
  color: red;
}

.lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-list li::before {
  content: "・";
}

.fade {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
  filter: none;
}

.site-footer {
  background: linear-gradient(135deg, #3cc8dc, #4a9fee);
  color: #fff;
  padding: 100px 20px 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  margin: 0 0 50px;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 2.4rem;
}

.footer-main-links {
  margin-bottom: 24px;
}

.footer-main-links a {
  display: inline-block;
  margin: 0 18px 12px 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-sub-links a {
  display: inline-block;
  margin: 0 18px 10px 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-main-links a:hover,
.footer-sub-links a:hover,
.footer-group a:hover {
  opacity: 0.7;
}

.footer-right {
  width: 440px;
}

.footer-group {
  padding: 18px 0;
  border-bottom: 1px solid #fff;
}

.footer-group h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-group a {
  display: inline-block;
  margin-right: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-group a span {
  font-size: 0.7rem;
}

.footer-copy {
  max-width: 1100px;
  margin: 80px auto 0;
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  .navbar {
    padding: 14px 0;
    gap: 28px;
  }

  .navbar a {
    font-size: 1.05rem;
  }

  .hero {
    height: auto;
    aspect-ratio: 1425 / 781;
  }

  h1 {
    padding-top: 80px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-main {
    font-size: 1.2rem;
  }

  .profile {
    padding: 100px 7% 70px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 36px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    width: 100%;
  }
}

@media (orientation: portrait) {
  .hero {
    height: auto;
    aspect-ratio: 1425 / 781;
  }

  h1 {
    padding-top: 12vw;
  }
}

.works {
  padding: 100px 7% 120px;
  text-align: center;
  background: #f7f7f7;
}

.works-list {
  border-top: 1px solid #b9c9e6;
}

.work-row {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(90px, 14vw, 140px);
  overflow: hidden;
  background: #f7f7f7;
  border-bottom: 1px solid #b9c9e6;
  color: #222;
  text-decoration: none;
  cursor: pointer;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-row.open {
  height: clamp(220px, 34vw, 360px);
}

.work-img {
  order: 1;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}

.work-body {
  order: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.work-row.open .work-img {
  order: 2;
}

.work-row.open .work-body {
  order: 1;
}

.work-title {
  margin: 0;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: normal;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
}

.work-more {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  color: #29a8e0;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: bold;
}

.work-more::before {
  content: "Open";
}

.work-row.open .work-more {
  position: static;
  transform: none;
}

.work-row.open .work-more::before {
  content: "View More";
}

.work-page {
  min-height: 70vh;
  padding: 140px 7% 100px;
  color: #222;
}

.work-page h2 {
  margin: 0 0 24px;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: normal;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: red;
}

.work-page p {
  font-size: 1.1rem;
  line-height: 1.9;
}

.back-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #29c9ff;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.back-btn:hover {
  opacity: 0.8;
}

.photos {
  padding: 100px 0 60px;
  text-align: center;
  background: #f7f7f7;
}

.photo-list {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 0 7%;
  text-align: left;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.photo-list::-webkit-scrollbar {
  display: none;
}

.photo-list.dragging {
  cursor: grabbing;
  user-select: none;
}

.photo-card {
  flex: 0 0 clamp(240px, 32vw, 420px);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}

.photo-date {
  margin: 14px 0 6px;
  color: #29a8e0;
  font-size: 0.95rem;
  font-weight: bold;
}

.photo-caption {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .navbar {
    gap: 16px;
  }

  .navbar a {
    font-size: 0.95rem;
  }
}

.work-page h3 {
  margin: 40px 0 8px;
  font-size: 1.4rem;
}

.player-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.player-text {
  flex: 1;
}

.player-viewer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  margin: 0 max(0px, calc(43vw - 455px)) 0 0;
}

.player-viewer canvas {
  max-width: 100%;
}

@media (max-width: 800px) {
  .player-layout {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }

  .player-text {
    width: 100%;
  }

  .player-viewer {
    margin: 0;
  }
}