/* Banquet & Meetings — layout catalog page (type/gutter tokens mirror index.html) */
:root {
  --paper: #F1EDE4;
  --rei-brown: #584B3A;
  --forest: #3E7150;
  --sand: #BEB098;
  --gold: #AA8534;
  --brand-ink: #584B3A;
  --brand-accent: #3E7150;
  --serif-jp: "Shippori Mincho B1", serif;
  --serif-en: "Marcellus", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --rule: rgba(88, 75, 58, .2);
  --hero-rule: rgba(88, 75, 58, .14);
  --dark-ink: #F1EDE4;
  --dark-soft: #CFC5B2;

  --bqp-gutter: clamp(40px, 8vw, 134px);
  --bqp-edge: max(var(--bqp-gutter), calc((100vw - 1520px) / 2));

  --section-display-family: "Cormorant Garamond", Georgia, serif;
  --section-display-size: clamp(76px, 7.05vw, 116px);
  --section-display-weight: 300;
  --section-display-leading: .78;
  --section-display-tracking: -.035em;

  --section-heading-family: var(--serif-jp);
  --section-heading-size: clamp(24px, 2vw, 32px);
  --section-heading-weight: 500;
  --section-heading-leading: 1.55;
  --section-heading-tracking: .09em;

  --section-body-family: var(--serif-jp);
  --section-body-size: clamp(13px, .98vw, 15px);
  --section-body-weight: 400;
  --section-body-leading: 2;
  --section-body-tracking: .065em;
}

@media (max-width: 768px) {
  :root {
    --bqp-gutter: 24px;
    --section-heading-size: clamp(22px, 6.4vw, 27px);
    --section-heading-leading: 1.6;
    --section-heading-tracking: .07em;
  }
}

@media (max-width: 420px) {
  :root { --bqp-gutter: 20px; }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--brand-ink);
  font-family: var(--serif-jp);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

.bqp-rail {
  width: min(calc(100% - (2 * var(--bqp-gutter))), 1520px);
  margin-inline: auto;
}

/* ===== continuous komorebi atmosphere below the hero (top-page mechanism) ===== */
.bqp-atmosphere {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}

.bqp-atmosphere__shadow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  -webkit-mask-image: linear-gradient(180deg,
    #000 0,
    #000 108svh,
    rgba(0, 0, 0, .55) 132svh,
    transparent 162svh);
          mask-image: linear-gradient(180deg,
    #000 0,
    #000 108svh,
    rgba(0, 0, 0, .55) 132svh,
    transparent 162svh);
}

.bqp-atmosphere__shadow-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 21%, #000 49%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 21%, #000 49%);
}

.bqp-atmosphere__shadow img {
  position: absolute;
  top: -7%;
  right: 0;
  bottom: -7%;
  left: 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: 58% 44%;
  /* multiply is baked into the flat asset (Safari合成負荷対策) */
  /* filters are baked into hero-shadow-baked.webp (Edge/GPU負荷対策) */
  animation: bqpShadowDrift 24s ease-in-out infinite alternate;
  transform-origin: 61% 38%;
  will-change: transform, opacity;
}

.bqp-atmosphere > section {
  position: relative;
  z-index: 2;
  background: transparent;
}

@keyframes bqpShadowDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0); opacity: .92; }
  50% { opacity: 1; }
  100% { transform: scale(1.075) translate3d(-1.8%, 1.1%, 0); opacity: .9; }
}

/* ===== hero — top-page quotation with banquet window ===== */
.ib { display: inline-block; }

.bqp-hero {
  position: relative;
  height: 100svh;
  min-height: 660px;
  overflow: clip;
  background: transparent;
  color: var(--brand-ink);
}

