@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap);
/* フォントとベース設定 */

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #ffffff;
  color: #24292f;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ヘッダーデザイン */
.header {
  text-align: center;
  margin-bottom: 32px;
  padding: 48px 24px;
  background-color: #f6f8fa;
  border-radius: 12px;
  border: 1px solid #d1d9e0;
}

.title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #24292f;
  margin: 0 0 8px 0;
}

.subtitle {
  font-size: 1.125rem;
  color: #656d76;
  margin: 0;
  font-weight: 400;
}

/* 検索セクション */
.search-section {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #d1d9e0;
  backdrop-filter: blur(10px);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #24292f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.search-input::placeholder {
  color: #656d76;
}

/* 50音順一覧トグルボタン */
.list-toggle-btn {
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: #f6f8fa;
  color: #24292f;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.list-toggle-btn:hover {
  background-color: #eaeef2;
  border-color: #0969da;
}

.list-toggle-btn:active {
  background-color: #dde4ed;
}

/* ゲーム追加ボタン */
.add-game-btn {
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: #2da44e;
  color: #ffffff;
  border: 1px solid #2da44e;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-game-btn:hover {
  background-color: #2c974b;
  border-color: #2c974b;
}

.add-game-btn:active {
  background-color: #2a7f3e;
}

/* 掲示板ボタン */
.bbs-toggle-btn {
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: #0969da;
  color: #ffffff;
  border: 1px solid #0969da;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bbs-toggle-btn:hover {
  background-color: #0858b9;
  border-color: #0858b9;
}

.bbs-toggle-btn:active {
  background-color: #0747a6;
}

/* チャートボタン */
.chart-toggle-btn {
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: #f6f8fa;
  color: #24292f;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: none; /* 価格機能削除により非表示 */
}

.chart-toggle-btn:hover {
  background-color: #eaeef2;
  border-color: #0969da;
}

.chart-toggle-btn:active {
  background-color: #dde4ed;
}

/* ゲーム一覧 */
.games-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.game {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.game:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.game-image {
  flex-shrink: 0;
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  object-fit: cover;
}

/* 楽天アフィリエイト画像のスタイル */
.game-image a[href*="rakuten.co.jp"] {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}

.game-image a[href*="rakuten.co.jp"] img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* 両方のアフィリエイト表示 */
.affiliate-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rakuten-affiliate {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 8px;
  transition: all 0.3s ease;
}

.rakuten-affiliate:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(191, 0, 0, 0.3);
}

.rakuten-affiliate a {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}

.rakuten-affiliate img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.amazon-affiliate {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9900 0%, #ff8c00 100%);
  border-radius: 6px;
  padding: 8px;
  transition: all 0.3s ease;
}

.amazon-affiliate:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* アフィリエイト表示 */
.affiliate-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.affiliate-container:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.affiliate-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.affiliate-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.affiliate-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.affiliate-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.affiliate-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.3;
}

.game-content {
  flex: 1;
  min-width: 0;
}

.game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.game-title,
.game-title-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #24292f;
  text-decoration: none;
  display: inline-block;
  margin: 0;
  flex: 1;
}

.link-settings-btn {
  padding: 6px 8px;
  font-size: 14px;
  background-color: #f6f8fa;
  color: #656d76;
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.link-settings-btn:hover {
  background-color: #eaeef2;
  border-color: #0969da;
  color: #0969da;
}

.link-settings-btn:active {
  background-color: #dde4ed;
}

.game-title-link:hover {
  color: #0969da;
  text-decoration: underline;
}

.external-link-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  color: #656d76;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}

.meta-item {
  font-size: 0.875rem;
  color: #656d76;
}

.meta-label {
  font-weight: 500;
  color: #24292f;
}

.game-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #24292f;
  margin-bottom: 16px;
}

.reviews-title,
.fun-facts-title {
  font-size: 1rem;
  font-weight: 600;
  color: #24292f;
  margin: 16px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-title::before {
  content: "📝";
  font-size: 1.2rem;
}

.fun-facts-title::before {
  content: "💡";
  font-size: 1.2rem;
}

.reviews-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
}

.fun-facts-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.875rem;
  color: #656d76;
}

.review-item {
  background: linear-gradient(135deg, #f7f7f6 0%, #e1e0dc 100%);
  border: 1px solid #3f3d38;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(251, 192, 45, 0.15);
  transition: all 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #424242;
  transform: rotate(-1deg);
}

.review-item:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 4px 16px rgba(251, 192, 45, 0.25);
  z-index: 1;
}

/* ピンの装飾 */
.review-item::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.5);
  border: 2px solid #ffffff;
}

.review-item::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #ff4757;
}

.fun-fact-item {
  margin-bottom: 8px;
  line-height: 1.5;
  padding-left: 0;
}

