
:root {
  --white: #ffffff;
  --off-white: #e5e7eb;
  --light: #d8dadf;
  --border: #d0d2d6;
  --border-light: #dcdee2;
  --text: #1a1814;
  --text-mid: #4a4740;
  --text-soft: #8a8780;
  --accent: #E6E452;
  --accent-light: #eeec7a;
  --accent-pale: #f5f5c0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CURSOR ── */
#cursorCircle {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, width 0.3s, height 0.3s;
  mix-blend-mode: multiply;
  will-change: transform;
}
#cursorCircle.cursor-hover { width: 96px; height: 96px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 68px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(26,24,20,0.06); }
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { width: clamp(160px, 28vw, 380px); height: auto; color: var(--text); }
nav ul { list-style: none; display: flex; gap: 40px; align-items: center; margin-left: auto; }
nav ul li a {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
  transition: opacity 0.25s; position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--text); transition: width 0.3s;
}
nav ul li a:hover { opacity: 0.6; }
nav ul li a:hover::after { width: 100%; }
nav ul li a.active { opacity: 1; font-weight: 600; }
nav ul li a.active::after { width: 100%; }
.nav-cta {
  font-family: 'Playfair Display', serif !important;
  font-size: 13px !important; letter-spacing: 0.15em !important;
  color: var(--white) !important; background: var(--text);
  padding: 10px 24px; border: none !important;
  transition: background 0.25s !important; opacity: 1 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--text-mid) !important; opacity: 1 !important; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--text); transition: all 0.3s; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
  z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-mobile-menu.open { opacity: 1; pointer-events: all; }
.nav-mobile-menu a { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--text); text-decoration: none; }
.nav-mobile-menu .nav-cta { background: var(--text); color: var(--white) !important; padding: 14px 40px; font-size: 13px; }

/* ── PAGE HERO ── */
#page-hero {
  padding: 148px 52px 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  display: flex; gap: 100px; align-items: flex-end;
}
.page-hero-label span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700; line-height: 1;
  color: var(--text); letter-spacing: -0.02em; display: block;
}
.page-hero-right { flex: 1; }
.page-hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400; line-height: 1.5;
  color: var(--text); margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 13px; font-weight: 300; line-height: 2;
  color: var(--text-soft);
}

/* ── FILTER ── */
#filter-section {
  padding: 40px 52px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 50;
}
.filter-inner {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.filter-label {
  font-family: 'Playfair Display', serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-soft); margin-right: 8px; white-space: nowrap;
}
.filter-btn {
  font-family: 'Playfair Display', serif;
  font-size: 12px; letter-spacing: 0.12em;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--white); color: var(--text-soft);
  cursor: pointer; transition: all 0.25s;
  border-radius: 999px;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active {
  background: var(--text); border-color: var(--text);
  color: var(--white);
}

/* ── WORKS GRID ── */
#works-grid-section {
  padding: 80px 52px 120px;
  background: var(--white);
}
.works-count {
  font-family: 'Playfair Display', serif;
  font-size: 11px; letter-spacing: 0.15em; color: var(--text-soft);
  margin-bottom: 40px;
}
.works-count span { color: var(--text); font-weight: 600; }

.wg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

.wg-card {
  display: block; text-decoration: none; color: inherit;
  cursor: pointer;
  transition: opacity 0.3s;
}
.wg-card:hover { opacity: 0.85; }
.wg-card.hidden { display: none; }

.wg-thumb {
  aspect-ratio: 4/3;
  background: var(--off-white);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.wg-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.wg-card:hover .wg-thumb img { transform: scale(1.04); }
.wg-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 40px); font-weight: 700;
  color: var(--border); letter-spacing: 0.1em;
  transition: transform 0.6s ease;
}
.wg-card:hover .wg-thumb-placeholder { transform: scale(1.04); }

.wg-cat {
  font-family: 'Playfair Display', serif;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 8px; display: block;
}
.wg-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.7;
  color: var(--text); margin-bottom: 6px;
}
.wg-client {
  font-family: 'Playfair Display', serif;
  font-size: 11px; color: var(--text-soft); letter-spacing: 0.05em;
}

/* 1枚目だけ大きく */
.wg-card:first-child { grid-column: span 2; }
.wg-card:first-child .wg-thumb { aspect-ratio: 16/7; }
.wg-card:first-child .wg-title { font-size: 20px; }

/* no results */
.wg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-soft);
  font-size: 14px; font-weight: 300;
  display: none;
}
.wg-empty.show { display: block; }

/* ── CONTACT CTA ── */
#cta {
  padding: 100px 52px;
  background: var(--off-white);
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-label {
  font-family: 'Playfair Display', serif;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 24px; display: block;
}
.cta-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(22px, 3vw, 36px); font-weight: 400;
  line-height: 1.6; margin-bottom: 16px;
}
.cta-sub {
  font-size: 13px; font-weight: 300; line-height: 2.2;
  color: var(--text-soft); margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 400; letter-spacing: 0.2em;
  padding: 16px 36px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--text-mid); }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,0.5); padding: 72px 52px 40px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 72px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 12px; line-height: 2.2; font-weight: 300; }
footer h4 { font-family: 'Playfair Display', serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 24px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 14px; }
footer ul li a { font-family: 'Playfair Display', serif; font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.25s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.cls-1, .flogo { fill: currentColor; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  #page-hero { padding: 120px 32px 60px; }
  .page-hero-inner { gap: 48px; }
  #filter-section { padding: 32px; }
  #works-grid-section { padding: 60px 32px 80px; }
  .wg-grid { gap: 32px 24px; }
  #cta { padding: 80px 32px; }
  footer { padding: 60px 32px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  nav ul { display: none; }
  .nav-hamburger { display: flex; }

  #page-hero { padding: 100px 20px 48px; }
  .page-hero-inner { flex-direction: column; gap: 20px; align-items: flex-start; }

  #filter-section { padding: 20px; top: 60px; }
  .filter-inner { gap: 6px; }
  .filter-btn { font-size: 11px; padding: 6px 14px; }

  #works-grid-section { padding: 48px 20px 80px; }
  .wg-grid { grid-template-columns: 1fr; gap: 40px; }
  .wg-card:first-child { grid-column: span 1; }
  .wg-card:first-child .wg-thumb { aspect-ratio: 4/3; }
  .wg-card:first-child .wg-title { font-size: 16px; }

  #cta { padding: 60px 20px; }
  footer { padding: 56px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; font-size: 10px; }
}
