/* =========================================================
   Base Reset / Box Model
   - 全要素を border-box に統一
   - padding / border を含めたサイズ設計にする
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   HTML / BODY : Site Base
   - body はスクロールさせない
   - 背景は固定（radial-gradient + 星空）
   - 実際のスクロールは .contents に任せる
========================================================= */
html,
body {
  margin: 0;
  padding: 0;

  font-family:
    'Noto Sans JP',
    system-ui,
    -apple-system,
    'Helvetica Neue',
    Arial,
    sans-serif;

  /* 時間帯で JS から上書きされる背景グラデーション */
  background:
    radial-gradient(
      1200px 800px at 30% 20%,
      var(--bg1, rgba(20, 45, 90, 0.35)),
      var(--bg2, rgba(0, 0, 0, 0.9))
    ),
    radial-gradient(
      900px 700px at 70% 80%,
      var(--bg3, rgba(10, 25, 60, 0.5)),
      var(--bg4, rgba(0, 0, 0, 1))
    );

  color: #fff;
}

/* body は「固定背景の土台」
   - flex にしても良いが中央寄せはしない */
body {
  min-height: 100vh;
}

/* =========================================================
   Main Layout
   - main 自体はスクロールしない
   - h1 + .contents を縦に積むコンテナ
========================================================= */
main {
  z-index: 2;

  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ページ見出し（共通）
   - 各ページで位置調整したい場合は上書きする */
h1 {
  margin: 0;
  padding: 40px 0;
}

/* =========================================================
   Static Stars (背景の星・静止)
   - 常に表示される軽量な星背景
========================================================= */
.static-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* above background gradient, below flying stars */
  opacity: 0.65;
  filter: drop-shadow(0 0 6px rgba(160, 200, 255, 0.25))
    drop-shadow(0 0 14px rgba(120, 170, 255, 0.12));
  background-repeat: repeat;
  background-size: 560px 336px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201000%20600'%3E%3Cg%20fill='white'%3E%3Ccircle%20cx='80'%20cy='90'%20r='1.2'%20opacity='0.55'/%3E%3Ccircle%20cx='140'%20cy='210'%20r='1.0'%20opacity='0.45'/%3E%3Ccircle%20cx='220'%20cy='70'%20r='1.4'%20opacity='0.6'/%3E%3Ccircle%20cx='310'%20cy='160'%20r='1.1'%20opacity='0.4'/%3E%3Ccircle%20cx='390'%20cy='260'%20r='1.3'%20opacity='0.55'/%3E%3Ccircle%20cx='470'%20cy='120'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='560'%20cy='90'%20r='1.5'%20opacity='0.65'/%3E%3Ccircle%20cx='640'%20cy='210'%20r='1.1'%20opacity='0.4'/%3E%3Ccircle%20cx='720'%20cy='140'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='820'%20cy='240'%20r='1.4'%20opacity='0.6'/%3E%3Ccircle%20cx='910'%20cy='120'%20r='1.0'%20opacity='0.38'/%3E%3Ccircle%20cx='950'%20cy='300'%20r='1.2'%20opacity='0.5'/%3E%3Ccircle%20cx='60'%20cy='360'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='150'%20cy='430'%20r='1.3'%20opacity='0.55'/%3E%3Ccircle%20cx='240'%20cy='520'%20r='1.1'%20opacity='0.42'/%3E%3Ccircle%20cx='330'%20cy='380'%20r='1.5'%20opacity='0.65'/%3E%3Ccircle%20cx='410'%20cy='470'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='520'%20cy='420'%20r='1.2'%20opacity='0.5'/%3E%3Ccircle%20cx='610'%20cy='520'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='700'%20cy='390'%20r='1.3'%20opacity='0.55'/%3E%3Ccircle%20cx='790'%20cy='500'%20r='1.1'%20opacity='0.42'/%3E%3Ccircle%20cx='880'%20cy='420'%20r='1.5'%20opacity='0.65'/%3E%3Ccircle%20cx='960'%20cy='520'%20r='1.0'%20opacity='0.35'/%3E%3Ccircle%20cx='95'%20cy='20'%20r='1.0'%20opacity='0.3'/%3E%3Ccircle%20cx='275'%20cy='18'%20r='1.2'%20opacity='0.45'/%3E%3Ccircle%20cx='455'%20cy='35'%20r='1.0'%20opacity='0.32'/%3E%3Ccircle%20cx='615'%20cy='28'%20r='1.1'%20opacity='0.38'/%3E%3Ccircle%20cx='845'%20cy='30'%20r='1.2'%20opacity='0.44'/%3E%3Ccircle%20cx='985'%20cy='60'%20r='1.0'%20opacity='0.3'/%3E%3Ccircle%20cx='20'%20cy='120'%20r='1.2'%20opacity='0.45'/%3E%3Ccircle%20cx='25'%20cy='260'%20r='1.0'%20opacity='0.3'/%3E%3Ccircle%20cx='35'%20cy='520'%20r='1.3'%20opacity='0.5'/%3E%3Ccircle%20cx='980'%20cy='180'%20r='1.3'%20opacity='0.5'/%3E%3Ccircle%20cx='975'%20cy='420'%20r='1.1'%20opacity='0.38'/%3E%3Ccircle%20cx='905'%20cy='560'%20r='1.2'%20opacity='0.44'/%3E%3Ccircle%20cx='520'%20cy='560'%20r='1.0'%20opacity='0.3'/%3E%3Ccircle%20cx='300'%20cy='560'%20r='1.2'%20opacity='0.44'/%3E%3Ccircle%20cx='120'%20cy='560'%20r='1.0'%20opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* keep static stars subtle on small screens */
@media (max-width: 600px) {
  .static-stars {
    opacity: 0.45;
  }
}

/* モバイルでは少し控えめに */
@media (max-width: 600px) {
  .static-stars {
    opacity: 0.45;
  }
}

/* =========================================================
   Shooting Stars Layer
   - JS で生成される流星用レイヤー
   - 背景とコンテンツの間に配置
========================================================= */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* between background and content */
}

