/* ================================
   Base
================================ */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  background: #f5f6f8;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

/* ================================
   Header (モダンEC向け)
================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.75rem;
  color: #777;
}

/* 検索バー（中央） */
.header-search-bar {
  flex: 1;
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
}

.search-input:focus {
  outline: none;
  border-color: #4a90e2;
  background: #fff;
}

.search-button {
  padding: 10px 18px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-button:hover {
  background: #3b7ac2;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  gap: 16px;
}

.nav-item {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
}

.nav-item:hover {
  color: #4a90e2;
}

/* ================================
   Footer (モダンEC向け)
================================ */
.site-footer {
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  margin: 0 10px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #4a90e2;
}

.footer-copy {
  color: #777;
  font-size: 0.85rem;
}

/* ================================
   Card / Layout
================================ */
.card {
  background: #fff;
  padding: 24px;
  margin-bottom: 32px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ================================
   Category Cards (TOPページ)
================================ */
.genre-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.genre-list li a {
  display: block;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  border: 1px solid #eee;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.genre-list li a:hover {
  background: #f0f7ff;
  border-color: #4a90e2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ================================
   Ranking Page
================================ */
.ranking-header h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-weight: 700;
}

.history-columns {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.ranking-column {
  min-width: 300px;
}

.ranking-column h3 {
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.rank {
  width: 40px;
  font-weight: bold;
  font-size: 22px;
  color: #d32f2f;
  text-align: center;
}

.ranking-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ranking-list img.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.review {
  font-size: 13px;
  color: #555;
}

/* ================================
   Summary Table
================================ */
.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.summary-table th {
  background: #fafafa;
  text-align: left;
}

/* ================================
   Product Page
================================ */
.product-header h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 700;
}

.product-image {
  max-width: 260px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

/* ================================
   Chart Section
================================ */
.product-chart {
  margin-top: 32px;
}

.product-chart h3 {
  margin-bottom: 12px;
}
