/* ===== 共通 ===== */
body {
    font-family: sans-serif;
    margin: 20px;
    background: #2e2e2e;
    color: #fff;
  }
  
  h1 {
    margin-bottom: 30px;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
/* ===== 創作紹介ページ ===== */

/* ページタイトル */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

/* 左右2列のレイアウト */
.creation-intro {
    display: grid;
    grid-template-columns: 640px 640px;
    gap: 30px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 40px;
    align-items: center;
}

/* スライドショー */
.creation-slideshow {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1280 / 853;
    overflow: hidden;
    border-radius: 10px;
}

.creation-slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease;
}

.creation-slideshow .slide.active {
    opacity: 1;
}

/* あらすじ・ダウンロード欄 */
.creation-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
    line-height: 1.8;
    gap: 24px;
}

.creation-info p {
    margin: 0;
}

/* ダウンロードリンク：水色 */
.creation-info a {
    color: #6699BB;
    text-decoration: none;
}

.creation-info a:hover {
    text-decoration: underline;
}

/* キャラクター紹介リンク：白 */
.creation-characters a {
    color: #fff;
    text-decoration: none;
}

.creation-characters a:hover {
    text-decoration: underline;
}

/* キャラクター紹介リンク */
.creation-characters {
    margin-top: 40px;
    padding: 0;
    background: none;
    border-radius: 0;
    text-align: center;
    font-size: 1.2rem;
}

/* 画面が狭い場合 */
@media (max-width: 1330px) {
    .creation-intro {
        grid-template-columns: minmax(0, 640px) minmax(0, 640px);
        width: calc(100% - 40px);
    }
}

@media (max-width: 700px) {
    .creation-intro {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 20px;
    }

    .creation-info {
        gap: 20px;
    }
}

  /* ===== 一覧ページ ===== */
  .chapter {
    margin-bottom: 50px;
  }
  
  .chapter-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #555;
  }
  
  .character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .character-card img {
    width: 100%;
    border-radius: 8px;
  }
  
  .character-card p {
    text-align: center;
    margin-top: 8px;
  }
  
  /* 章カラー（一覧） */
  .chapter-1 .character-card {
    background: #77445a;
    padding: 10px;
    border-radius: 10px;
  }
  
  .chapter-2 .character-card {
    background: #807800;
    padding: 10px;
    border-radius: 10px;
  }

  .chapter-3 .character-card {
    background: #00541e;
    padding: 10px;
    border-radius: 10px;
  }

  .chapter-4 .character-card {
    background: #741308;
    padding: 10px;
    border-radius: 10px;
  }

  .chapter-5 .character-card {
    background: #240e44;
    padding: 10px;
    border-radius: 10px;
  }

  .chapter-6 .character-card {
    background: #004066;
    padding: 10px;
    border-radius: 10px;
  }
  
  /* ===== キャラ詳細 ===== */
  .breadcrumb {
    margin-bottom: 20px;
  }
  
  .main-image {
    height: 500px;          /* ← 好きな高さに調整してOK */
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 30px;
    cursor: pointer;
    object-fit: contain;
  }
  
  .info-block {
    background: white;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    color: #000;
  }
  
  .profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
  }
  
  .profile dt {
    font-weight: bold;
  }
  
  /* ネタバレ */
  .spoiler-content {
    display: none;
    background: #eee;
    padding: 10px;
    border-radius: 6px;
  }

  /* 裏設定 */
  .secret-content {
    display: none;
    background: #eee;
    padding: 10px;
    border-radius: 6px;
  }

  /* キャラ名中央揃え */
  .character-name {
  text-align: center;
  }

  /* ギャラリー */
  .sub-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .sub-images img {
    width: 150px;
    cursor: pointer;
    border-radius: 6px;
  }
  
  /* 拡大表示 */
  #overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }
  
  #overlay img {
    max-width: 90%;
    max-height: 90%;
  }
  
  /* ===== 章カラー（詳細ページ） ===== */
  body.chapter-1 {
    background: #77445a;
  }
  
  body.chapter-2 {
    background: #807800;
  }

  body.chapter-3 {
    background: #00541e;
  }

  body.chapter-4 {
    background: #741308;
  }

  body.chapter-5 {
    background: #240e44;
  }

  body.chapter-6 {
    background: #004066;
  }
  
  /* ギャラリーサムネ */
.sub-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .thumb {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ナビゲーション */
.nav {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    user-select: none;
  }
  
  .nav.prev { left: 30px; }
  .nav.next { right: 30px; }
  
  #overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
  }

  /* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
  }
  
  .close-btn:hover {
    opacity: 0.7;
  }

  /* ===== 用語辞書ページ ===== */

.glossary {
  text-align: left; 
}

.term {
  margin-bottom: 48px; /* ← 用語と用語の間を広く */
}

.term-title {
  font-size: 1.6em;
  margin-bottom: 4px; /* ← 罫線との間を狭く */
}

.term hr {
  margin: 6px 0 10px; /* ← 見出し・説明文との間を詰める */
}

.term-description {
  font-size: 1em;
  line-height: 1.8;
  margin: 0; /* ← 下の余白は .term が担当 */
}

/* 用語辞典 注記 */
.glossary-note {
  margin-top: 0px;
  margin-bottom: 48px;
}

/* 用語リンク */
.term-link {
  color: #6699BB;        /* 好きなリンク色に */
  text-decoration: none; /* 下線を消す */
}

.term-link:hover {
  text-decoration: underline; /* ホバー時だけ下線 */
}

/* キャラ名リンク */
.character-link {
  color: #6699BB;
  text-decoration: none;
}

.character-link:hover {
  text-decoration: underline;
}

/* ルビのサイズ */
rt {
  font-size: 0.4em;
}

/* パンくずリンクの下線 */
.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
  