@charset "UTF-8";

/* =========================================
   1. 全体設定・変数
   ========================================= */
:root {
  --bg: #36393f;
  --sidebar: #2f3136;
  --text: #dcddde;
  --accent: #00b0f4;
  --t0p: #a0a0a0;
  --t0: #ff66aa;
  --t1: #a366ff;
  --t15: #ff6644;
  --t2: #ffcc66;
  --t3: #ffff66;
  --t4: #66ff66;
}

body {
  margin: 0;
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

h1 {
  color: #fff;
  border-bottom: 1px solid #4f545c;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* =========================================
   2. サイドバー・ナビゲーション
   ========================================= */
.sidebar {
  width: 260px;
  background: var(--sidebar);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 80px;
  transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #4f545c;
  border-radius: 3px;
}

.server-name {
  font-weight: bold;
  color: #fff;
  padding: 0 16px 16px;
  border-bottom: 1px solid #202225;
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-group {
  margin-bottom: 10px;
}

.channel-header {
  padding: 6px 16px;
  font-size: 0.8em;
  font-weight: bold;
  color: #8e9297;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.channel-header:hover {
  color: #fff;
}

.channel-list {
  overflow: hidden;
}

.channel-group.closed .channel-list {
  display: none;
}
.channel-group.closed i {
  transform: rotate(-90deg);
  transition: 0.2s;
}

.channel-item {
  padding: 8px 12px;
  margin: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #8e9297;
  font-weight: bold;
  font-size: 0.95em;
}

.channel-item:hover {
  background: #34373c;
  color: #fff;
}

.channel-item.active {
  background: #393c43;
  color: #fff;
}

.channel-icon {
  margin-right: 8px;
  width: 18px;
  text-align: center;
  display: inline-block;
}

/* スマホ用背景暗転オーバーレイ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  backdrop-filter: blur(2px);
}

/* ハンバーガーボタン (PCでは非表示) */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: var(--sidebar);
  border: 1px solid #4f545c;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hamburger-btn:hover {
  background: #393c43;
}

/* =========================================
   3. メインコンテンツエリア
   ========================================= */
.main-content {
  flex-grow: 1;
  padding: 20px 40px;
  overflow-y: auto;
}

.page-section {
  display: none;
}
.page-section.active-page {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-main-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.update-info {
  background: #202225;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 0.9em;
}

/* =========================================
   4. Tier表・キャラクターアイコン
   ========================================= */
.tier-legend {
  background: #2f3136;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.85em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-left: 4px solid var(--accent);
}

.tier-row {
  display: flex;
  background: #2f3136;
  border-radius: 4px;
  overflow: hidden;
  min-height: 90px;
  margin-bottom: 4px;
}

.tier-label {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.tier-chars {
  flex-grow: 1;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

/* Tier背景色 */
.bg-t0p { background: var(--t0p); }
.bg-t0  { background: var(--t0); }
.bg-t1  { background: var(--t1); }
.bg-t15 { background: var(--t15); }
.bg-t2  { background: var(--t2); }
.bg-t3  { background: var(--t3); }
.bg-t4  { background: var(--t4); }

/* キャラアイコン */
.char-card {
  width: 60px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.char-card:hover .char-img {
  transform: scale(1.05);
  border-color: #fff;
  transition: 0.2s;
}

.char-img {
  width: 60px;
  height: 60px;
  background: #444;
  border-radius: 10px;
  margin: 0 auto 4px;
  border: 2px solid #202225;
  background-size: cover;
  background-position: center;
}

.char-name {
  font-size: 0.7em;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  line-height: 1.1;
  height: 2.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  justify-content: center;
  display: flex;
}

/* =========================================
   5. シリアルコード・YouTube動画・アフィリエイト
   ========================================= */
.serial-box {
  background: #2f3136;
  border: 1px solid #4f545c;
  border-left: 5px solid var(--t1);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.serial-title {
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.serial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.serial-item {
  background: #202225;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 1.1em;
  color: #4ade80;
  border: 1px dashed #4f545c;
}

/* YouTube高画質サムネイル＆軽量化スタイル */
.youtube-lite {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid #2f3136;
  background-color: #000;
  cursor: pointer;
  background-position: center;
  background-size: cover;
}

.youtube-lite::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: rgba(255, 0, 0, 0.8);
  border-radius: 10px;
  z-index: 1;
  transition: background-color 0.2s;
}

.youtube-lite:hover::before {
  background-color: rgb(255, 0, 0);
}

.youtube-lite::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  z-index: 2;
}

.youtube-lite iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 3;
}

/* アフィリエイト商品カード */
.product-card {
  background: #2f3136;
  border: 1px solid #4f545c;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.product-img-box {
  width: 150px;
  height: 150px;
  background: #202225;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px dashed #4f545c;
  color: #72767d;
  font-size: 0.9em;
  text-align: center;
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.product-info { flex-grow: 1; }

.product-name {
  font-size: 1.25em;
  color: #fff;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.product-desc {
  font-size: 0.95em;
  color: #dcddde;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.product-point {
  color: #ffcc66;
  font-weight: bold;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.affiliate-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-amazon, .btn-rakuten {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
  transition: opacity 0.2s;
  color: #fff;
}
.btn-amazon:hover, .btn-rakuten:hover { opacity: 0.8; }
.btn-amazon { background: #f39c12; }
.btn-rakuten { background: #bf0000; }

/* =========================================
   6. メンバーシップ誘導バナー
   ========================================= */
.membership-promo {
  background: #202225;
  border: 1px solid #4f545c;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.promo-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #3ea6ff;
  object-fit: cover;
  background: #444;
}

.promo-title-area h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1em;
  line-height: 1.4;
}
.promo-title-area p {
  margin: 5px 0 0 0;
  color: #aaa;
  font-size: 0.85em;
}

.plan-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
  z-index: 2;
}

.plan-card {
  background: #2f3136;
  border: 1px solid #4f545c;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}
.plan-card.premium {
  border-color: #f1c40f;
  background: rgba(241, 196, 15, 0.05);
}

.plan-name {
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
  font-size: 1.05em;
}

.plan-price {
  font-size: 1.4em;
  color: #3ea6ff;
  font-weight: bold;
  margin-bottom: 15px;
}
.plan-card.premium .plan-price { color: #f1c40f; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #dcddde;
  font-size: 0.9em;
  line-height: 1.6;
  flex-grow: 1;
}
.plan-features li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}
.plan-features li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #8e9297;
}
.plan-features li strong {
  color: #fff;
  border-bottom: 1px solid #3ea6ff;
}
.plan-card.premium .plan-features li strong {
  border-bottom-color: #f1c40f;
}

.promo-warning {
  font-size: 0.9em;
  color: #e6b800;
  background: rgba(230, 184, 0, 0.1);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid rgba(230, 184, 0, 0.3);
  line-height: 1.6;
  margin-top: 15px;
  z-index: 2;
}
.promo-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #ffd700;
}

.promo-btn {
  background: #3ea6ff;
  color: #0f0f0f;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  padding: 12px;
  border-radius: 24px;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  transition: background 0.2s;
  z-index: 2;
}
.promo-btn:hover { background: #65b8ff; }

/* =========================================
   7. 記事・装飾ボックス・その他機能
   ========================================= */
.strategy-article {
  max-width: 950px;
  line-height: 1.6;
}

.article-title {
  font-size: 1.4em;
  color: #fff;
  background: #202225;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 6px solid var(--accent);
}

.highlight-box {
  background: #2f3136;
  border: 1px solid #4f545c;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.box-title {
  font-size: 1.1em;
  margin: 0 0 10px 0;
  color: #fff;
}

.point-box {
  background: rgba(0, 176, 244, 0.1);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 0.95em;
}
.point-box p { margin: 0; }

/* 広告プレースホルダー */
.ad-container {
  margin: 30px 0;
  text-align: center;
}
.ad-label {
  font-size: 0.75em;
  color: #72767d;
  margin-bottom: 5px;
  display: block;
}
.ad-placeholder {
  background: #202225;
  border: 1px dashed #4f545c;
  border-radius: 4px;
  color: #72767d;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* =========================================
   8. スマホ(SP)用レスポンシブ対応
   ========================================= */
@media (max-width: 768px) {
  .hamburger-btn { display: block; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 999;
    transform: translateX(-100%); 
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }

  .main-content {
    padding: 60px 15px 15px 15px; 
    width: 100%;
    box-sizing: border-box;
  }

  .page-main-title { font-size: 1.4em; }
  .update-info { font-size: 0.85em; margin-bottom: 20px; }
  
  /* Tier表凡例の1列化 */
  .tier-legend {
    grid-template-columns: 1fr; 
    font-size: 0.95em;
    gap: 8px;
  }

  /* アフィリエイト商品カードの縦積み */
  .product-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-img-box {
    width: 100%;
    height: 200px;
  }
  .affiliate-btn-group { width: 100%; }
  .btn-amazon, .btn-rakuten { flex: 1; }
}