*{
  padding: 0;
  margin: 0;
}

* {
    box-sizing: border-box;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
  }


  

  #opening-movie {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 99999;
    background: #041126;
    opacity: 1;
    transition: opacity 0.4s ease;
  }
  
  #opening-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  

  #opening-movie.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
  

  #site-content {
    opacity: 0;
  }
  

  #site-content.is-visible {
    opacity: 1;
    transition: opacity 1.2s ease-out;
  }

body {
    position: relative;
    min-height: 100vh;
  
    background-image:
      linear-gradient(
        rgba(4, 17, 38, 0.68),
        rgba(4, 17, 38, 0.68)
      ),
      url("images/haikei.png");
  
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .site-header {
    width: 100%;
    height: 85px;
    padding: 0 5vw;
  
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 70px;
  
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  
    /* bodyと同じ背景画像 */
    background-image:
      linear-gradient(
        rgba(4, 17, 38, 0.68),
        rgba(4, 17, 38, 0.68)
      ),
      url("images/haikei.png");
  
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  }




.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
}


.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
}

.header-nav a {
  color: #fff;
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 18px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 0.6;
}

/* 固定ヘッダー分のスクロール位置を調整 */
html {
  scroll-padding-top: 100px;
}

/* 各セクションの見出しがヘッダーに隠れないようにする */
section {
  scroll-margin-top: 100px;
}



  /* こはな担当 about*/
#countdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

#countdown .countdown-heading {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: 0;
    margin-right: 0;
     font-size: 25px;
    font-weight: 400;
    letter-spacing: 5px;
    margin-top: 100px;
    margin-bottom: 35px;
    color: white;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(25px, 5vw, 75px);
    width: 100%;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.countdown-item .number {
    font-size: clamp(35px, 5vw, 60px);
    letter-spacing: 3px;
    line-height: 1.2;
    font-weight: 400;
    font-variant-numeric: tabular-nums;

    text-shadow:
        0 0 5px #ffffff,
        0 0 10px #0aafe6,
        0 0 20px #0aafe6;
}

.countdown-item .label {
    font-size: 13px;
    letter-spacing: 3px;
    margin-top: 12px;
    white-space: nowrap;
}


#logo{
    text-align: center;
    width:100%;
    height: auto;
    position: relative;
}
#logo img{
    width: 30%;
    height: auto;
    margin-top: 80px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px #ffffff)
}
.about {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 80px;
    color: white;
    text-align: center;
}


.about-heading,
.info-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: #0aafe6;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(10, 175, 230, 0.8);
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 5px;
    color: white;
}


.about-content {
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 0 8%;
}

.about-text {
    text-align: center;
    line-height: 2.5;
}

.about-text h3 {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 2px;
}

.about-text h4 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: 35px;
}
.event-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 100px;

    margin: 120px auto 150px;
    padding: 0 5%;
}

.info-block {
    width: 100%;
    text-align: center;
}

.info-heading {
    text-align: center;
    margin-bottom: 30px;
}

.info-text1 {
    font-size: 35px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 2px;
    color: white;
    margin-top: 40px;
}


.info-text2 {
  font-size: 35px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 2px;
  color: white;
  margin-top: -90px;
}




.cm {
    text-align: center;
    margin: 0 auto 120px;
}
.cm h1 {
    font-size: 30px;
    letter-spacing: 4px;
    color: white;
}

.movie-container {
    width: 60%;
    max-width: 900px;
    margin: 45px auto 0;
}

.movie-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}




/* ことは担当 歴代後夜祭*/

