/* Reset */
* {margin:0; padding:0; box-sizing:border-box;}
:root{
  --bg-deep:#0b1220;
  --bg-mid:#121827;
  --accent: #1DB954;
  --accent-2: #fa2c55;
  --glass: rgba(255,255,255,0.06);
  --muted:#9aa4ac;
  --card-shadow: 0 12px 30px rgba(2,6,23,0.55);
}
html, body { height: 100%; }

body {
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
  background: #0f1724;
  color: #0f1724;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:1;
  z-index:0;
  height: 100%;
}

/* ページ読み込み時の暗転オーバーレイ（暗点→明転）
   body::after を使ってページ全体を覆い、ロード後に .is-loaded を付与してフェードアウトします */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
  opacity: 1;
  background-color: black;
  height: 100%;
  min-height: 300%;
}

/* フェードアウト後に完全に無効化するクラス */
body.is-loaded::after{
  opacity: 0;
  pointer-events: none;
}
body.is-ready::after{
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  top:0; left:0; width:100%;
  height:70px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 2rem;
  z-index:100;
  box-shadow: 0 6px 24px rgba(2,6,23,0.4);
  transition: transform 0.35s ease, background 0.35s ease;
}
.site-header .logo {height:46px; transform: translateY(1px);}
.site-header nav a {
  color: #e9eef2;
  text-decoration:none;
  margin-left:1.5rem;
  font-weight:600;
  letter-spacing:0.02em;
  position:relative;
  transition: color 0.25s ease, transform 0.25s ease;
}
.site-header nav a::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  opacity:0.95;
}
.site-header nav a:hover{
  color: var(--accent);
  transform: translateY(-2px);
}
.site-header nav a:hover::after{ transform: scaleX(1); }

/* Header reduced state */
body.header--small .site-header {
  height:54px;
  transition: height 240ms ease;
}
body.header--small .site-header .logo { height:36px; transform: translateY(0); }

/* ハンバーガーメニュー制御用の追加CSS */
.nav-toggle {
    display: none;
}

/* ハンバーガーアイコン (ラベル) のスタイル */
.nav-toggle-label {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 30px;
    height: 25px;
    cursor: pointer;
    display: none;
    z-index: 101; 
}

/* ハンバーガーアイコンの棒線 */
.nav-toggle-label span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.9));
    border-radius: 3px;
    left: 0;
    transition: all 0.35s cubic-bezier(.2,.9,.2,1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.nav-toggle-label span:nth-child(1) { top: 0px; }
.nav-toggle-label span:nth-child(2) { top: 11px; }

/* メニュー展開時のアイコンのアニメーション */
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Main Visual */
.main-visual {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url("assets/main_visual.jpg") center 20%/cover no-repeat;
  background-attachment: fixed;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  isolation:isolate;
}
.main-visual::after {
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, rgba(6,10,20,0.12) 0%, rgba(6,10,20,0.45) 65%, rgba(6,10,20,0.75) 100%);
  z-index:1;
  pointer-events: none;
}
@keyframes logoPop {
  0% { transform: translateY(18%) scale(1.06); opacity:0; }
  60% { transform: translateY(-4%) scale(0.98); opacity:1; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}

/* Section 共通スタイル */
.section {
  /* desktop default: use full viewport height so each section feels like a page */
  height: 100vh;
  min-height: 100vh;
  display:flex;
  align-items:center; /* center main content vertically by default */
  justify-content:center;
  padding:2rem;
  position:relative;
}

/* コンテンツラッパーの共通スタイル */
.content-wrapper {
  padding:2rem;
  max-width:1100px;
  width:100%;
  text-align: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgb(255, 248, 227);
  border-radius: 0;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

/* Desktop: keep sections 100vh but make inner wrapper scrollable so tall content fits */
@media (min-width: 768px) {
  /* ensure disc items don't exceed wrapper width */
  .disc-item { max-width: 720px; width: 100%; }
  /* Desktop: discography 2-column */
  .disc-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .disc-item {
    flex: 0 0 45%;
    max-width: 480px;
    width: 45%;
  }

  /* Member card (tw-card) — reduce overall height to ~2/3 for desktop
     Avatar 72px -> 48px (approx 2/3), reduce padding accordingly. */
  .tw-card {
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }
  .tw-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
  }
  .tw-name { font-size: 0.95rem; }
  .tw-id { font-size: 0.85rem; }
}

/* Desktop override: make each disc-item roughly half the previous size
   (user requested "ディスコ item のサイズを半分にする"). This only applies
   for >=768px so mobile stays unchanged. */
@media (min-width: 768px) {
  .disc-item {
    /* previously 45% / max-width ~480px; reduce to ~22% / 240px */
    flex: 0 0 22%;
    width: 22%;
    max-width: 240px;
  }

  /* reduce album art height so smaller cards keep good proportions */
  .disc-item img {
    max-height: 150px;
  }

  /* tighten gaps to accommodate more items per row */
  .disc-container {
    gap: 1rem;
    justify-content: flex-start;
  }

  /* keep discography centered but allow items to flow naturally */
  .discography-content {
    align-items: flex-start;
  }
}
.content-wrapper h2 {
  font-size:2rem;
  margin-bottom:1rem;
  color: inherit;
}
.content-wrapper p {
  font-size:1rem;
  line-height:1.6;
  margin-bottom:1rem;
}

/* Music Video */
.video-content {
    max-width: 900px; 
    margin: 0 auto;
    width: 90%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0; 
    overflow: hidden;
}

.video-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    display: block;
    border: 0;
    border-radius: 12px;
}

