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

:root {
  --bg: #0a0a12;
  --bg-soft: #10101c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceaf4;
  --text-light: #a8a5b8;
  --text-muted: #6b687d;
  --pink: #ff4d6d;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #ff4d6d 0%, #8b5cf6 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,77,109,0.14), rgba(139,92,246,0.14), rgba(34,211,238,0.14));
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1140px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
}

::selection { background: rgba(255, 77, 109, 0.4); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a3d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a52; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* Film grain overlay */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
.nav-logo span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-light);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--text);
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: var(--transition);
}
.nav-links a.nav-cta:hover {
  border-color: var(--pink);
  box-shadow: 0 0 24px rgba(255, 77, 109, 0.35);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; z-index: 110; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: var(--transition); display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero-orb-1 { width: 520px; height: 520px; top: -140px; right: -100px; background: rgba(139, 92, 246, 0.35); }
.hero-orb-2 { width: 420px; height: 420px; bottom: -80px; left: -120px; background: rgba(255, 77, 109, 0.28); animation-delay: -5s; }
.hero-orb-3 { width: 320px; height: 320px; top: 30%; left: 42%; background: rgba(34, 211, 238, 0.18); animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black 30%, transparent 75%);
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 140px 28px 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  margin-bottom: 34px;
  animation: fadeUp 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.8);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title {
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-light);
  margin-bottom: 40px;
  animation: fadeUp 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-stats {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  animation: fadeUp 0.9s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-num em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 42px; background: var(--border); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 42px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.btn-arrow { transition: transform 0.3s; font-family: 'Inter', sans-serif; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 77, 109, 0.42);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: var(--surface-hover); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  padding: 12px 28px;
}
.btn-outline:hover {
  border-color: var(--violet);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 40px; font-size: 15px; }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-header { margin-bottom: 58px; }
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* ===== About ===== */
.about-content {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px;
  align-items: start;
}
.about-profile { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.about-photo {
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.about-profile .about-name { margin-bottom: 0; }
.about-name { font-size: 24px; font-weight: 700; margin-bottom: 22px; }
.about-name span {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-left: 14px;
}
.about-text p:not(.about-name) { color: var(--text-light); margin-bottom: 18px; }
.about-text strong { color: var(--text); font-weight: 700; }
.about-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 28px; padding: 22px 26px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.about-note-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-size: 13px; font-weight: 700;
  margin-top: 4px;
}
.about-note p { color: var(--text-light); font-size: 14px; margin: 0 !important; }
.about-note-body { flex: 1; }
.about-note-lead { font-weight: 600; }
.about-note-ul { margin: 8px 0 !important; display: flex; flex-direction: column; gap: 5px; }
.about-note-ul li {
  position: relative; padding-left: 18px;
  font-size: 13.5px; color: var(--text-light); line-height: 1.6;
}
.about-note-ul li::before {
  content: ''; position: absolute; left: 2px; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}
.about-note-ul li strong, .about-note-ul li { font-weight: 500; }
.about-note-tail { font-size: 13.5px; }
.about-skills {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.about-skills h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags span {
  font-size: 13px; font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-light);
  transition: var(--transition);
}
.skill-tags span:hover {
  border-color: var(--pink);
  color: var(--text);
  box-shadow: 0 0 16px rgba(255, 77, 109, 0.25);
  transform: translateY(-2px);
}

/* ===== Service ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-num {
  position: absolute; top: 18px; right: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 44px; font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.35);
}
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.service-card ul li {
  font-size: 14px; color: var(--text-light);
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '';
  position: absolute; left: 2px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-50%);
}

/* ===== Works ===== */
.works-category { margin-bottom: 96px; }
.works-category:last-child { margin-bottom: 0; }
.works-cat-title {
  display: flex; align-items: center; gap: 16px;
  font-size: 24px; font-weight: 800;
  margin-bottom: 36px;
}
.works-cat-title span {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.works-sub-title {
  font-size: 17px; font-weight: 700;
  margin: 44px 0 18px;
  padding-left: 16px;
  position: relative;
}
.works-sub-title::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateY(-50%);
}
.works-sub-desc {
  font-size: 14.5px; color: var(--text-light); line-height: 1.85;
  margin: -6px 0 24px 16px;
}
.works-sub-desc strong { color: var(--text); }
.works-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }

