:root {
  --color-bg: #f7f7f8;
  --color-text: #010134;
  --color-muted: #666666;
  --color-accent: #d8486b;
  --color-secondary: #ffa9bd;
  --color-band: rgba(255, 158, 188, 0.38);
  --side-space: clamp(22px, 6vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

.firstView {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  isolation: isolate;
}

.firstView_visual {
  position: relative;
  min-height: 100svh;
}

.firstView_badge {
  position: absolute;
  z-index: 8;
  top: 4.8vh;
  left: 0;
  width: 78px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.18) 0 1px,
      transparent 1px 3px
    ),
    rgba(255, 169, 189, 0.34);
  border-radius: 0;
}

.firstView_mark {
  position: absolute;
  z-index: 8;
  top: 20px;
  right: 16.6vw;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: var(--color-text);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  text-align: center;
}

.firstView_mark::before {
  content: "";
  position: absolute;
  top: -20px;
  width: 112px;
  height: 9px;
  background: var(--color-text);
}

.firstView_mark strong {
  transform: rotate(26deg);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  border-radius: 999px;
}

.firstView_mark span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%) rotate(-28deg);
  bottom: auto;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.firstView_band {
  position: absolute;
  left: 0;
  width: min(78vw, 1500px);
  height: clamp(170px, 18.9vh, 240px);
  border: 0;
  border-radius: 0;
  will-change: transform;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
}

.firstView_band-behind {
  z-index: 1;
  top: calc(42% - 22px);
  background: var(--color-band);
}

.firstView_band-overlay {
  z-index: 4;
  top: 42%;
  background: var(--color-band);
  mix-blend-mode: normal;
}

.firstView_image {
  position: absolute;
  z-index: 3;
  top: 48.4%;
  left: 49.5%;
  width: min(56vw, 1110px);
  margin: 0;
  transform: translate(-50%, -50%) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  will-change: transform;
}

.fossil {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.88;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 24px rgba(1, 1, 52, 0.07));
}

.fossil-shadow {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 9%;
  bottom: 4%;
  height: 9%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(1, 1, 52, 0.18), transparent 68%);
  filter: blur(10px);
}

.firstView_text {
  position: absolute;
  z-index: 5;
  top: 65.2%;
  right: 20.5vw;
  max-width: 520px;
  margin: 0;
  color: var(--color-text);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(15px, 1.06vw, 20px);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.02em;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.firstView_hello {
  position: absolute;
  z-index: 6;
  left: 15vw;
  bottom: 10.6vh;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(18px, 1.15vw, 22px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  will-change: transform;
  transform: rotate(90deg) translate3d(0, var(--parallax-y, 0), 0);
  transform-origin: left center;
}

.firstView_hello::before {
  content: "";
  width: 132px;
  height: 1px;
  background: var(--color-text);
}

.firstView_quote {
  position: absolute;
  z-index: 6;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.firstView_quote p {
  display: inline;
  margin: 0;
  padding: 0 4px;
  font-size: clamp(20px, 1.2vw, 24px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.18);
}

.firstView_quote span {
  position: relative;
  display: block;
  margin-top: 18px;
  padding-left: 76px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 0.92vw, 18px);
  font-style: italic;
  letter-spacing: 0.06em;
}

.firstView_quote span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 62px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.firstView_quote-b {
  left: 1.2vw;
  top: 48.8%;
  bottom: auto;
}

.firstView_quote i {
  position: absolute;
  left: clamp(260px, 15vw, 290px);
  bottom: -5px;
  width: clamp(330px, 20vw, 390px);
  height: 28px;
  background: repeating-linear-gradient(
    75deg,
    rgba(1, 1, 52, 0.28) 0 1px,
    transparent 1px 4px
  );
}

@media (max-width: 1024px) {
  .firstView_mark {
    right: clamp(96px, 16vw, 180px);
  }

  .firstView_image {
    width: min(78vw, 920px);
  }

  .firstView_text {
    right: clamp(72px, 9vw, 120px);
  }
}

@media (max-width: 768px) {
  .firstView_visual {
    min-height: 620px;
  }

  .firstView_badge {
    top: 28px;
  }

  .firstView_mark {
    top: 24px;
    right: 24px;
  }

  .firstView_image {
    top: 45%;
    left: 50%;
    width: min(112vw, 720px);
  }

  .firstView_band {
    left: -10vw;
    width: 112vw;
    height: 150px;
  }

  .firstView_quote {
    display: none;
  }

  .firstView_text {
    top: 70%;
    right: 0;
    max-width: 330px;
    padding: 0 20px;
    font-size: 17px;
  }

  .firstView_hello {
    left: 32px;
    bottom: 42px;
  }
}

@media (max-width: 480px) {
  .firstView_visual {
    min-height: 560px;
  }

  .firstView_mark {
    transform: scale(0.82);
    transform-origin: top right;
  }

  .firstView_image {
    width: 128vw;
  }

  .firstView_text {
    top: 71%;
    left: 18px;
    right: 18px;
    max-width: none;
    padding: 0;
  }

  .firstView_hello {
    font-size: clamp(48px, 18vw, 84px);
  }

}

.gallery-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #f7f5ef;
  color: var(--color-text);
}

.section-index {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 0;
  min-width: 78px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(1, 1, 52, 0.42);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 18px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(216, 72, 107, 0.13) 0 1px,
      transparent 1px 3px
    ),
    rgba(255, 255, 255, 0.28);
}

