* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff9fc;
}

html {
  scroll-behavior: smooth;
  background: #fff9fc;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: #fff9fc;
  touch-action: pan-y;
}

.text-center {
  left: 50% !important;
  transform: translateX(-50%);
  white-space: nowrap;
}

.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 64px;
  background-color: #452b1d;
  z-index: 1000;
  max-width: 430px;
  /* 薄いグレーのドロップシャドウ */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.header__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-sizing: border-box;
}

/* 左：rom&nd */
.header__brand img {
  width: 160px;
  height: auto;
  display: block;
  max-width: 64px;
}

/* 中央：Dear Bestie */
.header__main-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header__main-logo img {
  display: block;
  width: auto;
  height: 49px;
  max-width: 100%;
}

/* 右：ハンバーガー */
.header__menu {
  width: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header__menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f4b7c9;
  border-radius: 10px;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  background: #f7d9e7;
}

.design-canvas {
  position: relative;
  width: 100%;
}

.main-canvas {
  overflow-anchor: none;
}

.visual-layer {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.main-canvas.is-accordion-ready > .visual-layer {
  visibility: hidden;
}

.visual-slices {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.visual-slice {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-image: url("assets/main-visual.png?v=20260827-1");
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.accordion-toggle {
  position: absolute;
  left: 5%;
  z-index: 5;
  width: 90%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.accordion-toggle::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  color: #e87ca8;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  content: "+";
}

.accordion-toggle[aria-expanded="true"] {
  left: auto;
  right: 5%;
  width: 40px;
}

.accordion-toggle[aria-expanded="true"]::after {
  content: "−";
}

.accordion-toggle:focus-visible {
  outline: 2px solid rgba(232, 124, 168, 0.85);
  outline-offset: 2px;
}

.text-layer-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.venue-map {
  position: absolute;
  top: 50.78297%;
  left: 6.977%;
  width: 86.047%;
  height: 1.06674%;
  z-index: 3;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: auto;
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-shot {
  position: absolute;
  left: 10%;
  width: 80%;
  z-index: 3;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  pointer-events: none;
}

.product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-shot-mega {
  top: 78.173%;
  height: 0.91496%;
}

.product-shot-tint {
  top: 80.05676%;
  height: 0.92475%;
}

.product-shot-palette {
  top: 81.9405%;
  height: 0.91986%;
}

.figma-text {
  font-family: "Noto Sans JP", sans-serif;
  position: absolute;
  margin: 0;
  padding: 0;
  line-height: normal;
  white-space: nowrap;
  letter-spacing: normal;
  text-rendering: geometricPrecision;
  transform-origin: top left;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

/* typography variants */
.ft-brown {
  color: #593d30;
  font-weight: 400;
}

.ft-brown-bold {
  color: #593d30;
  font-weight: 700;
}

.ft-pink {
  color: #e87ca8;
  font-weight: 400;
}

.ft-pink-bold {
  color: #e87ca8;
  font-weight: 700;
}

.ft-white-bold {
  color: #ffffff;
  font-weight: 700;
}

.ft-dark {
  color: #452b1d;
  font-weight: 400;
}

.ft-dark-bold {
  color: #452b1d;
  font-weight: 700;
}

.ft-gray-bold {
  color: #777;
  font-weight: 700;
}

.ft-dark-alt {
  color: #442b1d;
  font-weight: 400;
}

.ft-blush-bold {
  color: #f5bfca;
  font-weight: 700;
}

.ft-poppins {
  font-family: "Poppins", sans-serif;
}

.event-period {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
}

.ft-inter {
  font-family: "Inter", sans-serif;
}

.hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hotspot:focus-visible,
.menu-hotspots a:focus-visible {
  outline: 3px solid rgba(232, 124, 168, 0.85);
  outline-offset: -3px;
}

.menu-open {
  top: 0;
  right: 0;
  width: 17%;
  height: 0.38242%;
}

.event-card {
  left: 8%;
  width: 84%;
  height: 0.62394%;
}

.event-card-1 {
  top: 5.08212%;
}
.event-card-2 {
  top: 5.77651%;
}
.event-card-3 {
  top: 6.46084%;
}
.event-card-4 {
  top: 7.16529%;
}

.special-card {
  top: 7.8798%;
  left: 11%;
  width: 78%;
  height: 0.5535%;
}

.campaign-social-link {
  left: 6.5%;
  width: 87%;
  height: 0.18114%;
  border-radius: 8px;
}

.campaign-x-link {
  top: 10.9794%;
}

.campaign-instagram-link {
  top: 11.23099%;
}

.receipt-campaign-link {
  top: 36.30949%;
  left: 3%;
  width: 94%;
  height: 0.5%;
  border-radius: 14px;
}

.sns-items-link {
  top: 54.20052%;
  left: 3.7%;
  width: 92.6%;
  height: 0.62394%;
  border-radius: 14px;
}

.event4-social-link {
  left: 9.8%;
  width: 79.6%;
  height: 0.16102%;
  border-radius: 8px;
}

.event4-x-link {
  top: 62.48287%;
}

.event4-instagram-link {
  top: 62.74453%;
}

#event-1,
#event-2,
#event-3,
#event-4,
#special-items,
#product-lineup,
#rules {
  scroll-margin-top: 80px;
}

.section-marker {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.overlay[hidden] {
  display: none;
}

.overlay-canvas {
  flex: 0 0 auto;
  width: min(100vw, 430px);
}

.intro-overlay {
  background: #160c08;
  z-index: 2000;
}

.menu-overlay {
  background: #f6d6e4;
  z-index: 1001;
}

.intro-action {
  left: 19.8%;
  top: 81.8%;
  width: 60.5%;
  height: 9.2%;
  border-radius: 999px;
}

.intro-action:active {
  background: rgba(255, 255, 255, 0.1);
}

.menu-close {
  top: 1.2%;
  right: 2%;
  width: 17%;
  height: 8%;
}

.menu-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.menu-hotspots a {
  position: absolute;
  left: 11%;
  width: 78%;
  display: block;
  border-radius: 8px;
}

.social-link {
  top: 89%;
  width: 12%;
  height: 8%;
}

.instagram-link {
  left: 37%;
}
.x-link {
  left: 52%;
}

/*フッター*/

.footer-event-links {
  position: absolute;
  top: 99.18485%;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 12px;

  white-space: nowrap;
}

.footer-event {
  top: 99.19491%;
  height: 0.10064%;
  z-index: 20;
  pointer-events: auto;
}

.footer-event-1 {
  left: 21%;
  width: 14%;
}

.footer-event-2 {
  left: 35%;
  width: 14%;
}

.footer-event-3 {
  left: 50%;
  width: 14%;
}

.footer-event-4 {
  left: 64%;
  width: 14%;
}

.footer-sub {
  top: 99.36599%;
  height: 0.10064%;
  z-index: 20;
  pointer-events: auto;
}

.footer-special {
  left: 24%;
  width: 26%;
}

.footer-rules {
  left: 50%;
  width: 25%;
}

.footer-social {
  position: absolute;
  top: 99.56726%;
  height: 0.15095%;
  z-index: 20;
  pointer-events: auto;
}

.footer-instagram {
  left: 42%;
  width: 7%;
}

.footer-x {
  left: 51.8%;
  width: 6%;
}

.event3-guide {
  position: absolute;
  left: 0;
  z-index: 3;
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
}

.event3-guide-gap {
  background: #fff0f7;
  padding-top: calc(48 / 430 * 100%);
}

.event3-guide-sheet {
  position: relative;
}

.event3-guide img {
  display: block;
  width: 100%;
  height: auto;
}

.event3-reserve {
  position: absolute;
  top: 24.582207%;
  left: 6.976744%;
  z-index: 2;
  width: 86.046512%;
  height: 1.534729%;
  pointer-events: auto;
  cursor: pointer;
}

.event3-reserve:focus-visible {
  outline: 3px solid rgba(232, 124, 168, 0.85);
  outline-offset: 2px;
}

.event-faq {
  position: absolute;
  left: 0;
  z-index: 6;
  width: 100%;
  visibility: hidden;
  background: #fff;
  pointer-events: auto;
}

.event-faq-item {
  border-bottom: 0;
}

.event-faq-toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: calc(52px * var(--faq-scale, 1));
  margin: 0;
  padding: 0 calc(5% + 40px) 0 7.2%;
  border: 0;
  appearance: none;
  background: transparent;
  color: #593d30;
  font-family: "Noto Sans JP", sans-serif;
  font-size: calc(13px * var(--faq-scale, 1));
  font-weight: 700;
  line-height: calc(19px * var(--faq-scale, 1));
  text-align: left;
  cursor: pointer;
}

.event-faq-toggle::after {
  position: absolute;
  top: 0;
  right: 5%;
  width: 40px;
  color: #e87ca8;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  content: "+";
}

.event-faq-toggle[aria-expanded="true"]::after {
  content: "−";
}

.event-faq-toggle:focus-visible {
  outline: 2px solid rgba(232, 124, 168, 0.85);
  outline-offset: 2px;
}

.event-faq-panel {
  padding: 0 7.2% calc(14px * var(--faq-scale, 1));
  color: #593d30;
  font-size: calc(12px * var(--faq-scale, 1));
  line-height: 1.7;
}

.event-faq-panel p {
  margin: 0;
}

/*TOPへ戻るボタン*/

.back-to-top {
  position: fixed;
  left: max(12px, calc(50% - 215px + 12px));
  bottom: 24px;
  z-index: 4;
  display: block;
  width: 57px;
  height: 57px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
}

.back-to-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-to-top:hover {
  transform: scale(1.05);
}

/* スムーズにTOPへ */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
