/***** 設定 *****/
:root {
  /* 左右カーテンが占有する横幅。画面幅に応じて自動調整します。 */
  --curtain-width: clamp(84px, 12vw, 260px);
  --content-safe-space: clamp(94px, 17vw, 285px);
}

/***** 共通 *****/
.primary * {
  box-sizing: border-box;
}

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


/***** ページとセクション *****/
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.sidebar { display: none;}

.primary  {
  margin: 0;
  padding: 0;
  color: #fff6e7;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  overflow-x: clip;
}

/* 上部にライン */
.section.is_movie,
.section.is_history,
.section.is_event,
.section.is_gratitude {
  border-top: 1px solid #c9983e;
}

/* セクションタイトルとキャプション */
.section-title,
.section-caption {
  display: inline-block;
  width: 100%;
  font-size: 80px;
  font-style: italic;
  font-weight: bold;
  text-align: center;
  font-feature-settings: "palt";
  letter-spacing: 0.15em;
  background: linear-gradient(180deg, #f5d082 0%, #fce87a 26%, #ffed8d 51%,#dab75e 62%,#f7d963 92%,#ffbd54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.9;
  filter: 
    drop-shadow(1px 1px 0 #625421)
    drop-shadow(0 0 4px rgba(49, 0, 0, 1))
    drop-shadow(0 0 12px rgba(49, 0, 0, 0.5));
}

.section-caption {
  margin-top: 20px;
  font-size: 30px;
  letter-spacing: .1em;
}



/***** カーテン関連 *****/
.curtain-area {
  position: relative;
  isolation: isolate;
  padding-top: 79px;
  background: #090202;
}

.curtain-common {
  position: sticky;
  top: 79px;
  z-index: 11;
  height: calc(100svh - 79px);
  margin-bottom: calc(-100svh + 79px);
  pointer-events: none;
  overflow: hidden;
}

.curtain-side {
  position: absolute;
  top: -1%;
  width: var(--curtain-width);
  height: 102%;
  object-fit: fill;
  filter:
    drop-shadow(0 0 14px rgb(0 0 0 / 75%))
    drop-shadow(0 0 24px rgb(92 0 3 / 35%));
  user-select: none;
}
.curtain-side.is_left {
  left: 0;
}
.curtain-side.is_right {
  right: 0;
  transform: scaleX(-1);
}



/***** メインビジュアル *****/
.hero {
  position: relative;
  height: calc(100svh - 79px);
  min-height: calc(100svh - 79px);
  overflow: hidden;
}

.hero__image,
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__image {
  z-index: 12;
}
.hero__image.is_behind {
  z-index: 10;
}
.hero__bg {
  z-index: 1;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgb(0 0 0 / 58%) 0,
      transparent 19%,
      transparent 81%,
      rgb(0 0 0 / 58%) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 62%) 0, transparent 17%);
  pointer-events: none;
  z-index: 2;
}

.scroll-guide {
  position: absolute;
  z-index: 13;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff4d0;
  font-size: 10px;
  letter-spacing: .34em;
  text-shadow: 0 2px 8px #000;
}

.scroll-guide i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: rgb(255 236 180 / 25%);
}
.scroll-guide i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #fff0a6, transparent);
  animation: scrollLine 1.7s ease-in-out infinite;
}

@keyframes scrollLine {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}



/***** 25周年記念動画 *****/
.section.is_movie {
  scroll-snap-align: start;
  position: relative;
  min-height: 120svh;
  background: #030100;
}

.section.is_movie .section__inner {
  position: sticky;
  top: 79px;
  width: 100%;
  height: calc(100svh - 79px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgb(102 38 12 / 35%),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      #160503 0%,
      #070202 55%,
      #110302 100%
    );
}

.movie-curtain-top {
  position: absolute;
  z-index: 12;
  top: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  margin: 0;
  padding: 0;
  background-image: url("https://assets.angel-live.com/common/event/img/25th_anniversary/curtain_top.png");
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 150px;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 72%));
  pointer-events: none;
}

.section.is_movie .section-caption {
  font-size: 20px;
}

.movie-wrap {
  position: relative;
  z-index: 15;
  width: min(854px, calc(100% - var(--content-safe-space) - var(--content-safe-space)));
  padding-top: 220px;
  padding-bottom: clamp(150px, 24svh, 255px);
  text-align: center;
}

.movie-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 30px;
}

.movie__seat {
  position: absolute;
  z-index: 14;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(140px, 25svh, 280px);
  object-fit: fill;
  object-position: bottom;
  filter: drop-shadow(0 -18px 22px rgb(0 0 0 / 72%));
  pointer-events: none;
}



/***** 25周年のあゆみ *****/
.section.is_history {
  --history-bg-y: 0px; /* JSがこの値を書き換え、背景だけをゆっくり動かす */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 120svh;
  padding-top: 100px;
  padding-bottom: 100px;
  background: #0c0202;
}

