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

:root {
  --text: #3e3832;
  --text-light: #7a726b;
  --bg: #fffdf9;
  --surface: #ffffff;
  --border: #f0ebe4;
  --pink: #f48fb1;
  --green: #81c784;
  --orange: #ffb74d;
  --blue: #4fc3f7;
  --purple: #b39ddb;
  --font: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); }
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Sample Banner */
.sample-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--pink); color: #fff;
  text-align: center; font-size: 0.75rem; padding: 6px;
}

/* Header */
.article-header {
  padding: 120px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, #e3f2fd 0%, #fff9f0 60%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.header-illust {
  position: relative;
  height: 60px;
  margin-bottom: 16px;
}
.cloud { width: 120px; position: absolute; left: 50%; transform: translateX(-50%); top: 0; }
.rain { width: 8px; position: absolute; }
.r1 { left: calc(50% - 20px); top: 45px; animation: rainDrop 1.2s ease-in infinite; }
.r2 { left: 50%; top: 48px; animation: rainDrop 1.2s ease-in 0.3s infinite; }
.r3 { left: calc(50% + 20px); top: 45px; animation: rainDrop 1.2s ease-in 0.6s infinite; }
@keyframes rainDrop {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  padding: 4px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-header h1 .num {
  font-size: 1.3em;
  color: var(--orange);
}
.header-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.article-info {
  display: flex; gap: 16px; justify-content: center;
  font-size: 0.75rem; color: var(--text-light);
}

/* Body */
.article-body { padding: 40px 0 80px; }

/* Lead */
.lead {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.lead-icon { margin-bottom: 12px; }
.lead-icon svg { width: 48px; height: 48px; }
.lead p { font-size: 0.95rem; margin-bottom: 12px; }
.lead p:first-of-type {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
}

/* Legend */
.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #f9f6f2;
  border-radius: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.legend-title {
  font-size: 0.8rem; font-weight: 700; color: var(--text-light);
}
.legend-items { display: flex; gap: 8px; }
.age-badge {
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
  white-space: nowrap;
}
.age-badge.baby { background: #fce4ec; color: #c62828; }
.age-badge.toddler { background: #fff3e0; color: #e65100; }
.age-badge.school { background: #e8eaf6; color: #283593; }

/* Category Header */
.category-header {
  display: flex; align-items: center; gap: 14px;
  margin: 48px 0 24px;
  padding: 16px 20px;
  border-radius: 16px;
}
.category-header svg { width: 40px; height: 40px; flex-shrink: 0; }
.category-header h2 {
  font-size: 1.2rem; font-weight: 700; margin: 0;
  border: none; padding: 0;
}
.category-header.move { background: #e8f5e9; }
.category-header.craft { background: #fff3e0; }
.category-header.think { background: #e8eaf6; }
.category-header.cook { background: #fce4ec; }
.category-header.relax { background: #e0f7fa; }

/* Idea Card */
.idea-card {
  display: flex; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.idea-num {
  font-size: 1.6rem; font-weight: 900;
  color: var(--border);
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}
.idea-content { flex: 1; }
.idea-title-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.idea-title-row h3 {
  font-size: 1.05rem; font-weight: 700;
  margin: 0;
}
.idea-content p {
  font-size: 0.9rem; color: var(--text-light);
  margin-bottom: 12px; line-height: 1.8;
}
.idea-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.idea-meta span {
  font-size: 0.72rem;
  color: var(--text-light);
  background: #f9f6f2;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Section Illust */
.section-illust {
  text-align: center;
  padding: 24px 0;
}
.section-illust svg { width: 200px; max-width: 80%; }

/* Summary */
.summary-section {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  border-radius: 20px;
  margin: 48px 0;
}
.summary-icon { margin-bottom: 16px; }
.summary-icon svg { width: 56px; height: 56px; }
.summary-section h2 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 20px; border: none; padding: 0;
}
.summary-section p {
  font-size: 0.95rem; margin-bottom: 12px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* CTA */
.article-cta {
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
}
.article-cta p {
  font-size: 0.95rem; font-weight: 500;
  margin-bottom: 16px;
}
.cta-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--pink);
  color: #fff; text-decoration: none;
  border-radius: 30px; font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(244, 143, 177, 0.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 143, 177, 0.4);
  color: #fff;
}

/* Footer */
.footer {
  text-align: center; padding: 32px 24px;
  font-size: 0.8rem; color: var(--text-light);
  border-top: 1px solid var(--border);
}
.footer-note { margin-top: 8px; font-size: 0.75rem; opacity: 0.6; }

/* Mobile */
@media (max-width: 768px) {
  .article-header { padding: 100px 0 40px; }
  .idea-card { flex-direction: column; gap: 8px; }
  .idea-num { font-size: 1.2rem; }
  .idea-meta { flex-direction: column; gap: 6px; }
  .legend { flex-direction: column; align-items: flex-start; }
}
