/* =============================================
   Kids Affiliate Site - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
  --primary-color: #FF6B9D;
  --primary-light: #FFB8D0;
  --primary-dark: #E91E63;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-color: #FFFFFF;
  --bg-light: #FFF9FB;
  --bg-gray: #F8F9FA;
  --border-color: #EAEAEA;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #FFF5F8 50%, #F0FFFE 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* Category Tags */
.category-section {
  padding: 60px 0;
  background: var(--bg-color);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-tag {
  padding: 12px 24px;
  background: var(--bg-gray);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.category-tag.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

/* Product Cards */
.products-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-gray);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--accent-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.product-content {
  padding: 24px;
}

.product-category {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-color);
}

.product-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 500;
}

.read-more:hover {
  gap: 12px;
}

/* Article Page Styles */
.article-header {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #FFF5F8 100%);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.article-category {
  padding: 6px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

.article-excerpt {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
}

.article-content {
  padding: 60px 0;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-light);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 16px;
}

.article-body p {
  margin-bottom: 24px;
  color: var(--text-color);
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

/* Product Info Box */
.product-info-box {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
}

.product-info-box .product-image {
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.product-specs {
  margin: 24px 0;
}

.product-specs dt {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.product-specs dd {
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.affiliate-btn {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.affiliate-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(255, 107, 157, 0.4);
}

/* Pros and Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.pros, .cons {
  padding: 24px;
  border-radius: var(--radius-md);
}

.pros {
  background: #E8F5E9;
}

.cons {
  background: #FFEBEE;
}

.pros h4, .cons h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros h4 {
  color: #2E7D32;
}

.cons h4 {
  color: #C62828;
}

.pros ul, .cons ul {
  padding-left: 0;
}

.pros li, .cons li {
  list-style: none;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2E7D32;
  font-weight: bold;
}

.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #C62828;
  font-weight: bold;
}

/* Rating Box */
.rating-box {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.rating-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.rating-stars {
  font-size: 2rem;
  margin: 16px 0;
  color: var(--accent-color);
}

.rating-label {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Static Pages */
.page-header {
  padding: 120px 0 40px;
  background: var(--bg-light);
  text-align: center;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
}

.page-content {
  padding: 60px 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  list-style: disc;
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .search-input {
    padding: 16px 50px 16px 16px;
    font-size: 0.9rem;
  }

  .search-btn {
    width: 40px;
    height: 40px;
  }

  .category-tag {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}