.shooting-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 1),
    rgba(180, 210, 255, 0.9) 35%,
    rgba(120, 160, 255, 0.45) 60%,
    rgba(120, 160, 255, 0) 72%
  );
  box-shadow:
    0 0 6px rgba(180, 220, 255, 0.9),
    0 0 14px rgba(140, 190, 255, 0.55),
    0 0 28px rgba(100, 160, 255, 0.25);
  opacity: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--z0, 0.06));
  filter: blur(var(--b0, 2px));
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: star-fly var(--d, 1800ms) ease-out forwards;
}

@keyframes star-fly {
  0% {
    opacity: 0;
    transform: translate3d(var(--x, 0px), var(--y, 0px), 0)
      scale(var(--z0, 0.06));
    filter: blur(var(--b0, 2px));
  }
  10% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.85;
    filter: blur(0.6px);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--ex, 0px), var(--ey, 0px), 0)
      scale(var(--z1, 2.6));
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star {
    animation: none !important;
    display: none !important;
  }
}

/* shooting-star 本体 / keyframes / reduced-motion
   → JS 側とセットなのでここでは定義しない */

/* =========================================================
   Vignette
   - 画面周辺を暗くして奥行きを出す
========================================================= */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(
    120% 120% at 50% 40%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );

  mix-blend-mode: multiply;
  z-index: 3;
}

/* =========================================================
   Page Fade-up Entry Animation
========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

header {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main {
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

/* live-schedule: データ取得後にアニメーション発火 */
.live-schedule main {
  animation: none;
  opacity: 0;
}

.live-schedule main.is-loaded {
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  header,
  main {
    animation: none;
  }
}

/* =========================================================
   Header
========================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.sitename {
  letter-spacing: 0.1em;
  font-size: 24px;
  color: rgba(240, 245, 255, 0.92);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  text-align: left;
}

header nav,
header nav a {
  pointer-events: auto;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* ===== Global Nav underline (same as venue link) ===== */
