/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:   #111111;
  --gray:    #888888;
  --light:   #e8e8e8;
  --white:   #ffffff;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

img { display: block; width: 100%; }


/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

#header.scrolled {
  border-color: var(--light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

#nav ul {
  display: flex;
  gap: 40px;
}

#nav a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  transition: color 0.2s;
}

#nav a:hover {
  color: var(--black);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}


/* =============================================
   HERO
   ============================================= */
.hero {
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-h);
}

.hero-inner {
  text-align: center;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.hero-role {
  margin-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gray);
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gray);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}


/* =============================================
   SECTION BASE
   ============================================= */
.section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 64px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}


/* =============================================
   PLACEHOLDER IMAGES
   ============================================= */
.placeholder-img {
  width: 100%;
  background: var(--light);
}

.ratio-landscape {
  aspect-ratio: 4 / 3;
}

.ratio-portrait {
  aspect-ratio: 3 / 4;
}

.placeholder-portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
}


/* =============================================
   WORKS
   ============================================= */
.works-filter {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  justify-content: flex-end;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--black);
  border-color: var(--black);
}

.work-row.hidden {
  display: none;
}


/* =============================================
   WORKS TABLE
   ============================================= */
.works-table {
  width: 100%;
  border-collapse: collapse;
}

.works-table tr {
  border-bottom: 1px solid var(--light);
  transition: background 0.15s;
}

.works-table tr:hover {
  background: #f8f8f8;
}

.works-table td {
  padding: 14px 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.wt-year {
  color: var(--gray);
  font-size: 0.7rem !important;
  white-space: nowrap;
  width: 44px;
}

.wt-cat {
  font-size: 0.6rem !important;
  letter-spacing: 0.18em;
  color: var(--gray);
  white-space: nowrap;
  width: 72px;
}

.wt-title {
  width: auto;
}

.wt-role {
  color: var(--gray);
  font-size: 0.7rem !important;
  white-space: nowrap;
  text-align: right;
}


/* =============================================
   ABOUT
   ============================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.profile-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.about-desc {
  font-size: 0.85rem;
  line-height: 2;
  color: #444;
  margin-bottom: 40px;
}

.about-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  align-items: baseline;
}

.about-info dt {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  white-space: nowrap;
}

.about-info dd {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}


/* Award badge */
.award-wrap {
  margin-top: 40px;
}

.award-badge {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Highlighted rows (latest works) */
.wt-highlight .wt-year,
.wt-highlight .wt-title,
.wt-highlight .wt-role {
  color: var(--black);
}


/* =============================================
   CONTACT
   ============================================= */
#contact {
  border-top: 1px solid var(--light);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.contact-lead {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.5;
}

.social-links {
  display: flex;
  gap: 32px;
}

.social-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover {
  color: var(--black);
  border-color: var(--black);
}


/* =============================================
   FOOTER
   ============================================= */
#footer {
  border-top: 1px solid var(--light);
  padding: 32px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}


/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}


/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-image {
    position: static;
    max-width: 320px;
  }
}


/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 600px) {
  :root { --header-h: 56px; }

  .header-inner { padding: 0 20px; }

  #nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  #nav.open {
    transform: translateX(0);
  }

  #nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  #nav a {
    font-size: 0.85rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .hamburger.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .section {
    padding: 80px 20px;
  }

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

  .footer-inner { padding: 24px 20px; }

  .works-filter {
    justify-content: flex-start;
  }
}