/* Featured work */
.work-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px;
  align-items: center;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  transition: var(--transition);
}
.work-featured:hover { border-color: rgba(255,255,255,0.18); }
.work-featured-reverse { direction: rtl; }
.work-featured-reverse > * { direction: ltr; }
.work-featured-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.work-featured-img img { width: 100%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.work-featured:hover .work-featured-img img { transform: scale(1.04); }
.work-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
}
.work-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 109, 0.5);
  color: var(--pink);
  margin-bottom: 16px;
}
.work-tag.tag-cyan { border-color: rgba(34, 211, 238, 0.5); color: var(--cyan); }
.work-featured-info h4 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.work-featured-info p { color: var(--text-light); font-size: 14.5px; margin-bottom: 18px; }
.work-details { margin-bottom: 26px; }
.work-details li {
  font-size: 13.5px; color: var(--text-light);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.work-details li strong { color: var(--text); }
.placeholder {
  display: grid; place-items: center;
  min-height: 260px;
  text-align: center;
  font-weight: 700; font-size: 17px;
  color: var(--text-muted);
  background: var(--grad-soft);
  line-height: 1.6;
}

/* Masonry gallery — no cropping, natural aspect ratio */
.masonry { columns: 3; column-gap: 18px; }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: zoom-in;
  position: relative;
  transition: var(--transition);
}
.masonry-item::after {
  content: '⊕';
  position: absolute; right: 12px; bottom: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 16px;
  color: #fff;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.masonry-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.masonry-item:hover::after { opacity: 1; }
.masonry-item img { width: 100%; height: auto; }

/* Collapsible galleries ("もっと見る") — mobile only */
.more-btn {
  display: none;
  width: 100%;
  margin: 16px 0 0;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}
.more-btn:hover { border-color: var(--violet); box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }
@media (max-width: 640px) {
  .js-collapse:not(.expanded) .masonry-item:nth-child(n+5) { display: none; }
  .js-collapse:not(.expanded) + .more-btn { display: block; }
}

/* Video grid */
.video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 24px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
}
.video-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.video-embed { position: relative; padding-bottom: 56.25%; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Shorts (vertical) grid */
.shorts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 24px;
}
.shorts-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
}
.shorts-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.shorts-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* CTA Box */
.cta-box {
  text-align: center;
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--grad-soft);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -60px; left: 50%;
  width: 340px; height: 140px;
  transform: translateX(-50%);
  background: rgba(139, 92, 246, 0.25);
  filter: blur(60px);
}
.cta-box > * { position: relative; }
.cta-box-title { font-size: 22px; font-weight: 800; margin-bottom: 28px; }
.cta-box-desc { font-size: 14px; color: var(--text-light); margin-bottom: 26px; }

/* Pain-point CTA items */
.cta-pain-points {
  display: flex; flex-direction: column; gap: 18px;
  text-align: left;
  max-width: 640px; margin: 0 auto 32px;
}
.cta-pain {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cta-pain-num {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}
.cta-pain-headline { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cta-pain-detail { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.cta-box-resolve {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 24px;
}

.works-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* Resource cards (big links) */
.resource-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin-top: 34px;
}
.resource-cards-single { grid-template-columns: 1fr; max-width: 560px; }
.resource-card {
  display: flex; align-items: center; gap: 22px;
  padding: 30px 32px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,77,109,0.1), rgba(139,92,246,0.1));
  opacity: 0;
  transition: opacity 0.35s;
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 109, 0.55);
  box-shadow: 0 16px 46px rgba(139, 92, 246, 0.28);
}
.resource-card:hover::before { opacity: 1; }
.resource-card > * { position: relative; }
.resource-icon {
  flex-shrink: 0;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  font-size: 27px;
  border-radius: 18px;
  background: var(--grad);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.4);
}
.resource-body h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.resource-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.resource-arrow {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--pink);
  transition: transform 0.3s;
}
.resource-card:hover .resource-arrow { transform: translateX(6px); }

