/* 共通設定 */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", sans-serif;
  height: 100%;
  overflow: hidden;
  background: black;
  color: white;
}

#bg {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
}

/* 前画面 */
.container {
  position: relative;
  z-index:1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 20px;
}

.main-text { 
  font-size: clamp(28px,5vw,40px); 
  font-weight:900; 
  opacity:0;
  animation: fadeIn 1s forwards;
  margin-bottom:12px;
}

.highlight-text { 
  font-size: clamp(20px,4vw,32px); 
  font-weight:900; 
  position:relative; 
  display:inline-block; 
  opacity:0; 
  animation: fadeIn 1s forwards 0.5s;
  margin-bottom:12px;
}

.highlight-text::after {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:0;
  height:100%;
  background:white;
  transform: translate(-50%, -50%);
  z-index:-1;
  animation: expandBar 1s forwards 1.5s;
}

.highlight-text span {
  mix-blend-mode: difference;
}

.sub-text { 
  font-size: clamp(14px,2.5vw,18px); 
  color: rgba(255,255,255,0.6); 
  opacity:0;
  animation: fadeIn 1s forwards 1.8s;
  margin-bottom:20px;
}

.btn { 
  padding:10px 20px; 
  background:white; 
  color:black; 
  font-weight:700; 
  border-radius:8px; 
  cursor:pointer; 
  opacity:0;
  animation: fadeIn 1s forwards 2s;
}

/* アニメーションキー */
@keyframes fadeIn {
  0% {opacity:0; transform: translateY(10px);}
  100% {opacity:1; transform: translateY(0);}
}

@keyframes expandBar {
  0% {width:0;}
  100% {width:124%;}
}

/* 次画面 */
.next-page {
  position: fixed;
  inset:0;
  background:black;
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.8s;
}

.next-page.show { 
  opacity:1; 
  pointer-events:auto; 
}

.terms-box {
  width:90%;
  max-width:840px;
  padding:18px;
  border-radius:10px;
  background: rgba(0,0,0,0.96);
  display:flex;
  flex-direction:column;
  justify-content:flex-start; /* 上寄せに */
  max-height: 90vh;
}

.terms-content {
  flex:1 1 auto;
  overflow-y:auto;
  padding-right:10px;
}

.terms-content h2 { 
  margin-top:16px; 
  font-size:16px; 
}
.terms-content p, .terms-content li { 
  line-height:1.6; 
  font-size:14px; 
  color: rgba(255,255,255,0.85); 
}

/* スマホ対応 */
@media (max-width:600px){
  .main-text { font-size:24px; }
  .highlight-text { font-size:18px; }
  .sub-text { font-size:12px; }
}