/* Nucleo Gaming — Modern Japan Web Style */
/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  line-height: 1.7;
  color: #2d2d2d;
  background-color: #fafafa;
  font-weight: 400;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; }

p {
  margin-bottom: 1em;
  font-size: 1.05rem;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 1.5rem 0;
  border-bottom: 3px solid #0066cc;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding .site-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.site-description {
  color: #a0a0c0;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #0066cc;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #c0c0d0;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: #e0e0f0;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #0066cc;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.excerpt {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-date {
  font-size: 0.8rem;
  color: #999;
}

/* Post Single */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.category-link {
  color: #0066cc;
  background: #eef6ff;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.post-content h3 {
  margin-top: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #0066cc;
  background: #f0f8ff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.post-content code {
  background: #f4f4f4;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
}

.post-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #555;
  line-height: 1.7;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.category-count {
  font-size: 0.85rem;
  color: #888;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #fff;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 3px solid #0066cc;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand .site-logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-nav a {
  color: #c0c0d0;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #0066cc;
}

.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.footer-legal p {
  margin-bottom: 0.25rem;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 4rem;
  color: #0066cc;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav ul {
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
}
