* ============================================================
   WORK PRO OFFICE — Redesign Proposal
   Design System: Minimal Luxury
   ============================================================ */

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

:root {
  /* Colors */
  --c-black:   #0a0a0a;
  --c-dark:    #111111;
  --c-gray-90: #1a1a1a;
  --c-gray-70: #4a4a4a;
  --c-gray-40: #999999;
  --c-gray-15: #d9d9d9;
  --c-gray-05: #f5f5f3;
  --c-white:   #fafaf8;
  --c-accent:  #c8a96e;   /* warm gold */

  /* Typography */
  --f-serif:   'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --f-sans:    'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing — 8px base grid */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  56px;
  --sp-8:  80px;
  --sp-10: 120px;
  --sp-14: 160px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(24px, 5vw, 80px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  0.3s;
  --dur-med:   0.6s;
  --dur-slow:  1s;
  --dur-xslow: 1.4s;
}

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

body {
  background-color: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
em { font-style: italic; font-family: var(--f-serif); }

/* ----------------------------------------------------------
   2. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo) var(--delay, 0s),
    transform var(--dur-slow) var(--ease-out-expo) var(--delay, 0s);
}

.reveal-fade {
  opacity: 0;
  transition:
    opacity var(--dur-slow) var(--ease-out-expo) var(--delay, 0s);
}

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

/* ----------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */
.section-label {
  font-family: var(--f-serif);
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--c-black);
}

/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 72px;
  transition: background var(--dur-med) var(--ease-in-out),
              backdrop-filter var(--dur-med) var(--ease-in-out),
              box-shadow var(--dur-med) var(--ease-in-out);
}

.nav.is-scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--dur-fast);
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-img {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease-out-expo);
}

.nav.is-scrolled .nav__logo-img {
  filter: none;
}

.nav__links {
  display: flex;
  gap: var(--sp-6);
}

.nav__link {
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color var(--dur-fast);
}

.nav.is-scrolled .nav__link { color: var(--c-gray-70); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--dur-med) var(--ease-out-expo);
}

.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--c-white); }
.nav.is-scrolled .nav__link:hover { color: var(--c-black); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--c-white);
  transition: background var(--dur-fast), transform var(--dur-med) var(--ease-out-expo), opacity var(--dur-fast);
}

.nav.is-scrolled .nav__burger span { background: var(--c-black); }
.nav__burger.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-in-out);
}

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

