html, body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
  background-color: #000000;
  margin: 0;
  background-image: url(image/background.png);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}

html { scrollbar-gutter: stable; }

body { overflow-y: auto; }

.hero-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 300px;
  margin-bottom: 100px;
  position: relative;  
  overflow: hidden;     
  z-index: 0; 
}


.hero-image {
  position: relative;
  width: 60%; 
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}


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

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-logo {
  width: 60%;
  max-width: 400px;
  height: auto;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease;
}

#overlay img {
  max-width: 60%;
  animation: logo-fade-in 2s ease forwards;
}

@keyframes logo-fade-in {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


header {
  font-family: 'DotGothic16', monospace;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px #b86eff, 0 0 30px #b86eff, 0 0 50px #b86eff;
}

.catchphrase {
  text-align: center;
  font-family: 'DotGothic16', monospace;
  font-size: 2.2rem;
  color: gold;
  margin-top: 10px;
  margin-bottom: 20px;
  text-shadow:
    0 0 5px #ffd700,
    0 0 10px #ffcc00,
    0 0 20px #ff9900,
    0 0 30px #ff6600;
  animation: fadeIn 2s ease-in-out;
}



.hanging-keychain {
  position: fixed;
  top: 50px;
  right: 50px;
  height: 5px;  
  z-index: 999;
  transform-origin: top center;
  transition: transform 0.2s ease-out;
}
.hanging-keychain a:hover img {
  filter: brightness(1.4) drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #ffccff);
  transition: filter 0.3s ease;
}
.hanging-keychain img {
  pointer-events: auto;
  transition: filter 0.3s ease;
  height: 200px;

}


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

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


.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  margin: 100px auto 0;
  text-align: center;
  padding: 5px 10px;
  border: 4px solid #00ffff; /* 外枠の色 */
  box-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 30px #00ccff,
    0 0 40px #0099ff;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.channel-info {
  margin-top: 10px;
  font-family: 'DotGothic16', monospace;
  text-align: center;
}

.channel-info a {
  color: #00ffff;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-info a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ccff;
}

#image-container {
  position: relative;
  width: 100%; 
  max-width: 550px; 
  margin: 100px auto;
  overflow: hidden;
}

#image-container .big-image {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 5s ease, transform 5s ease;
  margin: 0 auto; 
}

#image-container .fade-in-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; 
  opacity: 0;
  transition: opacity 2s ease;
}

.video-container {
  width: 100%;
  margin: 100px auto 0;
  text-align: center;
}

