/* ===========================
   sekaiisan-navi.com
   メインスタイルシート
=========================== */

/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:   #1a4731;
  --green-main:   #2d6a4f;
  --green-light:  #52b788;
  --gold:         #c9a84c;
  --gold-light:   #f0d080;
  --bg:           #f8f6f1;
  --bg-card:      #ffffff;
  --text:         #2c2c2c;
  --text-sub:     #666666;
  --border:       #e0dbd0;
  --font-main:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a { color: var(--green-main); text-decoration: none; }
a:hover { color: var(--green-light); }

img { max-width: 100%; height: auto; display: block; }

/* ===========================
   ヘッダー
=========================== */
.site-header {
  background: var(--green-dark);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-logo .logo-icon { font-size: 1.6rem; }

.site-logo span { color: var(--gold-light); }

.global-nav { display: flex; gap: 24px; }

.global-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.global-nav a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===========================
   ヒーローセクション
=========================== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, #40916c 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.25);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   カテゴリカード
=========================== */
.category-section {
  max-width: 1100px;
  margin: 56px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid var(--green-main);
}

.section-sub {
  color: var(--text-sub);
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-left: 18px;
}

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

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--green-light);
}

.category-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #f0f7f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.category-info p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--green-main);
  font-weight: 700;
  margin-top: 10px;
}

/* ===========================
   メインコンテンツ＋サイドバー
=========================== */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

/* 記事グリッド */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-thumb {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-body { padding: 16px; }

.article-cat {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* カテゴリバッジ カラー別 */
.article-cat.overseas {
  background: #e3f2fd;
  color: #1565c0;
}

.article-cat.kentei {
  background: #fff8e1;
  color: #f57f17;
}

.article-cat.travel {
  background: #fce4ec;
  color: #c62828;
}

.article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ===========================
   サイドバー
=========================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.widget-title {
  background: var(--green-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.05em;
}

.widget-body { padding: 16px; }

.affiliate-box {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.affiliate-box .aff-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.affiliate-box .aff-book {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.btn-amazon {
  display: block;
  background: #ff9900;
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s;
}

.btn-amazon:hover {
  background: #e88800;
  color: #000;
  transform: translateY(-1px);
}

.ranking-list { list-style: none; }

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.ranking-list li:last-child { border-bottom: none; }

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-num.gold { background: #c9a84c; }
.rank-num.silver { background: #9e9e9e; }
.rank-num.bronze { background: #a1622a; }

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

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

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

.footer-brand .site-logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.8;
}

.footer-nav h4 {
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-nav ul { list-style: none; }

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
}

.footer-links a:hover { color: var(--gold-light); }

.copyright { font-size: 0.78rem; }

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .global-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 48px 20px; }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
