:root {
  --navy-deepest: #050c1a;
  --navy-deep: #0a1628;
  --navy-mid: #0f2044;
  --navy-light: #1a3360;
  --navy-muted: #1e3d72;
  --gold: #b8963e;
  --gold-light: #d4af60;
  --gold-pale: #e8d49a;
  --ivory: #f5f0e8;
  --ivory-dim: #c8c2b4;
  --white: #ffffff;
  --text-body: #a8b8cc;
  --text-sub: #6a7e94;
  --border: rgba(184, 150, 62, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy-deepest);
  color: var(--text-body);
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.8;

  position: relative;
  z-index: -1;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deepest);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* ─── HEADER / NAV ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 100;
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--ivory);
  text-transform: uppercase;
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--gold-light);
}

.btn {
  position: fixed;
  z-index: 2;
  top: 5px;
  right: 5px;
  width: 50px;
  margin: 5px;
  padding: 7.5px 0;
  display: none;
  cursor: pointer;
}

.btn span {
  display: none;
  background: white;
  text-align: center;
  height: 3px;
  width: 50%;
  margin: 5px 12px;
  transition: 0.8s;
}

.btn-menu-bar {
  opacity: 0;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      ellipse 80% 60% at 60% 50%,
      rgba(26, 51, 96, 0.4) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 80% at 10% 80%,
      rgba(184, 150, 62, 0.06) 0%,
      transparent 60%
    ),
    var(--navy-deepest);
}

/* diagonal line grid */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(184, 150, 62, 0.03) 0px,
    rgba(184, 150, 62, 0.03) 1px,
    transparent 1px,
    transparent 80px
  );
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-pale);
  letter-spacing: 0.05em;
  margin-bottom: 56px;
  opacity: 0.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.hero-cta:hover {
  color: var(--navy-deepest);
}

.hero-cta:hover::before {
  transform: translateX(0);
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-sub);
  animation: fadeUp 2s ease 1s both;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── SECTIONS COMMON ─── */
section {
  padding: 120px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.section-header {
  margin-bottom: 80px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.section-number {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
}

.section-title-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ─── ABOUT ─── */
#about {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}

.about-photo-wrap::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--border);
  z-index: 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(30%) contrast(1.05);
}

.about-photo-label {
  position: absolute;
  bottom: -24px;
  right: -24px;
  z-index: 2;
  background: var(--gold);
  padding: 16px 24px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-deepest);
}

.about-text h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 20px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-body);
  margin-bottom: 40px;
}

.timeline {
  list-style: none;
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--text-body);
}
.timeline li::before {
  content: "—";
  color: var(--gold);
  font-family: "Josefin Sans", sans-serif;
  flex-shrink: 0;
}

/* ─── SKILLS ─── */
#skills {
  position: relative;
}

#skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 32, 68, 0.3),
    transparent
  );
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.skill-card {
  background: var(--navy-deep);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
}

.skill-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.skill-card:hover {
  background: var(--navy-mid);
  transform: translateY(-4px);
}

.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  object-fit: contain;
  filter: grayscale(1) brightness(2) opacity(0.6);
  transition: filter 0.4s;
}

.skill-card:hover .skill-icon {
  filter: grayscale(0) brightness(1.1) opacity(1);
}

.skill-name {
  font-family: "Josefin Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 12px;
}

.skill-desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ─── NEW RELEASE ─── */
#new {
  background: transparent;
}

.release-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.image {
  display: flex;
  align-items: center;
}

.release-img {
  width: 100%;
  height: 80%;
  min-height: 300px;
  object-fit: cover;
  display: block;

  filter: grayscale(20%) contrast(1.05);
  transition: transform 0.6s ease;
}

.release-feature:hover .release-img {
  transform: scale(1.03);
}

.release-info {
  background: var(--navy-mid);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.release-tag {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.release-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 24px;
  line-height: 1.2;
}

.release-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-pill {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.release-period {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.release-desc {
  font-size: 14px;
  line-height: 2;
  color: var(--text-body);
}

/* ─── WORKS ─── */
#works {
  background: transparent;
}

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

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-deep);
  cursor: pointer;
}

.work-img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(30%) contrast(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 12, 26, 0.95) 0%,
    rgba(5, 12, 26, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.work-card:hover .work-img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 8px;
}

.work-tech {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.work-period {
  font-size: 12px;
  color: var(--text-sub);
}

.work-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.work-card:hover::after {
  transform: scaleX(1);
}

/* ─── CONTACT / FOOTER ─── */
#contact-section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.contact-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 48px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy-deepest);
  text-decoration: none;
  padding: 20px 56px;
  background: var(--gold);
  transition: all 0.3s;
}

.contact-btn:hover {
  background: var(--gold-light);
  letter-spacing: 0.4em;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
}

footer nav {
  gap: 32px;
}

footer nav a {
  color: var(--text-sub);
  font-size: 10px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.3) translateY(24px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  header {
    padding: 0 24px;
  }

  .btn {
    display: block;
    z-index: 3;
  }

  .btn span {
    display: block;
  }

  /* btn ×印 */

  .btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .btn.active span:nth-child(2) {
    opacity: 0;
  }

  .btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  nav {
    display: none;
  }

  .btn-menu-bar {
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    width: 50%;
    height: 1500px;
    background-color: var(--gold);

    visibility: hidden;
    transform: translate(300px, 0);
    transition: 2s;
  }

  .btn-menu-bar li {
    list-style: none;
    padding: 30px;
  }

  .btn-menu-bar li a {
    text-decoration: none;
    font-size: 2rem;
    line-height: 3rem;

    font-family: "Josefin Sans", sans-serif;
    font-weight: 100;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
  }

  .btn-menu-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
  }

  .image {
    display: flex;
    align-items: center;
  }

  .release-img {
    width: 100%;
    height: 50%;
    min-height: 300px;
    object-fit: cover;
    display: block;

    filter: grayscale(20%) contrast(1.05);
    transition: transform 0.6s ease;
  }

  section,
  footer,
  #contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .release-feature {
    grid-template-columns: 1fr;
  }

  .release-info {
    padding: 40px 32px;
  }
}
