body {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: #111;
  color: #eee;
}


.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 7px 1px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  border-bottom: 2px solid #444;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

.navbar a:hover {
  text-shadow: 0 0 5px #fff;
}


.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: 60px;
  border-top: 3px solid #333;
  border-bottom: 3px solid #333;
  
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
  display: flex;        
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}



.slide1 { background: #222 url('../images/gensai1.png') center/cover no-repeat; }
.slide2 { background: #222 url('../images/gensai2.png') center/cover no-repeat; }
.slide3 { background: #222 url('../images/gensai3.png') center/cover no-repeat; }
.slide4 { background: #222 url('../images/gensai4.png') center/cover no-repeat; }


.active {
  opacity: 1;
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  transition: 0.3s;
}

.arrow:hover {
  background: rgba(255,255,255,0.2);
}

.prev { left: 20px; }
.next { right: 20px; }


.form-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 30px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
}

.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

label {
  display: block;
  margin-top: 15px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #555;
  background: #222;
  color: #eee;
  border-radius: 5px;
}


.error {
  display: none;
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
}


button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 48%;
}

button:hover {
  background: #666;
}

#checkBtn {
  margin-right: 4%;
}

#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;

  padding: 20px 30px;
  font-size: 18px;
  line-height: 1;

  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;

  display: none;

  width: auto !important;   
  max-width: none !important;
  display: inline-block !important;  
}



#topBtn:hover {
  background: #444;
}

.slide1 {
  color: #ba1515;  
}

.slide2 {
  color: #ba1515;
}


.slide3 {
  color: #ba1515;  
}


.slide4 {
  color: #ba1515;   
}

.story {
  max-width: 700px;          
  margin: 50px auto;          
  padding: 20px 30px;

  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; 
  font-size: 20px;
  line-height: 1.9;

  color: #eee;
  background: rgba(0, 0, 0, 0.4);  
  border-left: 5px solid #b33;      
  border-radius: 8px;

  text-shadow: 1px 1px 2px #000;    
  padding-bottom: 40px;
}

.ktitle {
  text-align: center;                     
  font-family: "Yu Mincho", serif;        
  font-size: 48px;                       
  letter-spacing: 0.4em;                 
  color: #eee;
  margin-top: 80px;                      
  margin-bottom: 20px;                    
  

  text-shadow: 
    3px 3px 6px #000,                    
    0 0 8px #880000;                      
  
  border-bottom: 3px solid #550000;      
  display: inline-block;                
  padding-bottom: 10px;                
   width: 100%;          
  display: flex;
  justify-content: center;
}


.kuroki1, .kuroki2,.kuroki2c,.kuroki4 {
  position: absolute;
  z-index: 5;       
}

.kuroki1 {
  top: 790px;        
  left: 1px;
}

.kuroki2 {
  top: 2200px;      
  right: 50px;
}

.kuroki2c {
  top: 2200px;        
  right: 1100px;
}
.kuroki3 {
  width: 100%;
  display: flex;
  justify-content: center;   
  margin-top: 40px;          
}

.kuroki4 {
  top: 1300px;      
  right: 50px;
}

.kuroki1 img {
  width: 300px;    
  
}

.kuroki2 img {
  width: 350px;      
  
}

.kuroki3 img {
  width: 1050px; 
       
  
}


.slide {
  pointer-events: none;
}


.slide.active {
  pointer-events: auto;
}

.pro {

  font-size: 30px;
}

.saisin {
  font-size: 40px;      
  font-weight: bold;    
  text-align: center;   
  margin: 40px auto;    
  width: 100%;          
}

.syoukai {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin: 40px auto;
  width: 100%;

  position: relative;
  padding-top: 25px; 
}

.syoukai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 700px;         
  height: 2px;          
  background: #ffffff;    
  transform: translateX(-50%);
}

.syoukai1 {
    font-size: 35px;
  font-weight: bold;
  text-align: center;
  margin: 40px auto;
  width: 100%;

  position: relative;
  
}

.syoukai2 {
    font-size: 15px;
  font-weight: bold;
  text-align: center;
  margin: 40px auto;
  width: 100%;

  position: relative;
  padding-top: 45px; 
}