.page-title,
.gallery-panel h2,
.contact-block h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.section-label,
.cell-kicker,
.item-type,
.gallery-button,
.contact-center {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  letter-spacing: 0.12em;
}

.features-section {
  display: grid;
  place-items: center;
  padding: clamp(80px, 8vw, 120px) var(--side-space);
}

.features-grid {
  width: min(72vw, 980px);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border-top: 1px solid rgba(1, 1, 52, 0.18);
  border-left: 1px solid rgba(1, 1, 52, 0.18);
  background: rgba(255, 255, 255, 0.2);
}

.feature-cell {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(1, 1, 52, 0.18);
  border-bottom: 1px solid rgba(1, 1, 52, 0.18);
}

.feature-copy p {
  margin: 12px 0 0;
  color: rgba(1, 1, 52, 0.72);
  font-size: clamp(13px, 0.88vw, 16px);
  line-height: 1.9;
}

.cell-kicker {
  color: rgba(1, 1, 52, 0.48);
  font-size: 13px;
  text-transform: uppercase;
}

.feature-empty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent),
    rgba(255, 255, 255, 0.12);
}

.feature-mark {
  align-items: center;
  color: rgba(1, 1, 52, 0.18);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(22px, 2.4vw, 40px);
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.feature-link,
.shop-link {
  align-items: flex-start;
  color: var(--color-text);
  transition: background 0.35s ease, color 0.35s ease;
}

.feature-link span {
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.2;
}

.feature-link small,
.shop-link {
  margin-top: 10px;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(16px, 1vw, 20px);
  letter-spacing: 0.08em;
}

.feature-link:hover,
.shop-link:hover {
  color: #ffffff;
  background: var(--color-band);
}

.page-title {
  position: absolute;
  right: var(--side-space);
  bottom: clamp(24px, 4vw, 56px);
  color: rgba(1, 1, 52, 0.16);
  font-size: clamp(56px, 10vw, 168px);
  pointer-events: none;
}

.slider-section {
  display: grid;
  min-height: 80vh;
  background: #f8f6f0;
}

.artist-slider {
  grid-template-columns: 31.75vw 31.75vw 36.5vw;
}

.artwork-detail-slider {
  grid-template-columns: 36.5vw 63.5vw;
}

.plants-slider {
  grid-template-columns: 36.5vw 31.75vw 31.75vw;
}

.plants-detail-slider {
  grid-template-columns: 63.5vw 36.5vw;
}

.gallery-panel {
  position: relative;
  min-width: 0;
  min-height: 80vh;
  margin: 0;
  border-left: 1px solid rgba(1, 1, 52, 0.14);
  transition: opacity 0.44s ease, transform 0.54s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-panel:first-of-type {
  border-left: 0;
}

.gallery-panel.is-exiting[data-exit="left"] {
  opacity: 0;
  transform: translateX(-42px);
}

.gallery-panel.is-exiting[data-exit="up"] {
  opacity: 0;
  transform: translateY(-42px);
}

.image-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(1, 1, 52, 0.04)),
    var(--panel-bg, #e8e2d8);
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.image-panel::after {
  content: attr(data-title);
  position: absolute;
  left: clamp(22px, 2.6vw, 46px);
  bottom: clamp(22px, 3vw, 54px);
  max-width: 72%;
  color: rgba(1, 1, 52, 0.5);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(20px, 2vw, 38px);
  line-height: 1;
}

.text-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 96px);
  background: rgba(255, 255, 255, 0.32);
}

