/* ============================================
   KUMEKI Portfolio — Night Sky & Cosmos Theme
   ============================================ */

:root {
  /* 深夜の宇宙パレット */
  --void: #04030f;
  --night: #08071e;
  --deep: #0e0a2a;
  --indigo: #1a1240;
  --violet: #3a2070;
  --nebula: #6e4aa3;
  --aurora: #c8569e;
  --star: #f5e6b8;
  --moon: #f7e8b4;
  --gold: #d4a857;
  --silver: #c5cce8;
  --mist: #8e96b8;
  --whisper: #e6e9f5;
  --pure: #fafbff;

  /* タイポグラフィ */
  --font-display-en: 'Cormorant Garamond', 'Cinzel', serif;
  --font-display-jp: 'Shippori Mincho', serif;
  --font-body-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'Cinzel', serif;

  /* 余白 */
  --section-pad: clamp(80px, 12vw, 160px);
  --container: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body-jp);
  background: var(--void);
  color: var(--whisper);
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

img, svg {
  max-width: 100%;
  display: block;
}

/* ============================================
   背景 — 星空キャンバス & 星雲
   ============================================ */
#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -9;
  animation: nebulaDrift 30s ease-in-out infinite;
}
.nebula-1 {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  right: -15vw;
  background: radial-gradient(circle, var(--nebula) 0%, transparent 60%);
}
.nebula-2 {
  width: 50vw;
  height: 50vw;
  bottom: -10vw;
  left: -15vw;
  background: radial-gradient(circle, var(--violet) 0%, transparent 60%);
  animation-delay: -10s;
}
.nebula-3 {
  width: 40vw;
  height: 40vw;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, var(--aurora) 0%, transparent 70%);
  opacity: 0.15;
  animation-delay: -20s;
}

@keyframes nebulaDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -8;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   カスタムカーソル
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--star);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--moon);
  transition: transform 0.15s, opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(245, 230, 184, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cursor-ring.hover {
  transform: translate(-50%, -50%) scale(1.8);
  border-color: var(--aurora);
}

@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ============================================
   ローディング
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
}
.loader-svg {
  width: 120px; height: 120px;
}
.loader-circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.5;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  animation: drawCircle 2s ease forwards;
}
.loader-text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--whisper);
  letter-spacing: 4px;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
.shooting-star {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.ss-head {
  position: relative;
  display: block;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(245, 230, 184, 0.7);
  opacity: 0;
  will-change: transform, opacity;
}
.ss-head::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(to right, rgba(245, 230, 184, 0.95), rgba(255, 255, 255, 0));
  transform: translateY(-50%) rotate(-22deg);
  transform-origin: 0 50%;
}

.ss-1 { top: 34%;  right: 26%; animation: shootX1 2.1s linear 0.1s infinite; }
.ss-2 { top: 46%;  right: 36%; animation: shootX1 2.1s linear 0.4s infinite; }
.ss-3 { top: 58%;  right: 46%; animation: shootX1 2.1s linear 0.7s infinite; }

.ss-1 .ss-head { animation: shootY1 2.1s cubic-bezier(0.55, 0.05, 0.75, 0.3) 0.1s infinite; }
.ss-2 .ss-head { animation: shootY1 2.1s cubic-bezier(0.55, 0.05, 0.75, 0.3) 0.4s infinite; }
.ss-3 .ss-head { animation: shootY1 2.1s cubic-bezier(0.55, 0.05, 0.75, 0.3) 0.7s infinite; }

@keyframes shootX1 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-30vw); }
}
@keyframes shootY1 {
  0%   { transform: translateY(0);     opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(160px); opacity: 0; }
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(8, 7, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(245, 230, 184, 0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 500;
}
.logo-mark {
  color: var(--gold);
  font-size: 20px;
  animation: starTwinkle 3s ease-in-out infinite;
}
.logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 500;
  font-style: normal;     /* ← 斜体を解除 */
  text-transform: lowercase;
  opacity: 0.85;
  margin-left: 6px;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: rotate(0deg); }
  50% { opacity: 0.6; transform: rotate(180deg); }
}
.nav-desktop {
  display: flex;
  gap: 40px;
  font-family: var(--font-display-en);
  font-size: 15px;
  letter-spacing: 2px;
}
.nav-desktop a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.nav-desktop a:hover {
  color: var(--moon);
}
.nav-desktop a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--whisper);
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 15, 0.3);
  backdrop-filter: none;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 80px;
  padding-right: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}
