.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fafafa;
  min-height: calc(100vh - 200px);
}

.page-title {
  color: #2c3e50;
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.intro-text {
  text-align: center;
  color: #555;
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* 検索とフィルター */
.search-container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1.1em;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3498db;
}

.search-btn {
  padding: 12px 24px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #2980b9;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  font-weight: 500;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #3498db;
}

.filter-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

/* 用語カード */
.glossary-container {
  display: grid;
  gap: 25px;
}

.term-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.term-title {
  color: #2c3e50;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 8px;
}

.term-definition {
  font-size: 1.1em;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.term-definition strong {
  color: #2c3e50;
}

.term-details {
  color: #555;
}

.term-details h3 {
  color: #2c3e50;
  font-size: 1.2em;
  margin: 25px 0 10px 0;
  font-weight: 600;
}

.term-details ul {
  margin: 10px 0;
  padding-left: 20px;
}

.term-details li {
  margin: 8px 0;
  line-height: 1.6;
}

.term-details li strong {
  color: #2c3e50;
}

.term-details p {
  line-height: 1.7;
  margin: 10px 0;
}

/* 用語メタデータ */
.term-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.category-tag,
.reading-time,
.view-count,
.featured-tag {
  font-size: 0.8em;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.category-tag {
  background-color: #3498db;
  color: white;
}

.reading-time,
.view-count {
  background-color: #f0f0f0;
  color: #666;
}

.featured-tag {
  background-color: #e74c3c;
  color: white;
}

.term-preview {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  line-height: 1.6;
  color: #555;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  margin-left: 10px;
}

.read-more:hover {
  text-decoration: underline;
}

/* 検索結果なし */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results h3 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.no-results p {
  color: #666;
  font-size: 1.1em;
}

/* ページネーション */
.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-link {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.page-link:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.page-info {
  color: #666;
  font-size: 0.9em;
  padding: 0 15px;
}

/* 関連リンク */
.related-links {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-links h2 {
  color: #2c3e50;
  font-size: 1.4em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.indicator-link {
  display: block;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.indicator-link:hover {
  background: #e3f2fd;
  border-color: #3498db;
  transform: translateY(-1px);
}

.link-title {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.link-desc {
  display: block;
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }
  
  .page-title {
    font-size: 1.8em;
  }
  
  .intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }
  
  .search-container {
    padding: 20px;
  }
  
  .category-filters {
    justify-content: flex-start;
  }
  
  .filter-btn {
    font-size: 0.8em;
    padding: 6px 12px;
  }
  
  .term-card {
    padding: 20px;
  }
  
  .term-title {
    font-size: 1.3em;
  }
  
  .term-definition {
    font-size: 1em;
    padding: 12px;
  }
  
  .related-links {
    padding: 20px;
    margin-top: 30px;
  }
  
  .link-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .indicator-link {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 10px;
  }
  
  .page-title {
    font-size: 1.5em;
  }
  
  .search-container {
    padding: 15px;
  }
  
  .term-card {
    padding: 15px;
  }
  
  .term-title {
    font-size: 1.2em;
  }
}

/* 用語詳細ページのスタイル */
.term-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 0.9em;
  color: #666;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.term-detail {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.term-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.term-title-main {
  color: #2c3e50;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.term-meta-detail {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.category-tag-large {
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
}

.term-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.term-stats span {
  font-size: 0.9em;
  color: #666;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 12px;
}

.featured-tag-large {
  background-color: #e74c3c !important;
  color: white !important;
  font-weight: 600;
}

.definition-section,
.detail-section,
.calculation-section,
.impact-section,
.example-section {
  margin-bottom: 35px;
}

.definition-section h2,
.detail-section h2,
.calculation-section h2,
.impact-section h2,
.example-section h2 {
  color: #2c3e50;
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.definition-box {
  background: #e8f4f8;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  font-size: 1.1em;
  line-height: 1.7;
  color: #2c3e50;
  font-weight: 500;
}

.detail-content,
.calculation-content,
.impact-content,
.example-content {
  color: #555;
  line-height: 1.8;
  font-size: 1.05em;
}

/* 関連用語セクション */
.related-terms-section,
.category-terms-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.related-terms-section h2,
.category-terms-section h2 {
  color: #2c3e50;
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.related-terms-grid,
.category-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.related-term-card,
.category-term-card {
  display: block;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.related-term-card:hover,
.category-term-card:hover {
  background: #e3f2fd;
  border-color: #3498db;
  transform: translateY(-2px);
}

.related-term-card h3,
.category-term-card h3 {
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-term-card p,
.category-term-card p {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

/* ナビゲーションボタン */
.term-navigation {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.nav-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 150px;
}

.nav-btn.primary {
  background: #3498db;
  color: white;
  border: 2px solid #3498db;
}

.nav-btn.primary:hover {
  background: #2980b9;
  border-color: #2980b9;
}

.nav-btn.secondary {
  background: white;
  color: #3498db;
  border: 2px solid #3498db;
}

.nav-btn.secondary:hover {
  background: #3498db;
  color: white;
}

/* レスポンシブ（用語詳細ページ） */
@media screen and (max-width: 768px) {
  .term-detail-container {
    padding: 15px;
  }

  .term-detail {
    padding: 25px;
  }

  .term-title-main {
    font-size: 1.8em;
  }

  .term-meta-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .term-stats {
    gap: 10px;
  }

  .related-terms-grid,
  .category-terms-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .term-navigation {
    flex-direction: column;
  }

  .nav-btn {
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .term-detail-container {
    padding: 10px;
  }

  .term-detail {
    padding: 20px;
  }

  .term-title-main {
    font-size: 1.5em;
  }

  .related-terms-section,
  .category-terms-section {
    padding: 20px;
  }
}

/* 経済用語リンクとツールチップのスタイル */
.economic-term-link {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px dotted #3498db;
  position: relative;
  cursor: pointer;
}

.economic-term-link:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

/* ツールチップスタイル */
.economic-term-tooltip {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 300px;
  display: none;
}

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

.tooltip-header .term-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

.tooltip-header .term-category {
  font-size: 0.8em;
  font-weight: 500;
}

.tooltip-definition {
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 10px;
}

.tooltip-footer {
  text-align: right;
}

.tooltip-link {
  color: #3498db;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
}

.tooltip-link:hover {
  text-decoration: underline;
}

/* 関連用語ボックス */
.related-terms-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.related-terms-title {
  color: #2c3e50;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}

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

.related-term-item {
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.related-term-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  margin-bottom: 5px;
}

.related-term-link .term-name {
  font-weight: 600;
  color: #2c3e50;
}

.term-category-badge {
  font-size: 0.75em;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.term-summary {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
}

.related-terms-footer {
  margin-top: 15px;
  text-align: center;
}

.view-all-terms {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #3498db;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.view-all-terms:hover {
  background: #3498db;
  color: white;
}

/* おすすめ用語セクション */
.featured-terms-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-terms-title {
  color: #2c3e50;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 1.2em;
}

.featured-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.featured-term-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.featured-term-link {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

.featured-term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.featured-term-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

.featured-term-category {
  font-size: 0.75em;
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.featured-term-definition {
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 10px;
}

.featured-term-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8em;
  color: #777;
}

/* 用語ハイライト */
.term-highlight {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* レスポンシブデザイン（追加コンポーネント） */
@media (max-width: 768px) {
  .economic-term-tooltip {
    max-width: 250px;
  }
  
  .featured-terms-grid {
    grid-template-columns: 1fr;
  }
  
  .related-term-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .related-terms-box,
  .featured-terms-section {
    padding: 15px;
  }
  
  .economic-term-tooltip {
    max-width: 200px;
    padding: 10px;
  }
}