/**
 * Marubag — custom.css
 * Warm minimal Japanese accessories boutique.
 * Cream #F3EDE4 · Ink #2C2420 · Terracotta #B85C38 · Soft olive
 */

:root {
  --mrb-ivory: #F4EEE5;
  --mrb-cream: #F4EEE5;
  --mrb-cream-soft: #E8D8C5;
  --mrb-cream-deep: #DFD0BC;
  --mrb-ink: #3A2923;
  --mrb-ink-soft: #5A4038;
  --mrb-terra: #B8653B;
  --mrb-terracotta: #B8653B;
  --mrb-terra-soft: #C97A58;
  --mrb-terra-deep: #9A4A2C;
  --mrb-olive: #7A8B6E;
  --mrb-olive-soft: #97A68C;
  --mrb-olive-deep: #5F6E55;
  --mrb-champagne: #D5A26A;
  --mrb-nav-h: 72px;
  --mrb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mrb-transition: 0.4s var(--mrb-ease);
}
/* ─── Base ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--mrb-ink);
  color: var(--mrb-cream);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--mrb-terra);
  outline-offset: 2px;
}

html {
  scroll-behavior: auto;
}
body.mrb {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(184, 92, 56, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(122, 139, 110, 0.07), transparent 45%),
    var(--mrb-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Horizontal curtain wipe transition ─── */
.mrb-page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
.mrb-page-transition__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--mrb-ink);
  transition: transform 0.55s var(--mrb-ease);
}
.mrb-page-transition__panel--left {
  left: 0;
  transform: translateX(-101%);
}
.mrb-page-transition__panel--right {
  right: 0;
  transform: translateX(101%);
}
.mrb-page-transition__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--mrb-terra);
  letter-spacing: 0.3em;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.4s var(--mrb-ease);
}
.mrb-page-transition.is-active {
  visibility: visible;
  pointer-events: auto;
}
.mrb-page-transition.is-active .mrb-page-transition__panel--left,
.mrb-page-transition.is-active .mrb-page-transition__panel--right {
  transform: translateX(0);
}
.mrb-page-transition.is-active .mrb-page-transition__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#mrbPageContent {
  min-height: 100%;
  opacity: 1;
  visibility: visible;
}
body.mrb-is-entering #mrbPageContent {
  opacity: 1;
  transition: opacity 0.5s var(--mrb-ease);
}
body.mrb-is-exiting #mrbPageContent {
  opacity: 0.4;
  transition: opacity 0.35s var(--mrb-ease);
}

body.mrb main#main {
  padding-top: var(--mrb-nav-h);
}

[data-magnetic] {
  position: relative;
  transition: transform 0.25s var(--mrb-ease);
}

/* ─── Scroll progress ─── */
.mrb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
}
.mrb-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mrb-terra), var(--mrb-olive));
  transition: width 0.1s linear;
}

/* ─── Custom cursor ─── */
.mrb-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mrb-cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .mrb-cursor { display: block; }
  .mrb.has-custom-cursor,
  .mrb.has-custom-cursor * { cursor: none !important; }
}
.mrb-cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--mrb-terra);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
  background: rgba(184, 92, 56, 0.06);
}
.mrb-cursor__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--mrb-terra);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.mrb-cursor.is-hover .mrb-cursor__ring {
  width: 52px;
  height: 52px;
  background: rgba(184, 92, 56, 0.12);
  border-color: var(--mrb-terra-soft);
}