.nav__mobile-link {
  font-family: var(--f-serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
}

.nav__mobile-link:hover { color: var(--c-accent); }

/* ----------------------------------------------------------
   5. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* YouTube iframe: 16:9 アスペクトを維持しながら全画面カバー */
  width: 177.78vh;  /* 100vh × (16/9) */
  min-width: 100%;
  height: 56.25vw;  /* 100vw × (9/16) */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* file:// 等で iframe を使わないとき — サムネ＋YouTube へ */
.hero__video-fallback {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

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

.hero--local-file .hero__video {
  display: none !important;
}

.hero--local-file .hero__video-fallback {
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) var(--sp-14);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero__eyebrow {
  font-family: var(--f-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(32px, 7vw, 78px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero__headline-line {
  display: block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75)
}

.hero__sub {
  font-family: var(--f-sans);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: var(--sp-5);
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .hero .hero__headline {
    font-size: clamp(22px, 7.5vw, 28px) !important;
    line-height: 1.45 !important;
    letter-spacing: -0.01em !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .hero .hero__headline-line {
    display: block !important;
    white-space: normal !important;
  }

  .hero__content {
    padding-bottom: 80px !important;
  }
}


.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
  transition: border-color var(--dur-fast), gap var(--dur-med) var(--ease-out-expo);
}

.hero__cta:hover {
  border-color: var(--c-accent);
  gap: var(--sp-3);
}

.hero__cta svg {
  transition: transform var(--dur-med) var(--ease-out-expo);
}

.hero__cta:hover svg { transform: translateX(4px); }

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.5s forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

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

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

.hero__scroll-label {
  font-family: var(--f-serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}

.hero__video-badge {
  display: none;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ----------------------------------------------------------
   6. WORKS
   ---------------------------------------------------------- */
.works {
  padding: var(--sp-14) 0 var(--sp-10);
  background: var(--c-white);
}

.works__header {
  padding: 0 var(--gutter);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto var(--sp-8);
}

/* Work card shared */
.work {
  position: relative;
  overflow: visible; /* テキストが画像の下に来るため overflow: visible に変更 */
  cursor: pointer;
}

.work__media {
  position: relative;
  overflow: hidden;
}

.work__img {
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-xslow) var(--ease-out-expo);
}

.work:hover .work__img {
  transform: scale(1.04);
}

.work__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: opacity var(--dur-med) var(--ease-in-out);
}

.work:hover .work__media-overlay {
  opacity: 0.85;
}

/* Work info — overlay variant (Work 06, 09 など意図的にオーバーレイにする場合) */
.work__info--overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4) var(--sp-6) var(--sp-5);
  z-index: 2;
  color: var(--c-white);
  overflow: hidden;
  box-sizing: border-box;
}

/* Work info — below variant (Work 01, 02, 03, 04, 05 など画像の下にテキストを配置) */
.work__info--below {
  padding: var(--sp-4) 0 var(--sp-5);
  color: var(--c-black);
}

.work__info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.work__num {
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  display: block;
  margin-bottom: var(--sp-2);
}

.work__info--below .work__num {
  color: var(--c-accent);
}

.work__meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  white-space: nowrap;
}

.work__cat {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.work__info--below .work__cat {
  color: var(--c-gray-70);
  border-color: var(--c-gray-15);
}

.work__year {
  font-family: var(--f-serif);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.work__info--below .work__year {
  color: var(--c-gray-40);
}

/* タイトルが画像外にはみ出さないよう制御（overlay時のみ） */
.work__info--overlay .work__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.work__title {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-1);
}

.work__client {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-1);
}

.work__info--below .work__client {
  color: var(--c-gray-70);
}

.work__role {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-3);
}

.work__info--below .work__role {
  color: var(--c-gray-40);
}

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  transition: gap var(--dur-med) var(--ease-out-expo), border-color var(--dur-fast);
}

.work__link:hover {
  gap: 14px;
  border-color: var(--c-accent);
}

.work__info--below .work__link {
  color: var(--c-black);
  border-color: var(--c-gray-15);
}

.work__info--below .work__link:hover {
  border-color: var(--c-black);
}

/* Feature work */
.work--feature {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto var(--sp-3);
  padding: 0 var(--gutter);
}

/* work__mediaに対してオーバーレイテキストが画像内に収まるよう制限 */
.work--feature .work__media,
.work--wide .work__media,
.work--half .work__media {
  position: relative;
  overflow: hidden;
}

.work--feature .work__media {
  border-radius: 2px;
}

.work--feature .work__img {
  height: clamp(400px, 55vw, 680px);
}

/* Duo layout */
.works__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto var(--sp-3);
  padding: 0 var(--gutter);
}