/* 視差効果の背景 */
.section.is_history::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;

  background-image: url("https://assets.angel-live.com/common/event/img/25th_anniversary/history_bg.webp");
  background-repeat: repeat;
  background-position: center var(--history-bg-y);
  background-size: 768px 512px;

  will-change: background-position;
  pointer-events: none;
}

.section.is_history::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.section.is_history > * {
  position: relative;
  z-index: 2;
}

.section.is_history .section-title {
  letter-spacing: 0.08em;
}

.history {
  margin-top: 40px;
  width: min(1498px, calc(100% - 40px));
  box-shadow: 0 0 30px rgba(219, 184, 95, 0.2);
}

@media screen and (max-width: 1280px) {
  .section.is_history .section-title {
    font-size: 60px;
  }
}



/***** イベント一覧 *****/
.section.is_event {
  padding-top: 70px;
  padding-bottom: 80px;
  background:
    url("https://assets.angel-live.com/common/event/img/25th_anniversary/event_bg.png") repeat,
    radial-gradient(circle at 50% 20%, rgb(162 66 21 / 20%), transparent 34%),
    linear-gradient(180deg, #2a0908, #0d0303);
  background-blend-mode: multiply;
  text-align: center;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 65px 50px;
  max-width: 1090px;
  list-style-type: none;
  margin: 80px auto 0;
}

@media screen and (min-width: 1700px) {
  .event-list {
      max-width: 1660px;
  }
}

.event {
  display: flex;
  font-family: initial;
  transition: .1s ease;
}
.event:hover {
  filter: brightness(104%);
}

.event-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 520px;
  padding: 41px 20px 20px;
  background: linear-gradient(#440307,#290306);
  border-radius: 9px;
  box-shadow: 
    0 0 15px rgba(255,191,0,0.1) inset,
    0 2px 8px #120101;
  transition: all 300ms 0s ease;
}
.event-link::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(#bc9079, #7b4511);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.event-link:link,
.event-link:visited {
  text-decoration: none;
  color: inherit;
}
.event-link:hover {
  text-decoration: inherit;
}

.event-time {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 38px;
  border-radius: 19px;
  background: linear-gradient(to right, #c47a23 10%, #f1ce64 21%, #eccb66 31%, #dbb455 41%, #d4b463 50%, #f6df92 62%, #ffde72 80%, #c47a23 90%);
  box-shadow: 
    0 0 4px rgba(255,247,116,0.5) inset,
    0 1px 0 #926f0f;
  font-size: 19px;
  font-weight: bold;
  line-height: 38px;
  letter-spacing: 0.1em;
  color: #442108;
  text-shadow: -1px -1px 0 #f3d886;
}
.event-time::before {
  content: "";
  position: absolute;
  inset: 1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(#c3a261, #ffebb8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.event-banner {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

.event-summary {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
}

.event-detail {
  width: 208px;
  height: 46px;
  margin: auto auto 0;
  border: 2px solid #7c4815;
  background: linear-gradient(#320202, #490a09);
  box-shadow: 
    0 -5px 5px rgba(255,191,0,0.15) inset,
    0 2px 6px rgba(18,1,1,0.5);
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  line-height: 42px;
  color: #e0c162;
}

/* リンク未設置 */
.event.is_soon:hover {
  filter: none;
}
.event-link.is_disabled {
  pointer-events: none;
}
.event.is_soon .event-detail {
  background: #320202;
  box-shadow: none;
  border: 2px solid #490a09;
  color: #633;
}



/***** ご挨拶 *****/
.section.is_gratitude {
  padding: 10px;
  background: #9f733e;
}
.section.is_gratitude .section__inner {
  position: relative;
  padding-top: 80px;
  padding-bottom: 100px;
  background:
    url("https://assets.angel-live.com/common/event/img/25th_anniversary/gratitude_bg.webp") center / 100% 100% no-repeat,
    radial-gradient(circle at 50% 20%, rgb(163 115 70 / 20%), transparent 30%),
    #e0cba9;
  background-blend-mode:
    lighten,
    normal;
  box-shadow: 0 2px 10px rgba(132,94,41,0.5);
}
.section.is_gratitude .section__inner::before {
  content: "";
  position: absolute;
  inset: 6px 5px;
  
  border: 72px solid transparent;
  border-image-source: url("https://assets.angel-live.com/common/event/img/25th_anniversary/gratitude_frame.png");

  /* 元画像を上下左右72pxの位置で分割 */
  border-image-slice: 72;
  /* Web上で表示する四隅のサイズ */
  border-image-width: 72px;
  /* 上下左右の線を引き伸ばす */
  border-image-repeat: stretch;

  pointer-events: none;
}

.section.is_gratitude .section-title,
.section.is_gratitude .section-caption {
  font-weight: normal;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #8b5c23;
  filter: none;
}
.section.is_gratitude .section-title {
  font-size: 70px;
}
.section.is_gratitude .section-caption {
  font-size: 20px;
}

.gratitude {
  width: calc(100% - 60px);
  margin: 60px auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
  color: #3a2f29;
  letter-spacing: 0.06em;
}

@media screen and (max-width: 1280px) {
  .section.is_gratitude .section-title {
    font-size: 60px;
  }
}