.history {
    width: 100%;
    padding: 100px 0 60px;
    overflow: hidden;
      --navy: #041126;
      --cyan: #0aafe6;
      --cyan-soft: rgba(10, 175, 230, 0.18);
      --line: rgba(255, 255, 255, 0.18);
    }

  
  
  
  .history-titl {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(10, 175, 230, 0.8);
    color: white;
  }

   
  .history-subtitle{
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 5px;
    color: #0aafe6;
  }


  .history-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 25px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.65) transparent;
    touch-action: pan-x;
  }
  
  .history-scroll:active {
    cursor: grabbing;
  }
    
  .history-track {
    display: flex;
    width: max-content;
    position: relative;
  }

  
  .history-set {
    display: flex;
    flex-shrink: 0;
    gap: 45px;
    padding: 0 22.5px;
    position: relative;
  }
  
  .history-set::before {
    content: "";
    position: absolute;
    top: 250px;
    left: 202.5px;
    right: 202.5px;
    height: 2px;
    background: rgba(255,255,255,0.85);
  }
  
  

  
  .history-item {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  
  

  
  .history-logo {
    width: 300px;
    height: 165px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .history-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  

  
  .history-item:nth-child(3) .history-logo img {
    transform: scale(2.3) translateX(-12px);
  }
  


  
  .history-year {
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.3;
    margin: 0 0 55px;
    color: white;
  }
  
  

  
  .history-item::before {
    content: "";
    position: absolute;
    top: 244px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
  }
  
  

  
  .history-photo {
    width: 100%;
    height: 210px;
    margin-top: 0;
    overflow: hidden;
  }
  
  .history-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  
  
  /* HISTORYのスクロールバーを非表示にする */
.history-scroll {
  scrollbar-width: none;
}

.history-scroll::-webkit-scrollbar {
  display: none;
}

  /* かいり担当 団体紹介 */

  
  .performers {
    --navy: #041126;
    --cyan: #0aafe6;
    --cyan-soft: rgba(10, 175, 230, 0.18);
    --line: rgba(255, 255, 255, 0.18);

    width: 100%;
    padding: 100px 0 90px;
    overflow: hidden;
    color: white;
  }

  
  .performers-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 0 6vw;
    margin-bottom: 45px;
  }


  .performers-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(10, 175, 230, 0.8);
  }

  .performers-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 5px;
  }

  .performers-nav {
    display: flex;
    gap: 12px;
  }

  .performers-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  }

  .performers-arrow:hover,
  .performers-arrow:focus-visible {
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(10, 175, 230, 0.6);
    outline: none;
  }

  
  .performers-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 6vw 10px;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .performers-scroll::-webkit-scrollbar {
    display: none;
  }

  .performers-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .performers-track {
    display: flex;
    width: max-content;
  }

  
  .performer-card {
    position: relative;
    width: 320px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    background: rgba(4, 17, 38, 0.35);
    outline: none;

    
    opacity: 0;
    translate: 0 40px;
    transition: background 0.5s ease, transform 0.5s ease;
  }

  .performer-card:first-child {
    border-left: 1px solid var(--line);
  }

  .performers.is-inview .performer-card {
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 0.8s ease var(--delay, 0s),
      translate 0.8s ease var(--delay, 0s),
      background 0.5s ease,
      transform 0.5s ease;
  }


  /* 写真 */
  .performer-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a2233;
  }

  .performer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) brightness(0.85);
    transform: scale(1);
    transition: filter 0.6s ease, transform 0.8s ease;
    -webkit-user-drag: none;
  }

  
  .performer-photo.is-empty img {
    display: none;
  }

  .performer-photo.is-empty::before {
    content: "PHOTO";
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.35);
    background: repeating-linear-gradient(
      45deg,
      #1a2233 0 14px,
      #1f2a3e 14px 28px
    );
  }


  .performer-body {
    position: relative;
    padding: 26px 26px 30px;
  }

  .performer-number {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 10px;
    transition: color 0.4s, text-shadow 0.4s;
  }

  .performer-name {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
  }


  .performer-name.is-multi {
    font-size: 19px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .performer-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), #ffffff, var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    box-shadow: 0 0 14px rgba(10, 175, 230, 0.9);
  }

  .performer-card:hover,
  .performer-card:focus-visible {
    background: linear-gradient(
      180deg,
      rgba(10, 175, 230, 0.28) 0%,
      rgba(4, 17, 38, 0.85) 100%
    );
  }

  .performer-card:hover,
  .performer-card:focus-visible {
    transform: translateY(-10px);
  }

  .performer-card:hover .performer-photo img,
  .performer-card:focus-visible .performer-photo img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
  }

  .performer-card:hover .performer-number,
  .performer-card:focus-visible .performer-number {
    color: var(--cyan);
    text-shadow: 0 0 6px #ffffff, 0 0 14px var(--cyan);
  }

  .performer-card:hover::after,
  .performer-card:focus-visible::after {
    transform: scaleX(1);
  }

  .performers-progress {
    margin: 30px 6vw 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
  }

  .performers-progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--cyan));
    transform: scaleX(0.08);
    transform-origin: left;
    transition: transform 0.15s linear;
  }

  
  

  @media (prefers-reduced-motion: reduce) {
    .performer-card,
    .performer-photo img,
    .performer-card::after {
      transition: none !important;
    }

    .performer-card {
      opacity: 1;
      translate: 0 0;
    }
  }


  /* かめ担当　タイムテーブル */