.bqp-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bqp-hero__grid path {
  fill: none;
  stroke: var(--hero-rule);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.bqp-hero__grid--sp { display: none; }

/* material palette strip — same footprint as the top-page hero window */
.bqp-hero__window {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 30.3%;
  width: 4.2%;
  height: 19.25%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.bqp-hero__window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bqp-hero__head {
  position: absolute;
  z-index: 5;
  top: 3.7%;
  left: 4.85%;
  right: 4%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.bqp-hero__head a { pointer-events: auto; }

.bqp-hero__logo {
  display: block;
  width: clamp(132px, 9.7vw, 164px);
  height: auto;
}

.bqp-hero__official {
  position: relative;
  margin-top: 2.5%;
  padding: 0 1px 8px;
  border-bottom: 1px solid rgba(88, 75, 58, .42);
  color: var(--brand-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, .74vw, 12px);
  letter-spacing: .2em;
  text-decoration: none;
}

.bqp-hero__title {
  position: absolute;
  z-index: 4;
  top: 27.9%;
  left: 4.85%;
  width: 53%;
  margin: 0;
  font-family: var(--display-en);
  font-size: clamp(100px, min(11.7vw, 20.7svh), 198px);
  font-weight: 300;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: .88;
  letter-spacing: -.04em;
}

.bqp-hero__title span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.bqp-hero__statement {
  position: absolute;
  z-index: 4;
  top: 54.4%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2vw, 34px);
  width: 46%;
}

.bqp-hero__statement-line {
  flex: 0 0 clamp(28px, 2.4vw, 42px);
  height: 1px;
  background: var(--forest);
}

.bqp-hero__statement p {
  margin: 0;
  font-family: var(--serif-jp);
  font-size: clamp(15px, 1.38vw, 23px);
  letter-spacing: .2em;
  line-height: 1.6;
  white-space: nowrap;
}

.bqp-hero__crumb {
  position: absolute;
  z-index: 4;
  left: 5.1%;
  bottom: 5.9%;
}

.bqp-hero__crumb-top {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, .96vw, 16px);
  letter-spacing: .34em;
}

.bqp-hero__crumb-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 17px 0 18px;
  background: var(--forest);
}

.bqp-hero__crumb-name {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(9px, .72vw, 12px);
  letter-spacing: .27em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bqp-hero__scroll {
  position: absolute;
  z-index: 4;
  right: 3.9%;
  bottom: 10.8%;
  color: var(--brand-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(9px, .72vw, 12px);
  letter-spacing: .42em;
}

.bqp-hero__scroll::after {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% - 1px);
  width: 1px;
  height: calc(10.8svh - 24px);
  background: rgba(62, 113, 80, .72);
  transform-origin: 50% 0;
  animation: bqpScrollTrace 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes bqpScrollTrace {
  0%, 100% { transform: scaleY(.42); opacity: .35; }
  50% { transform: scaleY(1); opacity: .8; }
}

/* ===== intro ===== */
.bqp-intro {
  padding: clamp(140px, 11.5vw, 200px) 0 clamp(48px, 5vw, 72px);
}

.bqp-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 42fr);
  column-gap: 6%;
  align-items: end;
}

.bqp-intro h2 {
  margin: 0;
  font-family: var(--section-heading-family);
  font-size: var(--section-heading-size);
  font-weight: var(--section-heading-weight);
  line-height: var(--section-heading-leading);
  letter-spacing: var(--section-heading-tracking);
}

.bqp-intro p {
  margin: 0;
  font-family: var(--section-body-family);
  font-size: var(--section-body-size);
  font-weight: var(--section-body-weight);
  line-height: var(--section-body-leading);
  letter-spacing: var(--section-body-tracking);
}

/* ===== hall ===== */
.bqp-hall__head {
  padding: clamp(88px, 9vw, 140px) 0 clamp(36px, 4vw, 56px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bqp-hall__name p {
  margin: 0 0 12px;
  color: var(--brand-accent);
  font-family: var(--serif-en);
  font-size: 14px;
  font-style: italic;
  letter-spacing: .12em;
}

.bqp-hall__name h3 {
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--serif-jp);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}

.bqp-hall__meta {
  margin: 0;
  font-family: var(--section-body-family);
  font-size: var(--section-body-size);
  letter-spacing: var(--section-body-tracking);
}

.bqp-hall__meta b {
  font-weight: 400;
  font-family: var(--serif-en);
  color: var(--brand-accent);
  letter-spacing: .22em;
  margin-right: 12px;
}

/* ===== catalog cards ===== */
.bqp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 76px) clamp(20px, 2.6vw, 40px);
}