/* Live セクションの外部埋め込み用スタイル */
.live-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2,6,23,0.45);
  border: 1px solid rgba(255,255,255,0.04);
}
.live-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media(max-width:768px){
  .live-embed iframe { height: 320px; }
}

.tw-cards {
  /* Desktop/Tablet: two-column grid. Mobile override below. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.tw-card {
  display:flex;
  align-items:center;
  padding: 1rem 1.3rem;
  gap: 1.2rem;
  background: white;
  border-radius: 12px;
  width: 100%;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(2,6,23,0.35);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.45); }
.tw-avatar {
  width:72px;
  height:72px;
  border-radius: 10px;
  object-fit:cover;
  flex: 0 0 72px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.tw-meta { display:flex; flex-direction:column; }
.tw-name { font-weight:700; color: #0f1724; }
.tw-id { font-size:0.95rem; color: rgb(177, 177, 177); }

/* avatar sizing for mobile (moved into mobile block) */

/* Mobile: Twitter should be single column */
@media (max-width:768px) {
  .tw-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
}

.live-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px; 
}

.live-wrapper ul li {
  display: grid;
  grid-template-columns: 50% 50%; 
  align-items: center; 
  font-size: 1.2rem;
  line-height: 3.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.live-wrapper ul li:last-child {
    border-bottom: none;
}

.live-date {
  text-align: right; 
  padding-right: 10px; 
}

.live-venue {
  text-align: left;
  padding-left: 10px; 
}
.disc-container {
  display:flex;
  flex-direction: column; /* vertical stacking */
  justify-content: center;
  align-items: center;
  gap:1rem;
  overflow-x: hidden;
  padding-bottom:1rem;
  width: 100%;
}
.disc-item {
  flex: 0 0 auto;
  max-width:420px;
  width: 92%;
  display:flex;
  flex-direction:column;
  gap:0.6rem;
  padding:0.8rem;
  border-radius:12px;
  background: white;
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
  box-shadow: 0 8px 26px rgba(3,8,20,0.35);
  cursor: default;
  margin: 0 auto;
  overflow: visible; /* ensure no internal scroll */
}
.disc-item:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px rgba(2,8,30,0.6);
}
.disc-item img { 
  width:100%; 
  height: auto;
  max-height: 300px;
  object-fit:cover; 
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.35); 
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}
.disc-item:hover img { transform: scale(1.04) rotate(-0.6deg); }

/* Link Button */
.btn-link {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, var(--accent-2) 0%, #ff6b88 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 6px 18px rgba(250,44,85,0.14);
  position: relative;
  overflow: hidden;
}
.btn-link::before{
  content:"";
  position:absolute;
  left:-60%;
  top:0;
  width:50%;
  height:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.2,.9,.2,1);
}
.btn-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(250,44,85,0.22);
}
.btn-link:hover::before{ left:150%; }

