/* =====================================================================
 *  うますぎ一本杉 暖簾オープニング（WordPress テーマ統合版）
 *  くぐった先の背後コンテンツはイベントページ本体そのもの。
 *  暖簾ステージはページ全面を覆う position:fixed オーバーレイ。
 * ===================================================================== */

/* ===== 暖簾ステージ（WebGLオーバーレイ）===== */
#noren-stage {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  /* 背景は透明：のれんの裏で再生しているストーリーズ動画を、布の隙間・裾の下から見せる。
     （のれんは“動画の前に掛かった布”として振る舞う） */
  background: transparent;
  transition: opacity .8s ease;
}
#noren-stage.is-gone {
  opacity: 0;
  pointer-events: none;
}
#noren-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#noren-sub {
  position: absolute;
  top: clamp(34px, 8vh, 72px);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
  color: #2c4a5e;
  font-family: 'Hiragino Mincho ProN', serif;
  letter-spacing: .36em;
  font-size: clamp(.7rem, 2.3vw, .95rem);
  text-shadow: 0 1px 3px rgba(255, 255, 255, .5);
  transition: opacity .5s;
}

/* WELCOMEボタン */
#enter-button {
  position: fixed;
  left: 50%;
  bottom: clamp(36px, 9vh, 80px);
  transform: translateX(-50%);
  z-index: 20001;
  width: clamp(116px, 15vw, 156px);
  height: clamp(116px, 15vw, 156px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  color: #2c4a5e;
  font-family: 'Hiragino Mincho ProN', serif;
  font-weight: bold;
  letter-spacing: .14em;
  font-size: clamp(13px, 1.6vw, 16px);
  background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(44, 74, 94, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 34px rgba(60, 70, 60, .28);
  transition: background-color .6s cubic-bezier(.215, .61, .355, 1), box-shadow .4s, opacity .8s, transform .8s;
}
#enter-button:hover {
  background: rgba(44, 74, 94, .14);
  box-shadow: 0 8px 0 rgba(60, 70, 60, 0);
}
#enter-button .label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
}
#enter-button .label small {
  font-size: .62em;
  letter-spacing: .2em;
  opacity: .85;
  font-weight: normal;
}

.hint-blink {
  animation: n-blink 2.6s ease-in-out infinite;
}
@keyframes n-blink {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
#noren-stage.is-entering #noren-sub {
  opacity: 0;
}

/* ===== CSSフォールバック（WebGL不可/視差低減）===== */
#noren-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}
#noren-fallback .fp {
  position: absolute;
  top: 0;
  height: 78%;
  width: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #ffffff, #f7f3ea 60%, #efe8d9);
  box-shadow: inset 0 -44px 50px rgba(0, 0, 0, .06);
  transition: transform 1s cubic-bezier(.7, 0, .2, 1);
}
#noren-fallback .fp--l {
  left: 0;
  transform-origin: top left;
}
#noren-fallback .fp--r {
  right: 0;
  transform-origin: top right;
}
#noren-stage.is-entering #noren-fallback .fp--l {
  transform: translateX(-108%) rotate(-2deg);
}
#noren-stage.is-entering #noren-fallback .fp--r {
  transform: translateX(108%) rotate(2deg);
}
#noren-fallback img {
  width: 78%;
  max-width: 520px;
  margin-top: 16%;
}
#noren-fallback .fp--l img {
  margin-left: 50%;
}
#noren-fallback .fp--r img {
  margin-right: 50%;
}
