@charset "utf-8";

/* ========================================================
   1. 基本設定（リセットとベース）
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li, figure {
  margin: 0;
  padding: 0;
}

body {
  background-color: #121417; /* 深いダークグレー */
  color: #d1d5db;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #09f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #60bfff;
}

/* ========================================================
   2. ヘッダー
   ======================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(18, 20, 23, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #2d333b;
}

.header-left {
  display: flex;
  align-items: center; /* サイト名と説明文を縦の中央で揃える */
  gap: 15px; /* サイト名と説明文の間の余白 */
}

.site-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap; /* サイト名が改行されないようにする */
}

/* ▼ 追加：ヘッダー内の説明文 ▼ */
.header-desc {
  font-size: 0.8rem;
  color: #888; /* 目立ちすぎないように少し暗めの色 */
  line-height: 1.4;
}

/* ハンバーガーメニューボタン */
.menu-btn {
  /* （※ここは既存のまま変更なし） */
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap; /* メニューボタンが改行されないようにする */
}
.menu-btn:hover { background-color: #2d333b; }


/* ▼ 追加：スマホ閲覧時の設定（画面幅が800px以下の場合） ▼ */
@media screen and (max-width: 800px) {
  .header-desc {
    display: none; /* スマホでは説明文を非表示にして邪魔にならないようにする */
  }
}

/* ========================================================
   3. スライドアウト目次（隠しメニュー）
   ======================================================== */
.menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 200;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0; right: -320px; /* 画面外に隠す */
  width: 320px;
  height: 100%;
  background-color: #1e2227;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 201;
  padding: 20px;
}
.side-menu.active {
  right: 0; /* スライドイン */
}

.close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
  text-align: right;
  width: 100%;
  margin-bottom: 15px;
}

.side-menu h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 1px solid #3d444d;
  padding-bottom: 10px;
}

/* -----------------------------------
   スライドメニュー内のサイト情報
   ----------------------------------- */
.menu-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #3d444d; /* 境界線を引く */
}

.menu-site-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.menu-description {
  font-size: 0.8rem; /* 少し小さめの文字で説明 */
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 12px;
}

.menu-author {
  font-size: 0.85rem;
  color: #888;
}

.menu-author a {
  color: #09f;
  font-weight: bold;
}

.menu-list {
  list-style: none;
  margin-bottom: 30px;
}
.menu-list li { margin-bottom: 8px; }
.menu-list a {
  display: block;
  color: #bbb;
  font-size: 0.9rem;
  padding: 5px 0;
}
.menu-list a:hover { color: #fff; }

/* ========================================================
   4. メインコンテンツ（本文）
   ======================================================== */
.main-content {
  max-width: 760px; /* 読みやすい幅に固定 */
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.entry-title {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.entry-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid #2d333b;
}

/* ========================================================
   5. 対話UI（チャット風）
   ======================================================== */
.dialogue {
  margin-bottom: 30px;
  padding: 20px 25px;
  border-radius: 12px;
}

.dialogue p { margin-bottom: 1em; }
.dialogue p:last-child { margin-bottom: 0; }
.dialogue ul { margin: 10px 0 10px 25px; }
.dialogue li { margin-bottom: 8px; }
.dialogue h3 { font-size: 1.1rem; color: #fff; margin: 1.5em 0 0.5em; }

.speaker-name {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* 人間（質問者） */
.human {
  background-color: #1a2630; /* ほんのり青系 */
  border-left: 4px solid #09f;
}
.human .speaker-name { color: #09f; }

/* AI（Gemini） */
.ai {
  background-color: #1c2722; /* ほんのり緑系 */
  border-left: 4px solid #06c755;
}
.ai .speaker-name { color: #06c755; }

/* ========================================================
   6. SNSシェアボタン ＆ ナビゲーション
   ======================================================== */
.share-area {
  margin: 60px 0 40px;
  text-align: center;
}
.share-title {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
  font-weight: bold;
}
.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-share {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 30px;
  transition: opacity 0.2s;
}
.btn-share:hover { opacity: 0.8; text-decoration: none; }
.btn-x { background-color: #000; border: 1px solid #444; }
.btn-fb { background-color: #1877F2; }
.btn-hatebu { background-color: #00A4DE; }
.btn-line { background-color: #06C755; }

/* 次のページへボタン */
.next-button {
  display: block;
  text-align: center;
  background-color: #3f4752;
  color: #fff !important;
  padding: 18px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.2s;
  margin-bottom: 20px;
}
.next-button:hover {
  background-color: #09f;
  text-decoration: none;
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #2d333b;
  font-size: 0.85rem;
  color: #666;
}

/* ========================================================
   7. ページネーション（前後ナビゲーション）
   ======================================================== */
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.nav-btn {
  background-color: #3f4752;
  color: #fff !important;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none !important;
  transition: background-color 0.2s;
  flex: 1;
  text-align: center;
}
.nav-btn:hover { background-color: #09f; }
.nav-btn.prev-btn { margin-right: 15px; }
.nav-btn.next-btn { margin-left: 15px; }
.page-num {
  font-size: 0.9rem;
  color: #888;
  white-space: nowrap;
}
/* スマホ閲覧時は縦並びにする */
@media screen and (max-width: 480px) {
  .page-navigation { flex-direction: column; gap: 15px; }
  .nav-btn { width: 100%; margin: 0 !important; box-sizing: border-box; }
  .page-num { order: -1; margin-bottom: 5px; } /* ページ番号を一番上に */
}

/* ========================================================
   8. Amazonアフィリエイトエリア
   ======================================================== */
.affiliate-area {
  margin: 10px 0 40px;
  padding: 25px 20px;
  background-color: #16191d;
  border-radius: 12px;
  border: 1px solid #2d333b;
}

.affiliate-title {
  text-align: center;
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 20px;
  font-weight: bold;
}

.affiliate-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.affiliate-card {
  display: block;
  background-color: #1e2227;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #3d444d;
  transition: all 0.2s ease;
  color: #d1d5db;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

/* ホバー時の発光エフェクト */
.affiliate-card:hover {
  background-color: #252a30;
  border-color: #09f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.15);
}

/* 左端のアクセントライン */
.affiliate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #3d444d;
  transition: background-color 0.2s;
}
.affiliate-card:hover::before {
  background-color: #09f;
}

.affiliate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 10px; /* 左端のライン分の余白 */
}

.affiliate-category {
  font-size: 0.75rem;
  color: #09f;
  font-weight: bold;
  letter-spacing: 1px;
}

.affiliate-name {
  font-size: 1.05rem;
  color: #fff;
  font-weight: bold;
  line-height: 1.4;
}

.affiliate-author {
  font-size: 0.85rem;
  color: #aaa;
}

.affiliate-desc {
  font-size: 0.85rem;
  color: #888;
  margin-top: 6px;
  line-height: 1.6;
}