/* ===== Visually Hidden (SEO) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f9f6ff;
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
.header {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  color: inherit;
}

.header-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* ===== Main Navigation ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: #ede7f6;
  color: #7c5cbf;
}

/* ===== Dropdown Menu ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.dropdown-arrow {
  font-size: 11px;
  transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
  z-index: 200;
  margin-top: 8px;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f5f0fc;
  color: #7c5cbf;
}

/* ===== Hamburger Button ===== */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-hamburger:hover {
  background: #f0ecf7;
}

.header-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-search {
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-search:hover {
  background: #f0ecf7;
}

/* ===== Search Overlay ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.search-overlay.open .search-container {
  transform: translateY(0);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  flex-grow: 1;
  border: none;
  background: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 18px;
  outline: none;
  color: #333;
}

.search-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: #999;
  transition: color 0.2s;
}

.search-close:hover {
  color: #d32f2f;
}

/* ===== Page Layout (Main + Ad Sidebars) ===== */
.page-layout {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 16px;
}

.ad-sidebar {
  width: 300px;
  flex-shrink: 0;
  padding-top: 32px;
}

.ad-sidebar-inner {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ad-sidebar-inner a,
.ad-sidebar-inner img {
  display: block;
  line-height: 0;
}

.ad-sidebar-inner img[width="1"] {
  display: none;
}

/* ===== Main Container ===== */
.main {
  flex: 1;
  min-width: 0;
  padding: 32px 0 48px;
}

.section-top .top-img {
  max-width: 900px;
  margin: -32px auto 32px;
}

.section-top .top-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Section Heading ===== */
.section-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #7c5cbf;
}

/* ===== Tags ===== */
.tag-tech {
  background: #ede7f6;
  color: #5e35b1;
}

.tag-ai {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-game {
  background: #fff3e0;
  color: #e65100;
}

.tag-entame {
  background: #fce4ec;
  color: #c62828;
}

.tag-internet {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-society {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* ===== Featured ===== */
.featured {
  max-width: 800px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, #e8dff5, #fce4ec);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(124, 92, 191, 0.1);
}

.featured-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.featured-summary {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.featured-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #7c5cbf;
  padding: 8px 20px;
  border-radius: 24px;
  transition: background 0.2s;
}

.featured-link:hover {
  background: #6a4dab;
}

/* ===== Topic Grid ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.topic-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0eaf8;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(124, 92, 191, 0.12);
}

.topic-card:nth-child(1) {
  border-top: 3px solid #b39ddb;
}

.topic-card:nth-child(2) {
  border-top: 3px solid #f48fb1;
}

.topic-card:nth-child(3) {
  border-top: 3px solid #80cbc4;
}

.topic-card:nth-child(4) {
  border-top: 3px solid #ffab91;
}

.topic-card:nth-child(5) {
  border-top: 3px solid #90caf9;
}

.topic-card:nth-child(6) {
  border-top: 3px solid #ce93d8;
}

.topic-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  width: fit-content;
}

.topic-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d2d2d;
}

.topic-desc {
  font-size: 13px;
  color: #777;
  flex-grow: 1;
}

.topic-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}

/* ===== Latest News List ===== */
.latest-list {
  list-style: none;
  margin-bottom: 48px;
}

.latest-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #ece6f5;
  transition: background 0.15s;
  cursor: pointer;
}

.latest-item:hover {
  background: #f5f0fc;
}

.latest-date {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.latest-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.latest-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* ===== Footer ===== */
.footer {
  background: #2d2d2d;
  color: #ccc;
  text-align: center;
  padding: 32px 16px;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 16px;
  font-size: 12px;
  color: #777;
}

/* ===== Faction Badge ===== */
.faction-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(124, 92, 191, 0.15);
}

.faction-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faction-badge-label {
  color: #555;
}

/* ===== Floating Points UI ===== */
.points-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(124, 92, 191, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 900;
  border: 1px solid rgba(124, 92, 191, 0.2);
  transition: transform 0.3s;
}

.points-float:hover {
  transform: translateY(-4px);
}

.points-icon {
  font-size: 20px;
  background: #ffca28;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.points-value {
  font-weight: 700;
  color: #2d2d2d;
}

.points-label {
  font-size: 12px;
  color: #7c5cbf;
  margin-right: 4px;
}

.stay-reward-container {
  margin-top: 8px;
}

.stay-reward-btn {
  background: linear-gradient(135deg, #7c5cbf, #9c7fde);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 92, 191, 0.3);
  animation: bounce 2s infinite;
  display: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-6px);}
  60% {transform: translateY(-3px);}
}

/* ===== Faction Change Orbs ===== */
.faction-orbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  position: fixed;
  bottom: 34px;
  right: 200px;
  z-index: 900;
}
.faction-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5) 0%, transparent 50%),
    conic-gradient(from 0deg, #ff0000, #ff8800, #ffff00, #00cc00, #0088ff, #8800ff, #ff00aa, #ff0000);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 100, 100, 0.4),
    0 0 6px rgba(100, 100, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  animation: orbShimmer 3s linear infinite;
}
@keyframes orbShimmer {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.faction-orb.used {
  background: radial-gradient(circle at 35% 35%, #e0e0e0, #aaa);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: none;
  filter: none;
}

/* ===== Faction Change Popup ===== */
.faction-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.faction-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.faction-popup {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faction-popup-overlay.active .faction-popup {
  transform: scale(1) translateY(0);
}
.faction-popup-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.faction-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 8px;
}
.faction-popup-msg {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}
.faction-popup-remaining {
  font-size: 13px;
  color: #7c5cbf;
  font-weight: 600;
  margin-bottom: 20px;
}
.faction-popup-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.faction-popup-btn {
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.faction-popup-btn:hover {
  transform: translateY(-2px);
}
.faction-popup-btn.confirm {
  background: linear-gradient(135deg, #7c5cbf, #9c7fde);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 92, 191, 0.3);
}
.faction-popup-btn.cancel {
  background: #f0f0f0;
  color: #666;
}

/* ===== Hidden Comment ===== */
.comment-item.deleted {
  opacity: 0.6;
  background-color: #f5f5f5;
}

.comment-item.deleted .comment-text {
  color: #999;
  font-style: italic;
  font-size: 13px;
}

/* ===== Debug Panel ===== */
.debug-panel {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11px;
  z-index: 9999;
  max-width: 250px;
}

.debug-panel h4 {
  margin: 0 0 8px 0;
  border-bottom: 1px solid #0f0;
  padding-bottom: 4px;
}

.debug-btn {
  background: #333;
  color: #fff;
  border: 1px solid #0f0;
  padding: 4px 8px;
  margin: 2px;
  cursor: pointer;
  font-size: 10px;
}

.debug-btn:hover {
  background: #0f0;
  color: #000;
}

.debug-info {
  margin-top: 8px;
  word-break: break-all;
}

/* ===== Cut-in Overlay ===== */
.cutin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s;
  cursor: pointer;
}

.cutin-overlay.active {
  opacity: 1;
}

.cutin-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cutin-overlay.active .cutin-content {
  transform: scale(1);
}

.cutin-image {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

.cutin-text {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
  animation: cutin-glow 1.5s ease-in-out infinite alternate;
}

@keyframes cutin-glow {
  from { text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
  to   { text-shadow: 0 0 30px currentColor, 0 0 60px currentColor, 0 0 80px currentColor; }
}

.color-option.newly-unlocked {
  animation: color-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes color-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.voicevox-credit {
  font-size: 11px;
  color: #999;
  text-align: left;
  margin: 4px 0 0;
}
.article-body + .voicevox-credit {
  margin-top: -40px;
}

/* ===== Article Page ===== */
.article-container {
  max-width: 700px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #888;
}

.article-category {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 12px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d2d2d;
  line-height: 1.4;
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 48px;
}

.article-body p {
  margin-bottom: 16px;
}

/* ===== AI Commentary ===== */
.ai-commentary {
  margin-top: 32px;
  margin-bottom: 48px;
}

.ai-commentary-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #7c5cbf;
  background: #ede7f6;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 85%;
}

.chat-bubble.right {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 60px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.chat-avatar.char-a {
  background: #e8dff5;
}

.chat-avatar.char-b {
  background: #fce4ec;
}

.chat-content {
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-bubble.right .chat-content {
  background: #f3eaff;
}

.chat-name {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  margin-bottom: 4px;
}

/* ===== Reactions Chart ===== */
.reactions-section {
  margin-bottom: 48px;
  text-align: center;
}

.reactions-section .section-heading {
  text-align: left;
}

.chart-wrapper {
  max-width: 300px;
  margin: 0 auto 20px;
}

.reaction-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.reaction-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.reaction-btn:hover {
  transform: scale(1.05);
}

.reaction-btn.red {
  background: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}

.reaction-btn.blue {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.reaction-btn.yellow {
  background: #fff8e1;
  color: #f57f17;
  border-color: #ffe082;
}

.reaction-btn.active {
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.3);
}

.reaction-counts {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.rc-item {
  font-size: 14px;
  color: #555;
}

.rc-item b {
  font-size: 18px;
  margin-left: 4px;
}

.rc-red b   { color: #ef5350; }
.rc-blue b  { color: #42a5f5; }
.rc-yellow b{ color: #f0a500; }
.rc-green b { color: #66bb6a; }
.rc-purple b{ color: #ab47bc; }
.rc-pink b  { color: #ec407a; }

/* ===== Comment Section ===== */
.comment-section {
  margin-bottom: 48px;
}

.comment-form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.color-select {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.color-select label {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-right: 8px;
  align-self: center;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.color-option.red {
  background: #ef5350;
}

.color-option.blue {
  background: #42a5f5;
}

.color-option.yellow {
  background: #ffca28;
}

.color-option.green {
  background: #66bb6a;
}

.color-option.purple {
  background: #ab47bc;
}

.color-option.pink {
  background: #ec407a;
}

.comment-textarea {
  width: 100%;
  height: 80px;
  border: 2px solid #e8e0f0;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.comment-textarea:focus {
  outline: none;
  border-color: #7c5cbf;
}

.comment-char-count {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-bottom: 12px;
}

.comment-submit {
  background: #7c5cbf;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-submit:hover {
  background: #6a4dab;
}

.comment-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Comment List */
.comment-list {
  list-style: none;
}

.comment-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.comment-color-dot.red {
  background: #ef5350;
}

.comment-color-dot.blue {
  background: #42a5f5;
}

.comment-color-dot.yellow {
  background: #ffca28;
}

.comment-color-dot.green {
  background: #66bb6a;
}

.comment-color-dot.purple {
  background: #ab47bc;
}

.comment-color-dot.pink {
  background: #ec407a;
}

.comment-user {
  font-size: 13px;
  font-weight: 700;
  color: #888;
}

.comment-time {
  font-size: 12px;
  color: #bbb;
  margin-left: auto;
}

.comment-text {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.comment-action-btn {
  font-size: 13px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.comment-action-btn:hover {
  color: #7c5cbf;
}

/* ===== News List Page ===== */
.news-list-page {
  max-width: 800px;
  margin: 0 auto;
}

.news-list-item {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}

.news-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 92, 191, 0.1);
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-list-date {
  font-size: 13px;
  color: #999;
}

.news-list-category {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.news-list-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 6px;
}

.news-list-summary {
  font-size: 14px;
  color: #777;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  transition: background 0.15s;
}

.pagination a:hover {
  background: #ede7f6;
}

.pagination .active {
  background: #7c5cbf;
  color: #fff;
}

/* ===== About Page ===== */
.about-container {
  max-width: 700px;
  margin: 0 auto;
}

.about-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2d2d2d;
}

.about-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #7c5cbf;
  margin-bottom: 12px;
}

.about-section p {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section ul li {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.about-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #ce93d8;
  border-radius: 50%;
}

/* ===== Avatar Image ===== */
.chat-avatar-img {
  width: 60px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Play Button ===== */
.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #7c5cbf;
  background: #fff;
  color: #7c5cbf;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  background: #ede7f6;
}

.play-btn.playing {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.play-btn.playing:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}

.play-btn.loading {
  animation: pulse-loading 1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-loading {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ===== Article Title Wrap ===== */
.article-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.article-title-wrap .article-title {
  margin-bottom: 0;
  flex: 1;
}

.article-title-wrap .play-btn {
  margin-top: 6px;
}

.article-title-wrap .title-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede7f6;
  margin-top: 4px;
}

/* ===== AI Commentary Header ===== */
.ai-commentary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-commentary-header .ai-commentary-label {
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .ad-sidebar {
    display: none;
  }

  .main {
    padding: 32px 16px 48px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    gap: 4px;
    z-index: 99;
  }

  .header-nav button {
    background: none;
  }

  .header-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    width: 100%;
  }

  .nav-link:hover {
    background: #f5f0fc;
  }

  .header-hamburger {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: #f9f6ff;
    border-radius: 10px;
    margin-top: 4px;
    padding: 4px 0;
  }

  .nav-dropdown-menu a {
    padding: 10px 24px;
  }
}

@media (max-width: 600px) {

  .featured {
    padding: 24px 20px;
  }

  .featured-title {
    font-size: 20px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .latest-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-title {
    font-size: 22px;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .news-list-title {
    font-size: 16px;
  }
}

/* ===== Admin: Login Screen ===== */
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9f6ff, #ede7f6);
}

.admin-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(124, 92, 191, 0.12);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.admin-login-logo {
  margin-bottom: 16px;
}

.admin-login-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 28px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

.admin-login-input:focus {
  outline: none;
  border-color: #7c5cbf;
}

.admin-login-error {
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-btn {
  background: #7c5cbf;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-login-btn:hover {
  background: #6a4dab;
}

/* ===== Admin: Header ===== */
.admin-header {
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #7c5cbf;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-back-link {
  font-size: 13px;
  color: #7c5cbf;
  font-weight: 700;
  transition: opacity 0.2s;
}

.admin-back-link:hover {
  opacity: 0.7;
}

.admin-logout-btn {
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
  background: none;
  border: 1px solid #ef9a9a;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-logout-btn:hover {
  background: #ffebee;
}

/* ===== Admin: Tabs ===== */
.admin-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 2px solid #ede7f6;
  padding: 0 24px;
  overflow-x: auto;
}

.admin-tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.admin-tab:hover {
  color: #7c5cbf;
}

.admin-tab.active {
  color: #7c5cbf;
  border-bottom-color: #7c5cbf;
}

/* ===== Admin: Content ===== */
.admin-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid #7c5cbf;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-section-header .admin-section-title {
  margin-bottom: 0;
}

.admin-subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: #555;
  margin-bottom: 16px;
}

/* ===== Admin: Stats Grid ===== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.admin-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #7c5cbf;
}

.admin-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #7c5cbf;
  margin-bottom: 8px;
}

.admin-stat-label {
  font-size: 14px;
  color: #888;
  font-weight: 700;
}

/* ===== Admin: Table ===== */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table th {
  background: #f9f6ff;
  font-size: 13px;
  font-weight: 700;
  color: #7c5cbf;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0eaf8;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #faf8ff;
}

.admin-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

/* ===== Admin: Buttons ===== */
.admin-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-btn:hover {
  background: #f5f5f5;
}

.admin-btn-primary {
  background: #7c5cbf;
  color: #fff;
  border-color: #7c5cbf;
}

.admin-btn-primary:hover {
  background: #6a4dab;
  border-color: #6a4dab;
}

.admin-btn-primary:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

.admin-btn-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-btn-edit {
  background: #ede7f6;
  color: #7c5cbf;
}

.admin-btn-edit:hover {
  background: #d1c4e9;
}

.admin-btn-delete {
  background: #ffebee;
  color: #c62828;
}

.admin-btn-delete:hover {
  background: #ffcdd2;
}

.admin-btn-delete:disabled,
.admin-btn-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Admin: Select ===== */
.admin-select {
  padding: 8px 16px;
  border: 2px solid #e8e0f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #555;
  background: #fff;
}

.admin-select:focus {
  outline: none;
  border-color: #7c5cbf;
}

/* ===== Admin: Color Dot ===== */
.admin-color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
}

/* ===== Admin: Modal ===== */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #ede7f6;
}

.admin-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
}

.admin-modal-close {
  font-size: 24px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #c62828;
}

.admin-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ===== Admin: Form ===== */
.admin-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
}

.admin-form-input {
  padding: 10px 14px;
  border: 2px solid #e8e0f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.admin-form-input:focus {
  outline: none;
  border-color: #7c5cbf;
}

.admin-form-textarea {
  padding: 10px 14px;
  border: 2px solid #e8e0f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.admin-form-textarea:focus {
  outline: none;
  border-color: #7c5cbf;
}

/* ===== Admin: Stats Section ===== */
.admin-stats-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-chart-wrap {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Admin: Responsive ===== */
@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    padding: 0 16px;
  }

  .admin-tabs {
    padding: 0 16px;
  }

  .admin-tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  .admin-content {
    padding: 24px 16px;
  }

  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-header-right {
    gap: 8px;
  }

  .admin-back-link {
    font-size: 12px;
  }
}