/* ===== ガジェット用語ナビ CSS ===== */
/* カラー: ネイビー(#1B2A4A), 白(#FFFFFF), アクセントオレンジ(#E67E22) */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background: #FAFAFA;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: #1B2A4A;
  color: #FFFFFF;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2C4066 100%);
  color: #FFFFFF;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* --- Home Section --- */
.home-section {
  margin-bottom: 48px;
}

.home-section h2 {
  font-size: 1.4rem;
  color: #1B2A4A;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #E67E22;
  display: inline-block;
}

.view-all {
  text-align: center;
  margin-top: 24px;
}

/* --- Term Grid --- */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.term-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.term-card h3 {
  font-size: 1.05rem;
  color: #1B2A4A;
  margin-bottom: 8px;
}

.term-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.term-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #E67E22;
  background: rgba(230, 126, 34, 0.08);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 8px;
}

.term-card-small {
  padding: 12px 16px;
  font-size: 0.9rem;
  text-align: center;
}

/* --- Category Group --- */
.category-group {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.2rem;
  color: #1B2A4A;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #E67E22;
}

/* --- Breadcrumb --- */
.breadcrumb {
  color: #E67E22;
  text-decoration: none;
  font-size: 0.85rem;
}

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

.breadcrumb-sep {
  color: #999;
  margin: 0 6px;
  font-size: 0.85rem;
}

.breadcrumb-current {
  color: #666;
  font-size: 0.85rem;
}

/* --- Glossary Page --- */
.glossary-page {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 40px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.glossary-header {
  margin-bottom: 32px;
}

.glossary-header h1 {
  font-size: 1.8rem;
  color: #1B2A4A;
  margin: 12px 0 8px;
}

.glossary-lead {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.8rem;
  color: #999;
}

/* --- Article Content --- */
.article-content h2 {
  font-size: 1.35rem;
  color: #1B2A4A;
  margin: 36px 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid #E8E8E8;
}

.article-content h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 24px 0 12px;
}

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

.article-content a {
  color: #E67E22;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: #E67E22;
}

.article-content ul, .article-content ol {
  margin: 12px 0 16px 24px;
}

.article-content li {
  margin-bottom: 6px;
}

/* --- Product Card --- */
.product-card {
  display: flex;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.product-image {
  flex-shrink: 0;
  width: 120px;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 1rem;
  color: #1B2A4A;
  margin-bottom: 6px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E67E22;
  margin-bottom: 8px;
}

.product-comment {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.product-btn {
  display: inline-block;
  background: #E67E22;
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.product-btn:hover {
  background: #D35400;
}

/* --- Compare Table --- */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  background: #1B2A4A;
  color: #FFFFFF;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #E8E8E8;
}

.compare-table tr:nth-child(even) {
  background: #F8F9FA;
}

.compare-table .product-name {
  font-weight: 500;
  color: #1B2A4A;
}

/* --- Review Quote --- */
.review-quote {
  border-left: 4px solid #E67E22;
  padding: 12px 16px;
  margin: 16px 0;
  background: #FEF9F4;
  border-radius: 0 6px 6px 0;
}

.review-quote p {
  font-style: italic;
  color: #444;
  margin-bottom: 6px;
}

.review-quote cite {
  font-size: 0.8rem;
  color: #888;
  font-style: normal;
}

.stars {
  color: #F39C12;
  margin-left: 6px;
}

/* --- X Mention --- */
.x-mention {
  margin: 12px 0;
}

.x-quote {
  border-left: 4px solid #1DA1F2;
  padding: 12px 16px;
  background: #F5FAFF;
  border-radius: 0 6px 6px 0;
}

.x-quote p {
  color: #444;
  margin-bottom: 6px;
}

.x-quote cite {
  font-size: 0.8rem;
  color: #888;
  font-style: normal;
}

/* --- Related Terms --- */
.related-terms {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #E8E8E8;
}

.related-terms h2 {
  font-size: 1.2rem;
  color: #1B2A4A;
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline {
  border: 2px solid #1B2A4A;
  color: #1B2A4A;
}

.btn-outline:hover {
  background: #1B2A4A;
  color: #FFFFFF;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 32px 20px;
  margin-top: 60px;
  background: #1B2A4A;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* --- Page List --- */
.page-list h1 {
  font-size: 1.8rem;
  color: #1B2A4A;
  margin: 30px 0 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .glossary-page {
    padding: 24px 16px;
    margin: 16px auto;
  }

  .glossary-header h1 {
    font-size: 1.5rem;
  }

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

  .product-card {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
    max-width: 200px;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .glossary-header h1 {
    font-size: 1.3rem;
  }
}
