.w-80{
  width: 80%;
}

.w-90{
  width: 90%;
}

.d-center{
  justify-content: center;
  margin: 0 auto;
}

.fl-center{
  display: flex;
  align-items: center;
}

* {
  box-sizing: border-box;
}

body{
  margin: 0; /* ブラウザの標準余白を消す */
  background-image: url("/img/BG_3840.webp");
  background-attachment: fixed; 
  background-size: cover;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
}

/* 画像が画面からはみ出さないようにする */
img {
  max-width: 100%;
  height: auto;
}

#nav-menu{
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  /* background-image: url("/img/BG_3840.webp"); */
  /* background: rgba(0, 0, 0, 0.7); */
  background-color: RGBA(13,22,86,0.7);
  background-size: cover;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.logo {
  width: 100%;
  height: 100%;
}

.logo a {
  display: block;
  text-decoration: none;
  text-align: center;
  position: relative;
}

.logo img {
  width:  10%;
  height: auto;
  display: inline-block;
  background: var(--logo-img);
  z-index: -1;
}

/* =========================
   ハンバーガーメニュー
   ========================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 16px 0 auto;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* × 形に変形 */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1023px) {
  #nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    background-color: RGBA(13,22,86,0.95);
    padding: 6px 16px;
    margin: 0;
  }

  .logo {
    flex: 1;
    padding: 0;
  }

  .logo img {
    object-fit: contain;
    margin-left: 4%;
  }

  .hamburger {
    display: flex;
    margin: 0;
  }

  .navbar {
    display: none;
    width: 100%;
    background-color: RGBA(13,22,86,0.95);
  }

  .navbar.is-open {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .navbar ul li {
    width: 100%;
    height: auto;
    min-height: 44px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar ul li:last-child {
    border-bottom: none;
  }

  .navbar ul li a,
  .navbar ul li span {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav{
  width: 100%;
  height: auto;
}

li {
  list-style: none;
}

ul{
  display:flex;
  flex-wrap: wrap; /* スマホ幅では自動で改行 */
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  padding: 10px;
  margin: 0;
}

.navbar ul li a {
  display: block;
  text-decoration: none;
  color: white;
  transition: background-color 0.25s, color 0.25s;
}

@media (min-width: 1024px) {
  .logo a {
    text-align: left;
  }

  .logo img {
    width: 5%;
    margin-left: 1%;
  }

  .navbar ul li a,
  .navbar ul li .nav-disabled {
    padding: 0 14px;
  }
}

.navbar ul li .nav-disabled {
  display: block;
  color: #9ea4ad;
  cursor: not-allowed;
  opacity: 0.75;
}

@media (hover: hover) {
  .navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* アニメーション設定 */
/* @keyframes text-blur {
  0% {
    filter: blur(0);
  }
  50% {
    filter: blur(3px); /* ぼかしの強さ */
  /* }
  100% {
    filter: blur(0);
  }
} */

/* =========================
   メンバーグリッド
   ========================= */
.member-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
}

.member-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* =========================
   メインコンテンツ
   ========================= */
.hero {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
}

.sizise{
  width: min(100%, 320px); /* 親幅まで縮む、最大320px */
  height: auto;
}

.flyer{
  border: 5px solid white;
}

.flyer-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-content{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 92%;
}

.hero-content p{
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* =========================
   トップページの情報エリア
   ========================= */

.information {
  margin-top: 50px;
}

.information-content{
  display: flex;
  flex-direction: column;
  gap: 10%;
  margin-left: auto;
  margin-right: auto;
  width: 92%;
}

.information-content--archive-detail {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.information-content--archive-detail .information-detail {
  text-align: center;
}

.information-detail{
  align-items: flex-start;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.next-show-heading {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 8px 20px;
  color: #ffe95c;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  background: rgba(13, 22, 86, 0.72);
  border: 1px solid rgba(255, 233, 92, 0.55);
  border-radius: 999px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.information-about{
  width: 92%;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  }
  
  .information-about p {
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.0em;
  }

  #index-title{
     padding: 0.5em 0;/*上下の余白*/
  border-top: solid 3px #ffffff;/*上線*/
  border-bottom: solid 3px #ffffff;/*下線*/
  }
  
  .index-subtitle {
    display: inline-block;
    font-size: 1.5rem;
    border-bottom: 1px solid #bcc9dc;
    color: #bcc9dc;
  
  }

  .member-sns.index-reservation {
    margin: 16px 0 20px;
    justify-content: center;
  }

.show-ended {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ce93d8;
  margin: -12px auto 20px;
  opacity: 0.9;
}

.index-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.index-btn {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 2px solid white;
  border-radius: 4px;
  padding: 10px 28px;
  width: 170px;
  font-size: 0.95rem;
  text-align: center;
  background: rgba(13, 22, 86, 0.85);
  backdrop-filter: blur(4px);
  transition: background 0.25s, color 0.25s;
}

@media (hover: hover) {
  .index-btn:hover {
    background: white;
    color: #0d1656;
  }
}

.index-btn--x {
  border-color: #1d9bf0;
  color: #7ecff5;
}

@media (hover: hover) {
  .index-btn--x:hover {
    background: #1d9bf0;
    color: white;
  }
}

/* =========================
   スライドショー
   ========================= */

/* アーカイブ */
.slideshow-container {
  width: 100%;
  height: 38vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: none;
  transition: opacity 0.6s ease;
}

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

.slide.active {
  opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
}

/* ナビゲーションボタンのスタイル */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    z-index: 1;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* スライドショードットのスタイル */
.slide-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* =========================
   タブレット用
   1024px以上
   ========================= */

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .navbar {
    display: block !important;
  }
}

@media (min-width: 768px) {
  /* タブレットでは横並びに戻す */

  .information-content,
  .fl-center {
    flex-direction: row;
    align-items: center;
  }

  .information-content {
    width: 88%;
    gap: 5%;
  }

  .information-content--archive-detail {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .information-content--archive-detail .information-detail {
    text-align: center;
  }

  .navbar ul li a {
    font-size: 15px;
    padding: 8px 16px;
  }

  .sizise {
    width: min(100%, 360px);
  }

  .flyer-pair {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .slideshow-container {
    height: 50vh;
  }
}


/* =========================
   PC用
   1024px以上
   ========================= */

@media (min-width: 1024px) {
  /* PCでは余裕のあるレイアウトにする */

  .navbar ul li a {
    font-size: 18px;
  }

  .information-content {
    width: 80%;
    align-items: flex-start;
  }

  .information-content--archive-detail {
    flex-direction: column;
    align-items: center;
  }

  .flyer-pair {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  #index-flyer-container {
    justify-content: center;

  }
  
  

  #index-title {
    margin-top: 0;
  }


  .hero-content {
    margin-top: 5%;
    
  }

  #index-flyer-container .sizise.flyer{
    width: min(100%, 360px);
  }

  .slideshow-container {
    height: 60vh;
  }
}

/* =========================
   スマホ向けの軽量化
   ========================= */

@media (max-width: 1023px) {
  body {
    background-attachment: scroll; /* スマホではfixedより軽い */
  }

  /* 見出しサイズをスマホ向けに縮小 */
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  /* Next Show セクション */
  .information {
    margin-top: 24px;
  }

  .next-show-heading {
    margin-bottom: 20px;
    padding: 8px 16px;
    letter-spacing: 0.08em;
  }

  .information-content {
    flex-direction: column;
    width: 95%;
    gap: 16px;
  }

  .information-content--index {
    --index-flyer-width: min(100%, clamp(280px, 72vw, 340px));
  }

  .information-content div 
 {
    text-align: center;
  }

  .fl-center {
    flex-direction: column;
  }

  .member-grid {
    flex-direction: column;
    align-items: center;
  }

  .index-btn-group {
    flex-direction: column;
    align-items: center;
  }

  /* 公演詳細テキスト */
  .information-detail {
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 0 4px;
    word-break: break-word;
  }

  .information-content--index .information-detail--index {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .information-content--index .information-detail--index h2,
  .information-content--index .information-detail--index p {
    margin-left: 0;
    margin-right: 0;
  }

  /* フライヤー画像 */
  .sizise {
    width: min(100%, 280px);
  }

  .information-content--index #index-flyer-container .sizise.flyer {
    width: var(--index-flyer-width);
  }
}

/* =========================
   ARCHIVEへ戻るボタン（固定表示）
   ========================= */
.back-to-works {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 0.95rem;
  background: rgba(13, 22, 86, 0.85);
  backdrop-filter: blur(4px);
  z-index: 90;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}

@media (hover: hover) {
  .back-to-works:hover {
    background: white;
    color: #0d1656;
  }
}

/* =========================
   公演グリッド
   ========================= */
.work-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  text-align: center;
  width: min(80vw, 280px);
  transition: opacity 0.3s;
}

.work-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 3px solid white;
}

.work-card p {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .work-card:hover {
    opacity: 0.75;
  }
}

@media (min-width: 768px) {
  .work-card {
    width: min(calc(50% - 24px), 220px);
  }
}

@media (min-width: 1024px) {
  .work-card {
    width: 200px;
  }
}

/* =========================
   メンバー個人ページ
   ========================= */

.member-detail {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 16px;
}

.member-detail p{
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.member-detail h1 {
    font-size: 2rem;
  }

.member-profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 3px solid white;
  border-radius: 8px;
}

.member-bio {
  font-size: 1rem;
  line-height: 1.9;
  text-align: left;
  width: 100%;
  white-space: pre-wrap;
}

.member-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.member-sns a {
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 4px;
  padding: 9px 27px;
  font-size: 1.35rem;
  transition: background 0.25s, color 0.25s;
}

.member-sns a:hover {
  background: white;
  color: #0d1656;
}

.member-works {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.member-works h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.5rem;
}

.member-works-note {
  margin: 0 auto;
  text-align: center;
  max-width: 560px;
  line-height: 1.8;
}

/* JS駆動スライドショー用アクティブ状態（左スライド） */
.member-slideshow .slide {
  transform: translateX(100%);
  opacity: 1;
  animation: none;
  transition: transform 0.5s ease;
}

.member-slideshow .slide.active {
  transform: translateX(0);
}

.member-slideshow .slide.exit {
  transform: translateX(-100%);
}

.member-slideshow {
  width: 100%;
  margin: 0 auto 60px;
}

.member-slideshow .slideshow-container {
  height: auto;
  aspect-ratio: 1.618 / 1;
}

/* アーカイブ詳細ページのスライドショーをmemberページと同様の形に揃える */
.archive-slideshow {
  width: 80%;
  margin: 0 auto 60px;
}

.archive-slideshow .slideshow-container {
  height: auto;
  aspect-ratio: 1.618 / 1;
}

.archive-slideshow .slide {
  transform: translateX(100%);
  opacity: 1;
  animation: none;
  transition: transform 0.5s ease;
}

.archive-slideshow .slide.active {
  transform: translateX(0);
}

.archive-slideshow .slide.exit {
  transform: translateX(-100%);
}

@media (min-width: 768px) {
  .member-profile-img {
    width: 280px;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .member-detail {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1500px;
    margin: 0 auto 80px;
    width: 100%;
    gap: 10%;
  }

  .member-detail p {
    font-size: 1.2rem;
    text-align: left;
  }

   .member-detail h1 {
    font-size: 3rem;
  }

  .member-profile-img {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
  }

  .member-detail-text {
    flex: 1;
    text-align: left;
  }

  .member-sns {
    justify-content: flex-start;
  }

  .member-works h2 {
    text-align: center;
  }

  .member-guest-works h2 {
    text-align: center;
  }
}

.contact-sns {
  justify-content: center;
}