/* 偶数番目のレビューアイテムは逆方向に回転 */
.review-item:nth-child(even) {
  transform: rotate(1deg);
}

.review-item:nth-child(even):hover {
  transform: rotate(0deg) scale(1.02);
}

/* 3の倍数番目のレビューアイテムはさらに回転 */
.review-item:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.review-item:nth-child(3n):hover {
  transform: rotate(0deg) scale(1.02);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .title {
    font-size: 2rem;
  }

  .search-section {
    flex-direction: column;
    gap: 8px;
  }

  .games-container {
    gap: 16px;
  }

  .game {
    flex-direction: column;
    gap: 12px;
  }

  .game-image {
    width: 100%;
  }

  .affiliate-content {
    padding: 12px;
  }

  .affiliate-icon {
    font-size: 1.5rem;
  }

  .affiliate-title {
    font-size: 0.875rem;
  }

  .affiliate-subtitle {
    font-size: 0.7rem;
  }

  /* 両方のアフィリエイト表示のレスポンシブ対応 */
  .affiliate-container {
    gap: 6px;
  }

  .rakuten-affiliate,
  .amazon-affiliate {
    padding: 6px;
  }

  .game-list-overlay {
    width: 100%;
  }

  .modal-container {
    width: 95vw;
    height: 95vh;
  }

  .game-management-modal {
    width: 95vw;
    height: 95vh;
  }

  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    max-width: none;
    transform: translateY(-100%);
  }

  .toast.show {
    transform: translateY(0);
  }

  .toast.hide {
    transform: translateY(-100%);
  }

  .reviews-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-item {
    padding: 14px;
    font-size: 0.8rem;
    transform: rotate(0deg);
  }

  .review-item:nth-child(even),
  .review-item:nth-child(3n) {
    transform: rotate(0deg);
  }

  .review-item:hover {
    transform: scale(1.01);
  }

  /* 掲示板のモバイル対応 */
  .bbs-overlay {
    justify-content: center;
  }

  .bbs-container {
    width: 95vw;
    max-width: 95vw;
    height: 90vh;
  }

  .bbs-content {
    padding: 16px;
  }

  .comment-form-section {
    padding-bottom: 16px;
  }

  .comments-section {
    flex: 1;
    min-height: 0;
  }
}

/* ローディング */
.loading {
  text-align: center;
  padding: 40px;
  color: #656d76;
  font-size: 1rem;
}

/* 50音順一覧オーバーレイ */
.game-list-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background-color: #ffffff;
  border-left: 1px solid #d1d9e0;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.game-list-overlay:not(.hidden) {
  transform: translateX(0);
}

.game-list-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #d1d9e0;
  background-color: #f6f8fa;
}

.game-list-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #24292f;
  margin: 0;
}

.game-count {
  font-size: 0.875rem;
  color: #656d76;
  background-color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid #d1d9e0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #656d76;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #f1f3f4;
  color: #24292f;
}

.game-list-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.game-list-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.game-list-item:hover {
  background-color: #f6f8fa;
}

.game-list-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-list-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #24292f;
}

.game-list-item-meta {
  font-size: 0.75rem;
  color: #656d76;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-container {
  transform: scale(1);
}

/* リンク設定ダイアログ */
.link-settings-modal {
  width: 600px;
  height: auto;
  max-height: 80vh;
}

.link-input {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
  color: #24292f;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.link-input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.link-input[readonly] {
  background-color: #f6f8fa;
  color: #656d76;
  cursor: not-allowed;
}

.cancel-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: #f6f8fa;
  color: #656d76;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background-color: #eaeef2;
  border-color: #656d76;
}

.cancel-btn:active {
  background-color: #dde4ed;
}

.game-management-modal {
  width: 800px;
  height: 80vh;
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #24292f;
  margin: 0;
}

.modal-content {
  padding: 24px;
  height: calc(100% - 80px);
  overflow-y: auto;
}

/* ゲーム追加セクション */
.add-game-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d1d9e0;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #24292f;
  margin: 0 0 16px 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #24292f;
  margin-bottom: 6px;
}

.json-textarea {
  width: 100%;
  padding: 12px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #24292f;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.json-textarea:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.save-btn,
.clear-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn {
  background-color: #2da44e;
  color: #ffffff;
  border-color: #2da44e;
}

.save-btn:hover {
  background-color: #2c974b;
  border-color: #2c974b;
}

.clear-btn {
  background-color: #f6f8fa;
  color: #24292f;
  border-color: #d1d9e0;
}

.clear-btn:hover {
  background-color: #eaeef2;
  border-color: #586069;
}

/* ファイル操作セクション */
.file-operation-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d1d9e0;
}