.bqp-card {
  margin: 0;
  min-width: 0;
}

.bqp-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--sand) 18%, var(--paper));
  cursor: pointer;
}

.bqp-card__media picture { display: block; }

.bqp-card__media img {
  width: 100%;
  height: auto;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.bqp-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.bqp-card__name {
  font-family: var(--section-body-family);
  font-size: clamp(13px, .98vw, 15px);
  letter-spacing: .14em;
}

.bqp-card__name i {
  display: inline-block;
  margin-left: 14px;
  font-style: normal;
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.bqp-card__count {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .08em;
  transition: color .5s ease;
}

@media (hover: hover) {
  .bqp-card__media:hover img,
  .bqp-card.on .bqp-card__media:hover img { transform: scale(1.04); }
  .bqp-card:hover .bqp-card__count { color: var(--brand-accent); }
}

/* scroll parallax moves the picture inside the fixed frame */
.bqp-card__media.is-editorial-parallax picture { will-change: transform; }

/* ===== lightbox ===== */
.bqp-lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 56px);
  background: rgba(38, 31, 20, .9);
  cursor: zoom-out;
}

.bqp-lightbox[hidden] { display: none; }

.bqp-lightbox img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  width: auto;
  height: auto;
}

.bqp-lightbox__caption {
  margin: 0;
  color: rgba(241, 237, 228, .9);
  font-size: 13px;
  letter-spacing: .18em;
}

.bqp-lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(18px, 3vw, 36px);
  appearance: none;
  background: none;
  border: 1px solid rgba(241, 237, 228, .5);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #F1EDE4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bqp-note {
  width: min(calc(100% - (2 * var(--bqp-gutter))), 1520px);
  margin: clamp(36px, 4vw, 56px) auto clamp(120px, 13vw, 210px);
  font-family: var(--section-body-family);
  font-size: 11px;
  letter-spacing: .14em;
  opacity: .55;
}

/* ===== outro ===== */
.bqp-outro {
  padding: clamp(88px, 10vw, 150px) 0 clamp(110px, 12vw, 180px);
  text-align: center;
}

.bqp-outro p.note {
  margin: 0 0 44px;
  font-family: var(--section-body-family);
  font-size: 11px;
  letter-spacing: .14em;
  opacity: .6;
}

.bqp-outro__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 40px;
  border: 1px solid rgba(88, 75, 58, .34);
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .18em;
  transition: background .5s ease, color .5s ease;
}

.bqp-outro__cta span {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-accent);
  transition: color .5s ease;
}

.bqp-outro__cta:hover {
  background: var(--rei-brown);
  border-color: var(--rei-brown);
  color: #F1EDE4;
}

.bqp-outro__cta:hover span { color: rgba(241, 237, 228, .75); }

/* ===== reveal ===== */
/* PC: photos wipe open left-to-right (refined SP pattern) — captions follow */
@media (min-width: 769px) {
  .bqp-card.bqp-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bqp-card .bqp-card__media {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(.22, 1, .36, 1);
  }

  .bqp-card .bqp-card__media img {
    transform: scale(1.08);
    transform-origin: 60% 50%;
  }

  .bqp-card.on .bqp-card__media { clip-path: inset(0 0 0 0); }

  .bqp-card.on .bqp-card__media img { transform: none; }

  .bqp-card figcaption {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .95s ease .3s, transform .95s cubic-bezier(.22, 1, .36, 1) .3s;
  }

  .bqp-card.on figcaption {
    opacity: 1;
    transform: none;
  }

  /* second card of each row follows a beat later (clip only — img keeps hover snappy) */
  .bqp-card.bqp-rv-d1 .bqp-card__media { transition-delay: .14s; }

  .bqp-card.bqp-rv-d1 figcaption { transition-delay: .44s; }
}

.bqp-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

.bqp-rv.on { opacity: 1; transform: none; }

.bqp-rv-d1 { transition-delay: .14s; }

