/*
Theme Name: 脱毛ガイド
Theme URI: https://example.com
Author: 脱毛ガイド
Description: 脱毛アフィリエイトサイト用テーマ
Version: 2.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif; color: #333; background: #fff; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* バナー */
.banner-wrap { width: 100%; background: #fff; }
.banner-img { width: 100%; height: auto; display: block; }

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo a { font-size: 1.3rem; font-weight: 800; color: #e91e8c; letter-spacing: -0.5px; }
.site-nav a { margin-left: 24px; font-size: 0.88rem; color: #555; transition: color 0.2s; }
.site-nav a:hover { color: #e91e8c; }

/* ヒーロー */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?w=1400&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233,30,140,0.85) 0%, rgba(100,0,80,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 20px;
  width: 100%;
}
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-sub { color: rgba(255,255,255,0.9); margin-bottom: 32px; font-size: 1rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  display: inline-block;
  background: #fff;
  color: #e91e8c;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: #ffe0f0; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.8); }

/* ポイント */
.points { padding: 72px 20px; background: #fff; }
.point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.point-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.point-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(233,30,140,0.12); }
.point-img { height: 160px; overflow: hidden; }
.point-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.point-card:hover .point-img img { transform: scale(1.05); }
.point-card > .point-icon { font-size: 1.6rem; padding: 20px 20px 0; }
.point-card h3 { font-size: 1rem; font-weight: 700; padding: 8px 20px 4px; }
.point-card p { font-size: 0.85rem; color: #777; padding: 0 20px 20px; }

/* ランキング */
.ranking { background: #f9f9f9; padding: 80px 20px; }
.section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: #999; font-size: 0.8rem; margin-bottom: 48px; }

.clinic-card {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 32px;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.rank-1 { border-color: #e91e8c; }
.rank-2 { border-color: #9e9e9e; }
.rank-3 { border-color: #c8a96e; }

.clinic-header-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}
.clinic-header-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.rank-badge {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.clinic-header-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.4);
}

.clinic-body { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding: 24px; }
.clinic-info { flex: 1; min-width: 220px; }
.clinic-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.stars { color: #f59e0b; margin-bottom: 10px; font-size: 1rem; }
.rating-num { color: #333; font-size: 0.9rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.tag-pink { background: #fce4ec; color: #c2185b; }
.tag-gray { background: #f5f5f5; color: #666; }
.clinic-features { list-style: none; font-size: 0.88rem; color: #555; }
.clinic-features li { padding: 5px 0; padding-left: 20px; position: relative; border-bottom: 1px solid #f9f9f9; }
.clinic-features li::before { content: '✓'; position: absolute; left: 0; color: #e91e8c; font-weight: 700; }

.clinic-cta { text-align: center; min-width: 200px; }
.price-box {
  background: #fff0f7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #fce4ec;
}
.price-label { font-size: 0.72rem; color: #999; margin-bottom: 4px; line-height: 1.4; }
.price { font-size: 2rem; font-weight: 800; color: #e91e8c; line-height: 1.2; }
.price-per { font-size: 0.78rem; color: #888; margin-top: 4px; }
.btn-clinic {
  display: block;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(233,30,140,0.3);
}
.btn-clinic:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,30,140,0.4); }
.cta-note { font-size: 0.72rem; color: #999; }

/* 比較表 */
.compare { padding: 80px 20px; background: #fff; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #f0f0f0; box-shadow: 0 2px 16px rgba(0,0,0,0.05); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th { background: #e91e8c; color: #fff; padding: 14px 16px; text-align: center; font-weight: 700; }
.compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid #f5f5f5; }
.compare-table tbody tr:nth-child(even) { background: #fafafa; }
.compare-table tbody tr:hover { background: #fff0f7; }
.best-row { background: #fff8fc !important; }
.price-em { color: #e91e8c; font-weight: 800; font-size: 1.05rem; }
.table-note { font-size: 0.75rem; color: #999; text-align: center; margin-top: 12px; }

/* 脱毛の流れ */
.flow { padding: 80px 20px; background: #f9f9f9; }
.flow-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.flow-step {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.flow-num { font-size: 0.7rem; font-weight: 800; color: #e91e8c; margin-bottom: 8px; letter-spacing: 2px; }
.flow-icon { font-size: 2rem; margin-bottom: 10px; }
.flow-step h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 0.78rem; color: #777; line-height: 1.5; }
.flow-arrow { font-size: 1.2rem; color: #e91e8c; flex-shrink: 0; }
.flow-img-wrap { margin: 0 auto 40px; display: block; }
.flow-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 4px 24px rgba(233,30,140,0.1); }
.flow-icon-img { width: 72px; height: 72px; margin: 0 auto 8px; }
@media (max-width: 768px) { .flow-img-wrap { display: none; } }

/* FAQ */
.faq { padding: 80px 20px; background: #fff; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-radius: 12px; margin-bottom: 16px; overflow: hidden; border: 1px solid #f0f0f0; }
.faq-q { padding: 18px 20px; font-weight: 700; font-size: 0.95rem; border-left: 4px solid #e91e8c; background: #fff; }
.faq-a { padding: 16px 20px; font-size: 0.88rem; color: #555; background: #fafafa; border-left: 4px solid #f0f0f0; }

/* CTAバナー */
.cta-banner {
  background: linear-gradient(135deg, #e91e8c 0%, #880e4f 100%);
  padding: 72px 20px;
  text-align: center;
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.btn-large { padding: 16px 48px; font-size: 1.1rem; }

/* 記事エリア */
.content-area { padding: 80px 20px; background: #f9f9f9; }
.content-area .container { display: flex; gap: 40px; }
.main-content { flex: 1; }
.sidebar { width: 280px; flex-shrink: 0; }
.post-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.post-card-title a:hover { color: #e91e8c; }
.post-card-excerpt { font-size: 0.85rem; color: #777; margin-bottom: 12px; }
.post-card-meta { font-size: 0.75rem; color: #bbb; }

/* 記事本文 */
.post-content h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; line-height: 1.4; }
.post-content h2 { font-size: 1.2rem; font-weight: 700; margin: 40px 0 16px; padding: 10px 16px; border-left: 4px solid #e91e8c; background: #fff0f7; border-radius: 0 8px 8px 0; }
.post-content h3 { font-size: 1rem; font-weight: 700; margin: 28px 0 12px; color: #e91e8c; }
.post-content p { margin-bottom: 16px; font-size: 0.95rem; }
.post-content ul { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 8px; font-size: 0.95rem; }

/* サイドバー */
.widget { margin-bottom: 32px; background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #f0f0f0; }
.widget-title { font-size: 0.9rem; font-weight: 700; padding: 8px 12px; background: #e91e8c; color: #fff; border-radius: 6px; margin-bottom: 12px; }

/* フッター */
.site-footer { background: #1a1a1a; color: #ccc; padding: 48px 20px; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-note { font-size: 0.72rem; line-height: 1.8; margin-bottom: 16px; max-width: 600px; margin-left: auto; margin-right: auto; color: #888; }
.footer-copy { font-size: 0.75rem; color: #555; }

/* レスポンシブ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { min-height: 420px; }
  .hero-stats { gap: 20px; }
  .clinic-body { flex-direction: column; }
  .clinic-cta { width: 100%; }
  .content-area .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .flow-grid { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); text-align: center; }
  .flow-step { max-width: 100%; }
}
