/* ─── リセット ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── カラー・フォント変数 ─── */
:root {
  --warm-white: #FAF8F5;
  --greige:     #E8E0D5;
  --taupe:      #9E8E7E;
  --charcoal:   #3A3530;
  --dark:       #2A2520;
  --mid:        #6B6560;
  --border:     #D8D3CC;
  --serif: 'Cormorant Garamond', serif;
  --sans:  'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ─── スクロールアニメーション ─── */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 共通レイアウト ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

.section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--taupe);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-label-light { color: var(--taupe); }

.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--charcoal);
  line-height: 1;
}

/* ─── ナビゲーション ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 var(--border);
}
@media (max-width: 768px) {
  #nav { padding: 18px 24px; }
  #nav.scrolled { padding: 12px 24px; }
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}
#nav.scrolled .nav-logo-img {
  filter: none;
}
.nav-logo-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  transition: color 0.4s;
}
#nav.scrolled .nav-logo-name {
  color: var(--charcoal);
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.6);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-link:hover { color: var(--warm-white); }
#nav.scrolled .nav-link { color: var(--taupe); }
#nav.scrolled .nav-link:hover { color: var(--charcoal); }
.nav-link-ja {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: none;
  opacity: 0.7;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--warm-white);
  transition: background 0.4s, transform 0.35s;
  transform-origin: center;
}
#nav.scrolled .hamburger span { background: var(--charcoal); }
.hamburger.open span:first-child { transform: rotate(45deg) translate(5px, 4px); }
.hamburger.open span:last-child  { transform: rotate(-45deg) translate(5px, -4px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 220px;
    height: auto;
    background: var(--charcoal);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 28px;
    transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
    z-index: 105;
  }
  .nav-menu.open { right: 0; }
  .nav-link { color: rgba(250,248,245,0.55) !important; font-size: 11px; }
  .nav-link:hover { color: var(--warm-white) !important; }
}

/* ─── ヒーロー ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: #E2DAD2;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  animation: heroBgFadeIn 0.6s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* スマホ：縦画面では中央上寄りに */
@media (max-width: 768px) {
  #hero {
    background-position: center top;
    min-height: 100svh;
  }
}
/* 画像の上に暗いオーバーレイで文字を読みやすく */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 37, 32, 0.28);
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(158,142,126,0.22) 0%, transparent 70%);
  top: -120px; right: -100px;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(200,192,184,0.13) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -4.5s;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.04); }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 52px 56px;
  animation: heroIn 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@media (max-width: 768px) {
  .hero-content { padding: 36px 28px; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-tagline {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: rgba(250, 248, 245, 0.7);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.5rem, 17vw, 12rem);
  background: linear-gradient(
    135deg,
    rgba(255, 252, 248, 0.72) 0%,
    rgba(255, 252, 248, 0.18) 35%,
    rgba(255, 252, 248, 0.55) 60%,
    rgba(255, 252, 248, 0.12) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(255, 252, 248, 0.5);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 16px rgba(255, 252, 248, 0.18));
}
.hero-role {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.5em;
  color: rgba(250, 248, 245, 0.6);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-line {
  width: 40px;
  height: 1px;
  background: rgba(250, 248, 245, 0.4);
  margin: 0 auto 28px;
}
.hero-desc {
  font-family: var(--sans);
  font-size: 19px;
  color: rgba(250, 248, 245, 0.7);
  letter-spacing: 0.15em;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: rgba(250, 248, 245, 0.45);
  text-transform: uppercase;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* スマホ：ヒーロー全体調整 */
@media (max-width: 768px) {
  .hero-tagline {
    font-size: 9px;
    letter-spacing: 0.25em;
    margin-bottom: 18px;
  }
  .hero-role {
    font-size: 10px;
    letter-spacing: 0.35em;
  }
  .hero-desc {
    font-size: 13px;
    letter-spacing: 0.1em;
  }
  .hero-scroll {
    bottom: 24px;
  }
}

/* ─── About ─── */
#about {
  background: var(--warm-white);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}
.about-bg-num {
  position: absolute;
  top: -40px; right: 0;
  font-family: var(--serif);
  font-size: 22vw;
  color: rgba(232,224,213,0.65);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-visual { position: relative; }
.about-image {
  aspect-ratio: 3/4;
  max-height: 740px;
  background: linear-gradient(to bottom, #D8D3CC, #C8C0B8, #B8B0A8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem,14vw,10rem);
  color: rgba(250,248,245,0.28);
  user-select: none;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.9) sepia(0.12) saturate(1.05);
}
.about-frame {
  display: none;
}
.about-image {
  box-shadow: 8px 12px 32px rgba(0, 0, 0, 0.22);
}

.about-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem,6vw,4.5rem);
  color: var(--charcoal);
  line-height: 1.1;
}
.about-specialty {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #C4938A;
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 300;
}
.about-rule {
  width: 48px; height: 1px;
  background: var(--taupe);
  margin: 28px 0;
}
.about-body {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 16px;
}
.about-accent {
  color: #C4938A;
  font-style: italic;
  white-space: nowrap;
}
.about-insta-wrap {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.about-insta-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--taupe);
  letter-spacing: 0.08em;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.7;
}
.about-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--taupe);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 20px;
  transition: color 0.3s, border-color 0.3s;
}
.about-insta-btn:hover {
  color: var(--charcoal);
  border-color: var(--taupe);
}
.about-insta-icon {
  width: 15px;
  height: 15px;
  filter: grayscale(1) opacity(0.5);
  transition: opacity 0.3s;
}
.about-insta-btn:hover .about-insta-icon {
  filter: grayscale(1) opacity(0.85);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.stat {
  padding: 0 24px 0 0;
  position: relative;
}
.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-unit {
  font-size: 0.45em;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--taupe);
}
.stat-label-ja {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 300;
}
.stat-label-en {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--taupe);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ─── Skills ─── */
#skills {
  background: var(--greige);
  padding: 128px 0;
  overflow: hidden;
}
.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 20px;
}
@media (max-width: 768px) {
  .skills-header { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
}
.skills-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--taupe);
  text-transform: uppercase;
  padding-bottom: 6px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }

