/*
Theme Name: Latin America Adventure Travel
Theme URI: https://latinamerica-adventure-travel.com
Author: Lovely Trip
Description: ラテンアメリカのカーニバル・冒険をイメージ。旅色（tabiiro.jp）を参考にした旅行メディア風。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latinamerica-adventure-travel
*/

:root {
  --color-primary: #d4382a;
  --color-primary-dark: #a02b21;
  --color-secondary: #f5c542;
  --color-accent: #2e7d32;
  --color-bg: #fffbf5;
  --color-bg-alt: #ffe8d9;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-header-bg: #fff;
  --color-footer-bg: #2d2d2d;
  --color-footer-text: #ccc;
  --font-heading: "Noto Sans JP", "Montserrat", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(212,56,42,0.12);
  --container-max: 1120px;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid #e8e8e8;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-branding { flex-shrink: 0; }
.site-title { margin: 0; }
.site-title a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.site-description { display: none; }
@media (min-width: 768px) {
  .site-description {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0.25rem 0 0 0;
  }
}
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}
.main-navigation a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.main-navigation a:hover { color: var(--color-primary); }
.main-navigation .current-menu-item a { color: var(--color-primary); font-weight: 600; }
.nav-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-text);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
@media (max-width: 767px) {
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; width: 100%; }
  .main-navigation ul { flex-direction: column; }
}

.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: var(--container-max); margin: 0 auto; }
.hero .tagline { font-size: 1.1rem; opacity: 0.95; margin: 0.5rem 0 0 0; font-weight: 400; }
.hero .site-name { font-size: 1.75rem; font-weight: 700; margin: 0; font-family: var(--font-heading); letter-spacing: 0.02em; }
@media (min-width: 768px) {
  .hero { padding: 4rem 2rem; }
  .hero .site-name { font-size: 2.25rem; }
  .hero .tagline { font-size: 1.25rem; }
}

#main { max-width: var(--container-max); margin: 0 auto; padding: 2rem 1.5rem; }
.site-main > .wrap { margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 480px) { .card-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
@media (min-width: 1024px) { .card-list { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card a { text-decoration: none; color: inherit; display: block; }
.card-thumb { aspect-ratio: 4/3; background: var(--color-bg-alt); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem; }
.card-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.35rem; }
.card-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--color-text); margin: 0; line-height: 1.4; }
.card-title a:hover { color: var(--color-primary); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid #eee; padding: 0.75rem 0; }
.news-list li:first-child { padding-top: 0; }
.news-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.news-list a:hover { color: var(--color-primary); }
.news-date { font-size: 0.8rem; color: var(--color-text-muted); flex-shrink: 0; }

article.post,
article.page {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.page-header { margin-bottom: 1.5rem; border-left: 4px solid var(--color-primary); padding-left: 1rem; }
.entry-title { font-family: var(--font-heading); color: var(--color-primary-dark); margin: 0 0 0.5rem 0; }
.entry-content { margin-top: 1rem; }
.entry-content a { color: var(--color-primary); }
.entry-content a:hover { color: var(--color-accent); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary-dark); }
.archive .card-list { margin-top: 1rem; }
.posted-on { font-size: 0.85rem; color: var(--color-text-muted); }
.nav-links { margin-top: 2rem; text-align: center; }
.nav-links a { color: var(--color-primary); }

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .footer-nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-nav h4 { font-size: 0.85rem; font-weight: 600; color: #fff; margin: 0 0 0.75rem 0; font-family: var(--font-heading); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: var(--color-footer-text); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid #444; font-size: 0.8rem; opacity: 0.9; }

.more-link { display: inline-block; margin-top: 1rem; color: var(--color-primary); font-weight: 500; }
.more-link:hover { color: var(--color-primary-dark); }
.no-posts { text-align: center; padding: 2rem; color: var(--color-text-muted); }