.timetable {
  width: 100%;
  padding: 80px 0 90px;
  color: white;
  text-align: center;
}

.timetable-heading {
  margin-bottom: 55px;
}

.timetable-list {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 30px;
}



.timetable-row {
  display: grid;
  grid-template-columns: 130px 245px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  padding: 28px 0;
  text-align: left;
}

.timetable-number {
  display: block;
  font-size: 65px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  color: #8bbce0;
  text-align: center;
}

.timetable-stage {
  display: block;
  text-align: center;
}

.timetable-stage h3 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 2px;
  color: white;
  white-space: nowrap;
}

.timetable-stage p {
  display: block;
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #65c9e8;
}

.timetable-content {
  min-width: 0;
  padding: 8px 0 8px 30px;
  border-left: 1px solid rgba(255,255,255,0.65);
  text-align: left;
}

.timetable-content p {
  margin: 0 0 14px;
  color: white;
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  text-shadow: 1px 1px 4px rgba(0,0,0,.9);
}

.timetable-content p:last-child {
  margin-bottom: 0;
}

.timetable-content span {
  display: inline;
  margin: 0 6px;
  color: rgba(255,255,255,.85);
}

.timetable-row:last-child .timetable-number {
  color: #8bbce0;
}

.timetable-row:last-child .timetable-stage p {
  color: #65c9e8;
}


/* 出演団体 */
.timetable-content {
  min-width: 0;
  padding: 8px 0 8px 25px;
  border-left: 1px solid rgba(255,255,255,.65);
  text-align: left;
}

.timetable-content p {
  margin: 0 0 18px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,.9);
}

.timetable-content p:last-child {
  margin-bottom: 0;
}

.timetable-content span {
  display: inline;
  margin: 0 5px;
  color: rgba(255,255,255,.85);
}


.keep-name {
  white-space: nowrap;
}



@media (max-width: 767px) {

  .timetable {
    padding: 65px 0 75px;
  }

  .timetable-heading {
    margin-bottom: 38px;
  }

  .timetable-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .timetable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
    align-items: center;
    padding: 35px 0 42px;
  }

  .timetable-number {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 10px;
    font-size: clamp(48px, 12vw, 55px);
    line-height: 1.2;
    text-align: right;
  }

  .timetable-stage {
    display: contents;
  }

  .timetable-stage h3 {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    font-size: clamp(20px, 5.3vw, 23px);
    line-height: 1.4;
    white-space: nowrap;
  }

  .timetable-stage p {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 18px 0 0;
    text-align: center;
    font-size: clamp(18px, 4.8vw, 21px);
    line-height: 1.5;
  }

  .timetable-content {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 17px 0 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    text-align: center;
  }

  .timetable-content p {
    text-align: center;
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 2;
    letter-spacing: 0;
    margin: 0 0 13px;
    overflow-wrap: anywhere;
  }

  .timetable-content p:last-child {
    margin-bottom: 0;
  }

  .timetable-content span {
    margin: 0 4px;
  }
}


/* 小さめのスマホ */

@media (max-width: 380px) {

  .timetable-list {
    padding: 0 14px;
  }

  .timetable-number {
    font-size: 46px;
  }

  .timetable-stage h3 {
    font-size: 19px;
  }

  .timetable-stage p {
    font-size: 17px;
  }

  .timetable-content p {
    font-size: 13px;
  }

}


.timetable-row:last-child .timetable-number {
  color: #8bbce0;
}

.timetable-row:last-child .timetable-stage h3 {
  color: white;
}

.timetable-row:last-child .timetable-stage p {
  color: #65c9e8;
}







/* 3セクション共通タイトル */

.section-label {
  font-size: 14px;
  letter-spacing: 4px;
  color: #0aafe6;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(10, 175, 230, 0.8);
  text-align: center;
}

.section-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 5px;
  color: white;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}


/* HISTORY */

.history-heading {
  text-align: center;
  margin-bottom: 45px;
}


/* PERFORMERS */
.performers-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 6vw;
}

.performers-heading {
  grid-column: 2;
  text-align: center;
  width: max-content;
  margin: 0;
}

.performers-heading .performers-label,
.performers-heading .performers-title {
  text-align: center;
  margin: 0;
}

.performers-nav {
  grid-column: 3;
  justify-self: end;
}
/* TIME TABLE */

.timetable {
  width: 100%;
  padding: 80px 0 90px;
  color: white;
  text-align: center;
}

.timetable-heading {
  margin-bottom: 55px;
}