.mobile-menu a {
  font-family: var(--font-display-en);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--whisper);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
@media (max-width: 560px) {
  .mobile-menu a {
    font-size: 11px;
    border-bottom: 1px solid rgba(212, 168, 87, 0.4);
    padding-bottom: 4px;
    align-self: flex-end;
    }
}

/* ============================================
   ヒーロー
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.constellation {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.constellation-stars circle {
  animation: starPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--moon));
}
.constellation-stars circle:nth-child(odd) {
  animation-delay: -2s;
}
@keyframes starPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); transform-origin: center; }
  50% { opacity: 1; }
}
.constellation-lines path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 4s ease forwards;
  animation-delay: 1.2s;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.moon {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 320px;
  height: 320px;
  background: url('moon.png') center/contain no-repeat;
  filter:
    drop-shadow(0 0 40px rgba(247, 232, 180, 0.45))
    drop-shadow(0 0 100px rgba(247, 232, 180, 0.25))
    drop-shadow(0 0 180px rgba(168, 181, 255, 0.15));
  animation: moonFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}
.hero-en {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 40px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}
.hero-title {
  font-family: var(--font-display-jp);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--pure);
  margin-bottom: 40px;
  text-shadow: 0 0 40px rgba(168, 181, 255, 0.3);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px);
  animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.7s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.8s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.9s; }
.hero-title .line:nth-child(1) .word:nth-child(4) { animation-delay: 1.0s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 1.2s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 1.3s; }

@keyframes titleReveal {
  to { opacity: 1; transform: translateY(0); }
}
.sp-br {
  display: none;
}

@media (max-width: 599px) {
  .sp-br {
    display: inline;
  }
}
.hero-sub {
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 19px);
  color: var(--silver);
  letter-spacing: 2px;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.6s;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  border: 1px solid rgba(212, 168, 87, 0.3);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.9s;
}
.hero-meta-label {
  font-family: var(--font-display-en);
  color: var(--gold);
}
.hero-meta-name {
  font-family: var(--font-display-jp);
  color: var(--whisper);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--mist);
  z-index: 3;
  animation: fadeUpCentered 1s ease forwards;
  animation-delay: 2.2s;
  opacity: 0;
}
@keyframes fadeUpCentered { 
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--moon);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -30%; }
  100% { top: 100%; }
}

/* ============================================
   フローティングCTA（3つの目立つボタン）
   ============================================ */