.skill-card {
  background: var(--warm-white);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
}
.skill-card:hover { transform: translateY(-6px); }
.card-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--taupe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover .card-accent { transform: scaleX(1); }
.card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.card-icon {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--border);
  transition: color 0.4s;
}
.skill-card:hover .card-icon { color: var(--taupe); }
.card-num {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--border);
  transition: color 0.4s;
}
.skill-card:hover .card-num { color: var(--taupe); }
.card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--charcoal);
  margin-bottom: 28px;
  transition: letter-spacing 0.4s;
}
.skill-card:hover .card-title { letter-spacing: 0.04em; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.card-list li {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--mid);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-list li::before { display: none; }

.tool-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.4s;
}
.skill-card:hover .tool-logo { filter: grayscale(1) opacity(0.85); }

/* ─── Works ─── */
#works {
  background: var(--warm-white);
  padding: 128px 0;
}
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 20px;
}
@media (max-width: 768px) {
  .works-header { flex-direction: column; align-items: flex-start; }
}
.works-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--taupe);
  font-weight: 300;
  padding-bottom: 4px;
}
.works-tap-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--taupe);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tap-hint-icon {
  font-size: 14px;
  line-height: 1;
}

/* Works カード */
.works-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  .works-row.r-3-2   { grid-template-columns: 3fr 2fr; }
  .works-row.r-2-3   { grid-template-columns: 2fr 3fr; }
  .works-row.r-1     { grid-template-columns: 1fr; }
  .works-row.r-1-1   { grid-template-columns: 1fr 1fr; }
  .works-row.r-1-1-1 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .works-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
}

.work-card {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
}
.work-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
}
/* デスクトップの高さ */
@media (min-width: 769px) {
  .work-card.h-tall  .work-inner { height: 480px; }
  .work-card.h-short .work-inner { height: 340px; }
  .work-card.h-mid   .work-inner { height: 400px; }
}
/* モバイルはアスペクト比 */
@media (max-width: 768px) {
  .work-inner { aspect-ratio: 4/3; }
}