/* ===== SP ===== */
@media (max-width: 768px) {
  .bqp-hero {
    height: 100svh;
    min-height: 640px;
    padding: 0;
  }

  .bqp-hero__grid--pc { display: none; }
  .bqp-hero__grid--sp { display: block; }

  .bqp-hero__head {
    top: 3.4%;
    left: 22px;
    right: 22px;
  }

  .bqp-hero__logo { width: clamp(88px, 24vw, 104px); }

  .bqp-hero__official {
    margin-top: 10px;
    padding-bottom: 6px;
    font-size: 10px;
  }

  /* palette strip in the top-page SP position */
  .bqp-hero__window {
    top: 58.9%;
    bottom: 0;
    left: 9.3%;
    width: 17%;
    height: auto;
  }

  .bqp-hero__title {
    top: 26.6%;
    left: 9.5%;
    width: 86%;
    font-size: clamp(56px, 19.4vw, 88px);
    line-height: .92;
  }

  .bqp-hero__statement {
    top: 63.5%;
    left: 33.5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 60%;
  }

  .bqp-hero__statement-line {
    flex: 0 0 auto;
    width: 30px;
    height: 1px;
  }

  .bqp-hero__statement p {
    max-width: 14em;
    font-size: clamp(13px, 3.7vw, 15px);
    letter-spacing: .2em;
    line-height: 1.9;
    white-space: normal;
  }

  .bqp-hero__crumb {
    left: 33.5%;
    bottom: auto;
    top: 79%;
  }

  .bqp-hero__crumb-top {
    font-size: 12px;
    letter-spacing: .28em;
  }

  .bqp-hero__crumb-rule {
    width: 34px;
    margin: 12px 0 13px;
  }

  .bqp-hero__crumb-name {
    font-size: clamp(8px, 2.3vw, 9px);
    letter-spacing: .14em;
    white-space: nowrap;
  }

  .bqp-hero__scroll {
    right: auto;
    left: 50%;
    bottom: 7.3%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: .4em;
  }

  .bqp-hero__scroll::after {
    top: 26px;
    height: max(24px, calc(7.3svh - 18px));
  }

  .bqp-intro { padding-top: 88px; }

  .bqp-intro__inner {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .bqp-hall__head { padding-top: 72px; }

  .bqp-card figcaption { padding-top: 12px; }

  .bqp-card__media { cursor: default; }

  /* SP entrance: photo wipes open left-to-right while settling from a slight zoom */
  .bqp-card.bqp-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bqp-card .bqp-card__media {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.05s cubic-bezier(.22, 1, .36, 1);
  }

  .bqp-card .bqp-card__media img {
    transform: scale(1.12);
    transform-origin: 60% 50%;
    transition: transform 1.5s cubic-bezier(.22, 1, .36, 1);
  }

  .bqp-card.on .bqp-card__media { clip-path: inset(0 0 0 0); }

  .bqp-card.on .bqp-card__media img { transform: none; }

  .bqp-card figcaption {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .8s ease .3s, transform .8s cubic-bezier(.22, 1, .36, 1) .3s;
  }

  .bqp-card.on figcaption {
    opacity: 1;
    transform: none;
  }

  .bqp-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bqp-atmosphere__shadow { opacity: .27; }

  .bqp-atmosphere__shadow-sticky {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, #000 27%, rgba(0, 0, 0, .65) 100%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, #000 27%, rgba(0, 0, 0, .65) 100%);
  }

  .bqp-atmosphere__shadow img {
    top: -4%;
    bottom: -4%;
    height: 108%;
    object-position: 61% 44%;
    filter: contrast(.88) brightness(1.07);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 26%, #000 54%);
            mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 26%, #000 54%);
  }

  .bqp-note { margin-bottom: 96px; }

  .bqp-rv-d1 { transition-delay: 0s; }

}

@media (prefers-reduced-motion: reduce) {
  .bqp-hero__scroll::after { animation: none; }
  .bqp-atmosphere__shadow img { animation: none; transform: none; will-change: auto; }
  .bqp-rv { opacity: 1; transform: none; transition: none; }
  .bqp-card__media img { transition: none; transform: none; }
  .bqp-card .bqp-card__media { clip-path: none; transition: none; }
  .bqp-card figcaption { opacity: 1 !important; transform: none !important; transition: none !important; }
}