.floating-cta {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s, transform 0.6s;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateX(0);
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 100px;
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.cta-btn span {
  position: relative;
  z-index: 2;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.cta-btn:hover::before {
  transform: translateX(100%);
}
.cta-btn:hover {
  transform: translateX(-6px) scale(1.04);
  box-shadow:
    0 14px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 168, 87, 0.3);
}

.cta-twitter {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.cta-request {
  background: linear-gradient(135deg, var(--gold) 0%, #b88a3a 100%);
  color: var(--void);
  border-color: rgba(255, 230, 180, 0.3);
  box-shadow:
    0 10px 40px rgba(212, 168, 87, 0.4),
    0 0 30px rgba(212, 168, 87, 0.2);
}
.cta-shop {
  background: linear-gradient(135deg, var(--violet) 0%, var(--nebula) 100%);
  color: var(--pure);
  border-color: rgba(200, 86, 158, 0.4);
}

/* ============================================
   セクション共通
   ============================================ */
section {
  position: relative;
  padding: var(--section-pad) 48px;
  max-width: var(--container);
  margin: 0 auto;
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
}
.marker-num {
  font-size: 13px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display-jp);
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--pure);
  text-shadow: 0 0 40px rgba(168, 181, 255, 0.2);
}
.section-title span {
  display: inline-block;
  margin: 0 0.1em;
}

.section-title-alt {
  font-family: var(--font-display-en);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 8px;
  color: var(--pure);
  margin-bottom: 16px;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(110, 74, 163, 0.2);
}
.portrait-img {
  width: 100%;
  height: auto;
  display: block;
}
.about-frame-deco {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.4;
}
.featured-img {
  position: relative;
}
.featured-frame-deco {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.about-en {
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 24px;
}
.about-title {
  font-family: var(--font-display-jp);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--pure);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.about-body p {
  font-size: 15px;
  line-height: 2;
  color: var(--silver);
  margin-bottom: 20px;
}

.about-info {
  margin-top: 48px;
  border-top: 1px solid rgba(212, 168, 87, 0.15);
}
.about-info > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 168, 87, 0.08);
}
.about-info dt {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  padding-top: 4px;
}
.about-info dd {
  font-size: 14px;
  color: var(--whisper);
}

/* ============================================
   Works
   ============================================ */
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 24px;
}
.section-sub {
  font-family: var(--font-display-en);
  font-style: italic;
  color: var(--mist);
  font-size: 16px;
  letter-spacing: 1px;
}

.works-grid {
  column-count: 4;
  column-gap: 16px;
}
@media (max-width: 1400px) { .works-grid { column-count: 4; } }
@media (max-width: 1100px) { .works-grid { column-count: 3; } }
@media (max-width: 720px)  { .works-grid { column-count: 2; } }
@media (max-width: 360px)  { .works-grid { column-count: 1; } }

.work-card {
  position: relative;
  cursor: none;
  overflow: hidden;
  border-radius: 4px;
  background: var(--deep);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 16px 0;
}
.work-img {
  position: relative;
  overflow: hidden;
}
.work-art {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-art svg {
  width: 100%; height: 100%;
  display: block;
}
.work-card:hover .work-art {
  transform: scale(1.08);
}
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--void) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s;
}
.work-card:hover::after {
  opacity: 0.9;
}
.work-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0.85;
  transition: all 0.4s;
}
.work-card:hover .work-meta {
  transform: translateY(0);
  opacity: 1;
}
.work-year {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.work-meta h3 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pure);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.work-client {
  font-size: 12px;
  color: var(--silver);
  letter-spacing: 1px;
}

.works-cta {
  margin-top: 80px;
  text-align: center;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-family: var(--font-display-jp);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--whisper);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.more-link .more-en {
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  padding-left: 16px;
  border-left: 1px solid rgba(212, 168, 87, 0.3);
}
.more-link svg {
  width: 18px; height: 18px;
  color: var(--gold);
  transition: transform 0.4s;
}
.more-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.more-link:hover {
  color: var(--void);
  border-color: var(--gold);
}
.more-link:hover::before { transform: translateX(0); }
.more-link:hover .more-en { color: var(--void); border-color: rgba(0,0,0,0.2); }
.more-link:hover svg {
  color: var(--void);
  transform: translateX(6px);
}

/* ============================================
   Clients
   ============================================ */
.clients-sub {
  font-family: var(--font-display-jp);
  color: var(--silver);
  font-size: 16px;
  margin-bottom: 60px;
}