.works__duo--offset {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.work--half .work__img {
  height: clamp(280px, 32vw, 440px);
}

/* Wide work */
.work--wide {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto var(--sp-3);
  padding: 0 var(--gutter);
}

.work--wide .work__img {
  height: clamp(360px, 45vw, 580px);
}

/* work--wideのオーバーレイは常に左揃え（overlay使用時） */
.work--wide .work__info--overlay {
  text-align: left;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}

/* ==========================================================
   Desktop PC: フルスクリーン化と画像切れ修正
   ========================================================== */
@media (min-width: 601px) {
  /* 外側の制限をなくして画面端まで広げる（overlay使用時のみ適用） */
  .work--feature:has(.work__info--overlay),
  .work--wide:has(.work__info--overlay) {
    max-width: 100% !important;
    width: 100vw;
    padding: 0 !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* 画像を画面の高さ・幅いっぱいにフィットさせる（overlay使用時） */
  .work--feature:has(.work__info--overlay) .work__img,
  .work--wide:has(.work__info--overlay) .work__img {
    height: 100svh;
    min-height: 600px;
    width: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* オーバーレイを画像全体にぴったり被せ、テキストを下部に配置 */
  .work--feature .work__info--overlay,
  .work--wide .work__info--overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: var(--sp-8) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.1) 60%,
      transparent 100%
    );
    box-sizing: border-box;
    text-align: left;
  }

  /* 右寄せ設定をリセット */
  .work--feature .work__info--overlay.work__info--right,
  .work--wide .work__info--overlay.work__info--right {
    padding-left: var(--gutter);
    text-align: left;
  }
}

/* More CTA */
.works__more-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-black);
  border: 1px solid var(--c-gray-15);
  padding: 14px 28px;
  border-radius: 2px;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast),
    gap var(--dur-med) var(--ease-out-expo);
}

.btn-outline:hover {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
  gap: var(--sp-3);
}

/* ----------------------------------------------------------
   7. ABOUT
   ---------------------------------------------------------- */
.about {
  background: var(--c-gray-05);
  padding: var(--sp-14) 0 var(--sp-10);
}

.about__inner {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  margin-bottom: var(--sp-10);
}

.about__headline {
  font-family: var(--f-serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-black);
  margin-bottom: var(--sp-4);
}

.about__headline em {
  font-style: italic;
  color: var(--c-accent);
}

.about__divider {
  width: 40px;
  height: 1px;
  background: var(--c-accent);
  margin-bottom: var(--sp-5);
}

.about__body {
  font-family: var(--f-sans);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 2;
  color: var(--c-gray-70);
  margin-bottom: var(--sp-4);
}

.about__body strong {
  font-weight: 500;
  color: var(--c-black);
}

/* Company table */
.about__table {
  border-top: 1px solid var(--c-gray-15);
}

.about__table-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-gray-15);
  align-items: start;
}

.about__table-label {
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-gray-40);
  text-transform: uppercase;
  padding-top: 2px;
}

.about__table-value {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-black);
}

/* Timeline */
.timeline {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.timeline__header {
  margin-bottom: var(--sp-6);
}

.timeline__title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-black);
}

.timeline__list {
  border-top: 1px solid var(--c-gray-15);
  column-count: 2;
  column-gap: clamp(40px, 6vw, 80px);
}

.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-gray-15);
  align-items: baseline;
  transition: background var(--dur-fast);
  break-inside: avoid;
}

.timeline__item:hover {
  background: rgba(200, 169, 110, 0.04);
}

.timeline__period {
  font-family: var(--f-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  flex-shrink: 0;
}

.timeline__name {
  font-family: var(--f-sans);
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-gray-70);
}

.timeline__name em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-black);
}

/* ----------------------------------------------------------
   8. CONTACT
   ---------------------------------------------------------- */
.contact {
  background: var(--c-dark);
  padding: var(--sp-14) 0;
  overflow: hidden;
}

.contact__inner {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.contact__headline {
  font-family: var(--f-serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.contact__headline-word {
  display: block;
  overflow: hidden;
}

.contact__headline-word span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.contact__headline-word.is-visible span {
  transform: translateY(0);
}

.contact__body {
  font-family: var(--f-sans);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 2;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-4);
}

.contact__email {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-accent);
  margin-bottom: var(--sp-5);
  transition: opacity var(--dur-fast);
}

.contact__email:hover { opacity: 0.7; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-dark);
  background: var(--c-white);
  padding: 14px 28px;
  border-radius: 2px;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    gap var(--dur-med) var(--ease-out-expo);
}

