/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --blue-deep:    #9BBED1;
  --blue-mid:     #7aaec7;
  --blue-light:   #b8d8e8;
  --blue-pale:    #ddeef5;
  --blue-pastel:  #eef6fa;
  --gold:         #f5c842;
  --gold-light:   #fff3a0;
  --white:        #ffffff;
  --text-dark:    #3a4a55;
  --text-mid:     #5a6a75;
  --text-light:   #8a9faa;
  --radius-card:  18px;
  --radius-pill:  100px;
  --shadow:       0 8px 32px rgba(155, 190, 209, 0.18);
  --shadow-hover: 0 16px 48px rgba(155, 190, 209, 0.30);
  --font-jp:      'Mochiy Pop One', sans-serif;
  --font-en:      'Mochiy Pop One', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Yomogi', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }

/* ===========================
   LOADER
=========================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--blue-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader__paws {
  display: flex;
  gap: 8px;
}

.loader__paw {
  font-size: 2rem;
  opacity: 0;
  animation: pawAppear 0.5s ease forwards;
}

.loader__paw:nth-child(1) { animation-delay: 0s; }
.loader__paw:nth-child(2) { animation-delay: 0.15s; }
.loader__paw:nth-child(3) { animation-delay: 0.30s; }
.loader__paw:nth-child(4) { animation-delay: 0.45s; }
.loader__paw:nth-child(5) { animation-delay: 0.60s; }

@keyframes pawAppear {
  0%   { opacity: 0; transform: translateY(12px) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.loader__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.1em;
  animation: fadeIn 0.5s ease 0.7s both;
}

.loader__name img {
  height: 44px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.loader__bar {
  width: 200px;
  height: 6px;
  background: rgba(74, 144, 217, 0.2);
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.5s ease 0.8s both;
}

.loader__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-mid));
  border-radius: 10px;
  animation: fillBar 1.2s ease 0.9s both;
}

@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

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

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  filter: drop-shadow(0 2px 4px rgba(74,144,217,0.4));
  will-change: left, top;
}

.cursor img {
  display: block;
  width: 40px;
  height: auto;
}

.cursor.clicking {
  transform: translate(-50%, -50%) scale(0.75);
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(74, 144, 217, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
  will-change: left, top;
}

/* bubble (formerly sparkle) */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  font-size: 1rem;
  animation: bubbleRise 1s ease-out forwards;
}

@keyframes bubbleRise {
  0%   { opacity: 0.9; transform: translate(0, 0) scale(0.7); }
  40%  { opacity: 0.6; transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.4)) scale(1.1); }
  100% { opacity: 0;   transform: translate(var(--dx), var(--dy)) scale(1.4); }
}

/* ===========================
   FISH ICON (inline)
=========================== */
.fish-icon {
  width: 1.3em;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  mix-blend-mode: multiply;
}

.fish-icon--btn,
.fish-icon--footer {
  mix-blend-mode: screen;
  filter: brightness(1.4) saturate(0.3);
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* hero fade-up (immediate on load) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

/* ===========================
   UTILITIES
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: 0.08em;
}

.paw-accent { font-size: 0.75em; opacity: 0.7; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  cursor: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--outline {
  border: 2px solid var(--blue-mid);
  color: var(--blue-mid);
  background: transparent;
}

.btn--outline:hover {
  background: var(--blue-pale);
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(142, 197, 245, 0.3);
  transition: padding 0.3s;
}

.nav.scrolled {
  padding: 12px 40px;
  box-shadow: var(--shadow);
}

.nav__logo {
  font-family: var(--font-jp);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.1em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
  padding: 6px 18px;
  border-radius: 50px;
  background: transparent;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--blue-deep);
  background: rgba(155, 190, 209, 0.18);
}

/* hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   MOBILE NAV
=========================== */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 300;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(42, 95, 168, 0.15);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 28px; }

.mobile-nav__link {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.mobile-nav__link:hover { color: var(--blue-mid); }

.mobile-nav__close {
  position: absolute;
  top: 22px; right: 22px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-mid);
  cursor: none;
}

.mobile-nav__paws {
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  color: var(--blue-light);
  margin-top: auto;
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 95, 168, 0.25);
  backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-nav__overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--blue-pastel) 0%, var(--blue-pale) 50%, #c8e6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
  overflow: hidden;
}

/* sparkles container */
.hero__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-sparkle {
  position: absolute;
  color: rgba(142, 197, 245, 0.75);
  font-size: 1.2rem;
  opacity: 0;
  animation: heroBubbleFloat var(--dur, 3s) ease-in-out var(--del, 0s) infinite;
}