.clients-marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid rgba(212, 168, 87, 0.1);
  border-bottom: 1px solid rgba(212, 168, 87, 0.1);
  margin-bottom: 80px;
  position: relative;
}
.clients-marquee::before, .clients-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before { left: 0; background: linear-gradient(to right, var(--void), transparent); }
.clients-marquee::after { right: 0; background: linear-gradient(to left, var(--void), transparent); }

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display-jp);
  font-size: 22px;
  color: var(--whisper);
  letter-spacing: 2px;
}
.marquee-track span:nth-child(even) {
  color: var(--gold);
  font-family: var(--font-display-en);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(212, 168, 87, 0.15);
  border: 1px solid rgba(212, 168, 87, 0.15);
}
.service-card {
  padding: 68px 36px;
  text-align: center;
  background: rgba(8, 7, 30, 0.8);
  backdrop-filter: blur(10px);
  transition: background 0.5s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 30%, var(--violet) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.service-card:hover::before { opacity: 0.4; }
.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-display-en);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: 21px;
  color: var(--pure);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-align: center;
}
.service-card p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.9;
}
.service-card--book   { background: url('bk.png') center/cover no-repeat; }
.service-card--music  { background: url('ok.png') center/cover no-repeat; }
.service-card--vtuber { background: url('vk.png') center/cover no-repeat; }
.service-card--game   { background: url('ak.png') center/cover no-repeat; }
.service-card--goods  { background: url('gk.png') center/cover no-repeat; }
.service-card--press  { background: url('sk.png') center/cover no-repeat; }

.service-card[class*="service-card--"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 30, 0.86);
  z-index: 0;                  
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-card[class*="service-card--"]:hover::after {
  opacity: 0;
}

.service-card[class*="service-card--"]:hover::before {
  opacity: 0;
}

.service-card[class*="service-card--"] h3,
.service-card[class*="service-card--"] p {
  transition: opacity 0.5s ease;
}
.service-card[class*="service-card--"]:hover h3,
.service-card[class*="service-card--"]:hover p {
  opacity: 0;
}
/* ============================================
   News
   ============================================ */