/* ===== Contact ===== */
.section-contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.contact-orb {
  position: absolute;
  width: 560px; height: 560px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.16), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.section-contact .section-header,
.contact-content { text-align: center; position: relative; }
.contact-content p { color: var(--text-light); margin-bottom: 14px; }
.contact-content .contact-lead { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.contact-content .contact-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 36px; }
.contact-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 800; }
.footer-logo span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy { font-size: 12.5px; color: var(--text-muted); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(6, 6, 12, 0.92);
  backdrop-filter: blur(14px);
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lbFade 0.3s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 92vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 22px; right: 30px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 28px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { border-color: var(--pink); box-shadow: 0 0 20px rgba(255, 77, 109, 0.4); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.sp-only { display: none; }

/* No-phrase-break: keeps Japanese phrases together on wrap */
.np { display: inline-block; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .masonry { columns: 2; }
  .shorts-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 36px; }
  .work-featured { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section { padding: 76px 0; }
  .sp-hide { display: none; }
  .sp-only { display: inline; }

  /* Japanese phrase-aware line breaking (Chrome 119+ / Safari 17.4+) */
  p, li, h1, h2, h3, h4,
  .btn, .hero-title, .hero-desc,
  .cta-pain-headline, .cta-pain-detail,
  .cta-box-title, .cta-box-resolve, .works-sub-desc,
  .works-sub-title, .works-cat-title,
  .about-name, .about-note p, .contact-content p {
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  /* Hero title: smaller font, tighter line height on mobile */
  .hero-title { font-size: 28px; line-height: 1.5; }
  .hero-desc { font-size: 14px; }

  /* Buttons: allow wrap but keep arrow attached */
  .btn { padding: 14px 24px; font-size: 13.5px; line-height: 1.6; }
  .btn-arrow { display: inline-block; }

  /* Section titles slightly smaller */
  .section-title { font-size: 26px; }
  .works-cat-title { font-size: 18px; gap: 10px; }
  .works-cat-title span { font-size: 10.5px; padding: 4px 10px; flex-shrink: 0; }
  .works-sub-title { font-size: 15.5px; }
  .works-sub-desc { font-size: 12.5px; margin: -4px 0 20px 0; line-height: 1.8; }
  .cta-box-title { font-size: 18px; }
  .cta-box { padding: 28px 14px; }
  .cta-pain { padding: 14px; gap: 10px; }
  .cta-pain-num { width: 28px; height: 28px; font-size: 11px; }
  .cta-pain-headline { font-size: 13.5px; }
  .cta-pain-detail { font-size: 12px; line-height: 1.75; }
  .cta-box-resolve { font-size: 13.5px; }

  /* About block: tighter font and padding on mobile */
  .about-p-tight { font-size: 13.5px; line-height: 1.85; }
  .about-note { padding: 14px 16px; gap: 10px; }
  .about-note-icon { width: 22px; height: 22px; font-size: 12px; }
  .about-note p { font-size: 12.5px; line-height: 1.8; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-content { padding: 120px 24px 48px; }
  .hero-stats { gap: 22px; }
  .stat-num { font-size: 22px; }
  .stat-divider { height: 34px; }

  .masonry { columns: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .resource-cards { grid-template-columns: 1fr; }
  .resource-card { padding: 24px; gap: 16px; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .works-links { flex-direction: column; }
  .lightbox { padding: 16px; }
}