.timetable-stage-title {
  margin: 55px 0 30px;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 3px;
  text-align: center;
  color: white;
}

.timetable .content {
  margin-bottom: 45px;
  line-height: 2;
}





/* 花びらの表示エリア */
.petal-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ヘッダーは花びらより前に表示 */
.site-header {
  z-index: 1000;
}

/* メインコンテンツは花びらより前に表示 */
#site-content > main {
  position: relative;
  z-index: 1;
}

/* 花びら */
.petal {
  position: absolute;
  top: -50px;
  height: auto;
  object-fit: contain;
  opacity: var(--petal-opacity);
  animation: petal-fall var(--petal-duration) linear var(--petal-delay) infinite;
  will-change: transform;
}

/* 花びらが落ちる動き */
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(var(--petal-drift), 50vh, 0) rotate(180deg);
  }

  100% {
    transform: translate3d(0, 110vh, 0) rotate(360deg);
  }
}

/* 動きを減らす設定の人には表示しない */
@media (prefers-reduced-motion: reduce) {
  .petal {
    animation: none;
    display: none;
  }
}








@media (max-width: 767px) {


  html {
    scroll-padding-top: 85px;
  }

  body {
    overflow-x: hidden;
  }

  section {
    scroll-margin-top: 85px;
  }

  body {
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      background-attachment: fixed;
    }
  


  .site-header {
    height: 80px;
    padding: 0 16px;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
  }

  .header-logo {
    flex-shrink: 0;
  }

  .header-logo img {
    height: 53px;
    width: auto;
  }

  .header-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 0 1 auto;
    gap: clamp(7px, 2vw, 14px);
    margin: 0;
  }

  .header-nav a {
    font-size: clamp(9px, 2.9vw, 13px);
    letter-spacing: 0.2px;
    white-space: nowrap;
  }


  #logo img {
    width: min(65%, 300px);
    height: auto;
    margin-top: 90px;
    margin-bottom: 25px;
  }


  .section-label,
  .performers-label {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .section-title,
  .performers-title {
    font-size: clamp(37px, 9vw, 42px);
    letter-spacing: 3px;
  }

  #countdown {
    padding: 0 12px;
  }

  #countdown .countdown-heading {
    font-size: clamp(18px, 4.8vw, 23px);
    letter-spacing: 3px;
    margin-top: 50px;
    margin-bottom: 28px;
  }

  .countdown-container {
    width: 100%;
    gap: 0;
    justify-content: space-evenly;
  }

  .countdown-item {
    width: 25%;
    min-width: 0;
  }

  .countdown-item .number {
    font-size: clamp(27px, 7.5vw, 43px);
    letter-spacing: 1px;
  }

  .countdown-item .label {
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 8px;
  }

  .about {
    margin-top: 15px;
    margin-bottom: 60px;
    padding: 0;
  }

  .about-heading,
  .info-heading {
    margin-bottom: 30px;
  }

  .about-content {
    margin-top: 65px;
    margin-bottom: 70px;
    padding: 0 6%;
  }

  .about-text {
    line-height: 2.2;
  }

  .about-text h3 {
    font-size: clamp(14px, 3.8vw, 17px);
    letter-spacing: 0.7px;
  }

  .about-text h4 {
    font-size: clamp(19px, 5vw, 23px);
    letter-spacing: 2px;
    line-height: 1.8;
    margin-top: 30px;
  }


  .event-info {
    gap: 35px;
    margin: 70px auto 85px;
    padding: 0 5%;
  }

  .info-text1,
  .info-text2 {
    font-size: clamp(21px, 5.5vw, 27px);
    line-height: 1.9;
    letter-spacing: 1px;
    margin-top: 0;
  }


  .cm {
    margin-bottom: 80px;
    padding: 0 5%;
  }

  .cm h1 {
    font-size: 23px;
    letter-spacing: 3px;
  }

  .movie-container {
    width: 100%;
    max-width: 520px;
    margin: 28px auto 0;
  }

  .movie-container video {
    width: 100%;
    height: auto;
  }


  .history {
    padding: 65px 0 50px;
    overflow: hidden;
  }

  .history-heading {
    margin-bottom: 40px;
  }

  .history-scroll {
    width: 100%;
    overflow: visible;
    padding: 0;
    cursor: default;
    touch-action: auto;
  }

  .history-track {
    display: block;
    width: 100%;
  }

  .history-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
    padding: 0 18px 0 46px;
  }


  .history-set::before {
    top: 10px;
    bottom: 10px;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: rgba(255,255,255,0.8);
  }


  .history-item {
    width: 100%;
    max-width: 440px;
    margin-bottom: 100px;
    flex-shrink: 0;
  }

  .history-item:last-child {
    margin-bottom: 15px;
  }

  .history-item::before {
    top: 50%;
    left: -23px;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
  }


  .history-logo {
    width: min(90%, 290px);
    height: 155px;
    margin: 0 auto 8px;
  }

  .history-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .history-item:nth-child(3) .history-logo img {
    transform: scale(2.0) translateX(-8px);
  }

  .history-year {
    font-size: clamp(23px, 6.5vw, 27px);
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 18px;
  }

  .history-photo {
    width: 88%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
  }

  .history-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }




  .performers {
    padding-top: 80px;
    padding-bottom: 75px;
  }



  .timetable {
    padding: 65px 0 75px;
  }

  .timetable-heading {
    margin-bottom: 38px;
  }

  .timetable-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .timetable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
    align-items: center;
    padding: 35px 0 42px;
    border: none;
  }


  .timetable-number {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 10px;
    font-size: clamp(48px, 12vw, 55px);
    line-height: 1.2;
    text-align: right;
  }


  .timetable-stage {
    display: contents;
  }


  .timetable-stage h3 {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    font-size: clamp(20px, 5.3vw, 23px);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
  }

  .timetable-stage p {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    transform: none;
    width: 100%;
    margin: 18px 0 0;
    text-align: center;
    font-size: clamp(18px, 4.8vw, 21px);
    line-height: 1.5;
  }


  .timetable-content {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 17px 0 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    text-align: center;
  }

  .timetable-content p {
    text-align: center;
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 2;
    letter-spacing: 0;
    margin: 0 0 13px;
    overflow-wrap: anywhere;
  }

  .timetable-content p:last-child {
    margin-bottom: 0;
  }

  .timetable-content span {
    margin: 0 4px;
  }


  .timetable-number {
    display: block;
  }
  
  .timetable-stage p {
    display: block;
  }

}