.btn-primary:hover {
  background: var(--c-accent);
  color: var(--c-white);
  gap: var(--sp-3);
}

/* ----------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--c-black);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

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

/* Vertical logo image in footer */
.footer__logo-img {
  display: block;
  width: auto;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__logo-text {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer__nav {
  display: flex;
  gap: var(--sp-5);
}

.footer__link {
  font-family: var(--f-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  transition: color var(--dur-fast);
}

.footer__link:hover { color: var(--c-white); }

.footer__copy {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
}

/* ==========================================================
   10. RESPONSIVE (Mobile)
   ========================================================== */
@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__content {
    padding-bottom: var(--sp-10);
  }

  .hero__scroll-indicator { display: none; }

  .hero__sub {
    max-width: 100%;
    line-height: 1.8;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .works__duo,
  .works__duo--offset {
    grid-template-columns: 1fr;
  }

  /* スマホでの実績オーバーレイ余白を12pxに統一して見やすく */
  .work__info--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-4) 12px var(--sp-5) !important;
    width: 100%;
    color: var(--c-white);
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
  }

  .work__info--overlay.work__info--right {
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: left;
  }

  .work__title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
    word-break: break-all;
  }

  .timeline__item {
    grid-template-columns: 70px 1fr;
    gap: var(--sp-2);
  }

  .timeline__list {
    column-count: 1;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  .footer__nav { gap: var(--sp-4); }
}

/* ----------------------------------------------------------
   11. WORK IMAGE BACKGROUNDS (placeholder colors)
   ---------------------------------------------------------- */
/* 各実績の画像ファイル: images/work01.jpg 〜 images/work13.jpg (.png) */
.work__img--01 {
  background-image: url('images/work01.jpg');
  background-position: center top;
}
.work__img--02 {
  background-image: url('images/work13.jpg');
  background-position: center center;
}
.work__img--03 {
  background-image: url('images/work02.jpg');
  background-position: center center;
}
.work__img--04 {
  background-image: url('images/work03.jpg');
  background-position: center center;
}
.work__img--05 {
  background-image: url('images/work04.jpg');
  background-position: center top;
}
.work__img--06 {
  background-image: url('images/work05.jpg');
  background-position: center center;
}
.work__img--07 {
  background-image: url('images/work06.jpg');
  background-position: center center;
}
.work__img--08 {
  background-image: url('images/work07.jpg');
  background-position: center center;
}
.work__img--09 {
  background-image: url('images/work08.jpg');
  background-position: center center;
}
.work__img--10 {
  background-image: url('images/work12.jpg');
  background-position: center center;
}
.work__img--11 {
  background-image: url('images/work09.png');
  background-position: center top;
}
.work__img--12 {
  background-image: url('images/work10.png');
  background-position: center top;
}
.work__img--13 {
  background-image: url('images/work11.jpg');
  background-position: center top;
}

/* ----------------------------------------------------------
   12. PAGE LOAD ANIMATION
   ---------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo) 0.2s,
              visibility 0.8s var(--ease-out-expo) 0.2s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.page-loader__logo {
  font-family: var(--f-serif);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--c-white);
  overflow: hidden;
}

.page-loader__logo span {
  display: inline-block;
  transform: translateY(100%);
  animation: loaderSlide 0.8s var(--ease-out-expo) 0.1s forwards;
}

@keyframes loaderSlide {
  to { transform: translateY(0); }
}

/* ----------------------------------------------------------
   13. CURSOR (optional luxury touch)
   ---------------------------------------------------------- */
@media (pointer: fine) {
  .cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s;
    mix-blend-mode: difference;
  }

  .cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(200, 169, 110, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s var(--ease-out-expo),
                width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                opacity 0.3s;
  }

  body:has(a:hover) .cursor-ring,
  body:has(button:hover) .cursor-ring {
    width: 56px;
    height: 56px;
    opacity: 0.6;
  }
}

