
/* ===== ベース設定 ===== */
body {
  font-family: "メイリオ", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  padding: 1em;
  margin: 0;
  background-color: #111;
  color: #eee;
  word-break: break-word;
}

/* ===== 共通テキスト ===== */
p {
  margin: 0 0 1em;
}

strong {
  color: #7de;
}

/* ===== ボタン（汎用） ===== */
button {
  font-size: 1rem;
  padding: 0.6em 1em;
  margin: 0.5em 0;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: #fff;
  cursor: pointer;
}
button:hover {
  background-color: #555;
}

/* ===== 選択肢専用ボタン ===== */
.choice-button {
  background-color: #444;
  color: #fff;
  padding: 1em;
  margin: 1.5em auto;
  border-radius: 10px;
  border: none;
  display: block;
  width: 100%;
  max-width: 400px;
  font-size: 1.1rem;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
  transition: background-color 0.2s ease;
}
.choice-button:hover {
  background-color: #666;
}

/* ===== セリフブロック ===== */
.char-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  margin-bottom: 1.5em;
  flex-direction: row;
}

.char-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(255,255,255,0.15);
}

.char-bubble {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 1em 1.25em;
  max-width: 75%;
  color: #eee;
  line-height: 1.7;
  font-size: 1.05rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.char-bubble strong {
  display: block;
  color: #7de;
  font-size: 0.95em;
  margin-bottom: 0.25em;
}

/* 名前＋セリフ */
.char-line strong {
  font-size: 1rem;
  margin-right: 0.25em;
}

/* ===== キャラアイコン大 ===== */
.char-icon-large {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5em;
}

/* ===== セリフ中央ブロック用 ===== */
.char-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2em 0;
}
.char-name {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.25em;
  color: #aad;
}
.char-text {
  font-size: 1em;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 1em;
}

/* ===== ペンギンログ（UI構文） ===== */
.penguin {
  font-style: italic;
  color: #aaa;
  border-top: 1px dashed #7de;
  margin-top: 3em;
  padding-top: 1em;
  font-size: 0.95em;
}

/* ===== リアクションボックス ===== */
.reaction-box {
  border: 1px solid #7de;
  background: #1e1e1e;
  padding: 1.25em;
  margin: 2em 0;
  border-radius: 10px;
  font-size: 1.05rem;
  box-shadow: 0 0 12px rgba(125, 222, 238, 0.1);
}

/* ===== シーン画像（ページ冒頭など） ===== */
.scene-image {
  text-align: center;
  margin: 1em 0 2em 0;
  display: block;
  max-width: 100%;
  border-radius: 8px;
}
.scene-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}
.scene-image img:hover {
  transform: scale(1.03);
}


/* ===== ストーリー中の画像（inline） ===== */
.inline-image img {
  max-width: 90%;
  max-height: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
}

/* ===== 次へボタン ===== */
.next-button {
  text-align: center;
  margin: 3em 0 2em;
}
.next-button button {
  background: #7de;
  color: #111;
  font-weight: bold;
  font-size: 1.2em;
  padding: 1em 2.5em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.next-button button:hover {
  background: #9ef;
}

/* ===== モバイル対応（スマホ向け） ===== */
@media (max-width: 600px) {
  .char-icon {
    width: 40px;
    height: 40px;
  }
  .char-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .char-bubble {
    max-width: 100%;
    font-size: 0.95em;
  }
  .char-icon-large {
    width: 72px;
    height: 72px;
  }
  .char-text {
    font-size: 0.95em;
  }
  button {
    width: 100%;
    font-size: 1rem;
  }
}
.narration {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #ddd;
}