/* Replista Blog Unified Styles */

/* CSS Reset for full width */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Blog Header */
.blog-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  text-align: center;
  border-radius: 20px;
  margin: 40px 0;
}

.blog-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-category {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.blog-card-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-card-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Article Styles */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.8;
}

.article-header {
  text-align: center;
  margin-bottom: 50px;
}

.article-category {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-meta {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 30px;
}

.article-excerpt {
  font-size: 1.2rem;
  color: #374151;
  font-style: italic;
  background: #f8fafc;
  padding: 20px;
  border-left: 4px solid #667eea;
  margin-bottom: 40px;
}

.article-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #374151;
  margin: 30px 0 15px 0;
}

.article-content p {
  margin-bottom: 20px;
  color: #374151;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
  color: #374151;
}

/* 追加の記事スタイル */
.article-category {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

/* 3種類の統一カードシステム */

/* 1. グラデーションカード（重要情報・統計・ハイライト用） */
.gradient-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gradient-card h3,
.gradient-card h4 {
  color: white !important;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.gradient-card p {
  color: white !important;
  font-size: 1.1rem;
  line-height: 1.6;
}

.gradient-card * {
  color: white !important;
}

/* 2. 白カード（比較・詳細情報用） */
.white-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.white-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.white-card h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* 3. グレーカード（補足情報・注意用） */
.gray-card {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px solid #d1d5db;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
}

/* グリッドレイアウト */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

/* バッジ */
.badge {
  background: #667eea;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

/* 金額表示 */
.amount {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 5px;
}

/* CTA Section - Blog Main Page */
.cta-section {
  background: #f8fafc;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin: 50px 0;
}

/* CTA Section - Blog Articles (now outside article-container) */
.cta-section.article-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  border-radius: 0;
  text-align: center;
  margin: 50px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.cta-brand {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Articles CTA Brand */
.cta-section.article-cta .cta-brand {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.cta-brand img {
  width: 70px;
  height: 70px;
  margin-right: 1.5rem;
}

.cta-brand h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #2c3e50;
  margin: 0;
  line-height: 1;
}

.cta-brand p {
  font-size: 1.2rem;
  color: #667eea;
  margin: 0;
  font-weight: 700;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}


.cta-description {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}


.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  border: 2px solid #4ECDC4;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.cta-button i {
  margin-right: 0.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Back Link */
.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .blog-header {
    padding: 40px 20px;
  }

  .blog-header h1 {
    font-size: 2.5rem;
  }

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

  .blog-subtitle {
    font-size: 1.1rem;
  }

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

  .article-container {
    padding: 20px 15px;
  }


  .cta-section {
    padding: 40px;
    margin: 30px 0;
  }

  .cta-section.article-cta {
    padding: 40px 0;
    width: 100vw;
    margin: 30px 0;
    left: 50%;
    transform: translateX(-50%);
  }

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

  .cta-brand {
    flex-direction: column;
    text-align: center;
  }

  .cta-section.article-cta .cta-brand {
    flex-direction: column;
    text-align: center;
  }

  .cta-brand img {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    padding: 0 10px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card-title {
    font-size: 1.3rem;
  }
}