@keyframes heroBubbleFloat {
  0%   { opacity: 0;   transform: translateY(0)    translateX(0)   scale(0.5); }
  20%  { opacity: 0.7; transform: translateY(-14px) translateX(4px) scale(1); }
  50%  { opacity: 0.5; transform: translateY(-28px) translateX(-4px) scale(1.1); }
  80%  { opacity: 0.3; transform: translateY(-42px) translateX(3px) scale(1); }
  100% { opacity: 0;   transform: translateY(-56px) translateX(0)   scale(0.7); }
}

/* floating paw decorations */
.hero__bg-paws { position: absolute; inset: 0; pointer-events: none; }

.paw {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: floatPaw 6s ease-in-out infinite;
}

.paw--1 { top: 10%; left:  8%; animation-delay: 0s;   font-size: 2.5rem; }
.paw--2 { top: 20%; right: 10%; animation-delay: 1.2s; font-size: 1.6rem; }
.paw--3 { top: 60%; left:  5%; animation-delay: 2.4s; font-size: 3rem; }
.paw--4 { bottom: 25%; right: 6%; animation-delay: 0.8s; font-size: 2rem; }
.paw--5 { bottom: 10%; left: 40%; animation-delay: 1.8s; font-size: 1.8rem; }

@keyframes floatPaw {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

.hero__content {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* hero illustration frame */
.hero__illust { flex: 0 0 420px; }

.hero__illust-frame {
  width: 420px;
  height: 480px;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(42, 95, 168, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.6);
  animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
  25%       { border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; }
  50%       { border-radius: 45% 55% 60% 40% / 40% 60% 55% 45%; }
  75%       { border-radius: 60% 40% 45% 55% / 55% 45% 40% 60%; }
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hero text */
.hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__catch {
  font-size: 1.05rem;
  color: var(--blue-mid);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hero__name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.hero__name img {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
}

.hero__title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--text-light);
  font-weight: 300;
}

.hero__profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(74, 144, 217, 0.15);
  border-bottom: 1px solid rgba(74, 144, 217, 0.15);
}

.hero__profile-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero__profile-key {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-mid);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 100px;
  position: relative;
  padding-left: 12px;
}

.hero__profile-key::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
}

.hero__profile-val {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.hero__origin {
  margin: 4px 0;
  padding: 14px 16px;
  background: rgba(155, 190, 209, 0.1);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 8px 8px 0;
}

.hero__origin-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-mid);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero__origin-text {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.hero__fish-pin {
  font-size: 2.2rem;
  display: inline-block;
  animation: pinWiggle 2.5s ease-in-out infinite;
  filter: drop-shadow(2px 4px 6px rgba(74,144,217,0.3));
  margin: 4px 0;
}

@keyframes pinWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}

.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* wave divider */
.hero__wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ===========================
   ABOUT
=========================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  background: var(--blue-pastel);
  border-radius: 32px;
  padding: 56px 64px;
  box-shadow: var(--shadow);
}

.about__avatar {
  position: relative;
  flex: 0 0 160px;
}

.avatar-video {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.35);
  display: block;
}

.fish-pin-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  font-size: 1.6rem;
  background: var(--white);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: pinWiggle 2.5s ease-in-out infinite;
}

.about__name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.about__name img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0 0;
}

@media (max-width: 900px) {
  .about__name img { margin: 0 auto; }
}

.about__desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.about__tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  background: rgba(74, 144, 217, 0.12);
  color: var(--blue-mid);
  border: 1px solid rgba(74, 144, 217, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===========================
   CHARACTER SHOWCASE
=========================== */
.chara {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-pastel) 100%);
  overflow: hidden;
}

.chara__inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.chara__visual {
  position: relative;
  flex: 0 0 300px;
  height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chara__img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(42,95,168,0.18));
  animation: charaFloat 5s ease-in-out infinite;
}

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

.chara__butterfly {
  position: absolute;
  inset: -10% -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  animation: butterflyWander 12s ease-in-out infinite;
}

@keyframes butterflyWander {
  0%   { transform: translate(0px,   0px)  rotate(0deg)  scale(1);    }
  20%  { transform: translate(18px, -28px) rotate(6deg)  scale(1.04); }
  40%  { transform: translate(-12px,-18px) rotate(-4deg) scale(0.97); }
  60%  { transform: translate(22px, -35px) rotate(8deg)  scale(1.03); }
  80%  { transform: translate(-8px,  -10px) rotate(-3deg) scale(1);   }
  100% { transform: translate(0px,   0px)  rotate(0deg)  scale(1);    }
}

.chara__profile {
  flex: 1;
}

.chara__label {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue-mid);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.chara__name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.chara__name img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0 0;
}

@media (max-width: 900px) {
  .chara__name img { margin: 0 auto; }
}