.video-container video {
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.topics-section,
.events-section,
.YouTube-section {
  text-align: center;
  padding: 80px 20px;
  color: white;
}

.title {
  font-size: 3.5rem;
  margin-bottom: 40px;
}

.topics-wrapper,
.events-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.topic,
.event {
  opacity: 0;
  width: 300px;
  margin-bottom: 40px;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.topic img,
.event img {
  width: 100%;
  border-radius: 10px;
}

.topic p,
.event p {
  font-family: 'DotGothic16', monospace;
  margin: 10px 0;
  padding: 12px;
  font-size: 1.1em;
  line-height: 1.6;
  border: 2px solid rgba(255, 255, 255, 0.5); 
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
} 

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.event-list-button {
  font-size: 1rem;
  padding: 10px 20px;
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  transition: all 0.3s ease;
}
.event-list-button:hover {
  background-color: #00ffff;
  color: #000;
}


.description {
  font-family: 'DotGothic16', monospace;
  margin-top: 10px;
  font-size: 1.2em;
  line-height: 1.6;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 2px #ff0000; 
  color: #fff;
  display: inline-block;
  max-width: 80%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.topic a,
.event a {
  display: inline-block;
  color: #007BFF;
  text-decoration: none;
  margin-top: 5px;
}

.fade-in-up { transform: translateY(50px); }
.fade-in-down { transform: translateY(-50px); }
.fade-in-right { transform: translateX(50px); }
.fade-in-left { transform: translateX(-50px); }

.fade-in-up.show,
.fade-in-down.show,
.fade-in-right.show,
.fade-in-left.show {
  opacity: 1;
  transform: translate(0, 0);
}

.show {
  opacity: 1;
  transform: translate(0, 0);
}

.twist-on-hover:hover {
  animation: twistRotate 0.6s ease-in-out;
}

@keyframes twistRotate {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-10deg); /* 左へひねる */
  }
  60% {
    transform: rotate(10deg); /* 右へ戻し通り過ぎる */
  }
  100% {
    transform: rotate(0deg); /* 元に戻る */
  }
}

.talent-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.neon-frame {
  padding: 20px;
  border-radius: 16px;
  background-color: #111;
  box-shadow: none;
  transition: box-shadow 0.3s ease-in-out;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.twist-on-hover {
  width: 100%;
  aspect-ratio: 1 / 1;       /* 正方形を強制 */
  object-fit: cover;         /* はみ出たら中央トリミング */
  display: block;
}


.talent-slide.active .neon-frame {
  animation: neon-flash 0.6s ease-in-out forwards;
  opacity: 1;
  transform: scale(1);
}

@keyframes neon-flash {
  0% {
    box-shadow: 0 0 0px hotpink;
  }
  30% {
    box-shadow: 0 0 40px 10px hotpink;
  }
  60% {
    box-shadow: 0 0 20px 5px hotpink;
  }
  100% {
    box-shadow: 0 0 30px 8px hotpink;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.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: 200px;
}

.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;
}


@media (max-width: 768px) {
  .hanging-keychain {
    height: 50px;
    left: 15px;
    top: 50px;
  }
}
.footer-contact {
  margin-top: 30px;
  text-align: center;
}

.footer-headline {
  font-size: 1.4rem;
  font-family: 'DotGothic16', monospace;
  color: #00ffff;
  text-shadow: 0 0 5px #0ff, 0 0 15px #00ccff;
  margin-bottom: 10px;
}

#overlay img {
  max-width: 80%;       
  margin: 0 auto;     
  display: block;
  animation: logo-fade-in 2s ease forwards;
  border-radius: 20px;  
}
.event-list-button {
  position: relative;       
  z-index: 10;              
  margin-bottom: 30px;      
}

.events-section {
  padding-bottom: 80px;     
}

.sub.tagline {
  font-size: 1.4rem;
  color: #ffccff;
  margin-top: 10px;
  display: block;
  text-shadow:
    0 0 5px #ff99ff,
    0 0 10px #ff66cc,
    0 0 20px #ff33cc,
    0 0 30px #cc00cc;
  opacity: 0;
  animation: fadeInRight 2s ease-out forwards;
  animation-delay: 6s;
}



.event-list-button {
  display: inline-block;
  margin-top: 1rem; /* ← ここでボタン上に余白を追加 */
}
.events-wrapper.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
}

.members-grid.talent-slide {
  height: auto;
}

.members-grid .event {
  width: 100%;
  max-width: 300px;
}