/* ─── Buttons ─── */
.mrb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background var(--mrb-transition), color var(--mrb-transition), border-color var(--mrb-transition), transform 0.25s;
}
.mrb-btn--terra {
  background: var(--mrb-terra);
  color: var(--mrb-cream);
  border-color: var(--mrb-terra);
}
.mrb-btn--terra:hover {
  background: var(--mrb-terra-deep);
  border-color: var(--mrb-terra-deep);
  color: var(--mrb-cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 101, 59, 0.28);
}
.mrb-btn--outline {
  background: transparent;
  color: var(--mrb-ink);
  border-color: var(--mrb-ink-soft);
}
.mrb-btn--outline:hover {
  border-color: var(--mrb-terra);
  color: var(--mrb-terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(58, 41, 35, 0.1);
}
.mrb-btn--cream {
  background: var(--mrb-cream);
  color: var(--mrb-ink);
  border-color: var(--mrb-cream);
}
.mrb-btn--cream:hover {
  background: var(--mrb-cream-soft);
  color: var(--mrb-terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(58, 41, 35, 0.12);
}
.mrb-btn--ghost-light {
  background: transparent;
  color: var(--mrb-cream);
  border-color: rgba(244, 238, 229, 0.45);
}
.mrb-btn--ghost-light:hover {
  border-color: var(--mrb-cream);
  background: rgba(244, 238, 229, 0.1);
  transform: translateY(-2px);
}

.mrb-link-terra {
  color: var(--mrb-terra);
  text-decoration: none;
  transition: color var(--mrb-transition);
}
.mrb-link-terra:hover { color: var(--mrb-terra-deep); }
.mrb-link-terra i {
  display: inline-block;
  transition: transform 0.35s var(--mrb-ease);
}
.mrb-link-terra:hover i { transform: translateX(4px); }

.mrb-terra-hairline {
  width: 48px;
  height: 1px;
  background: var(--mrb-terra);
}

.mrb-img-frame {
  border: 1px solid rgba(44, 36, 32, 0.08);
}

/* ─── Nav ─── */
.mrb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--mrb-nav-h);
  background: rgba(244, 238, 229, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--mrb-transition), box-shadow var(--mrb-transition);
}
.mrb-nav.is-scrolled {
  background: rgba(244, 238, 229, 0.96);
  box-shadow: 0 1px 0 rgba(58, 41, 35, 0.06);
}
.mrb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.mrb-nav__brand {
  display: flex;
  align-items: baseline;
  text-decoration: none;
}
.mrb-nav__links {
  align-items: center;
  gap: 2rem;
}
.mrb-nav-link {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8125rem;
  color: var(--mrb-ink-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  transition: color var(--mrb-transition);
}
.mrb-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--mrb-terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--mrb-ease);
}
.mrb-nav-link:hover,
.mrb-nav-link.is-active {
  color: var(--mrb-ink);
}
.mrb-nav-link.is-active::after,
.mrb-nav-link:hover::after {
  transform: scaleX(1);
}
.mrb-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mrb-nav__hairline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(44, 36, 32, 0.06);
}

.mrb-nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}
.mrb-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mrb-ink);
  transition: transform 0.3s, opacity 0.3s;
}
.mrb-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mrb-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mrb-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mrb-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  pointer-events: none;
}
.mrb-mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mrb-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.35);
  opacity: 0;
  transition: opacity 0.4s;
}
.mrb-mobile-menu.is-open .mrb-mobile-menu__backdrop { opacity: 1; }
.mrb-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 380px);
  background: var(--mrb-cream);
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--mrb-ease);
  box-shadow: -8px 0 40px rgba(44, 36, 32, 0.08);
}
.mrb-mobile-menu.is-open .mrb-mobile-menu__panel {
  transform: translateX(0);
}
.mrb-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.mrb-mobile-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--mrb-ink);
  font-size: 1.25rem;
}
.mrb-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.mrb-mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
  text-decoration: none;
  transition: color var(--mrb-transition);
}
.mrb-mobile-menu__link.is-active span:last-child,
.mrb-mobile-menu__link:hover span:last-child {
  color: var(--mrb-terra);
}
.mrb-mobile-menu__footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* ─── Split-screen Hero ─── */
.mrb-hero {
  position: relative;
  min-height: calc(100vh - var(--mrb-nav-h));
  min-height: calc(100dvh - var(--mrb-nav-h));
}
.mrb-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: inherit;
}
@media (min-width: 900px) {
  .mrb-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.mrb-hero__media {
  position: relative;
  min-height: 52vh;
  overflow: hidden;
  background: var(--mrb-cream-deep);
}
@media (min-width: 900px) {
  .mrb-hero__media {
    min-height: calc(100vh - var(--mrb-nav-h));
  }
}
.mrb-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  transition: transform 1.4s var(--mrb-ease);
}
.mrb-hero.is-ready .mrb-hero__img {
  transform: scale(1);
}
.mrb-hero__media-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 36, 32, 0.12), transparent 50%);
  pointer-events: none;
}
.mrb-hero__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: rgba(243, 237, 228, 0.7);
  z-index: 2;
}
.mrb-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  background:
    linear-gradient(180deg, transparent, rgba(232, 224, 212, 0.4)),
    var(--mrb-cream);
}
@media (min-width: 900px) {
  .mrb-hero__copy {
    padding: 4rem 3.5rem 5rem 3rem;
  }
}
.mrb-hero__scroll {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}
@media (min-width: 900px) {
  .mrb-hero__scroll { display: flex; }
}
.mrb-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--mrb-terra), transparent);
  animation: mrbScrollPulse 2s ease-in-out infinite;
}
@keyframes mrbScrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Philosophy chips ─── */
.mrb-chip {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(44, 36, 32, 0.1);
}
.mrb-chip__num { display: block; }