.chara__role {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}

.chara__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.chara__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.chara__key {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-mid);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 90px;
  position: relative;
  padding-left: 12px;
}

.chara__key::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
}

.chara__val {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.chara__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===========================
   WORKS
=========================== */
.works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-pastel) 100%);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: none;
  background: var(--white);
  position: relative;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--blue-pale);
}

.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card__img img {
  transform: scale(1.05);
}

.work-card__img--placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 95, 168, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}

.work-card__overlay span {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
}


/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(8px);
  z-index: 490;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: none;
}

.lightbox__bg.open {
  opacity: 1;
  visibility: visible;
}

/* frame: prev | panel | next 横並び */
.lightbox__frame {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 510;
  max-width: 96vw;
}

/* panel: ×ボタン + 画像コンテンツ */
.lightbox__panel {
  position: relative;
}

.lightbox__content {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 0;
}

.lightbox.open .lightbox__content { transform: scale(1); }

.lightbox__content img {
  display: block;
  max-width: min(520px, 80vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__placeholder {
  width: min(520px, 80vw);
  height: 60vh;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* ×ボタン: 画像の右上に重ねる */
.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.18);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox__close:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }

/* 左右ボタン: 画像に隣接 */
.lightbox__prev, .lightbox__next {
  background: rgba(255,255,255,0.18);
  border: none;
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.lightbox__prev:hover, .lightbox__next:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

/* ===========================
   COMMISSION
=========================== */
.commission {
  padding: 100px 0;
  background: var(--white);
}

.commission__lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-top: -36px;
  margin-bottom: 56px;
  line-height: 1.8;
}

.commission__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.commission-card {
  background: var(--blue-pastel);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.commission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.commission-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.commission-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.commission-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.badge--open {
  background: rgba(74, 200, 130, 0.15);
  color: #2a9a5a;
  border: 1px solid rgba(74, 200, 130, 0.35);
}

.badge--closed {
  background: rgba(200, 100, 100, 0.12);
  color: #a03030;
  border: 1px solid rgba(200, 100, 100, 0.3);
}

.commission__cta { text-align: center; }

/* commission bottom: form + illustration */
.commission__bottom {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin-top: 56px;
}

.commission__bottom .contact-wrap {
  flex: 1;
  margin-top: 0;
}

.commission__illust {
  position: relative;
  flex: 0 0 420px;
  height: 660px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.commission__illust-chara {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(42,95,168,0.18));
  animation: charaFloat 5s ease-in-out infinite;
}

.commission__illust-butterfly {
  position: absolute;
  inset: -10% -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  animation: butterflyWander 12s ease-in-out infinite;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-wrap {
  margin-top: 56px;
  background: var(--blue-pastel);
  border-radius: 28px;
  padding: 48px 56px;
  box-shadow: var(--shadow);
}

.contact-wrap__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}

.contact-form__req {
  color: var(--blue-mid);
  margin-left: 2px;
}

.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(74, 144, 217, 0.2);
  border-radius: 12px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.contact-form__input::placeholder {
  color: var(--text-light);
}

.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a90d9' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.contact-form__btn {
  align-self: center;
  min-width: 200px;
}

.contact-form__btn:disabled {
  opacity: 0.7;
  pointer-events: none;
}

.contact-form__status {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
  letter-spacing: 0.04em;
}

.contact-form__status--success { color: #2a9a5a; }
.contact-form__status--error   { color: #a03030; }

@media (max-width: 900px) {
  .contact-wrap { padding: 36px 28px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact-wrap { padding: 28px 20px; }
}

/* ===========================
   LINKS
=========================== */
.links {
  padding: 100px 0;
  background: var(--blue-pastel);
}

.links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 2px solid transparent;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-light);
}

.link-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-deep);
  flex-shrink: 0;
}

.link-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  display: block;
}

.link-card__sub {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px 20px;
}

.footer__paws {
  font-size: 1.4rem;
  margin-bottom: 16px;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .nav { justify-content: space-between; gap: 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__illust { flex: none; }

  .hero__illust-frame {
    width: 300px;
    height: 340px;
    margin: 0 auto;
  }

  .hero__btns { justify-content: center; }

  .hero__profile { align-items: center; }
  .hero__profile-row { justify-content: center; }

  .works__grid { grid-template-columns: repeat(2, 1fr); }

  .commission__grid { grid-template-columns: repeat(2, 1fr); }

  .commission__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .commission__illust {
    flex: none;
    height: 460px;
    order: -1;
  }
}

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }

  .hero__illust-frame {
    width: 260px;
    height: 300px;
  }

  .works__grid { gap: 16px; }

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

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

  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox__frame { gap: 10px; }
}
