body {
  font-family: 'DotGothic16', monospace;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle, #000010 30%, #0a0a0a 100%);
  color: #fff;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px #b86eff, 0 0 30px #b86eff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.nav-link {
  color: #e0b3ff;
  text-decoration: none;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #d36aff, 0 0 15px #a64dff;
  transition: transform 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #ffaa00, 0 0 20px #ff8800;
}

.card-container {
  margin-top: 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

.flip-card {
  background: transparent;
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px #00ffff, 0 0 30px #00ccff;
}

.flip-front {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.flip-back {
  background-color: #111;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

.back-button {
  text-align: right;
  margin: 20px 40px;
}

.back-button a {
  color: #00ffff;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffff;
  transition: all 0.3s ease;
}

.back-button a:hover {
  background-color: #00ffff;
  color: #000;
}

.footer {
  background-color: rgb(1, 1, 26);
  color: gold;
  padding: 20px;
  border-top: 5px solid gold;
  text-align: center;
  margin-top: 100px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sns-links img {
  width: 80px;
}

.arrow {
  font-size: 3rem;
  color: cyan;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 4000;
  user-select: none;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
pointer-events: auto;
}
.left-arrow {
  left: 20px;
}
.right-arrow {
  right: 20px;
}

@keyframes slideOutLeft {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes slideInLeft {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.slide-out-left {
  animation: slideOutLeft 0.5s forwards;
}
.slide-out-right {
  animation: slideOutRight 0.5s forwards;
}
.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}
.slide-in-right {
  animation: slideInRight 0.5s forwards;
}
.sns-card-group {
  margin-top: 10px;
  text-align: center;
}

.sns-card {
  display: inline-block;
  margin: 10px;
  width: 60px;
  height: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sns-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #0ff;
  box-shadow: 0 0 10px #0ff;
  background: black;
}

.sns-card.show {
  opacity: 1;
  transform: translateY(0);
}

.sns-button {
  background-color: #111;
  color: #0ff;
  border: 2px solid #0ff;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  font-family: 'DotGothic16', monospace;
  text-shadow: 0 0 5px #0ff;
  box-shadow: 0 0 10px #0ff;
}

.sns-button:hover {
  background-color: #0ff;
  color: #000;
}

.footer {
  background-color: rgb(1, 1, 26);
  color: gold;
  padding: 20px;
  border-top: 5px solid gold;
  bottom: 0;
  width: 100%;
  text-align: center;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sns-links img {
  width: 100px; 
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-image img {
  width: 100px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
}

.footer-links ul li a {
  color: gold;
  text-decoration: none;
}

.info-button{
  margin-top:10px;
  background:#111; color:#0ff; border:2px solid #0ff;
  padding:6px 12px; border-radius:10px; cursor:pointer;
  font-family:'DotGothic16',monospace; text-shadow:0 0 5px #0ff;
  box-shadow:0 0 10px #0ff;
}
.info-button:hover{ background:#0ff; color:#000; }

.detail-panel{
  display:none;                
  margin:14px auto 28px;
  width:min(980px, 92vw);
  border:2px solid #00ffff;
  border-radius:16px;
  background:rgba(0,0,0,0.75);
  box-shadow:0 0 20px rgba(0,255,255,0.4);
  backdrop-filter: blur(2px);
}
.detail-panel.open{ display:block; }

.detail-inner{
  padding:18px 20px;
  max-height: 65vh;   /* 長いときはここで内側だけ縦スクロール可能 */
  overflow:auto;
}

.detail-panel h3{
  margin:0 0 8px; color:#00ffff; text-shadow:0 0 6px #00ccff;
}
.achievements{ padding-left:18px; margin:8px 0 12px;}
.achievements li{ margin:4px 0; }

.sns-inline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.sns-inline img{
  width:36px; height:36px; object-fit:contain;
  border-radius:8px; border:2px solid #0ff; background:#000; box-shadow:0 0 8px #0ff;
}

@media (max-width: 900px){
  .detail-inner{ max-height: 70vh; }
}



/* .panel-open .arrow {
  display: none !important;
  pointer-events: none;
}*/















/* MEMBERS 用：3列グリッド */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  justify-items: center; /* 各カードを中央寄せ */
  align-items: start;
}

/* talent-slide の高さをこのセクションだけ auto に上書き */
.members-grid.talent-slide {
  height: auto;
}

/* カード幅の上限を少しだけ管理（任意：見た目安定化） */
.members-grid .event {
  width: 100%;
  max-width: 300px;
}

/* レスポンシブ：タブレットで2列 */
@media (max-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* スマホで1列 */
@media (max-width: 640px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  header#main-header {
    display: none; /* スマホではヘッダーを非表示 */
  }
}
/* 詳細パネル内の画像を縮小 */
/* --- detail panel 画像の標準表示（共通） --- */
.detail-panel .achievements img{
  max-width: min(680px, 70%);  /* 画面に対して適切な縮尺 */
  height: auto;
  display: block;
  margin: 16px auto;           /* 文字との余白＋中央寄せ */
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(0,255,255,.35), 0 0 24px rgba(0,255,255,.25);
  cursor: zoom-in;             /* 拡大できることが伝わる */
}

/* 実績テキストの行間と段落間の余白を整える */
.detail-panel .achievements{
  line-height: 1.9;
  margin: 8px 0 12px;
}
.detail-panel .achievements p{ margin: 0.6em 0; }

/* --- ライトボックス（共通） --- */
.lb-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;               /* .openが付くと表示 */
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(2px);
  cursor: zoom-out;
}
.lb-backdrop.open{ display: flex; }

.lb-backdrop img{
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 30px rgba(0,255,255,.35);
}
.sns-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 8px;
}

.sns-label {
  font-size: 0.9rem;
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}
.panel-open .arrow { pointer-events: auto !important; }
.panel-open .arrow { pointer-events: auto !important; display: block !important; }
.lb-backdrop { z-index: 3000 !important; } /* 矢印(z=50000)より下に */