/* ─── Product peek Swiper ─── */
.mrb-products-swiper {
  overflow: visible;
  padding-bottom: 0.5rem;
}
.mrb-products-swiper .swiper-slide {
  width: 78%;
  max-width: 340px;
  opacity: 0.55;
  transition: opacity 0.45s var(--mrb-ease), transform 0.45s var(--mrb-ease);
  transform: scale(0.94);
}
.mrb-products-swiper .swiper-slide-active,
.mrb-products-swiper .swiper-slide-next {
  opacity: 1;
  transform: scale(1);
}
@media (min-width: 640px) {
  .mrb-products-swiper .swiper-slide {
    width: 48%;
    max-width: 380px;
  }
}
@media (min-width: 1024px) {
  .mrb-products-swiper .swiper-slide {
    width: 32%;
    max-width: 400px;
  }
  .mrb-products-swiper .swiper-slide-next + .swiper-slide {
    opacity: 0.75;
  }
}

.mrb-product-card {
  background: var(--mrb-cream);
  border: 1px solid rgba(58, 41, 35, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--mrb-transition), box-shadow var(--mrb-transition), transform 0.4s var(--mrb-ease);
}
.mrb-product-card:hover {
  border-color: rgba(184, 101, 59, 0.28);
  box-shadow: 0 14px 40px rgba(58, 41, 35, 0.08);
  transform: translateY(-4px);
}
.mrb-product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mrb-cream-soft);
}
.mrb-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--mrb-ease);
}
.mrb-product-card:hover .mrb-product-card__img {
  transform: scale(1.05);
}
.mrb-product-card__cat {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  background: rgba(244, 238, 229, 0.92);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--mrb-ink-soft);
}
.mrb-product-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mrb-product-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: auto;
  margin-left: auto;
  color: var(--mrb-terra);
  font-size: 0.75rem;
  opacity: 0.45;
  transition: opacity 0.35s var(--mrb-ease), transform 0.4s var(--mrb-ease);
}
.mrb-product-card:hover .mrb-product-card__arrow {
  opacity: 1;
  transform: translateX(4px);
}

.mrb-swiper-nav {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 36, 32, 0.15);
  background: transparent;
  color: var(--mrb-ink);
  transition: border-color var(--mrb-transition), color var(--mrb-transition), background var(--mrb-transition);
}
.mrb-swiper-nav:hover {
  border-color: var(--mrb-terra);
  color: var(--mrb-terra);
  background: rgba(184, 92, 56, 0.06);
}

/* ─── Materials ─── */
.mrb-material-card {
  background: var(--mrb-cream);
  border: 1px solid rgba(58, 41, 35, 0.06);
  overflow: hidden;
  transition: border-color var(--mrb-transition), transform 0.4s var(--mrb-ease), box-shadow 0.4s var(--mrb-ease);
}
.mrb-material-card:hover {
  border-color: rgba(122, 139, 110, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58, 41, 35, 0.07);
}
.mrb-material-card__img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.mrb-material-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--mrb-ease);
}
.mrb-material-card:hover .mrb-material-card__img img {
  transform: scale(1.05);
}
.mrb-material-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
}