.profile-box {
  max-width: 700px;
  margin: 80px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 5px solid #b33;
  border-radius: 8px;
  color: #eee;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-shadow: 1px 1px 2px #000;
}

.profile-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 3px solid #550000;
  display: inline-block;
  padding-bottom: 5px;
  letter-spacing: 0.2em;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}

.profile-table th {
  width: 30%;
  padding: 10px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid #444;
  font-weight: bold;
}

.profile-table td {
  padding: 10px;
  border-bottom: 1px solid #444;
}


body {
  background: radial-gradient(circle at center, #111, #000);
  color: #eee;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.9;
}


.battle {
  max-width: 1100px;
  margin: 120px auto;
  padding: 0 20px;
}


.round-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.3em;
  color: crimson;
  margin: 40px 0 60px;
  text-shadow: 0 0 12px rgba(255,0,0,0.8);
}


.match-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;

  padding: 40px 20px;
  background: linear-gradient(180deg, #111, #000);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 35px rgba(255,0,0,0.15);
}

.fighter {
  text-align: center;
}

.fighter img {
  width: 260px;
  filter: grayscale(100%) contrast(120%);
  box-shadow: 0 0 25px rgba(255,255,255,0.15);
}


.fighter .name {
  margin-top: 18px;
  font-size: 22px;
  color: crimson;
  line-height: 1.4;
}

.vs {
  font-size: 56px;
  font-weight: bold;
  color: crimson;
  text-shadow:
    0 0 12px rgba(255,0,0,0.9),
    0 0 30px rgba(255,255,255,0.3);
}

.setumei {
  margin: 40px auto 60px;
  max-width: 900px;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border-left: 5px solid crimson;
  font-size: 16px;
  line-height: 2;
}

.win {
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  gap: 20px;

  font-size: 24px;
  margin-bottom: 120px;
  color: #fff;
  letter-spacing: 0.2em;
  text-shadow: 0 0 14px crimson;
}


.win img {
  width: 500px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255,0,0,0.5));
}


.manga {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  justify-items: center;
}

.item {
  text-align: center;
}

.item img {
  width: 290px;
  display: block;
}

.item a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;

  background: crimson;
  color: #fff;
  text-decoration: none;
  font-weight: bold;

  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255,0,0,0.5);
  transition: 0.3s;
}

.item a:hover {
  background: #ff3333;
  box-shadow: 0 0 25px rgba(255,0,0,0.8);
}


.video {
  text-align: center;
}

.video img {
  width: 590px;
  display: block;
}

.video a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;

  background: crimson;
  color: #fff;
  text-decoration: none;
  font-weight: bold;

  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255,0,0,0.5);
  transition: 0.3s;
}

.video a:hover {
  background: #ff3333;
  box-shadow: 0 0 25px rgba(255,0,0,0.8);
}

/* ==============================
   オープニング全体
============================== */
#opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
}

.ink-bg {
  position: absolute;
  inset: 0;
  background: #000;
  animation: inkFade 2.8s ease-out forwards;
}

#ink-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: 0.2em;
  color: #f5f5f5;

  text-shadow:
    0 0 8px rgba(255,255,255,0.2),
    0 0 30px rgba(0,0,0,1);

  animation: textShow 2.2s ease-out forwards;
}

#kuroki-cutin {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  width: 70vw;
  max-width: 900px;

  opacity: 0;
  filter: contrast(120%) grayscale(100%);
  animation: kurokiIn 1.2s ease-out forwards;
  animation-delay: 2.2s;
}

.crack {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent 0 48%,
      rgba(255,255,255,0.8) 49% 50%,
      transparent 51% 100%
    );
  opacity: 0;
  animation: crackBreak 1s ease-out forwards;
  animation-delay: 3.2s;
}

/* オープニング共通 */
#opening {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
}

#ink-text {
  display: none;
  color: #fff;
  font-size: 48px;
  text-align: center;
  line-height: 100vh;
  font-family: "Yu Mincho", serif;
}

#kuroki-cutin {
  display: none;
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
}