/* Discography: center the action button within each item */
.disc-item .btn-link {
  align-self: center;
}

/* Center discography content vertically inside its section */
.discography-content {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

/* Make twitter content vertically centered too */
.twitter-content {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Responsive */
/* Two-pattern responsive: mobile (<768px) and desktop/tablet (>=768px) */
@media(max-width:767px){
  /* keep scroll snap off on small screens */
  body { scroll-snap-type: none; }
  
  /* メインビジュアルの背景画像をスマホ用に切り替える */
  .main-visual {
      /* assets/main_visual_sp.jpg は、用意したスマホ用画像ファイル名に置き換えてください */
      background-image: url("assets/main_visual_sp.jpg"); 
      background-attachment: scroll; animation-duration: 42s;
  }
  
  /* Music Video - スマホ対応 (画面幅いっぱいに拡大) */
  .video-content {
      max-width: 100%;
      width: 100%; 
      margin-left: 0;
      margin-right: 0;
  }
  
  /* Discography - スマホ対応 (影の調整とレイアウト) */
  .discography-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .disc-container {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;

    overflow-y: auto;
    flex-grow: 1;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .disc-item {
    flex: 0 0 auto;
    max-width: 340px;
    width: 88%;
    padding: 0.6rem;
    align-items: center;
    text-align: center;

    /* 画像とボタンの距離を縮小 */
    gap: 0.5rem;
  }

  .disc-item img {
      /* スマホでの影の大きさ調整 */
      box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
      transform: translateY(0);
  }

  .disc-item a {
      margin-top: 0; 
      
      /* ボタンの高さと文字サイズを縮小 */
      padding: 0.4rem 0.8rem; 
      font-size: 0.8rem; 
  }

  /* ヘッダー/ナビゲーションのモバイル対応 (縦並びと右寄せの再確認) */
  .site-header {
    padding:0 1rem; 
  }

  /* ハンバーガーアイコンを表示 */
  .nav-toggle-label {
    display: block;
    right: 1rem;
  }

  /* ナビゲーションメニューの初期状態（非表示） */
  .site-header nav {
      position: fixed;
      top: 70px; 
      left: 0;
      width: 100%;
      height: calc(100vh - 70px); 
      /* Flexboxを設定 */
      display: flex; 
      flex-direction: column; 
      
      background: rgba(0, 0, 0, 0.90);
      
      /* 縦並びの項目を右寄せにする */
      justify-content: center;
      align-items: flex-end; 
      
      transform: translateX(100%); 
      transition: transform 0.4s ease-out;
      z-index: 99; 
  }

  /* ナビゲーションリンクのスタイル */
  .site-header nav a {
      font-size: 1.8rem; 
      /* 右寄せのため右側のマージンを確保 */
      margin: 1.0rem 1rem 1.0rem 0; 
      width: auto; 
      /* リンク内の文字も右寄せにする */
      text-align: right;
      display: block; 
  }
  
  /* チェックが入ったらメニューを表示 */
  .nav-toggle:checked ~ nav {
      transform: translateX(0);
  }
  /* Discography のカードの横幅と余白を調整して中央に揃える */
  .disc-container {
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    gap: 1.5rem;
  }

  .disc-item {
    padding: 0.5rem;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  /* ボタンを確実に中央に表示 */
  .disc-item .btn-link {
    display: inline-block;
    margin: 0.6rem auto 0 auto;
  }

  /* Mobile: shrink member cards to reduce height (user request) */
  .tw-card {
    padding: .8rem 1.8rem;
    gap: 0.9rem;
  }
  .tw-avatar {
    width: 60px;
    height: 60px;
    flex: 0 0 50px;
    border-radius: 5px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
  }
  .tw-name { font-size: 1.2rem; }
  .tw-id { font-size: 0.9rem; }
}

/* ======== ローディング中のロゴ表示 ======== */
.loading-logo {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
  opacity: 1;
}

.loading-logo img {
  width: 50%; /* ロゴサイズはお好みで調整 */
  height: auto;
}

@keyframes logoFade {
  from { opacity: 1; transform: scale(1.05); }
  to { opacity: 0; transform: scale(1.00); }
}

/* ロード完了時に非表示 */
body.is-loaded .loading-logo {
  opacity: 0;
  pointer-events: none;
}