.work-bg {
  position: absolute;
  inset: 0;
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1);
}
.work-card:hover .work-bg { transform: scale(1.06); }

/* 画像あり：縦横比そのまま・サイズ制限 */
.work-card.has-image .work-inner {
  height: 420px;
  background-color: #F2EEE9;
}
@media (min-width: 769px) {
  .work-card.has-image.h-tall  .work-inner { height: 560px; }
  .work-card.has-image.h-mid   .work-inner { height: 460px; }
  .work-card.has-image.h-short .work-inner { height: 360px; }
}
@media (max-width: 768px) {
  .work-card.has-image .work-inner { height: 280px; }
}
.work-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1);
}
.work-card.has-image:hover .work-img { transform: scale(1.03); }

/* 動画カード */
.work-card.has-video .work-inner {
  overflow: hidden;
}
.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1);
}
.work-card.has-video:hover .work-video { transform: scale(1.04); }

/* オーバーレイ類は画像の上に重ねる */
.work-card.has-image .work-gradient,
.work-card.has-image .work-overlay,
.work-card.has-image .work-num,
.work-card.has-image .work-info,
.work-card.has-image .work-plus {
  position: absolute;
  z-index: 1;
}

.work-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,21,0.65) 0%, rgba(26,24,21,0.08) 55%, transparent 100%);
}
.work-overlay {
  position: absolute; inset: 0;
  background: rgba(26,24,21,0);
  transition: background 0.7s;
}
.work-card:hover .work-overlay { background: rgba(26,24,21,0.25); }

.work-num {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.18);
  transition: color 0.6s;
}
.work-card:hover .work-num { color: rgba(255,255,255,0.5); }

.work-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
}
.work-cat {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: transparent;
  transform: translateY(10px);
  transition: color 0.5s, transform 0.5s;
  margin-bottom: 6px;
}
.work-card:hover .work-cat { color: rgba(255,255,255,0.55); transform: translateY(0); }
.work-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem,2.5vw,1.7rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
  transition: color 0.3s;
}
.work-card:hover .work-title { color: #fff; }
.work-sub {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  margin-top: 4px;
  transition: color 0.3s;
}
.work-card:hover .work-sub { color: rgba(255,255,255,0.65); }

.work-plus {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.work-plus-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0);
  font-size: 18px;
  transform: scale(0.7);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.work-card:hover .work-plus-circle {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.8);
  transform: scale(1);
}

/* ─── Personal Work ─── */
#personal {
  background: var(--dark);
  padding: 128px 0;
  overflow: hidden;
}
.personal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}
@media (max-width: 768px) {
  .personal-header { flex-direction: column; align-items: flex-start; }
}
.section-heading-light {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem,8vw,6rem);
  color: var(--warm-white);
  line-height: 1;
}
.personal-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.9;
  font-weight: 300;
  max-width: 460px;
}

.personal-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.6);
  text-decoration: none;
  border: 1px solid rgba(250, 248, 245, 0.25);
  padding: 10px 18px;
  transition: color 0.3s, border-color 0.3s;
}
.personal-insta-btn:hover {
  color: rgba(250, 248, 245, 0.95);
  border-color: rgba(250, 248, 245, 0.6);
}
.personal-insta-icon {
  width: 16px;
  height: 16px;
  filter: invert(1) opacity(0.6);
  transition: opacity 0.3s;
}
.personal-insta-btn:hover .personal-insta-icon {
  opacity: 1;
  filter: invert(1) opacity(0.95);
}

/* 画像グリッド */
/* ── Personal Marquee ── */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 40px 0 48px;
  animation: marquee-scroll 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.marquee-img {
  width: 380px;
  height: 320px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.marquee-img-video {
  background-color: #1a1714;
}.marquee-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}
.marquee-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.marquee-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
}
.marquee-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}
.cell-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(250,248,245,0.35);
  line-height: 1.5;
}
/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-inner video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
}
.lightbox-title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: #fff; }
.marquee-img { cursor: pointer; }