.news-list {
  list-style: none;
  margin-top: 60px;
}
.news-list li {
  display: grid;
  grid-template-columns: 140px 100px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(212, 168, 87, 0.1);
  transition: padding-left 0.4s;
}
.news-list li:hover {
  padding-left: 16px;
}
.news-list time {
  font-family: var(--font-display-en);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
}
.news-cat {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(212, 168, 87, 0.3);
  border-radius: 100px;
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--silver);
  text-align: center;
}
.news-list p {
  font-size: 16px;
  color: var(--whisper);
  letter-spacing: 0.02em;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  text-align: center;
  position: relative;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact-bg svg {
  width: 100%; height: 100%;
}
.contact-title {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.4;
  color: var(--pure);
  margin: 40px 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(168, 181, 255, 0.2);
}
.contact-lead {
  font-size: 16px;
  color: var(--silver);
  line-height: 2;
  margin-bottom: 80px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-card {
  padding: 48px 32px;
  border-radius: 4px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(212, 168, 87, 0.15);
  background: linear-gradient(180deg, rgba(26, 18, 64, 0.4) 0%, rgba(8, 7, 30, 0.4) 100%);
  backdrop-filter: blur(10px);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}
.contact-card-request::before {
  background: linear-gradient(135deg, var(--gold) 0%, #b88a3a 100%);
}
.contact-card-twitter::before {
  background: linear-gradient(135deg, #16213e 0%, #0f1929 100%);
}
.contact-card-shop::before {
  background: linear-gradient(135deg, var(--violet) 0%, var(--aurora) 100%);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.contact-card-request:hover { color: var(--void); }
.contact-card-request:hover::before { opacity: 1; }
.contact-card-twitter:hover::before { opacity: 1; }
.contact-card-shop:hover::before { opacity: 1; }

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
  transition: all 0.5s;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-request:hover .contact-card-icon {
  color: var(--void);
  background: var(--void);
  border-color: var(--void);
}
.contact-card-request:hover .contact-card-icon svg { stroke: var(--gold); }

.contact-card-en {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center; 
}
.contact-card-request:hover .contact-card-en { color: var(--void); }
.contact-card h3 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: 22px;
  color: var(--pure);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-align: center; 
}
.contact-card-desc {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 32px;
  display: block;
  text-align: center;
}
.contact-card-request:hover .contact-card-desc { color: rgba(4, 3, 15, 0.7); }
.contact-card-arrow {
  font-family: var(--font-display-en);
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.4s;
  display: block;
  text-align: center;
}
.contact-card-request:hover .contact-card-arrow { color: var(--void); }
.contact-card:hover .contact-card-arrow {
  transform: translateX(8px);
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  margin-top: var(--section-pad);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(212, 168, 87, 0.1);
  position: relative;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand {
}
.footer-logo {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--pure);
  margin-bottom: 16px;
}
.footer-brand p {
  font-family: var(--font-display-jp);
  font-size: 14px;
  color: var(--silver);
  letter-spacing: 0.05em;
}
.footer-nav, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 2px;
}
.footer-nav a, .footer-social a {
  color: var(--silver);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.4s ease, transform 0.4s ease;
}
.footer-nav a::after, .footer-social a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(212, 168, 87, 0.2);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s ease, background 0.4s ease;
}
.footer-nav a:hover, .footer-social a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
.footer-nav a:hover::after, .footer-social a:hover::after {
  transform: scaleX(1);
  background: var(--gold);
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 168, 87, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--mist);
}
.footer-quote {
  font-style: italic;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 980px) {
  .site-header { padding: 20px 24px; }
  .site-header.scrolled { padding: 12px 24px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  section { padding: 80px 24px; }

  .hero {
    align-items: flex-start;
    padding-top: 333px;
    min-height: 85vh;
  }

.moon { 
    width: 180px; 
    height: 180px; 
    right: auto;
    top: auto !important;
    bottom: 63%;
    left: 66%;
  }
  section { padding: 80px 24px; }

  .moon { width: 180px; height: 180px; top: 8%; right: -10%; }

  .floating-cta {
    right: 16px; bottom: 16px;
    gap: 10px;
  }
  .cta-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

.about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    width: 88%;
    margin: 0 auto;
  }
  .about-frame-deco { display: none; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card { padding: 50px 24px; }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 5% !important;  
    padding-right: 5% !important;
    padding-top: 25vh !important;
    padding-bottom: 15svh !important;
    min-height: 100svh !important;
  }
  .hero-title { 
    font-size: clamp(28px, 7.8vw, 34px); 
    line-height: 1.4;
    letter-spacing: 0.02em; 
  }
  .hero-title .line {
    display: block; 
  }
  .hero-title .word {
    display: inline; 
  }
  .moon {
    bottom: 60% !important; 
    left: 55% !important;
  }
  .floating-cta .cta-btn span { display: none; }
  .floating-cta .cta-btn {
    padding: 14px;
    width: 48px; height: 48px;
    justify-content: center;
  }
  .more-link {
    flex-direction: column;
    gap: 12px;
    padding: 18px 32px;
  }
  .more-link .more-en {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(212, 168, 87, 0.3);
    padding-top: 8px;
  }
}

/* ============================================
   スクロールリビール
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Works ページ専用
   ============================================ */
.works-page-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
}
.works-page-en {
  font-family: var(--font-display-en);
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 32px;
}
.works-page-title {
  font-family: var(--font-display-jp);
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 500;
  color: var(--pure);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 40px rgba(168, 181, 255, 0.25);
}
.works-page-sub {
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: 18px;
  color: var(--silver);
  letter-spacing: 2px;
  max-width: 600px;
}

