/* =========================================================
   SAKUMA KANA PORTFOLIO – main.css
   ========================================================= */

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

:root {
  --black:      #0a0a0a;
  --white:      #fafaf8;
  --gray:       #888888;
  --light-gray: #e8e8e4;
  --serif:      'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --display:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-color: var(--light-gray); }

.site-title a {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-navigation ul {
  display: flex;
  gap: 48px;
}
.main-navigation a {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.2s;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}
.main-navigation a:hover::after { width: 100%; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  position: absolute;
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}
.hero-label--left  {
  left: -64px; top: 40px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-label--right {
  right: -84px; bottom: 40px;
  writing-mode: vertical-rl;
  animation-delay: 0.7s;
}

.hero-image {
  width: 320px; height: 420px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 1.2s ease 0.2s forwards;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hero-image:hover img { transform: scale(1.04); }

.hero-name {
  margin-top: 36px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

/* ── DIVIDER ── */
.section-divider {
  width: 100%; height: 1px;
  background: var(--light-gray);
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.9;
}

/* ── ABOUT ── */
.about-section {
  padding: 100px 48px;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left { display: flex; flex-direction: column; }
.about-left .section-title { margin-bottom: 48px; }

.about-photo {
  width: 260px; height: 340px;
  overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-right { padding-top: 80px; }

.about-name-label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.about-bio {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 2.2;
  color: #444;
}
.about-bio p + p { margin-top: 16px; }

/* ── WORKS ── */
.works-section {
  background: var(--black);
  padding: 100px 48px 120px;
}
.works-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.works-section .section-title {
  color: var(--white);
  margin-bottom: 60px;
}

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

.work-card {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
  background: #1c1c1c;
}
.work-card:hover { transform: scale(1.02); }
.work-card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}
.work-card:hover::after { background: rgba(0,0,0,0.3); }

.work-card a {
  display: block;
  width: 100%; height: 100%;
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Work card placeholder (no image) */
.work-card--empty {
  background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
}

.work-card__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.work-card:hover .work-card__meta {
  opacity: 1;
  transform: translateY(0);
}
.work-card__title {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
}
.work-card__cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.works-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.btn-more {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--white);
  padding: 12px 28px;
  border: 1px solid #444;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  text-decoration: none;
}
.btn-more:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-more__dot {
  width: 28px; height: 28px;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}
.btn-more:hover .btn-more__dot { background: var(--black); }

/* ── CONTACT ── */
.contact-section { padding: 100px 48px; }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left .section-title { margin-bottom: 24px; }

.contact-sub {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 2.0;
  color: #555;
  max-width: 360px;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group textarea,
.form-group select {
  border: none;
  border-bottom: 1px solid var(--light-gray);
  background: transparent;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  align-self: flex-start;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.form-submit:hover { opacity: 0.75; }

/* CF7 overrides */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { font-size: 0.72rem; color: #c0392b; margin-top: 4px; }
.wpcf7 .ajax-loader { display: none; }
.wpcf7-response-output {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.78rem;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--light-gray);
  color: var(--gray);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--light-gray);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer p {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s;  }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-right  { padding-top: 0; }
  .works-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 18px 24px; }

  .main-navigation {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 190;
  }
  .main-navigation.open { display: flex; }
  .main-navigation ul   {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .main-navigation a { font-size: 0.9rem; letter-spacing: 0.3em; }

  .hamburger { display: flex; }

  .hero-section { padding: 100px 24px 60px; }
  .hero-label   { display: none; }
  .hero-image   { width: 80vw; max-width: 320px; height: auto; aspect-ratio: 3/4; }

  .about-section,
  .contact-section { padding: 60px 24px; }
  .works-section    { padding: 60px 24px 80px; }
  .works-grid       { grid-template-columns: 1fr; }

  .about-photo { width: 100%; max-width: 260px; }
}
