:root {
  --primary: #C75B39;
  --primary-hover: #A84A2E;
  --bg: #FFF8F0;
  --text: #2D1B13;
  --text-light: #6B4E3D;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(199, 91, 57, 0.10);
  --card-shadow-hover: 0 6px 24px rgba(199, 91, 57, 0.16);
  --border: #E8D5C8;
  --radius: 12px;
  --max-width-article: 800px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Header & Breadcrumb */
.site-header {
  background-color: var(--primary);
  padding: 16px 24px;
}
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.88rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.breadcrumb span {
  color: rgba(255,255,255,0.50);
}
.breadcrumb .current {
  color: #ffffff;
  font-weight: 600;
}

/* Main Content Wrapper */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Page Title */
.page-title {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Card Grid (Index) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 260px;
  background: #E8E0DA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B8A99A;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.card-img img,
.card-img .card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.card-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}
.card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
}

/* Article Page */
.article-page {
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.25;
}
.article-img-placeholder {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  background: #E8E0DA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B8A99A;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}
.article-body p {
  margin-bottom: 1.1em;
}
.article-body ul, .article-body ol {
  margin: 0.6em 0 1.1em 1.4em;
}
.article-body li {
  margin-bottom: 0.35em;
}
.article-body strong, .article-body b {
  color: var(--primary);
}
.article-body h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 1.6em 0 0.5em;
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 1.4em 0 0.4em;
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.back-link:hover {
  background: var(--primary);
  color: #fff;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 680px) {
  .page-title { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 1.5rem; }
  .main-content { padding: 28px 16px 40px; }
  .article-page { padding: 32px 16px 40px; }
}
