@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&family=Noto+Sans+JP:wght@100..900&display=swap');

/* choice.css */

body {
    background-color: #0b0b0f;
    color: #e0e0e0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 25px auto;
    background-color: rgba(20, 20, 30, 0.7);
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

#message br {
    content: "";
    display: block;
    margin-bottom: 1em;
}

button.end {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

button.end:hover {
    background-color: #e0e0e0;
    color: #0b0b0f;
    text-shadow: none;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    padding: 20px;
    color: #888;
    background-color: #0b0b0f;
    border-top: 1px solid #222;
}

/* 行全体の基本マージンを設定 */
.line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin: 0;               /* デフォルトの余白をリセット */
  padding: 0;              /* デフォルトの余白をリセット */
  line-height: 1.6;        /* 通常行の行間 */
}

/* フェードイン完了 */
.line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* タイプライター用カーソル */
.typing {
  border-right: 2px solid #e0e0e0;
  white-space: pre-wrap;
  animation: blink 1s steps(1) infinite;
}

/* 空行専用クラス */
.line.blank {
  /* 空行としての高さだけ確保 */
  height: 1.6em;   
  /* フェードインは不要なので transition をオフ */
  transition: none;
}

/* カーソル点滅 */
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #e0e0e0; }
}

/* メッセージボックス全体に余白をつけたい場合 */
#message {
  font-size: 1.1rem;
  color: #f8f8f2;
  margin-top: 25px;
}

button.end {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ボタンのフェードイン完了 */
button.end.visible {
  opacity: 1;
  transform: translateY(0);
}

#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 1000;
}

/* 暗転完了 */
#overlay.visible {
  opacity: 1;
}