/* ─── Aligned editorial gallery (equal cells) ─── */
.mrb-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .mrb-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.mrb-gallery__item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  background: var(--mrb-cream-deep);
  cursor: pointer;
  text-align: left;
  aspect-ratio: 4 / 5;
  transition: transform 0.35s var(--mrb-ease), box-shadow 0.35s var(--mrb-ease);
}
.mrb-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(58, 41, 35, 0.1);
}
.mrb-gallery__media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mrb-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--mrb-ease);
}
.mrb-gallery__item:hover .mrb-gallery__media img {
  transform: scale(1.05);
}
.mrb-gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mrb-cream);
  background: linear-gradient(transparent, rgba(44, 36, 32, 0.7));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.mrb-gallery__item:hover .mrb-gallery__cap,
.mrb-gallery__item:focus-visible .mrb-gallery__cap {
  opacity: 1;
  transform: translateY(0);
}
.mrb-gallery__item:focus-visible {
  outline: 2px solid var(--mrb-terra);
  outline-offset: 2px;
}

/* Legacy bento kept for any residual refs */
.mrb-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mrb-bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
  }
}
.mrb-bento__item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  background: var(--mrb-cream-deep);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}
.mrb-bento__item--tall,
.mrb-bento__item--wide,
.mrb-bento__item--normal {
  grid-column: span 1;
  grid-row: span 1;
}
.mrb-bento__reveal {
  display: block;
  width: 100%;
  height: 100%;
}
.mrb-bento__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mrb-bento__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  color: var(--mrb-cream);
  background: linear-gradient(transparent, rgba(44, 36, 32, 0.65));
}

/* ─── News cards ─── */
.mrb-news-card {
  transition: opacity 0.35s;
}
.mrb-news-card.is-hidden {
  display: none;
}
.mrb-news-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mrb-cream-soft);
}
.mrb-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--mrb-ease);
}
.mrb-news-card:hover .mrb-news-card__img img,
.mrb-news-card a:hover .mrb-news-card__img img {
  transform: scale(1.04);
}

.mrb-filter-btn {
  padding: 0.5rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(44, 36, 32, 0.12);
  background: transparent;
  color: var(--mrb-ink-soft);
  transition: all var(--mrb-transition);
}
.mrb-filter-btn:hover,
.mrb-filter-btn.is-active {
  background: var(--mrb-terra);
  border-color: var(--mrb-terra);
  color: var(--mrb-cream);
}

/* ─── Terracotta CTA ─── */
.mrb-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--mrb-terra-deep);
}
.mrb-cta--compact {
  padding: 4.5rem 0;
}
.mrb-cta__bg {
  position: absolute;
  inset: 0;
}
.mrb-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mrb-cta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(154, 74, 44, 0.88), rgba(44, 36, 32, 0.75));
}
.mrb-cta__content {
  position: relative;
  z-index: 2;
}

/* ─── FAQ — numbered atelier style (CSS counters) ─── */
.mrb-faq {
  counter-reset: mrb-faq;
}
.mrb-faq__item {
  counter-increment: mrb-faq;
  border-bottom: 1px solid rgba(58, 41, 35, 0.1);
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.75rem;
}
.mrb-faq__item::before {
  content: counter(mrb-faq, decimal-leading-zero);
  font-family: "Zen Old Mincho", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--mrb-terra);
  padding-top: 1.45rem;
  grid-column: 1;
  grid-row: 1;
}
.mrb-faq__num { display: none; }
.mrb-faq__item > .mrb-faq__trigger,
.mrb-faq__item > .mrb-faq__panel {
  grid-column: 2;
}
.mrb-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.mrb-faq__icon {
  flex-shrink: 0;
  color: var(--mrb-terra);
  font-size: 0.85rem;
  transition: transform 0.35s var(--mrb-ease);
}
.mrb-faq__item.is-open .mrb-faq__icon {
  transform: rotate(45deg);
}
.mrb-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--mrb-ease), padding 0.4s;
  padding-bottom: 0;
}
.mrb-faq__item.is-open .mrb-faq__panel {
  max-height: 320px;
  padding-bottom: 1.35rem;
}

/* ─── Page banner ─── */
.mrb-page-banner {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mrb-page-banner--short { min-height: 200px; }
@media (min-width: 768px) {
  .mrb-page-banner { min-height: 300px; }
  .mrb-page-banner--short { min-height: 220px; }
}
.mrb-page-banner__media {
  position: absolute;
  inset: 0;
}
.mrb-page-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mrb-page-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 32, 0.75), rgba(44, 36, 32, 0.25));
}
.mrb-page-banner__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem 2.75rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .mrb-page-banner__content { padding-left: 2rem; padding-right: 2rem; }
}