@media (max-width: 1024px) {
  .events-wrapper.members-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 640px) {
  .events-wrapper.members-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #main-content { margin-top: 80px; }

  .hero-view { margin-top: 20px; }

  .hero-logo {
    width: 80%;
    max-width: 260px;
    margin: 24px auto 28px;
  }

  .hero-caption {
    position: static;      
    transform: none;       
    left: auto; top: auto; 
    text-align: center;
    padding: 0 12px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-caption h1 { font-size: 2.4rem; text-shadow: 0 0 10px #0ff; }
  .hero-caption .sub { font-size: 1.2rem; animation-delay: 0s; }
  .sub.tagline { font-size: 1rem; animation-delay: 0s; }

  .hanging-keychain { display: none; }  

  .video-container video { width: 100%; }

  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.4rem;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  header#main-header {
    display: none; 
  }
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 2px solid #00ffff;
    z-index: 2000;
  }

  .mobile-bottom-nav a {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #00ffff;
  }

  .mobile-bottom-nav a:hover {
    color: #000;
    background: #00ffff;
    padding: 4px 8px;
    border-radius: 6px;
  }
}
@media (max-width: 640px) {
  #main-content {
    margin-top: 4px !important;  
  }

  .hero-view {
    display: flex;
    flex-direction: column;
    align-items: center;  
    gap: 10px;
    margin-top: 0;
  }

  .hero-logo {
    display: block;
    margin: 0 auto;                     
    width: min(80vw, 280px);            
    height: auto;
  }

  .hero-caption {
    position: static;
    transform: none;
    text-align: center;
    padding: 0 12px;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-caption h1 { font-size: 2.2rem; margin: 6px 0 0; }
  .hero-caption .sub { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .title {
    font-size: 2.2rem;   
    line-height: 1.2;
    word-break: break-word; 
    text-align: center;
  }
}
@media (max-width: 640px) {
  .footer {
    padding: 16px 12px 72px;   
    text-align: center;
  }

  .sns-links {
    justify-content: center;
    gap: 12px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
  }
  .sns-links img {
    width: 56px;               
    height: auto;
  }

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

  .footer-image img {
    width: 120px;              
    height: auto;
  }

  .footer-contact { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
  }
  .footer-headline {
    font-size: 1.1rem;
    line-height: 1.35;
    max-width: 90vw;
    text-align: center;
    white-space: normal;
    word-break: keep-all;      
  }
  .footer-contact .event-list-button {
    width: min(320px, 86vw);
    padding: 12px 16px;
    font-size: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;                 
  }
  .footer-links ul {
    display: flex;             
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
  }
  .footer-links ul li a {
    font-size: 0.9rem;         
  }
}
#toggle-pc-mode {
  color: #00ffff;
  font-size: 1rem;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ccff;
  cursor: pointer;
}
#toggle-pc-mode:hover {
  color: #000;
  background: #00ffff;
  padding: 4px 8px;
  border-radius: 6px;
}
@media (min-width: 1025px) {
  #toggle-pc-mode {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  #toggle-pc-mode {
    display: inline-block;
  }
}
.description {
  margin: 16px auto;         
  padding: 16px;             
  max-width: 700px;          
  text-align: center;        
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.events-section .members-grid .event > a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.events-section .members-grid .event > a > img {
  width: 100%;
  height: 100% !important;  
  object-fit: cover;       
  display: block;
}


@media screen and (max-width:768px){
  .hero-view::after {
    content: none !important;
    display: none !important;
  }
  .gradient-sp {
    display:block !important;
    position:absolute;
    bottom:0; left:0;
    width:100%;
    height:200px;  
    background:linear-gradient(to bottom,transparent,#001837);
    z-index:1;
  }
}
@media (max-width: 768px) {
  .hero-view{
    padding-bottom: 200px !important;
    margin-bottom: 0 !important; 
  }
  .gradient-sp{
    height: 200px;          
    pointer-events: none;   
    z-index: 1;             
  }
}

@media (max-width: 768px) {
  .neon-frame.show {
    animation: neon-flash 0.6s ease-in-out forwards !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}
.neon-frame.show {
  animation: neon-flash 0.6s ease-in-out forwards;
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 768px) {
  .events-section .members-grid .neon-frame {
    opacity: 1 !important;
    transform: scale(1) !important;

    animation: neon-pulse 2.4s ease-in-out infinite alternate !important;
    will-change: box-shadow, transform; 
  }
}

@keyframes neon-pulse {
  0%   { box-shadow: 0 0 10px hotpink, 0 0 20px hotpink; }
  50%  { box-shadow: 0 0 26px 6px hotpink, 0 0 40px 10px hotpink; }
  100% { box-shadow: 0 0 14px 3px hotpink, 0 0 28px 6px hotpink; }
}

@media (prefers-reduced-motion: reduce) {
  .neon-frame { animation: none !important; }
}
@media (max-width: 768px) {
  .events-section .members-grid .event.neon-frame,
  .events-section .members-grid .neon-frame,
  .neon-frame {
    opacity: 1 !important;
    transform: scale(1) !important;
    animation: neon-pulse 2.4s ease-in-out infinite alternate !important;
    box-shadow: 0 0 20px hotpink, 0 0 40px hotpink !important;
  }
}

@keyframes neon-pulse {
  0%   { box-shadow: 0 0 8px hotpink, 0 0 16px hotpink; }
  50%  { box-shadow: 0 0 28px 8px hotpink, 0 0 48px 16px hotpink; }
  100% { box-shadow: 0 0 12px hotpink, 0 0 24px hotpink; }
}
/* SPだけ：YouTube欄の白枠を消しつつ幅を安全に */
@media (max-width: 768px){
  /* 白いボーダーを無効化（はみ出しの元凶） */
  .YouTube-section .video-container.description{
    border: none !important;
  }
  /* 幅は画面内に収める（パディング/ボーダー込みで） */
  .YouTube-section .video-container{
    max-width: 94vw;
    width: auto;
    margin: 40px auto 0;
    padding: 16px;
    box-sizing: border-box;
  }
}
/* a がなくても正方形を維持する */
.events-section .members-grid .event > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;   /* 正方形 */
  object-fit: cover;     /* 中央でトリミング */
  border-radius: 12px;
}