/* 実績フィーチャー */
.featured-work {
  padding: 80px 48px 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.featured-img {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.featured-img-art {
  aspect-ratio: 3/4;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.featured-meta-num {
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 24px;
}
.featured-meta h2 {
  font-family: var(--font-display-jp);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.5;
  color: var(--pure);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.featured-meta-info {
  display: grid;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid rgba(212, 168, 87, 0.15);
  border-bottom: 1px solid rgba(212, 168, 87, 0.15);
  margin-bottom: 32px;
}
.featured-meta-info > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  font-size: 13px;
}
.featured-meta-info dt {
  font-family: var(--font-display-en);
  letter-spacing: 3px;
  color: var(--gold);
}
.featured-meta-info dd {
  color: var(--whisper);
}
.featured-desc {
  font-size: 15px;
  line-height: 2;
  color: var(--silver);
}

/* 年表 */
.timeline-section {
  padding: 80px 48px 160px;
  max-width: var(--container);
  margin: 0 auto;
}
.timeline-header {
  text-align: center;
  margin-bottom: 80px;
}
.timeline-header h2 {
  font-family: var(--font-display-en);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: 8px;
  color: var(--pure);
  margin-bottom: 16px;
}
.timeline-header p {
  font-family: var(--font-display-jp);
  color: var(--silver);
  font-size: 16px;
}

.year-block {
  margin-bottom: 80px;
}
.year-label {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 168, 87, 0.2);
}
.year-label-num {
  font-family: var(--font-display-en);
  font-size: 56px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 4px;
  line-height: 1;
}
.year-label-count {
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--mist);
}

.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
}
.works-list-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(212, 168, 87, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  transition: padding-left 0.4s, border-color 0.4s;
}
.works-list-item:hover {
  padding-left: 12px;
  border-bottom-color: var(--gold);
}
.works-list-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 10px;
  box-shadow: 0 0 8px var(--gold);
}
.works-list-item .client {
  font-family: var(--font-display-jp);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.works-list-item .project {
  font-size: 15px;
  color: var(--whisper);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(212, 168, 87, 0.3);
  border-radius: 100px;
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--whisper);
  transition: all 0.4s;
  margin-top: 40px;
}
.back-to-home:hover {
  border-color: var(--gold);
  color: var(--gold);
  padding-left: 24px;
}

@media (max-width: 980px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .works-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .year-label-num { font-size: 40px; }
}
/* ページヒーロー */
.contact-page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 48px 60px;
  position: relative;
}
.contact-page-en {
  font-family: var(--font-display-en);
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 32px;
}
.contact-page-title {
  font-family: var(--font-display-jp);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  color: var(--pure);
  margin-bottom: 24px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 40px rgba(168, 181, 255, 0.25);
}
.contact-page-sub {
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: 18px;
  color: var(--silver);
  letter-spacing: 2px;
}

/* フォームセクション全体 */
.contact-form-section {
  padding: 40px 24px 120px;
  max-width: var(--container);
  margin: 0 auto;
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
  padding: 56px clamp(24px, 5vw, 64px);
  border-radius: 6px;
  border: 1px solid rgba(212, 168, 87, 0.18);
  background: linear-gradient(180deg, rgba(26, 18, 64, 0.45) 0%, rgba(8, 7, 30, 0.55) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* 左カラム:案内 */
.contact-form-aside {
  position: sticky;
  top: 120px;
}
.contact-form-aside-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-mail-icon {
  width: 56px;
  height: 42px;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-form-aside-title {
  font-family: var(--font-display-en);
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--pure);
  font-weight: 500;
}

.contact-form-mailto {
  font-size: 14px;
  color: var(--silver);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(212, 168, 87, 0.25);
  letter-spacing: 0.04em;
}
.contact-form-mailto .mailto-label {
  color: var(--mist);
  margin-right: 4px;
}
.contact-form-mailto a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}
.contact-form-mailto a:hover {
  color: var(--moon);
}

.contact-form-notice {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.9;
  margin-bottom: 28px;
}
.contact-form-notice .notice-head {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.contact-form-tips {
  list-style: none;
  padding: 0;
  font-size: 12px;
  color: var(--mist);
  line-height: 1.9;
}
.contact-form-tips li {
  padding-left: 14px;
  position: relative;
}
.contact-form-tips li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 10px;
}

/* 右カラム:フォーム本体 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--whisper);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-label .required {
  color: var(--aurora);
  font-size: 14px;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(4, 3, 15, 0.5);
  border: 1px solid rgba(197, 204, 232, 0.18);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body-jp);
  color: var(--pure);
  transition: all 0.3s;
  cursor: text;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(4, 3, 15, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--mist);
  opacity: 0.6;
  font-size: 13px;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

/* 予算入力欄(¥プレフィックス付き) */
.form-input-with-prefix {
  position: relative;
}
.form-input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 16px;
  font-family: var(--font-display-en);
  pointer-events: none;
}
.form-input.has-prefix {
  padding-left: 32px;
}