/* ----------------------------------------------------------
   14. WORKS MODAL
   ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100vw);
  height: 100dvh;
  background: var(--c-white);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray-15) transparent;
}

.modal.is-open .modal__panel {
  transform: translateX(0);
}

.modal__panel.is-sliding-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.25s var(--ease-in-expo), opacity 0.25s;
}
.modal__panel.is-sliding-right {
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.25s var(--ease-in-expo), opacity 0.25s;
}
.modal__panel.is-sliding-in {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.35s;
}

.modal__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 10, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.modal__close:hover {
  background: rgba(10, 10, 10, 0.8);
  transform: rotate(90deg);
}

.modal__close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--c-white);
  display: block;
}

.modal__close span:first-child { transform: rotate(45deg); }
.modal__close span:last-child  { transform: rotate(-45deg); }

.modal__hero {
  position: relative;
  height: clamp(240px, 38vh, 400px);
  flex-shrink: 0;
  overflow: hidden;
}

.modal__hero-img {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out-expo);
}

.modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.modal__hero-meta {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-6);
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
}

.modal__num {
  font-family: var(--f-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  letter-spacing: -0.02em;
}

.modal__tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 6px;
}

.modal__cat,
.modal__year {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.modal__cat {
  color: var(--c-accent);
}

.modal__body {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--c-gray-15);
}

.modal__body-left {
  padding: 40px 32px 40px 48px;
  border-right: 1px solid var(--c-gray-15);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.modal__title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-black);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.modal__client {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-gray-40);
  letter-spacing: 0.04em;
}

.modal__role {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--c-gray-40);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-top: auto;
}

.modal__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-decoration: none;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-gray-15);
  margin-top: var(--sp-4);
  transition: opacity var(--dur-fast), gap var(--dur-fast);
}

.modal__url:hover {
  opacity: 0.7;
  gap: 10px;
}

.modal__body-right {
  padding: 40px 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.modal__section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.modal__section-label {
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-gray-15);
}

.modal__overview {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-gray-70);
}

.modal__process {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.modal__process-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.modal__process-num {
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 300;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.modal__process-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.modal__process-title {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-black);
  letter-spacing: 0.04em;
}

.modal__process-body {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-gray-70);
}

.modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-top: 1px solid var(--c-gray-15);
  background: var(--c-gray-05);
  flex-shrink: 0;
}

.modal__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-black);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  transition: color var(--dur-fast), gap var(--dur-fast);
}

.modal__nav-btn:hover {
  color: var(--c-accent);
}

.modal__nav-btn--prev:hover { gap: calc(var(--sp-2) + 4px); }
.modal__nav-btn--next:hover { gap: calc(var(--sp-2) + 4px); }

.modal__nav-count {
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--c-gray-40);
  letter-spacing: 0.1em;
}

@media (max-width: 640px) {
  .modal__panel {
    width: 100vw;
  }

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

  .modal__body-left {
    border-right: none;
    border-bottom: 1px solid var(--c-gray-15);
    padding: var(--sp-6) var(--sp-5);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-3);
  }

  .modal__title {
    width: 100%;
  }

  .modal__role {
    margin-top: 0;
  }

  .modal__url {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
  }

  .modal__body-right {
    padding: var(--sp-6) var(--sp-5);
  }

  .modal__hero-meta {
    left: var(--sp-5);
    bottom: var(--sp-5);
  }

  .modal__nav {
    padding: var(--sp-4) var(--sp-5);
  }
}

/* ----------------------------------------------------------
   LOAD MORE — extra works container
   ---------------------------------------------------------- */
.works__extra {
  /* Initially hidden via inline style; JS removes it */
}

.works__extra .work {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.works__extra .work.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

#loadMoreBtn.is-loading {
  pointer-events: none;
  opacity: 0.5;
}

#loadMoreBtn.is-done {
  display: none;
}
