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

:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #f5f5f5;
  --gray-mid: #888888;
  --border: #e0e0e0;
  --font-en: 'Cormorant Garamond', serif;
  --font-ui: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ja);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

/* ========================
   Animation
======================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.delay-1 { transition-delay: 0.15s; }
.fade-up.delay-2 { transition-delay: 0.3s; }

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder */
.placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* ========================
   Header
======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-dark { display: none; }
.logo-white { display: block; }

.header.scrolled .logo-white { display: none; }
.header.scrolled .logo-dark { display: block; }

.header.scrolled .nav-list a {
  color: var(--black);
}

.nav-list a {
  color: rgba(255,255,255,0.8);
}

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

.nav-list a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-list a:hover {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
}

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

.header.scrolled .hamburger span {
  background: var(--black);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================
   SP Drawer
======================== */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 200;
  padding: 100px 40px 40px;
  transition: right 0.4s ease;
}

.drawer.is-open {
  right: 0;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.drawer-link {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ========================
   Section Common
======================== */
.section-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
  margin-bottom: 60px;
  text-transform: uppercase;
}

/* ========================
   Hero
======================== */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #ccc;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
}

.hero-catch {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .hero-catch {
    font-size: 17px;
  }
}

.hero-name {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
}

/* ========================
   About
======================== */
.about {
  padding: 140px 0;
}

.about-quote {
  max-width: 760px;
}

.about-quote-main {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 40px;
}

.about-quote-sub {
  font-size: 14px;
  color: #555;
  line-height: 2.2;
  letter-spacing: 0.05em;
  padding-left: 1em;
  border-left: 1px solid var(--border);
}

.about-btn {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.about-btn:hover {
  opacity: 0.5;
}

/* ========================
   Works
======================== */
.works {
  padding: 140px 0;
  background: var(--gray);
}

.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: none;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.filter-btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

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

.works-thumb {
  width: 100%;
  height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
}

.works-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.works-item:hover .works-thumb img {
  transform: scale(1.04);
}

.works-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.works-title {
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ========================
   Service
======================== */
.service {
  padding: 140px 0;
}

.service-sub {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 64px;
}

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

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 36px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background 0.3s ease;
}

.service-item:hover {
  background: var(--gray);
}

/* ========================
   Contact
======================== */
.contact {
  padding: 140px 0;
  background: var(--gray);
}

.contact-sub {
  font-size: 14px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  margin-bottom: 64px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
  border-color: var(--black);
  background: var(--gray);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--gray-mid);
}

.contact-link-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 4px;
}

.contact-link-value {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

.form-group textarea {
  resize: vertical;
}

.form-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.form-btn:hover {
  opacity: 0.7;
}

/* ========================
   Footer
======================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-mid);
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
}

/* ========================
   Modal
======================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.is-open .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-caption {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.modal-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.modal-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-img-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-img-wrap img {
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-img-wrap.is-multi-portrait {
  gap: 16px;
}

.modal-img-wrap.is-multi-portrait .modal-multi-img {
  max-height: 78vh;
  max-width: calc(50% - 8px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-img-wrap.is-multi-landscape {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal-img-wrap.is-multi-landscape .modal-multi-img {
  max-width: min(88vw, 720px);
  max-height: 42vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .modal-img-wrap.is-multi-portrait {
    flex-direction: column;
    align-items: center;
  }
  .modal-img-wrap.is-multi-portrait .modal-multi-img {
    max-width: 88vw;
    max-height: 42vh;
  }
  .modal-img-wrap.is-multi-landscape .modal-multi-img {
    max-height: 35vh;
  }
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--white);
}

.modal-close span:nth-child(1) { transform: rotate(45deg); }
.modal-close span:nth-child(2) { transform: rotate(-45deg); }

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

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

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: var(--header-h) 24px 0;
  }

  .hero-scroll {
    display: none;
  }

  .hero-inner {
    text-align: center;
    padding: 0 24px 80px;
  }

  .section-inner {
    padding: 0 24px;
  }

  .about {
    padding: 80px 0;
  }

  .about-quote-main {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 28px;
  }

  .works {
    padding: 80px 0;
  }

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

  .service {
    padding: 80px 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item {
    padding: 24px 20px;
    font-size: 13px;
  }

  .contact {
    padding: 80px 0;
  }

  .footer-inner {
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

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