.file-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-btn,
.upload-btn {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.download-btn {
  background-color: #0969da;
  color: #ffffff;
  border-color: #0969da;
}

.download-btn:hover {
  background-color: #0858b9;
  border-color: #0858b9;
}

.upload-btn {
  background-color: #f6f8fa;
  color: #24292f;
  border-color: #d1d9e0;
}

.upload-btn:hover {
  background-color: #eaeef2;
  border-color: #0969da;
  color: #0969da;
}

/* ゲーム管理一覧 */
.game-list-section {
  margin-top: 24px;
}

.game-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #24292f;
  margin: 0 0 16px 0;
}

.management-game-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
}

.management-game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.management-game-item:last-child {
  border-bottom: none;
}

.management-game-item.deleted {
  opacity: 0.6;
  background-color: #f6f8fa;
}

.management-game-item.deleted .management-game-title {
  text-decoration: line-through;
}

.management-game-info {
  flex: 1;
}

.management-game-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #24292f;
  margin: 0 0 4px 0;
}

.management-game-meta {
  font-size: 0.75rem;
  color: #656d76;
}

.management-game-actions {
  flex-shrink: 0;
}

.delete-game-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: inherit;
  background-color: #d73a49;
  color: #ffffff;
  border: 1px solid #d73a49;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-game-btn:hover {
  background-color: #cb2431;
  border-color: #cb2431;
}

.delete-game-btn.deleted {
  background-color: #2da44e;
  border-color: #2da44e;
}

.delete-game-btn.deleted:hover {
  background-color: #2c974b;
  border-color: #2c974b;
}

/* トースト通知 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  color: #24292f;
  max-width: 400px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast.success {
  border-left: 4px solid #2da44e;
  background-color: #f6ffed;
}

.toast.error {
  border-left: 4px solid #d73a49;
  background-color: #fff5f5;
}

.toast.info {
  border-left: 4px solid #0969da;
  background-color: #f0f7ff;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
  background-color: #fffbeb;
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #2da44e;
}

.toast.error .toast-icon {
  color: #d73a49;
}

.toast.info .toast-icon {
  color: #0969da;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #656d76;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background-color: #f1f3f4;
  color: #24292f;
}

/* ユーティリティ */
/* 掲示板オーバーレイ */
.bbs-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bbs-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.bbs-container {
  width: 400px;
  max-width: 90vw;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.bbs-overlay:not(.hidden) .bbs-container {
  transform: translateX(0);
}

.bbs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #d1d9e0;
  background-color: #f6f8fa;
}

.bbs-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #24292f;
  margin: 0;
}

.bbs-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* コメント投稿フォーム */
.comment-form-section {
  border-bottom: 1px solid #d1d9e0;
  padding-bottom: 20px;
}

.comment-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #24292f;
  transition: border-color 0.2s ease;
}

.comment-input:focus {
  outline: none;
  border-color: #0969da;
}

.comment-textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #24292f;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.comment-textarea:focus {
  outline: none;
  border-color: #0969da;
}

.post-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: #0969da;
  color: #ffffff;
  border: 1px solid #0969da;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-btn:hover {
  background-color: #0858b9;
  border-color: #0858b9;
}

.post-btn:disabled {
  background-color: #656d76;
  border-color: #656d76;
  cursor: not-allowed;
}

.comment-count {
  font-size: 12px;
  color: #656d76;
  margin-left: 12px;
}

/* コメント一覧 */
.comments-section {
  flex: 1;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  padding: 12px;
  background-color: #f6f8fa;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.comment-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #24292f;
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: #656d76;
}

.comment-text {
  color: #24292f;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 12px;
}

/* コメントアクションボタン */
.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.good-btn,
.bad-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  background-color: #f6f8fa;
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.good-btn:hover {
  background-color: #eaeef2;
  border-color: #0969da;
}

.bad-btn:hover {
  background-color: #eaeef2;
  border-color: #d73a49;
}

.good-btn:active,
.bad-btn:active {
  transform: translateY(1px);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .comment-actions {
    flex-direction: column;
    gap: 6px;
  }

  .good-btn,
  .bad-btn {
    justify-content: center;
  }
}

/* チャートオーバーレイ */
.chart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.chart-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.chart-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  max-height: 90vh;
  width: 1000px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.chart-overlay:not(.hidden) .chart-container {
  transform: scale(1);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #d1d9e0;
  background-color: #f6f8fa;
}

.chart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #24292f;
  margin: 0;
}

.chart-content {
  padding: 32px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.chart-description {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f6f8fa;
  border-radius: 8px;
  border-left: 4px solid #0969da;
}

.chart-description p {
  margin: 0 0 8px 0;
  color: #656d76;
  font-size: 14px;
}

.chart-description p:last-child {
  margin-bottom: 0;
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.hidden {
  display: none !important;
}

/* 上へアイコン */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #0969da;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #0851b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 105, 218, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}


/*# sourceMappingURL=main.e84b27c43dfe7262cc90.css.map*/