/* =====================
   寿司職人ナビ - スタイルシート
   ===================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --accent: #f39c12;
  --dark: #1a1a1a;
  --gray: #555;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --font-main: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =====================
   ヘッダー
   ===================== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 400;
  display: block;
  line-height: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

.btn-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.btn-cta:hover { background: var(--primary-dark) !important; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* =====================
   ヒーロー
   ===================== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d0c0c 50%, #c0392b 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🍣';
  position: absolute;
  font-size: 300px;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,156,18,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* =====================
   統計バー
   ===================== */
.stats-bar {
  background: var(--dark);
  color: var(--white);
  padding: 20px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* =====================
   セクション共通
   ===================== */
section { padding: 64px 20px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 8px;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 40px;
  margin-top: 12px;
}

/* =====================
   アフィリエイトバナー
   ===================== */
.affiliate-banner {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.affiliate-banner .banner-icon { font-size: 2.5rem; }

.banner-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-text p { font-size: 0.9rem; color: var(--gray); }

.banner-btn {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.banner-btn:hover { background: var(--primary-dark); }

/* =====================
   カード（記事一覧）
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5e6e6, #fce4e4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card-body { padding: 20px; }

.card-tag {
  display: inline-block;
  background: #fde8e8;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #999;
}

/* =====================
   比較テーブル
   ===================== */
.table-wrap { overflow-x: auto; margin-top: 32px; }

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

.compare-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
}

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table tr:nth-child(even) td { background: var(--light-gray); }
.compare-table tr:hover td { background: #fde8e8; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
}

.rank-1 { background: #f39c12; }
.rank-2 { background: #95a5a6; }
.rank-3 { background: #a04000; }
.rank-4, .rank-5 { background: #bdc3c7; color: var(--dark); }

.check { color: #27ae60; font-weight: 700; }
.cross { color: #e74c3c; }

/* =====================
   CTAセクション
   ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 64px 20px;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* =====================
   フッター
   ===================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* =====================
   記事ページ
   ===================== */
.article-header {
  background: linear-gradient(135deg, #1a1a1a, #3d0c0c);
  color: var(--white);
  padding: 48px 20px;
}

.article-header .container { max-width: 800px; }

.article-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
}

.article-body {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 20px;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.article-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

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

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.notice-box {
  background: #fff8e1;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

.notice-box strong { color: var(--accent); }

.info-box {
  background: #e8f5e9;
  border-left: 4px solid #27ae60;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* =====================
   レスポンシブ
   ===================== */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }

  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .stats-inner { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .affiliate-banner { flex-direction: column; text-align: center; }
  .banner-btn { margin-left: 0; }
}
