/* ============================================================
   matinée — shared subsite styles
   ============================================================ */

/* matinée background — lighter / whiter than encore's #EFEAE0,
   still in the same warm off-white family.
   Override the bg-related vars only; foreground stays for contrast. */
body.matinee {
  --bg: #F6F2EA;
  --bg-deep: #EFEAE0;
  --rule: rgba(24, 24, 21, 0.12);
  background: var(--bg);
}

/* Section inner — fits within a 100vh pin-section */
.mat-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

/* Big sans-serif titles (focus-style) */
.mat-h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.mat-h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.mat-h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 18px;
}
.mat-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.mat-body {
  font-family: var(--jp-sans);
  font-size: 13px;
  line-height: 2.1;
  color: var(--fg);
  max-width: 34ch;
}
body[data-lang="en"] .mat-body {
  font-family: var(--sans);
  line-height: 1.85;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}
.hero-meta {
  text-align: right;
  line-height: 1.8;
}
.hero-meta .year {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}
.hero-meta .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-statement {
  max-width: 38ch;
  font-family: var(--jp-sans);
  font-size: 13.5px;
  line-height: 2.2;
  color: var(--fg);
}
body[data-lang="en"] .hero-statement {
  font-family: var(--sans);
  line-height: 1.85;
}

/* ============================================================
   ABOUT — scattered photos with floating drift + side index
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: stretch;
  margin-top: 40px;
}
.about-stage {
  position: relative;
  width: 100%;
  height: 620px;
}
.scatter-item {
  position: absolute;
  cursor: zoom-in;
  z-index: 2;
  aspect-ratio: 4 / 5;
}
.scatter-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.scatter-item:hover img { transform: scale(1.03); }
.scatter-item.peek img { transform: scale(1.04); }
.scatter-item.peek::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--fg);
  pointer-events: none;
  animation: peek-blink 0.6s ease;
}
@keyframes peek-blink {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

.scatter-item .mat-num {
  position: absolute;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: var(--bg);
  padding: 2px 6px;
  z-index: 3;
}

.si-1 { top:  2%; right: 10%; width: 30%; }
.si-2 { top: 16%; left:   2%; width: 24%; }
.si-3 { top: 32%; left:  36%; width: 30%; }
.si-4 { top: 48%; right:  4%; width: 26%; }
.si-5 { top: 58%; left:   4%; width: 28%; }
.si-6 { top: 63%; left:  38%; width: 28%; }

.si-1 .mat-num { top: -22px;   left: 0; }
.si-2 .mat-num { bottom: -22px; left: 0; }
.si-3 .mat-num { top: -22px;   left: 0; }
.si-4 .mat-num { bottom: -22px; right: 0; }
.si-5 .mat-num { top: -22px;   right: 0; }
.si-6 .mat-num { bottom: -22px; left: 0; }

.si-1 { animation: yura-1 13s ease-in-out infinite; }
.si-2 { animation: yura-2 17s ease-in-out infinite; }
.si-3 { animation: yura-3 19s ease-in-out infinite; }
.si-4 { animation: yura-4 11s ease-in-out infinite; }
.si-5 { animation: yura-5 23s ease-in-out infinite; }
.si-6 { animation: yura-6 29s ease-in-out infinite; }

@keyframes yura-1 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  24%      { transform: translate(8px, -10px)   rotate(0.4deg); }
  48%      { transform: translate(-6px, 12px)   rotate(-0.3deg); }
  72%      { transform: translate(10px, 4px)    rotate(0.2deg); }
}
@keyframes yura-2 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  20%      { transform: translate(-10px, 8px)   rotate(-0.5deg); }
  52%      { transform: translate(8px, -14px)   rotate(0.4deg); }
  78%      { transform: translate(-4px, 6px)    rotate(-0.2deg); }
}
@keyframes yura-3 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  28%      { transform: translate(12px, 10px)   rotate(0.3deg); }
  55%      { transform: translate(-8px, -10px)  rotate(-0.5deg); }
  82%      { transform: translate(6px, 12px)    rotate(0.4deg); }
}
@keyframes yura-4 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  18%      { transform: translate(-12px, -6px)  rotate(-0.4deg); }
  46%      { transform: translate(10px, 10px)   rotate(0.6deg); }
  74%      { transform: translate(-6px, -12px)  rotate(-0.3deg); }
}
@keyframes yura-5 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  22%      { transform: translate(10px, -8px)   rotate(0.5deg); }
  50%      { transform: translate(-12px, 10px)  rotate(-0.4deg); }
  78%      { transform: translate(8px, 4px)     rotate(0.3deg); }
}
@keyframes yura-6 {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  26%      { transform: translate(-8px, 12px)   rotate(-0.3deg); }
  54%      { transform: translate(14px, -8px)   rotate(0.5deg); }
  80%      { transform: translate(-6px, 6px)    rotate(-0.4deg); }
}

.about-index {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.about-index-statement {
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--fg);
  max-width: 28ch;
  margin-bottom: 36px;
}
body[data-lang="en"] .about-index-statement {
  font-family: var(--sans);
  line-height: 1.85;
}
.about-index ul { list-style: none; padding: 0; margin: 0; }
.about-index li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-index li:last-child { border-bottom: 1px solid var(--rule); }
.about-index li:hover { padding-left: 6px; }
.about-index li .ix-n {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.about-index li .ix-title {
  font-family: var(--jp-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
body[data-lang="en"] .about-index li .ix-title { font-family: var(--sans); }
.about-index li.is-active {
  padding-left: 6px;
}
.about-index li.is-active .ix-n,
.about-index li.is-active .ix-title {
  color: var(--accent);
}

/* ============================================================
   GUIDE — Space + Equipment + Flow
   ============================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}
.guide-floor img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.guide-floor .floor-caption {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-soft);
  text-transform: uppercase;
  margin-top: 10px;
}
.guide-specs dl {
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2;
  margin-bottom: 28px;
}
body[data-lang="en"] .guide-specs dl { font-family: var(--sans); line-height: 1.85; }
.guide-specs dt {
  display: inline-block;
  color: var(--fg-mute);
  min-width: 100px;
}
.guide-specs dd { display: inline; }
.guide-specs ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2;
  columns: 2;
  column-gap: 30px;
}
body[data-lang="en"] .guide-specs ul { font-family: var(--sans); line-height: 1.85; }
.guide-specs li {
  padding-left: 14px;
  position: relative;
  break-inside: avoid;
}
.guide-specs li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--fg-mute);
}

.flow-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}
.flow-overline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 24px;
}
.flow-overline::before {
  content: '— ';
  color: var(--fg-mute);
}
.flow-list { display: flex; flex-direction: column; gap: 18px; }
.flow-list .flow-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: baseline;
}
.flow-list .flow-item .n {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.flow-list .flow-item h4 {
  font-family: var(--jp-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}
body[data-lang="en"] .flow-list .flow-item h4 { font-family: var(--sans); }
.flow-list .flow-item p {
  font-family: var(--jp-sans);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--fg-mute);
}
body[data-lang="en"] .flow-list .flow-item p { font-family: var(--sans); line-height: 1.75; }

/* ============================================================
   PRICE
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 60px;
}
.price-card .card-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}
.price-card h3 {
  font-family: var(--jp-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 24px;
}
body[data-lang="en"] .price-card h3 { font-family: var(--sans); }
.price-amount {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.price-amount .unit {
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-mute);
  margin-left: 4px;
}
.price-amount .tax {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
  margin-left: 8px;
  text-transform: uppercase;
}
.price-card ul {
  list-style: none; padding: 0; margin: 24px 0 0;
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2;
  color: var(--fg);
}
body[data-lang="en"] .price-card ul { font-family: var(--sans); line-height: 1.85; }
.price-card li {
  padding-left: 14px; position: relative;
}
.price-card li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--fg-mute);
}
.price-terms-link {
  margin-top: 60px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
}

/* ============================================================
   ACCESS / CONTACT
   ============================================================ */