.mrb-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* ─── Timeline ─── */
.mrb-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1.5px solid rgba(184, 92, 56, 0.25);
}
.mrb-timeline__item {
  position: relative;
  padding: 0 0 2.25rem 1.75rem;
}
.mrb-timeline__item:last-child { padding-bottom: 0; }
.mrb-timeline__item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mrb-terra);
  border: 2px solid var(--mrb-cream);
}
.mrb-timeline__year {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.mrb-team__photo {
  max-width: 260px;
  border: 1px solid rgba(44, 36, 32, 0.08);
}

/* ─── Form ─── */
.mrb-form-card {
  background: var(--mrb-cream);
  border: 1px solid rgba(44, 36, 32, 0.08);
}
.mrb-form__label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--mrb-ink-soft);
  margin-bottom: 0.45rem;
}
.mrb-input {
  padding: 0.75rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--mrb-ink);
  background: var(--mrb-cream-soft);
  border: 1px solid rgba(44, 36, 32, 0.1);
  outline: none;
  transition: border-color var(--mrb-transition), background var(--mrb-transition);
}
.mrb-input:focus {
  border-color: var(--mrb-terra);
  background: var(--mrb-cream);
}
.mrb-input.is-error {
  border-color: #b91c1c;
}

/* ─── Footer ─── */
.mrb-footer__hairline {
  height: 1px;
  background: rgba(243, 237, 228, 0.1);
}
.mrb-footer__watermark {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.8;
  color: rgba(243, 237, 228, 0.03);
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}
.mrb-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 237, 228, 0.15);
  color: var(--mrb-cream);
  text-decoration: none;
  transition: border-color var(--mrb-transition), color var(--mrb-transition), background var(--mrb-transition);
}
.mrb-social-link:hover {
  border-color: var(--mrb-terra-soft);
  color: var(--mrb-terra-soft);
  background: rgba(184, 92, 56, 0.1);
}
.mrb-footer-link {
  text-decoration: none;
}

/* ─── Lightbox ─── */
.mrb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
  padding: 1.5rem;
}
.mrb-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}
.mrb-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.88);
}
.mrb-lightbox__figure {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 1000px);
  max-height: 85vh;
}
.mrb-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}
.mrb-lightbox__cap {
  text-align: center;
  color: rgba(243, 237, 228, 0.7);
  font-size: 0.8rem;
  margin-top: 1rem;
}
.mrb-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  background: none;
  border: 1px solid rgba(243, 237, 228, 0.3);
  color: var(--mrb-cream);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.3s;
}
.mrb-lightbox__close:hover {
  border-color: var(--mrb-cream);
}

/* ─── Craftsmanship trust ─── */
.mrb-trust-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .mrb-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
}
.mrb-trust-card {
  position: relative;
  margin: 0;
  padding: 1.75rem 1.5rem 1.6rem 1.65rem;
  background: var(--mrb-cream);
  border: 1px solid rgba(58, 41, 35, 0.08);
  border-left: 3px solid var(--mrb-terra);
  box-shadow: 0 8px 28px rgba(58, 41, 35, 0.05);
  transition: transform 0.35s var(--mrb-ease), box-shadow 0.35s var(--mrb-ease);
}
.mrb-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(58, 41, 35, 0.08);
}
.mrb-trust-card__num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--mrb-terra);
  margin-bottom: 0.55rem;
}
.mrb-trust-card__title {
  font-size: 1.2rem;
  color: var(--mrb-ink);
  margin: 0 0 0.75rem;
}
.mrb-trust-card__text {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--mrb-ink-soft);
  margin: 0;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mrb-page-transition__panel {
    transition: none;
  }
  .mrb-hero__img {
    transform: none !important;
  }
  .mrb-bento__reveal {
    clip-path: inset(0 0 0 0) !important;
  }
  .mrb-cursor { display: none !important; }
  .mrb.has-custom-cursor,
  .mrb.has-custom-cursor * { cursor: auto !important; }
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mrb-terra);
  outline-offset: 2px;
}