.section-label {
  margin: 0 0 34px;
  color: rgba(1, 1, 52, 0.58);
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 600;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-transform: uppercase;
}

.gallery-panel h2,
.contact-info h2 {
  margin-bottom: 18px;
  color: rgba(1, 1, 52, 0.72);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.12em;
}

.item-type {
  margin: 0 0 28px;
  color: rgba(1, 1, 52, 0.46);
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1.8;
  letter-spacing: 0.14em;
}

.item-description,
.contact-info p {
  max-width: 520px;
  margin: 0 0 40px;
  color: rgba(1, 1, 52, 0.62);
  font-size: clamp(13px, 0.82vw, 16px);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.14em;
}

.gallery-button {
  width: min(260px, 100%);
  min-height: 62px;
  padding: 0 28px;
  color: #ffffff;
  background: rgba(1, 1, 52, 0.58);
  border: 1px solid rgba(1, 1, 52, 0.04);
  border-radius: 0;
  cursor: pointer;
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.gallery-button:hover {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact-section {
  min-height: 100vh;
  padding: clamp(52px, 5vw, 86px) var(--side-space) clamp(80px, 8vw, 128px);
  background: #f8f8f7;
}

.contact-center {
  width: min(760px, 100%);
  margin: 0 auto;
  color: rgba(1, 1, 52, 0.58);
  text-align: center;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.18em;
}

.contact-lead {
  margin: 0 0 28px;
}

.contact-intro {
  max-width: 760px;
  margin: 0 auto 28px;
}

.contact-url {
  display: inline-block;
  color: rgba(1, 1, 52, 0.34);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  letter-spacing: 0.18em;
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: clamp(54px, 7vw, 96px) auto clamp(58px, 8vw, 108px);
  color: rgba(1, 1, 52, 0.58);
  font-size: 26px;
  line-height: 1;
}

.contact-block {
  margin: 0 auto clamp(54px, 6vw, 84px);
}

.contact-block h3 {
  width: fit-content;
  margin: 0 auto 28px;
  color: rgba(1, 1, 52, 0.62);
  font-size: clamp(13px, 0.82vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.contact-block p,
.contact-footnote {
  margin: 0 0 8px;
}

.contact-block a {
  color: rgba(1, 1, 52, 0.34);
}

.contact-footnote {
  margin-top: clamp(44px, 5vw, 72px);
}

@media (max-width: 900px) {
  .features-grid {
    width: min(92vw, 760px);
  }

  .artist-slider,
  .artwork-detail-slider,
  .plants-slider,
  .plants-detail-slider {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    min-height: auto;
  }

  .image-panel {
    min-height: 58vh;
  }

  .text-panel {
    min-height: 64vh;
  }

  .plants-detail-slider .image-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .features-grid {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }

  .feature-cell {
    min-height: 180px;
  }

  .feature-empty {
    min-height: 90px;
  }

  .page-title {
    display: none;
  }

}
