
:root {
  --brand: #FFE600;
  --brand-dark: #E6CF00;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #FAFAFA;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero (Top Page) ---- */
.hero {
  background: var(--brand);
  padding: 80px 20px 60px;
  text-align: center;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 8px;
}
.hero-author {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---- Site Header (Article Pages) ---- */
.site-header {
  background: var(--brand);
  padding: 16px 20px;
  text-align: center;
}
.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* ---- Cards Grid ---- */
.index-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.cards-grid {
  display: grid;
  gap: 24px;
}
.card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-thumbnail {
  width: 200px;
  min-height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--text);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #D97706;
}

/* ---- Article ---- */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.article-number {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--text);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
}
.article-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #D97706;
}
.article-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
}
.article-content h1 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--brand);
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 12px;
}
.article-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}
.article-content strong {
  background: linear-gradient(transparent 60%, var(--brand) 60%);
  padding: 0 2px;
}
.article-content blockquote {
  background: #FFF9DB;
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.article-content ul, .article-content ol {
  margin: 12px 0 16px 24px;
}
.article-content li {
  margin-bottom: 6px;
}
.article-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.article-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 32px 0;
}

/* ---- Article Images ---- */
.article-image {
  margin: 24px -32px;
  text-align: center;
}
.article-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.article-image figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
  padding: 0 32px;
}

/* ---- Paywall Line ---- */
.paywall-line {
  background: linear-gradient(135deg, #FFF9DB 0%, #FFE600 100%);
  border: 2px solid var(--brand-dark);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.paywall-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.paywall-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ---- Article Nav ---- */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.article-nav a {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  flex: 1;
  transition: transform 0.2s;
}
.article-nav a:hover { transform: translateY(-2px); }
.nav-prev { text-align: left; }
.nav-next { text-align: right; }

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.footer-links a {
  color: var(--text);
  margin: 0 8px;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; }
  .card { flex-direction: column; }
  .card-thumbnail { width: 100%; min-height: 180px; }
  .article-content { padding: 24px 16px; }
  .article-image { margin: 20px -16px; }
  .article-image figcaption { padding: 0 16px; }
  .article-nav { flex-direction: column; }
}