.personal-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem,3vw,1.8rem);
  color: rgba(250,248,245,0.5);
  text-align: center;
  margin-top: 60px;
  letter-spacing: 0.05em;
}

/* ─── Contact ─── */
#contact {
  background: var(--warm-white);
  padding: 128px 0;
}
.contact-wrap {
  max-width: 600px;
  text-align: center;
}
.contact-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--charcoal);
  line-height: 1.15;
}
.contact-body {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--taupe);
  line-height: 2.2;
  font-weight: 300;
  margin: 28px 0 36px;
}
.contact-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border: 1px solid var(--charcoal);
  padding: 15px 40px;
  transition: background 0.35s, color 0.35s;
}
.contact-btn:hover { background: var(--charcoal); color: var(--warm-white); }

/* ─── フッター ─── */
footer {
  background: var(--charcoal);
  padding: 36px 48px;
  text-align: center;
}
footer p {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(250,248,245,0.25);
}

/* ─── 詳細パネル（センターモーダル） ─── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,24,21,0);
  z-index: 200;
  pointer-events: none;
  transition: background 0.35s;
}
.panel-overlay.active {
  background: rgba(26,24,21,0.55);
  pointer-events: auto;
}

.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(960px, 92vw);
  height: min(900px, 90vh);
  background: var(--warm-white);
  z-index: 201;
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.16,1,0.3,1),
              transform 0.45s cubic-bezier(0.16,1,0.3,1),
              filter 0.38s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel.open {
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--taupe);
  z-index: 10;
  transition: color 0.3s;
  line-height: 1;
  padding: 4px;
}
.panel-close:hover { color: var(--charcoal); }

.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* 上部：作品表示エリア */
.panel-top {
  flex: 1;
  min-height: 0;
  background: var(--greige);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.panel-top img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.panel-top video {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.panel-top-color {
  width: 100%;
  height: 100%;
}
.panel-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}
.panel-image-link img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s;
}
.panel-image-link:hover img { opacity: 0.8; }
.panel-image-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--warm-white);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: rgba(0,0,0,0.2);
}
.panel-image-link:hover .panel-image-hover { opacity: 1; }

/* 下部：説明エリア */
.panel-bottom {
  flex-shrink: 0;
  height: 290px;
  overflow-y: auto;
  padding: 20px 60px 20px 32px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.panel-bottom-left {
  min-width: 190px;
  flex-shrink: 0;
}
.panel-bottom-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 4px;
}
.panel-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 2px;
}
.panel-subtitle {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--taupe);
  font-weight: 300;
  margin-bottom: 12px;
}
.panel-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}
.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meta-item { border-left: 1px solid var(--border); padding-left: 10px; }
.meta-label {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.meta-value {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--charcoal);
}
.panel-fields { display: flex; flex-direction: column; gap: 10px; }
.field-label {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.35em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.field-text {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  line-height: 1.85;
  font-weight: 300;
}
.field-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--taupe);
  border: 1px solid var(--border);
  padding: 3px 10px;
  letter-spacing: 0.08em;
}

/* 右センター 丸ナビ */
.panel-nav-arrows {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}
.panel-nav-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--taupe);
  transition: all 0.3s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.panel-nav-circle:hover:not(:disabled) {
  border-color: var(--taupe);
  color: var(--charcoal);
  background: var(--greige);
}
.panel-nav-circle:disabled {
  opacity: 0.2;
  cursor: default;
}

.panel-site-btn {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--charcoal);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.4s, letter-spacing 0.4s;
}
.panel-site-btn:hover {
  background: var(--taupe);
  letter-spacing: 0.35em;
}

/* モバイル */
@media (max-width: 600px) {
  .panel {
    width: 94vw;
    height: 90vh;
  }
  .panel-top {
    height: 240px;
  }
  .panel-bottom {
    flex-direction: column;
    padding: 16px 50px 16px 20px;
    gap: 14px;
  }
  .panel-nav-arrows {
    right: 10px;
  }
}
