/* ========================================
   taki.bentaro Portfolio
   White base, colorful art pops
======================================== */

:root {
  --white: #fafafa;
  --off-white: #ffffff;
  --black: #111111;
  --gray: #555555;
  --light-gray: #d5d5d5;
  --accent: #ff3366;
  --font: 'Space Grotesk', -apple-system, sans-serif;
  --max-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: #f2f0ed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
  color: var(--black);
  overflow-x: hidden;
}

/* ---- Image protection ---- */
img,
canvas {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
}

a img,
button img,
.splash-img,
.hero-hover-img {
  pointer-events: auto;
}

/* Canvas overlay for image protection */
.protect-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---- Focus accessibility ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Splash Screen ---- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.leaving {
  opacity: 0;
  visibility: hidden;
}

.splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.splash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  transform: translate(-40px, 70px);
}

.splash-name {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.9), 0 8px 30px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.5);
}

.splash-enter {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--white);
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--white);
  padding: 0.85rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.splash-enter:hover {
  background: var(--white);
  color: var(--black);
  text-shadow: none;
}

/* Main site hidden by default */
.main-site {
  display: none;
}

.main-site.visible {
  display: block;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(242, 240, 237, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.nav-logo a {
  color: var(--black);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.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 ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  gap: 3rem;
}

.hero-images {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  gap: 0.5rem;
}

.hero-hover-img {
  flex: 1;
  max-width: calc(100% / 7);
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  animation: float 5s ease-in-out infinite;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.hero-hover-img:hover {
  filter: saturate(1.3) brightness(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.hero-hover-img:nth-child(1) { animation-delay: 0s; }
.hero-hover-img:nth-child(2) { animation-delay: 0.5s; }
.hero-hover-img:nth-child(3) { animation-delay: 1.0s; }
.hero-hover-img:nth-child(4) { animation-delay: 1.5s; }
.hero-hover-img:nth-child(5) { animation-delay: 2.0s; }
.hero-hover-img:nth-child(6) { animation-delay: 2.5s; }
.hero-hover-img:nth-child(7) { animation-delay: 3.0s; }

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

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 8px;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
}

.hero-desc-ja {
  font-size: 0.95rem;
  color: var(--gray);
  opacity: 0.85;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--black);
  border-radius: 50px;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Hero Title Logo ---- */
.hero-title-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* ---- Sections ---- */
.section {
  padding: 6rem 3rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--accent {
  background: var(--off-white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Works Preview (index page) ---- */
.works-preview {
  text-align: center;
}

.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.works-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.works-view-all {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--black);
  border-radius: 50px;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.works-view-all:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Works Page ---- */
.works-page {
  padding-top: 8rem;
}

/* ---- About Page ---- */
.about-page {
  padding-top: 8rem;
}

/* ---- Shop Page ---- */
.shop-page {
  padding-top: 8rem;
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--light-gray);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.02);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,51,102,0.6), rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- Shop ---- */
.shop-intro {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.shop-category-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.shop-category-desc {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.8;
  margin-top: -0.8rem;
  margin-bottom: 2rem;
}

/* Shop artwork layout */
.shop-artwork {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--light-gray);
}

.shop-artwork:last-of-type {
  border-bottom: none;
}

.shop-artwork-img {
  flex: 0 0 400px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e6e3;
}

.shop-artwork-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.shop-artwork:hover .shop-artwork-img img {
  transform: scale(1.02);
}

.shop-artwork-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-artwork-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.shop-artwork-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.shop-sizes {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.shop-size-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.shop-size-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.shop-size-name {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 50px;
}

.shop-size-dim {
  font-size: 0.8rem;
  color: var(--gray);
  flex: 1;
}

.shop-size-price {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-size-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray);
  margin-left: 0.3rem;
}

/* Shop grid (for goods cards) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.shop-card {
  display: block;
  text-decoration: none;
  color: var(--black);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e6e3;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-img img {
  transform: scale(1.03);
}

.shop-card-info {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shop-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.shop-card-meta {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.shop-card-price {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.shop-card-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray);
  margin-left: 0.3rem;
}

.shop-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-top: 0.3rem;
}

.shop-grid--canvas {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Gallery Wall (Mini Canvas) ---- */
.gallery-wall {
  margin: 3rem -3rem;
  padding: 4rem 3rem;
  background-color: #c8c5c0;
  background-image: url('../images/wall_texture.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

/* SVG noise overlay to blend tile seams */
.gallery-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='5' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23s)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(200,197,192,0.06) 0%, transparent 15%, transparent 85%, rgba(180,175,168,0.08) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.gallery-wall-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.gallery-wall-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1713;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.gallery-wall-spec {
  font-size: 0.8rem;
  color: #2e2a26;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.gallery-wall-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1713;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.gallery-wall-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: #2e2a26;
  margin-left: 0.3rem;
}

.gallery-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.frame {
  padding: 6px;
  position: relative;
  background:
    linear-gradient(135deg,
      #3a3a3a 0%, #252525 8%, #1a1a1a 15%,
      #2e2e2e 25%, #1c1c1c 35%, #282828 45%,
      #1a1a1a 55%, #303030 65%, #1e1e1e 75%,
      #2a2a2a 85%, #1a1a1a 92%, #333 100%
    );
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 24px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='iron'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9' numOctaves='5' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23iron)' opacity='0.15'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.08) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    0 16px 40px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.mat {
  background: #f5f3f0;
  padding: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-wall-grid--portrait .mat {
  background: none;
  padding: 0;
}

.mat img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Portrait grid */
.gallery-wall-grid--portrait {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 3rem;
}

/* Square grid + square frame */
.gallery-wall-grid--square {
  grid-template-columns: repeat(5, 1fr);
}

/* Square frames: use padding-top 100% trick for iOS Safari compatibility */
.frame--square {
  padding: 0;
  background: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 12px 32px rgba(0,0,0,0.15);
  position: relative;
  border: 30px solid transparent;
  border-image: url('../images/frame_square.png') 65 fill / 28px / 0 stretch;
}

.frame--square::before,
.frame--square::after {
  display: none;
}

.frame--square .mat {
  position: relative;
  width: 100%;
  padding: 0;
  padding-top: 100%;
  background: var(--mat-color, #f5f3f0);
  display: block;
}

.frame--square .mat img {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.frame--square:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 20px 48px rgba(0,0,0,0.2);
}

/* Portrait frames: apply the same 3D frame as square, keep thin like original */
.gallery-wall-grid--portrait .frame {
  padding: 0;
  background: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 12px 32px rgba(0,0,0,0.15);
  border: 8px solid transparent;
  border-image: url('../images/frame_square.png') 65 fill / 8px / 0 stretch;
}

.gallery-wall-grid--portrait .frame::before,
.gallery-wall-grid--portrait .frame::after {
  display: none;
}

.gallery-wall-grid--portrait .frame:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 20px 48px rgba(0,0,0,0.2);
}

/* LINE Stamp card */
.shop-card-img--line {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06C755;
}

.shop-line-icon svg {
  width: 48px;
  height: 48px;
  fill: white;
}

.shop-card:hover .shop-card-img--line {
  background: #05b34c;
}

/* Coming Soon card */
.shop-card--soon {
  pointer-events: none;
  opacity: 0.6;
}

.shop-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0,0,0,0.02) 10px,
      rgba(0,0,0,0.02) 20px
    ),
    #e8e6e3;
}

.shop-soon-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(255,255,255,0.8);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

/* Artwork sub-section (Mini Canvas etc.) */
.shop-artwork-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.shop-size-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  white-space: nowrap;
}

.shop-made-to-order-note {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.8;
  margin-top: 0.8rem;
}

.shop-note {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  opacity: 0.7;
  line-height: 1.8;
}

.shop-note a {
  color: var(--gray);
  text-decoration: underline;
  transition: color 0.3s;
}

.shop-note a:hover {
  color: var(--accent);
}

/* ---- Artwork Detail Modal ---- */
.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.artwork-modal.active {
  opacity: 1;
  visibility: visible;
}

.artwork-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.artwork-modal-content {
  position: relative;
  display: flex;
  background: #fafafa;
  border-radius: 12px;
  max-width: 900px;
  width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.artwork-modal.active .artwork-modal-content {
  transform: scale(1) translateY(0);
}

.artwork-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.artwork-modal-close:hover {
  background: rgba(0,0,0,0.12);
  color: var(--black);
}

.artwork-modal-body {
  display: flex;
  width: 100%;
}

.artwork-modal-img {
  flex: 0 0 45%;
  background: #e8e6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.artwork-modal-img img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.artwork-modal-info {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.artwork-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.artwork-modal-series {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.artwork-modal-spec {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 1rem;
}

.artwork-modal-spec span {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.artwork-modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.artwork-modal-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray);
  margin-left: 0.3rem;
}

.artwork-modal-history {
  margin-bottom: 1.5rem;
}

.artwork-modal-history h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.artwork-modal-history p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #444;
}

.artwork-modal-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 50px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
  margin-top: auto;
}

.artwork-modal-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Frame cursor for clickable */
.frame {
  cursor: pointer;
}

@media (max-width: 900px) {
  .artwork-modal-content {
    flex-direction: column;
    max-height: 90vh;
  }

  .artwork-modal-body {
    flex-direction: column;
  }

  .artwork-modal-img {
    flex: none;
    max-height: 40vh;
    padding: 1.5rem;
  }

  .artwork-modal-info {
    padding: 1.5rem;
  }

  .artwork-modal-title {
    font-size: 1.3rem;
  }

  .artwork-modal-price {
    font-size: 1.2rem;
  }
}

/* ---- About ---- */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}

