* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    'Noto Sans JP',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
  line-height: 1.6;
}
a {
  color: #16a34a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.header {
  background-color: #16a34a;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}
.header a {
  color: white;
}
.header nav {
  display: flex;
  gap: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: #16a34a;
}
.breadcrumb span {
  margin: 0 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}
.gallery-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery-card-body {
  padding: 16px;
}
.gallery-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.gallery-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
}
.gallery-card-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  background: #ecfdf5;
  color: #047857;
  padding: 2px 8px;
  border-radius: 9999px;
}

.detail-image {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  background: #f3f4f6;
}
.detail-info {
  margin-top: 24px;
}
.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.detail-desc {
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: #16a34a;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 24px;
  transition: background 0.2s;
}
.cta-button:hover {
  background: #15803d;
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.pagination a {
  background: white;
  border: 1px solid #d1d5db;
}
.pagination a:hover {
  background: #f3f4f6;
  text-decoration: none;
}
.pagination .current {
  background: #16a34a;
  color: white;
}

.article-list {
  list-style: none;
}
.article-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.article-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.article-meta {
  font-size: 0.875rem;
  color: #6b7280;
}
.article-content {
  margin-top: 24px;
  line-height: 1.8;
}
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 32px 0 16px;
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 24px 0 12px;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 8px;
}

.footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 32px 16px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.875rem;
}
.footer a {
  color: #d1d5db;
}
.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #d1d5db;
}
.error-page p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 16px 12px;
  }
  .detail-title {
    font-size: 1.25rem;
  }
}
