/*
Theme Name: アフィリエイトレビューサイト
Theme URI: https://hanbaiya62.shop
Author: Hanbaiya
Author URI: https://hanbaiya62.shop
Description: アフィリエイト収益化に特化したレビューサイト用テーマ
Version: 1.1.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;
}

/* ============================================================
   ヘッダー（header.php の <style> を移植）
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  text-align: center;
  margin: 0 0 20px 0;
  padding: 0;
}

.site-logo a {
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
}

.site-logo a:hover {
  color: #ffd89b;
  transform: scale(1.05);
  opacity: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.category-item {
  position: relative;
  display: inline-block;
  padding: 5px;
}

.category-button {
  background: white;
  color: #764ba2;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-featured .category-button {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-featured .category-button:hover {
  background: linear-gradient(135deg, #ffe4b5 0%, #2a6f9e 100%);
}

.cat-icon {
  font-size: 18px;
  line-height: 1;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  margin-top: 5px;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  border-left-color: #764ba2;
  padding-left: 25px;
  opacity: 1;
}

/* ============================================================
   ヒーローセクション（front-page.php の <style> を移植）
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

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

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: #764ba2;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #ffd89b;
  opacity: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   メインコンテンツ共通
   ============================================================ */
main {
  background: #f8f9fa;
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section {
  margin-bottom: 4rem;
}

.section-heading {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #764ba2;
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #764ba2;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-icon {
  font-size: 32px;
}

.section-link {
  color: #764ba2;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 8px 20px;
  border: 2px solid #764ba2;
  border-radius: 20px;
  white-space: nowrap;
}

.section-link:hover {
  background: #764ba2;
  color: white;
  transform: translateY(-2px);
  opacity: 1;
}

/* カテゴリセクション */
.category-section {
  padding: 60px 0;
}

/* 白背景カテゴリセクション（インライン style="background:white;" を置き換え） */
.category-section-white {
  padding: 60px 0;
  background: white;
}

.category-section-white-bottom {
  padding: 60px 0 30px;
  background: white;
}

/* ============================================================
   特集バナー
   ============================================================ */
.featured-banner {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin: 0;
}

.featured-banner h2 {
  font-size: 28px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.featured-banner p {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.95;
}

.featured-banner-cta {
  display: inline-block;
  background: white;
  color: #19547b;
  padding: 12px 35px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  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);
  opacity: 1;
}

/* ============================================================
   記事カード
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.article-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.article-card-image > span {
  color: #999;
  font-size: 14px;
}

.article-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
  align-items: center;
  flex-wrap: wrap;
}

.article-card-category {
  background: #764ba2;
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 12px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.5;
  flex: 1;
}

.article-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-card-cta {
  display: inline-block;
  color: #764ba2;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.article-card:hover .article-card-cta {
  color: #5a3a82;
  transform: translateX(5px);
}

/* バッジ */
.new-badge,
.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white !important; /* 明示的に白を指定 */
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.new-badge    { background: #ff6b6b; }
.popular-badge { background: #ff9800; }

/* ============================================================
   ランキングセクション
   ============================================================ */
.ranking-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ranking-item {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ranking-number {
  font-size: 48px;
  font-weight: bold;
  color: #ffd89b;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 60px;
  text-align: center;
}

.ranking-item:nth-child(1) .ranking-number {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ranking-image {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ranking-content { flex: 1; }

.ranking-title {
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #333;
}

.ranking-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.ranking-cta {
  display: inline-block;
  color: #764ba2;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 8px 20px;
  border: 2px solid #764ba2;
  border-radius: 20px;
}

.ranking-cta:hover {
  background: #764ba2;
  color: white;
  opacity: 1;
}

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

.category-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.category-card-title {
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #333;
}

.category-card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ============================================================
   このサイトについて
   ============================================================ */
.about-intro {
  background: white;
  padding: 50px 20px;
  text-align: center;
  max-width: 1200px; /* 幅を拡大 */
  margin: 0 auto 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

/* ============================================================
   プロフィール
   ============================================================ */
.profile-section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  max-width: 1200px; /* 幅を拡大 */
  margin: 0 auto 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 30px;
  align-items: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 60px;
}

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

.profile-content { flex: 1; }

.profile-content h3 {
  font-size: 22px;
  margin: 0 0 15px 0;
  color: #333;
}

.profile-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* ============================================================
   フッター
   ============================================================ */
.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;
}

/* ============================================================
   記事HTML内コンテナ（カスタムHTMLブロック内の .container）
   single-post との二重余白を防ぐ
   ============================================================ */
.single-post .container {
  max-width: 100%;
  padding: 0 5px; /* 左右余白を最小限に */
  margin: 0 auto;
}


.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0; /* 左右は記事HTML側の .container が持つため0 */
}

.post-header        { margin-bottom: 2rem; }
.post-header-meta   { margin-bottom: 1rem; }
.post-header-category { margin-right: 0.5rem; }

.post-title {
  font-size: 2rem;
  line-height: 1.4;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.post-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.post-thumbnail       { margin-bottom: 2rem; }
.post-thumbnail img   { width: 100%; height: auto; border-radius: 8px; }

.post-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.post-tags          { margin-bottom: 2rem; }
.post-tags-label    { color: #6c757d; font-weight: bold; }

.post-tag-link {
  display: inline-block;
  background: #f8f9fa;
  padding: 0.3rem 0.8rem;
  margin: 0.3rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #495057;
}

.post-tag-link:hover {
  background: #667eea;
  color: white;
  opacity: 1;
}

.post-share         { text-align: center; padding: 2rem 0; }
.post-share p       { color: #6c757d; }

.related-posts      { margin-top: 4rem; }

/* ============================================================
   固定ページ（page.php のインラインスタイルを移植）
   ============================================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.page-title {
  font-size: 2.5rem;
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.page-updated       { color: #6c757d; font-size: 0.9rem; }

.page-body {
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
}

.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; }

.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; }

/* ============================================================
   index.php / アーカイブ
   ============================================================ */
.no-posts           { text-align: center; padding: 4rem 2rem; }
.no-posts h2        { font-size: 1.5rem; color: #2c3e50; margin-bottom: 1rem; }

/* ============================================================
   【NEW】記事本文装飾（.post-content 内の見出し・リスト）
   ============================================================ */
.post-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2.5rem 0 1.2rem;
  padding: 0.8rem 1rem 0.8rem 1.4rem;
  border-left: 5px solid #667eea;
  background: linear-gradient(90deg, #f0f3ff 0%, #ffffff 100%);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.post-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed #667eea;
  line-height: 1.4;
}

.post-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #444;
  margin: 1.5rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid #a0aec0;
}

.post-content p {
  margin-bottom: 1.4rem;
  line-height: 1.9;
}

.post-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0 1.5rem;
}

.post-content ul li {
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px dotted #e9ecef;
}

.post-content ul li:last-child { border-bottom: none; }

.post-content ul li::before {
  content: '✔';
  position: absolute;
  left: 0.3rem;
  color: #667eea;
  font-weight: bold;
}

.post-content ol {
  padding-left: 0;
  margin: 1.2rem 0 1.5rem;
  list-style: none;
  counter-reset: ol-counter;
}

.post-content ol li {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 2.2rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  counter-increment: ol-counter;
}

.post-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.5rem;
  background: #667eea;
  color: white;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.post-content strong { color: #2c3e50; font-weight: 700; }

.post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}

/* ============================================================
   【NEW】記事テンプレート用パーツ
   ============================================================ */

/* マイクロコピー（ボタン上の一言） */
.aff-button-micro {
  text-align: center;
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.05em;
}

/* PR表示 */
.pr-notice {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 0.9rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #7a6000;
  line-height: 1.7;
}

/* リード文ボックス */
.lead-box {
  background: linear-gradient(135deg, #f0f3ff 0%, #fdf0ff 100%);
  border: 2px solid #c3cdf7;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.9;
}

.lead-box p { margin-bottom: 0.8rem; color: #333; }
.lead-box p:last-child { margin-bottom: 0; }

/* まとめボックス */
.summary-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2rem;
}

.summary-box-title {
  font-weight: 700;
  color: #166534;
  font-size: 1.05rem;
  margin-bottom: 1rem !important;
}

.summary-box ul { list-style: none; padding-left: 0; margin: 0 !important; }

.summary-box ul li {
  padding: 0.4rem 0.4rem 0.4rem 1.8rem;
  position: relative;
  color: #166534;
  border-bottom: 1px dotted #bbf7d0;
}

.summary-box ul li:last-child { border-bottom: none; }

.summary-box ul li::before {
  content: '✔';
  position: absolute;
  left: 0.2rem;
  color: #22c55e;
  font-weight: bold;
}

/* 比較表ラッパー */
.comparison-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.comparison-table tbody tr:hover { background: #f8f9fa; }
.comparison-table .table-highlight { background: #fffbeb; }

.comparison-table .rating {
  color: #f59e0b;
  font-weight: bold;
  white-space: nowrap;
}

/* ============================================================
   【NEW】商品カード（product-card）
   ============================================================ */
.product-card {
  background: white;
  border-radius: 12px;
  border-left: 5px solid #667eea;
  padding: 30px;
  margin: 2rem auto; /* 中央寄せに変更 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100% !important; /* 幅を100%に固定（強制） */
  max-width: 100% !important; /* 最大幅も100%に */
  box-sizing: border-box !important; /* paddingを含めた幅計算（強制） */
}

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

.product-card.green   { border-left-color: #48bb78; }
.product-card.pink    { border-left-color: #f093fb; }
.product-card.orange  { border-left-color: #f6ad55; }

.product-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.product-badge {
  background: #667eea;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-card.green .product-badge   { background: #48bb78; }
.product-card.pink .product-badge    { background: #f093fb; }
.product-card.orange .product-badge  { background: #f6ad55; }

.product-features {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-features h4 {
  color: #166534;
  margin-bottom: 0.8rem;
}

.product-demerits {
  background: #fef2f2;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-demerits h4 {
  color: #991b1b;
  margin-bottom: 0.8rem;
}

.product-recommend {
  background: #fffbeb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-recommend h4 {
  color: #78350f;
  margin-bottom: 0.8rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0;
}

.check-list li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  line-height: 1.7;
}

.check-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  font-size: 1rem;
}

.demerit-list {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0;
}

.demerit-list li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  line-height: 1.7;
}

.demerit-list li::before {
  content: '❌';
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* ============================================================
   【NEW】FAQセクション
   ============================================================ */
.faq-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.faq-answer {
  color: #555;
  line-height: 1.8;
}

/* ============================================================
   【NEW】まとめセクション（summary-section）
   ============================================================ */
.summary-section {
  background: linear-gradient(135deg, #fce7f3 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.summary-section h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.summary-section p {
  margin-bottom: 1.2rem;
}

/* ============================================================
   【NEW】内部リンクボタン
   ============================================================ */
.internal-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border: 2px solid #667eea;
  border-radius: 25px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.internal-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  opacity: 1;
}

/* ============================================================
   【NEW】アフィリエイトボタン（光るデザイン）
   ============================================================ */

/* Amazonボタン */
.aff-button-amazon {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #ff9900 0%, #ffb347 100%);
  color: white;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 153, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aff-button-amazon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
}

.aff-button-amazon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 153, 0, 0.6);
  opacity: 1;
}

/* 楽天ボタン */
.aff-button-rakuten {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #bf0000 0%, #e83a3a 100%);
  color: white;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(191, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aff-button-rakuten::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite 0.5s;
}

.aff-button-rakuten:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(191, 0, 0, 0.5);
  opacity: 1;
}

.btn-main-text { font-size: 1.05rem; display: block; }
.btn-sub-text  { font-size: 0.78rem; opacity: 0.9; display: block; margin-top: 3px; }

@keyframes shine {
  0%   { left: -75%; }
  50%  { left: 125%; }
  100% { left: 125%; }
}

/* ボタン横並び */
.aff-button-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.aff-button-wrap .aff-button-amazon,
.aff-button-wrap .aff-button-rakuten {
  flex: 1 1 200px;
  margin: 0;
}

/* ============================================================
   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; }

/* ============================================================
   レスポンシブ（タブレット 768px以下）
   ============================================================ */
@media (max-width: 768px) {

  .site-logo a     { font-size: 22px; }
  .main-nav        { gap: 10px; }

  .category-button {
    padding: 10px 18px;
    font-size: 14px;
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    justify-content: center;
  }

  .category-item.mobile-active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-content {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    max-width: 90vw;
  }

  .dropdown-content::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero           { padding: 50px 15px; }
  .hero h1        { font-size: 28px; }
  .hero p         { font-size: 16px; }

  .section-heading,
  .section-title  { font-size: 22px; }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .content-wrapper  { padding: 2rem 1rem; }
  .single-post      { padding: 1.5rem 0; }

  .page-content {
    padding: 1.5rem 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .single-post .container {
    padding: 0 5px; /* スマホも余白最小限 */
  }

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

  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .ranking-item   { flex-direction: column; text-align: center; }
  .ranking-number { font-size: 36px; }
  .ranking-image  { width: 100%; height: 200px; }

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

  .post-title     { font-size: 1.6rem; }
  .page-title     { font-size: 1.8rem; }

  .post-content h2 {
    font-size: 1.4rem;
    padding: 0.7rem 0.8rem 0.7rem 1rem;
  }

  .post-content h3 { font-size: 1.2rem; }

  .aff-button-wrap { flex-direction: column; }

  .aff-button-wrap .aff-button-amazon,
  .aff-button-wrap .aff-button-rakuten {
    max-width: 100%;
  }

  .category-section { padding: 40px 0; }
}

/* ============================================================
   レスポンシブ（スマホ 480px以下）
   ============================================================ */
@media (max-width: 480px) {

  .site-logo a    { font-size: 20px; }
  .main-nav       { gap: 8px; }

  .category-button {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1 1 calc(50% - 8px);
  }

  .cat-icon       { font-size: 16px; }

  .dropdown-content   { min-width: 180px; }
  .dropdown-content a { padding: 10px 15px; font-size: 13px; }

  .hero h1        { font-size: 22px; }

  .single-post,
  .content-wrapper { padding: 1rem 0; }

  .single-post .container {
    padding: 0 5px; /* 極小スマホも余白最小限 */
  }

  .post-title     { font-size: 1.4rem; }

  .post-content h2 { font-size: 1.25rem; }
  .post-content h3 { font-size: 1.1rem; }

  .aff-button-amazon,
  .aff-button-rakuten {
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
  }

  .section-title  { font-size: 20px; }
}

/* ============================================================
   極小スマホ（360px未満）
   ============================================================ */
@media (max-width: 359px) {
  .category-button { flex: 1 1 100%; }
}

/* ============================================================
   【URGENT FIX】A8バナー広告レスポンシブ対応
   ============================================================ */
/* A8バナー広告が細くなる問題を修正 */
div[style*="text-align:center"] img,
div[style*="text-align: center"] img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

/* アフィリエイトバナーラッパー */
.banner-wrapper {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

.banner-wrapper img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

/* 記事内の全ての画像に対してレスポンシブ対応 */

/* ============================================================
   【CRITICAL FIX】product-cardの幅問題を完全修正
   ============================================================ */
/* すべてのproduct-cardの幅を強制的に100%に */
.product-card,
.product-card.green,
.product-card.pink,
.product-card.orange {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* スマホでも同様 */
@media (max-width: 768px) {
  .product-card,
  .product-card.green,
  .product-card.pink,
  .product-card.orange {
    width: 100% !important;
  }
}