.ac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 60px;
}
.ac-block .ac-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}
.ac-block h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 32px;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.ac-block .tel {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 32px;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: block;
}
.ac-block p {
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2;
  color: var(--fg-mute);
}
body[data-lang="en"] .ac-block p { font-family: var(--sans); line-height: 1.85; }
.ac-block .contact-btn {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
}

/* ============================================================
   LIGHTBOX — shared-element FLIP transition
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.lightbox.active { visibility: visible; pointer-events: auto; }

.lb-bg {
  position: absolute; inset: 0;
  background: rgba(20, 19, 17, 0.96);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.active .lb-bg { opacity: 1; }
.lb-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
                              rgba(239,234,224,0.04),
                              transparent 70%);
  pointer-events: none;
}

.lb-mover {
  position: fixed;
  overflow: hidden;
  z-index: 1002;
  will-change: top, left, width, height;
}
.lb-mover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.lb-info {
  position: fixed;
  top: 50%;
  right: 6vw;
  transform: translateY(-50%) translateX(40px);
  width: 280px;
  color: rgba(239, 234, 224, 0.92);
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
  z-index: 1003;
}
.lightbox.active .lb-info {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.lb-info .lb-num-big {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(239, 234, 224, 0.95);
  margin-bottom: 32px;
}
.lb-info .lb-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, 0.45);
}
.lb-info .lb-meta::after {
  content: '';
  flex: 1; height: 1px;
  background: rgba(239, 234, 224, 0.2);
}
.lb-info h3 {
  font-family: var(--jp-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(239, 234, 224, 0.95);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
body[data-lang="en"] .lb-info h3 { font-family: var(--sans); }
.lb-info p {
  font-family: var(--jp-sans);
  font-size: 12.5px;
  line-height: 2;
  color: rgba(239, 234, 224, 0.6);
}
body[data-lang="en"] .lb-info p { font-family: var(--sans); line-height: 1.85; }

.lb-close {
  position: fixed;
  top: 36px; right: 36px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(239, 234, 224, 0.3);
  color: rgba(239, 234, 224, 0.85);
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1004;
  opacity: 0;
  transition: opacity 0.5s ease 1s, border-color 0.3s;
}
.lightbox.active .lb-close { opacity: 1; }
.lb-close:hover { border-color: rgba(239, 234, 224, 0.9); }

.lb-mark {
  position: fixed;
  top: 38px;
  left: var(--pad);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, 0.5);
  z-index: 1004;
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
.lightbox.active .lb-mark { opacity: 1; }

body.lb-open .scatter-item:not(.lb-active) {
  opacity: 0.18;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
body.lb-open .scatter-item.lb-active {
  opacity: 0;
  transition: opacity 0.2s ease 0.15s;
}
body.lb-open .scatter-item .mat-num {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 1100px) {
  .about-layout { grid-template-columns: 1fr 240px; gap: 40px; }
  .about-index-statement { margin-bottom: 24px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { text-align: left; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-stage {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .scatter-item {
    position: static !important;
    width: 100% !important; height: auto !important;
    aspect-ratio: 4/5;
    animation: none !important;
  }
  .scatter-item .mat-num {
    position: static !important;
    display: inline-block;
    margin-top: 6px;
    background: transparent;
    padding: 0;
  }
  .guide-grid, .flow-wrap, .price-grid, .ac-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .guide-specs ul { columns: 1; }
  .lb-info {
    right: var(--pad); left: var(--pad);
    width: auto; top: auto;
    bottom: 80px;
    transform: translateY(20px);
  }
  .lightbox.active .lb-info { transform: translateY(0); }
  .lb-info .lb-num-big { font-size: 56px; margin-bottom: 16px; }
  .ac-block h3, .ac-block .tel { font-size: 26px; }
  .mat-h2 { font-size: clamp(48px, 12vw, 80px); }
  .mat-h1 { font-size: clamp(56px, 18vw, 120px); }
}
@media (max-width: 600px) {
  .about-stage { grid-template-columns: 1fr; }
}
