/*
Theme Name: アフィリエイトレビューサイト
Theme URI: https://hanbaiya62.shop
Author: Hanbaiya
Author URI: https://hanbaiya62.shop
Description: アフィリエイト収益化に特化したレビューサイト用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliate-review-theme
*/

/* リセット & ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* ヘッダー */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: #555;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1484154218962-a197022b5858?w=1200');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background-color: #ff6b6b;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  opacity: 1;
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

/* 特集バナー */
.featured-banner {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 12px;
  padding: 3rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 4rem;
}

.featured-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.featured-banner-cta {
  display: inline-block;
  background-color: #fff;
  color: #f5576c;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* このサイトについて */
.about-intro {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* カテゴリーカード */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card-image {
  width: 100%;
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6c757d;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-content {
  padding: 1.5rem;
}

.category-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.category-card-description {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

/* 記事カード */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-image {
  width: 100%;
  height: 180px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* バッジ */
.popular-badge,
.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.popular-badge {
  background-color: #ff6b6b;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.new-badge {
  background-color: #51cf66;
  box-shadow: 0 2px 8px rgba(81, 207, 102, 0.4);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.article-card-category {
  background-color: #667eea;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-card-title a {
  color: #2c3e50;
  text-decoration: none;
}

.article-card-title a:hover {
  color: #667eea;
  opacity: 1;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-card-cta {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid #667eea;
  text-decoration: none;
}

.article-card-cta:hover {
  opacity: 1;
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* ランキングセクション */
.ranking-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ranking-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  align-items: center;
  transition: background-color 0.3s;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background-color: #f8f9fa;
}

.ranking-number {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  min-width: 50px;
}

.ranking-image {
  width: 120px;
  height: 120px;
  background-color: #e9ecef;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  overflow: hidden;
}

.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-content {
  flex: 1;
}

.ranking-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.ranking-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ranking-cta {
  display: inline-block;
  background-color: #ff6b6b;
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.ranking-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

/* プロフィールセクション */
.profile-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e9ecef;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #6c757d;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.profile-content p {
  color: #555;
  line-height: 1.7;
}

/* フッター */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-nav a,
.footer-nav li a {
  color: #ecf0f1;
  font-size: 0.95rem;
}

.copyright {
  font-size: 0.9rem;
  color: #95a5a6;
}

/* ページネーション */
.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border-radius: 4px;
  color: #667eea;
  font-weight: 600;
}

.pagination .current {
  background-color: #667eea;
  color: #fff;
}

/* 固定ページ用スタイル */
.page-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 3rem;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.page-body h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

.page-body h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.page-body p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.page-body ul,
.page-body ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.page-body table th,
.page-body table td {
  padding: 1rem;
  border: 1px solid #e9ecef;
  text-align: left;
}

.page-body table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Contact Form 7 スタイル */
.wpcf7 {
  margin-top: 2rem;
}

.wpcf7-form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.wpcf7-submit {
  background-color: #667eea;
  color: #fff;
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wpcf7-submit:hover {
  background-color: #764ba2;
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-validation-errors {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .category-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-direction: column;
    text-align: center;
  }

  .ranking-number {
    margin-bottom: 1rem;
  }

  .featured-banner {
    padding: 2rem 1rem;
  }

  .page-content {
    padding: 2rem 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}