/* 送信ボタン */
.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.form-submit {
  background: var(--void);
  color: var(--pure);
  border: 1px solid var(--gold);
  padding: 14px 44px;
  font-family: var(--font-body-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, #b88a3a 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.form-submit span,
.form-submit {
  position: relative;
}
.form-submit:hover {
  color: var(--void);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 168, 87, 0.25);
}
.form-submit:hover::before {
  opacity: 1;
}
.form-submit > * {
  position: relative;
  z-index: 1;
}

/* ▼ レスポンシブ ▼ */
@media (max-width: 980px) {
  .contact-form-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 24px;
  }
  .contact-form-aside {
    position: static;
  }
  .contact-page-hero {
    min-height: 40vh;
    padding: 140px 24px 40px;
  }
}

@media (max-width: 600px) {
  .contact-form-section {
    padding: 20px 16px 80px;
  }
  .contact-form-wrap {
    padding: 32px 20px;
  }
  .contact-form-aside-title {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .form-submit {
    width: 100%;
    padding: 16px;
  }
}
.work-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(26, 18, 64, 0.4) 0%, transparent 70%),
    linear-gradient(135deg, #0a0820 0%, #050410 50%, #0a0820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* 内側の点線枠 */
.work-placeholder::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(212, 168, 87, 0.18);
  border-radius: 2px;
  pointer-events: none;
}
/* 微細な星々(背景の演出) */
.work-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(245,230,184,0.4), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(168,181,255,0.4), transparent);
  pointer-events: none;
  opacity: 0.6;
}
/* 中央の✦マーク */
.placeholder-mark {
  font-size: 36px;
  color: rgba(212, 168, 87, 0.28);
  font-family: var(--font-display-en);
  position: relative;
  z-index: 1;
  transition: all 0.6s ease;
}
.work-card:hover .placeholder-mark {
  color: rgba(212, 168, 87, 0.55);
  transform: scale(1.15) rotate(15deg);
}

.work-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover .work-img img {
  transform: scale(1.04);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 3, 12, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(168, 181, 255, 0.18);
  border-radius: 6px;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
  cursor: default;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(10, 8, 32, 0.65);
  border: 1px solid rgba(212, 168, 87, 0.4);
  color: var(--gold, #d4a857);
  font-family: var(--font-display-en, serif);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  user-select: none;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 28px;
  line-height: 1;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-close:hover {
  background: rgba(212, 168, 87, 0.2);
  border-color: var(--gold, #d4a857);
  transform: rotate(90deg);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 168, 87, 0.2);
  border-color: var(--gold, #d4a857);
}
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display-en, serif);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(245, 230, 184, 0.6);
  user-select: none;
}
.works-grid .work-img,
.works-grid .work-img img {
  cursor: zoom-in;
}
body.lightbox-open {
  overflow: hidden;
}
@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 22px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .lightbox { padding: 8vh 3vw; }
}
img {
  -webkit-user-drag: none;      
  -webkit-user-select: none;   
  -moz-user-select: none;       
  -ms-user-select: none;         
  user-select: none;             
  -webkit-touch-callout: none;   
}
.constellation-tablet,
.constellation-sp {
  display: none !important;
}

@media (max-width: 980px) {
  .constellation-pc {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%); 
  }

  .constellation-pc .constellation-lines {
    stroke-width: 1.8px !important;
    stroke: rgba(200, 210, 255, 0.22) !important;
  }
}

