/* ============================================
   PHOTOGRAPHER PORTFOLIO TEMPLATE
   Based on: kazueshibuya.com style
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Noto Serif JP', 'Times New Roman', serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
.en { font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif; letter-spacing: 0.12em; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ============================================
   HEADER / NAV
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 40px;
}

/* Logo */
.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo .logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  text-transform: uppercase;
}
.logo .logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: #888;
  text-transform: uppercase;
}

/* PC Nav */
#nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}
#nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #1a1a1a;
  transition: width 0.3s ease;
}
#nav a:hover { color: #000; }
#nav a:hover::after { width: 100%; }

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

/* SP Overlay */
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.sp-overlay.active { display: block; }

/* SP Nav */
#nav-sp {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
#nav-sp.active { transform: translateX(0); }
#nav-sp ul { display: flex; flex-direction: column; gap: 4px; }
#nav-sp a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #e8e4de;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  color: #fff;
}

.hero-season {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.hero-title-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 12px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.5);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 100px 0;
}
.section-heading {
  margin-bottom: 60px;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-line {
  display: block;
  width: 40px;
  height: 1px;
  background: #c8b89a;
  margin-top: 18px;
}
.section-lead {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  max-width: 540px;
  line-height: 2;
}

/* ============================================
   ART WORK
   ============================================ */
#artwork {
  background: #faf9f7;
}

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

.artwork-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8e4de;
  cursor: pointer;
}
.artwork-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.artwork-item:hover img { transform: scale(1.04); }

.artwork-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.4s;
}
.artwork-item:hover .artwork-item-overlay { background: rgba(20,20,20,0.35); }

.artwork-item-info {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  color: #fff;
}
.artwork-item:hover .artwork-item-info {
  opacity: 1;
  transform: translateY(0);
}
.artwork-item-info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.artwork-item-info p {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-top: 4px;
}

/* Featured large item */
.artwork-grid .artwork-item.large {
  grid-column: span 2;
  aspect-ratio: 4/3;
}

.artwork-more {
  text-align: center;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  transition: gap 0.3s, opacity 0.3s;
}
.btn-link:hover { gap: 18px; opacity: 0.6; }
.btn-link svg { width: 18px; height: 18px; }

/* ============================================
   WORK
   ============================================ */
#work {
  background: #fff;
}

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

.work-item {
  display: block;
  cursor: pointer;
}
.work-item-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e8e4de;
  margin-bottom: 18px;
}
.work-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-item:hover .work-item-img img { transform: scale(1.04); }

.work-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-item-category {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
}
.work-item-title {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  line-height: 1.5;
}
.work-item-year {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  color: #bbb;
  letter-spacing: 0.1em;
}

/* ============================================
   PROFILE
   ============================================ */
#profile {
  background: #f4f1ec;
}

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

.profile-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #ddd8d0;
}
.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-align: right;
}

.profile-text .section-heading { margin-bottom: 36px; }

.profile-name {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.profile-name-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 30px;
}

.profile-body {
  font-size: 0.88rem;
  line-height: 2.2;
  color: #444;
  margin-bottom: 24px;
}
.profile-body + .profile-body { padding-top: 20px; border-top: 1px solid #ddd; }

.profile-body-en {
  font-size: 0.82rem;
  line-height: 1.9;
  color: #777;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.03em;
}

/* ============================================
   NEWS
   ============================================ */
#news {
  background: #fff;
}

.news-list {
  border-top: 1px solid #e8e8e8;
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e8e8;
  align-items: baseline;
  transition: background 0.2s;
}
.news-item:hover { background: #faf9f7; }

.news-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #aaa;
  flex-shrink: 0;
}
.news-title {
  font-size: 0.88rem;
  color: #333;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.news-more {
  margin-top: 36px;
  text-align: right;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: #1a1a1a;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

#contact .section-label { color: rgba(255,255,255,0.4); }
#contact .section-title { color: #fff; }
#contact .section-line { background: rgba(255,255,255,0.25); margin: 18px auto 0; }

.contact-lead {
  margin: 28px auto 0;
  max-width: 480px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 2;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  transition: border-color 0.3s, opacity 0.3s;
}
.contact-mail:hover { opacity: 0.7; border-color: transparent; }
.contact-mail svg { width: 18px; height: 18px; opacity: 0.7; }

.contact-note {
  margin-top: 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #111;
  color: rgba(255,255,255,0.4);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
}
.footer-copy {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}
.footer-nav-list {
  display: flex;
  gap: 28px;
}
.footer-nav-list a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s;
}
.footer-nav-list a:hover { color: rgba(255,255,255,0.8); }

.page-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.4);
  transition: border-color 0.3s, color 0.3s;
  cursor: pointer;
  background: none;
}
.page-top-btn:hover { border-color: rgba(255,255,255,0.7); color: rgba(255,255,255,0.8); }
.page-top-btn svg { width: 16px; height: 16px; }

/* ============================================
   PAGE-TOP FIXED BUTTON
   ============================================ */
#page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, background 0.3s;
}
#page-top.show { opacity: 1; pointer-events: auto; }
#page-top:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
#page-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* ============================================
   PLACEHOLDER IMAGES (画像がない場合の代替表示)
   ============================================ */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cfc8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .artwork-grid { grid-template-columns: repeat(2, 1fr); }
  .artwork-grid .artwork-item.large { grid-column: span 2; }
  .profile-inner { grid-template-columns: 1fr; gap: 48px; }
  .profile-img { max-width: 420px; aspect-ratio: 4/5; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 56px; }

  #nav { display: none; }
  .hamburger { display: block; }
  #nav-sp { display: block; }

  .hero-content { padding: 0 24px; }
  .hero-scroll { display: none; }

  .section { padding: 70px 0; }

  .artwork-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .artwork-grid .artwork-item.large { grid-column: span 2; aspect-ratio: 3/2; }

  .work-grid { grid-template-columns: 1fr; gap: 32px; }

  .news-item { grid-template-columns: 90px 1fr; gap: 14px; }

  .footer-inner { flex-direction: column; gap: 20px; padding: 0 20px; text-align: center; }
  .footer-nav-list { flex-wrap: wrap; justify-content: center; gap: 18px; }
}

@media (max-width: 480px) {
  .artwork-grid { grid-template-columns: 1fr; }
  .artwork-grid .artwork-item.large { grid-column: span 1; }
}