@media (max-width: 380px) {

  .site-header {
    padding: 0 10px;
    gap: 10px;
  }

  .header-logo img {
    height: 48px;
  }

  .header-nav {
    gap: 7px;
  }

  .header-nav a {
    font-size: 9px;
  }

  .countdown-item .number {
    font-size: 26px;
  }

  .countdown-item .label {
    font-size: 9px;
  }

  .section-title,
  .performers-title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .history-set {
    padding-left: 42px;
    padding-right: 14px;
  }

  .history-set::before {
    left: 20px;
  }

  .history-item::before {
    left: -22px;
  }

  .history-item {
    margin-bottom: 100px;
  }

  .history-year {
    font-size: 23px;
  }

  .history-logo {
    width: 90%;
    height: 140px;
  }

  .history-photo {
    width: 88%;
  }

  .timetable-list {
    padding: 0 14px;
  }

  .timetable-number {
    font-size: 46px;
  }

  .timetable-stage h3 {
    font-size: 19px;
  }

  .timetable-stage p {
    font-size: 17px;
  }

  .timetable-content p {
    font-size: 13px;
  }

}


/* ===== iPhone / スマホの背景拡大バグ修正 (2026-11-17) =====
   iOS Safari の body 背景 + background-attachment:fixed + cover は
   ページ全体の高さを基準に画像が大きく伸びることがあります。
   元の色・写真・透過率は保ち、画面サイズの固定レイヤーへ移します。 */
@media (max-width: 767px) {
  body {
    background-image: none;
    background-color: #041126;
    background-attachment: scroll;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(4, 17, 38, 0.68), rgba(4, 17, 38, 0.68)),
      url("images/haikei.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* iPhoneで独立した描画レイヤーにして揺れを抑える */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* 背景レイヤーの上に、従来の本文・花びら・ヘッダーを表示 */
  #site-content {
    position: relative;
    z-index: 1;
  }

  /* 元CSSの直接子セレクターに上書きされないよう固定位置を維持 */
  #site-content > .site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-image: none;
    background-color: rgba(4, 17, 38, 0.96);
    background-attachment: scroll;
  }
}

/* 開幕動画が読み込まれる前も映像と同じ黒背景にする */
#opening-movie {
  background: #000;
}
#opening-video {
  display: block;
  object-fit: contain;
  background: #000;
}