header nav a {
  color: rgba(240, 245, 255, 0.85);
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block; /* 下線幅を文字に合わせる */
  padding-bottom: 2px;
  font-size: 15px;
  text-decoration: none;
}

header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 現在ページは常に下線（JSで aria-current="page" を付与） */
header nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 0.9;
}

/* ===== SNS links: no underline animation ===== */
.sns a::after {
  display: none !important;
  content: none;
}

.sns a,
.month-nav a {
  transition: opacity 0.3s ease;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.sns a:hover,
.month-nav a:hover {
  opacity: 0.6;
}
/* ===== hamburger button ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 9px;
}
.menu-toggle span:nth-child(3) {
  bottom: 0;
}
@media screen and (max-width: 767px) {
  header {
    padding: 3.5vw;
  }
  .sitename {
    letter-spacing: 0.08em;
    font-size: 20px;
  }
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    display: none;
  }

  nav ul {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  nav.is-open {
    opacity: 1;
    pointer-events: auto;
    display: flex;
  }

  /* hamburger → × */
  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .menu-toggle {
    display: block;
    z-index: 110; /* nav(100)よりも高く設定 */
  }
}
/* =========================================================
   Contents
========================================================= */
.wrp {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0 auto;
  display: flex;
  padding: 0 2rem;
  gap: 2rem;
}

.contents {
  width: 100%;
  padding: 8vw 0;
  line-height: 2;
  max-width: 820px;
  margin: auto;
  position: relative;
  font-size: 15px;
}
.contents p {
  max-width: 700px;
}
.en {
  font-family: 'Work Sans', sans-serif;
}
.wrp h1 {
  position: fixed;
  left: 2vw;
  top: 7vw;
  font-size: 30px;
  font-weight: normal;
  opacity: 0.4;
}
@media screen and (max-width: 767px) {
  .wrp {
    flex-direction: column;
    padding: 0 4vw;
    gap: 0;
  }
  .contents {
    padding: 30px 0;
  }
}

/* =========================================================
   Profile
========================================================= */
.profile aside {
  padding: 8vw 0 0 0;
}
.pfofile_photo {
  max-width: 360px;
  width: 100%;
}
/* =========================================================
   Live Schedule
========================================================= */
.month-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 72px;
  width: 100%;
}
.month-nav .disabled {
  opacity: 0.2;
  pointer-events: none;
}
.month-nav a {
  color: #a2a2a2;
  text-decoration: none;
}
.gig {
  margin-bottom: 36px;
}

/* 日付 + 会場名の横並び */
.gig__unit {
  display: flex;
  gap: 32px;
  align-items: baseline;
  border-bottom: 1px #192331 solid;
  padding-bottom: 36px;
}
.gig__date {
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* 会場リンクは色を変えず下線のみ */
.gig__info a {
  position: relative;
  color: #d4d2c0;
  text-decoration: none;
}

.gig__info a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

.gig__info a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* グループ名 / タイトル */
.gig__title {
  margin-top: 6px;
}

/* メンバー・補足情報 */
.gig__note {
  font-size: 0.9em;
  white-space: pre-line;
  letter-spacing: 0.18em;
}

@media screen and (max-width: 767px) {
  .month-nav {
    margin: 72px 0;
  }
  .gig__unit {
    flex-direction: column;
  }
}

/* =========================================================
   Contact
========================================================= */
.wrp.contact {
  max-width: 640px;
}
.contact-btn {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(240, 245, 255, 0.8);
  font-size: 15px;
  letter-spacing: 0.08em;

  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}
.contact-btn:hover {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.contact-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 18%;
  height: 100%;

  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );

  filter: blur(6px);
  opacity: 0.7;

  transition: left 0.3s ease;
}

.contact-btn:hover::before {
  left: 120%;
}
.copy-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1;
}
/* 成功時は本文も含めて表示 */
.copy-status.is-success {
  opacity: 1;
}

.copy-status.is-success::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: darkgreen;
  margin-left: 12px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' stroke='white' stroke-width='5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' stroke='white' stroke-width='5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