.about-narrative {
  margin-bottom: 4rem;
}

.about-chapter {
  margin-bottom: 2.5rem;
}

.about-chapter-en {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.about-chapter-en em {
  font-style: italic;
  font-weight: 600;
}

.about-chapter-ja {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 2;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.about-value {
  font-size: 1rem;
  font-weight: 500;
}

/* ---- Exhibition ---- */
.exhibition-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.exhibition-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.exhibition-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.exhibition-name-ja {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.exhibition-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.exhibition-detail {
  display: flex;
  gap: 2rem;
}

.exhibition-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  min-width: 100px;
}

.exhibition-value {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Characters ---- */
.characters-intro {
  font-size: 1rem;
  color: var(--gray);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.character-card {
  text-align: center;
}

.character-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover img {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.character-card .protect-canvas {
  border-radius: 16px;
}

.character-name {
  display: block;
  margin-top: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ---- Links / Contact ---- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.link-card--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.link-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.link-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.link-name {
  font-size: 1rem;
  font-weight: 600;
}

.link-handle {
  font-size: 0.85rem;
  color: var(--gray);
}

.contact-form-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.contact-logo {
  height: 192px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  position: relative;
  left: -10px;
}

.contact-text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-instagram {
  display: inline-block;
  margin-top: 1.5rem;
}

.contact-instagram svg {
  width: 32px;
  height: 32px;
  fill: var(--gray);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.contact-instagram:hover svg {
  fill: var(--accent);
  transform: scale(1.1);
}

/* ---- Footer ---- */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--light-gray);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-canvas {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-canvas {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* ---- Legal Pages ---- */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-nav {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--light-gray);
}

.legal-back,
.page-back {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.legal-back:hover,
.page-back:hover {
  color: var(--accent);
}

.nav-back {
  font-size: 1.2rem;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1;
}

.nav-back:hover {
  color: var(--accent);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  flex: 1;
}

.legal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.legal-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--light-gray);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.7;
  vertical-align: top;
}

.legal-table th {
  font-weight: 600;
  white-space: nowrap;
  width: 180px;
  color: var(--gray);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.legal-table small {
  color: var(--gray);
  font-size: 0.8rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.legal-section p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 0.8rem;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.legal-section li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--black);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Shipping page */
.shipping-heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.shipping-contact {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 2.5rem;
  line-height: 1.8;
}

.shipping-contact a {
  color: var(--black);
  text-decoration: underline;
  transition: color 0.3s;
}

.shipping-contact a:hover {
  color: var(--accent);
}

.legal-footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.legal-footer p {
  font-size: 0.8rem;
  color: var(--gray);
}

@media (max-width: 900px) {
  .legal-nav {
    padding: 1rem 1.5rem;
  }

  .legal-content {
    padding: 3rem 1.5rem;
  }

  .legal-table th {
    display: block;
    width: 100%;
    padding-bottom: 0;
    border-bottom: none;
  }

  .legal-table td {
    display: block;
    padding-top: 0.3rem;
  }
}

/* ---- Thanks Page ---- */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.thanks-content {
  text-align: center;
  max-width: 500px;
}

.thanks-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
}

.thanks-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.thanks-message {
  font-size: 1rem;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 1rem;
}

.thanks-message-en {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.thanks-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--black);
  border-radius: 50px;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.thanks-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Scroll animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-hover-img,
  .hero-img,
  .splash-img {
    animation: none !important;
  }
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .lightbox img {
    transition: none;
  }
}

/* ---- Responsive: Large desktop ---- */
@media (min-width: 1441px) {
  .nav {
    padding: 1.2rem calc((100vw - var(--max-width)) / 2 + 3rem);
  }

  .section {
    padding: 6rem calc((100vw - var(--max-width)) / 2 + 3rem);
  }

  .footer {
    padding: 3rem calc((100vw - var(--max-width)) / 2 + 3rem);
  }
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Responsive: Mobile/Tablet ---- */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(242, 240, 237, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    gap: 2rem;
  }

  .hero-images {
    gap: 0.3rem;
  }

  .hero-hover-img {
    max-width: calc(100% / 7);
    border-radius: 4px;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }

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

  .gallery-item--wide {
    grid-column: span 2;
  }

  /* Show overlay on mobile since no hover */
  .gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 1rem;
  }

  .gallery-overlay span {
    font-size: 0.85rem;
  }

  .works-page,
  .shop-page,
  .about-page {
    padding-top: 6rem;
  }

  .shop-artwork {
    flex-direction: column;
    gap: 1.5rem;
  }

  .shop-artwork-img {
    flex: none;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .gallery-wall {
    margin: 2rem -1.5rem;
    padding: 3rem 1.5rem;
  }

  .gallery-wall-grid {
    gap: 1.5rem;
  }

  .gallery-wall-grid--portrait {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-wall-grid--square {
    grid-template-columns: repeat(3, 1fr);
  }

  .mat {
    padding: 14%;
  }

  .about-chapter-en {
    font-size: 1.05rem;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ---- Responsive: Small Mobile ---- */
@media (max-width: 480px) {
  .splash-overlay {
    transform: translate(-20px, 40px);
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .hero-images {
    gap: 0.2rem;
  }

  .hero-hover-img {
    border-radius: 3px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

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

  .gallery-wall {
    margin: 2rem -1.5rem;
    padding: 2rem 1rem;
    background-size: cover;
  }

  .gallery-wall-grid {
    gap: 0.8rem;
  }

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

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

  .mat {
    padding: 12%;
  }

  /* Thinner frames on small screens so images aren't dominated by the border */
  .frame--square {
    border: 12px solid transparent;
    border-image: url('../images/frame_square.png') 65 fill / 12px / 0 stretch;
  }

  .gallery-wall-grid--portrait .frame {
    border: 6px solid transparent;
    border-image: url('../images/frame_square.png') 65 fill / 6px / 0 stretch;
  }

  /* Shop artwork image stays full width on narrow screens */
  .shop-artwork-img {
    width: 100%;
  }

  .shop-size-link {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .shop-size-dim {
    display: none;
  }

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

  .exhibition-card {
    padding: 2rem;
  }

  .exhibition-detail {
    flex-direction: column;
    gap: 0.3rem;
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
  }

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

  .works-preview-grid img:last-child {
    display: none;
  }

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

  .about-chapter-en {
    font-size: 0.95rem;
  }

  .about-chapter-ja {
    font-size: 0.8rem;
  }
}