/* ===== スマホのナビ・出演団体・タイムテーブル表示修正 ===== */
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  #site-content, main { width: 100%; min-width: 0; }
  .site-header {
    width: 100%; max-width: 100vw;
    box-sizing: border-box;
    padding: 0 10px;
    gap: 8px;
  }
  .header-logo { flex: 0 0 auto; }
  .header-logo img { height: 43px; }
  .header-nav {
    display: flex; flex: 1 1 0; min-width: 0;
    justify-content: space-between;
    gap: 3px;
  }
  .header-nav a {
    font-size: clamp(8px, 2.3vw, 11px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  .performers { width: 100%; max-width: 100vw; overflow: hidden; }
  .performers-head { padding: 0 16px; gap: 8px; }
  .performers-heading { min-width: 0; }
  .performers-title { font-size: clamp(29px, 8vw, 38px); }
  .performers-nav { flex-shrink: 0; }
  .performers-arrow { width: 38px; height: 38px; }
  .performers-scroll {
    width: 100%; max-width: 100vw;
    overflow-x: auto; overflow-y: hidden;
    padding: 0 16px 10px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .performers-track { display: flex; width: max-content; max-width: none; }
  .performer-card { width: min(78vw, 320px); flex: 0 0 min(78vw, 320px); }
  .performer-photo { width: 100%; aspect-ratio: 1 / 1; }
  .performer-photo img { width: 100%; height: 100%; object-fit: cover; }
  .performer-name { overflow-wrap: anywhere; }
  .performer-name.is-multi { white-space: normal; font-size: 15px; }
  .timetable { width: 100%; max-width: 100vw; overflow: hidden; }
  .timetable-list { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 16px; }
  .timetable-row { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr) auto auto minmax(0,1fr); }
  .timetable-content { min-width: 0; max-width: 100%; }
  .timetable-content p { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .site-header { padding: 0 7px; gap: 5px; }
  .header-logo img { height: 38px; }
  .header-nav { gap: 2px; }
  .header-nav a { font-size: 8px; }
}

/* ===== 2026-11-17: HTML階層修正後のスマホ表示 ===== */
@media (max-width: 767px) {
  /* 開幕ムービーと背景よりも本文が前面になる */
  #site-content { position: relative; z-index: 1; }
  #site-content > main { position: relative; z-index: 1; }
  #site-content > .petal-layer { z-index: 2; }
  #site-content > .site-header { position: fixed; z-index: 1000; }

  /* 3列グリッドの幅が見出し+矢印に足りず横にはみ出す問題を解消 */
  .performers-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 16px;
  }
  .performers-heading {
    width: auto;
    max-width: 100%;
    margin: 0;
    text-align: center;
  }
  .performers-heading .performers-title {
    font-size: clamp(30px, 9vw, 39px);
    letter-spacing: 2px;
  }
  .performers-nav { align-self: center; justify-self: auto; }
  .performer-card {
    flex-shrink: 0;
    width: min(78vw, 320px);
  }
  .timetable {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: clip;
  }
  .timetable-list, .timetable-content { box-sizing: border-box; }
}


/* ===== 2026-11-17 スマホヘッダーの横広がり・高さ修正 =====
   旧ルールの flex: 1 + space-between がメニューを不自然に分散させていました。
   他のセクションやアニメーションのスタイルには触れません。 */
@media (max-width: 767px) {
  #site-content > .site-header {
    height: 64px;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    gap: 13px; /* ロゴとABOUTの間隔のみ、8px→13pxへ調整 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    background-image: none;
    background-color: #041126;
  }

  #site-content > .site-header .header-logo {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
  }
  #site-content > .site-header .header-logo img {
    height: 46px;
    max-width: 55px;
    width: auto;
    object-fit: contain;
  }

  #site-content > .site-header .header-nav {
    display: flex;
    flex: 0 1 auto; /* 余白を伸ばさず、ロゴのすぐ右に配置 */
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: auto;
    margin: 0;
    gap: clamp(7px, 2vw, 11px);
  }
  #site-content > .site-header .header-nav a {
    flex: 0 0 auto;
    font-size: clamp(8px, 2.5vw, 11px);
    line-height: 1.3;
    letter-spacing: 0;
    white-space: nowrap;
  }

  html { scroll-padding-top: 76px; }
  section { scroll-margin-top: 76px; }
}
@media (max-width: 359px) {
  #site-content > .site-header { height: 60px; padding: 0 7px; gap: 11px; }
  #site-content > .site-header .header-logo img { height: 40px; max-width: 48px; }
  #site-content > .site-header .header-nav { gap: 5px; }
  #site-content > .site-header .header-nav a { font-size: 8px; }
}