@media (max-width: 560px) {
  .constellation-pc {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    top: 40% !important;
  }
  
  .constellation-pc .constellation-lines {
    stroke-width: 2.2px !important;
    stroke: rgba(200, 210, 255, 0.33) !important;
  }
}
@media (min-width: 561px) and (max-width: 980px) {
  .about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .about-en,
  .about-title {
    grid-column: 1 / -1;
  }
  .about-body {
    grid-column: 1;
  }
  .about-info {
    grid-column: 2;
    margin-top: 0;
  }

  .about-info > div {
    grid-template-columns: max-content 1fr;
    gap: 12px;
  }
  .about-title {
    text-align: center;
  }
  .about-title br {
    display: none;
  }
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
  .works-page-hero {
    min-height: 40vh;
    padding-top: 80px;
    padding-bottom: 50px;
  }
  .featured-frame-deco {
    display: none;
  }
  .featured-meta {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
  }
  .featured-meta-num,
  .featured-meta h2 {
    grid-column: 1 / -1;
  }
  .featured-meta-info {
    grid-column: 1;
    margin-bottom: 0;
  }
  .featured-desc {
    grid-column: 2;
  }
.featured-meta .featured-desc {
    font-size: 0; 
  }
  .featured-meta .featured-desc::after {
    content: "『9-nine-』シリーズのメインビジュアルの制作に携わりました。\A 個性豊かなキャラクターたちの魅力を最大限に引き立てつつ、\A 作品の世界観を象徴する背景を目指して仕上げました。";
    white-space: pre-wrap;        
    font-size: 15px;              
    display: block;            
    line-height: 2.2;
  }
  .featured-info {
    border-top: 1px solid rgba(212, 168, 87, 0.15) !important;
    border-bottom: 1px solid rgba(212, 168, 87, 0.15) !important;
    width: 100% !important;
  }
  .featured-info > div {
    border-top: none !important;
    border-bottom: none !important;
    padding: 4px 0 !important;
  }
  .featured-meta h2 {
    text-align: center;
  }
.mobile-menu a {
    border-bottom: 1px solid rgba(212, 168, 87, 0.4) !important;
    padding-bottom: 4px !important;
    display: inline-block !important;
    width: max-content !important;
    align-self: flex-end !important;
  }
  
}
@media (max-width: 560px) {
  .works-cta .more-link {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 10px !important;
    width: 250px !important;
    max-width: 90% !important;
    padding: 12px 16px !important;
    margin: 0 auto !important;
  }

  .works-cta .more-link span:first-child {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .works-cta .more-link .more-en {
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    border-left: none !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  .works-cta .more-link svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
}
@media (max-width: 560px) {
  .marquee-track {
    font-size: 14px !important;
    letter-spacing: 1px !important;
    gap: 24px !important;
  }
  .about-title {
  text-align: center !important;
  }
  .about-info > div {
    grid-template-columns: 70px 1fr !important;
    gap: 16px !important;
  }
  .about-info dd {
    font-size: 13px !important;
  }
  .about-info > div:nth-child(3) dd {
    font-size: 0 !important;
  }
  .about-info > div:nth-child(3) dd::after {
    content: 'ClipStudio / Photoshop / Terragen4';
    font-size: 13px;
    color: var(--whisper);
  }
    .contact-title {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  .contact-lead {
    font-size: 0 !important;
  }
  .contact-lead::before {
    content: 'ご依頼・お仕事のご相談、グッズ販売など、';
    font-size: 16px;
    color: var(--silver);
    display: block;
  }
  .contact-lead::after {
    content: 'お気軽にお問い合わせください。';
    font-size: 16px;
    color: var(--silver);
    display: block;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
  }
  @media (max-width: 560px) {
   .footer-inner {
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-nav {
    grid-column: 1 !important;
  }
  .footer-social {
    grid-column: 2 !important;
  }
    .footer-social a {
    white-space: nowrap !important;
  }
  .footer-social {
    padding-left: 24px !important;
  }
    .works-page-title {
    font-size: clamp(44px, 10vw, 56px) !important;
  }
  .works-page-hero {
    min-height: 30vh !important;
    padding-top: 30% !important;
    padding-bottom: 6% !important;
  }
    .featured-frame-deco {
    display: none !important;
  }
}
}