@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --color-primary: #f0527a;
  --color-primary-light: #f87aa0;
  --color-primary-dark: #d63a62;
  --color-secondary: #ff8fab;
  --color-bg: #ffffff;
  --color-bg-soft: #fff5f7;
  --color-bg-card: #ffffff;
  --color-bg-accent: #fff0f4;
  --color-text: #2d1b2e;
  --color-text-light: #6b4c5e;
  --color-text-muted: #a07f90;
  --color-border: #fce4eb;
  --color-accent: #ffcdd9;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-title: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 2px 12px rgba(240, 82, 122, 0.10);
  --shadow-md: 0 6px 24px rgba(240, 82, 122, 0.16);
  --shadow-lg: 0 12px 40px rgba(240, 82, 122, 0.20);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

/* ==================
   HEADER
================== */
header {
  background: #fff;
  border-bottom: 2px solid var(--color-accent);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(240, 82, 122, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 28px;
}

.site-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-title:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 7px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

/* ==================
   CONTAINER
================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==================
   HERO
================== */
.hero {
  background: linear-gradient(135deg, #ff6b95 0%, #f0527a 40%, #ff8fab 100%);
  padding: 80px 28px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 20px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  margin-bottom: 20px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.5;
  position: relative;
  text-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  line-height: 1.8;
}

/* ==================
   PROFILE CARD
================== */
.profile-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 48px 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
  position: relative;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(240, 82, 122, 0.30);
}

.profile-text h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.profile-text p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ==================
   CATEGORY SECTION
================== */
.category-section {
  margin: 48px 0 20px;
}

.category-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* ==================
   POST CARDS
================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.post-card {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: block;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  text-decoration: none;
}

.post-card-thumbnail {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #ff8fab 0%, #f0527a 50%, #d63a62 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.post-card-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.08));
}

.post-card-body {
  padding: 18px 20px 20px;
}

.post-category-tag {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1.5px solid var(--color-accent);
  letter-spacing: 0.03em;
}

.post-card h3 {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================
   CTA BANNER
================== */
.cta-banner {
  background: linear-gradient(135deg, #fff0f4 0%, #ffe4ed 100%);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 0 0 56px;
}

.cta-banner h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(240, 82, 122, 0.35);
  transition: all 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 82, 122, 0.45);
  color: #fff;
}

/* ==================
   ARTICLE PAGE
================== */
.article-header {
  padding: 48px 0 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.article-header .post-category-tag {
  margin-bottom: 18px;
  font-size: 0.78rem;
}

.article-header h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* リード文ボックス */
.article-body > p:first-child {
  background: var(--color-bg-accent);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}

.article-body h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  margin: 52px 0 18px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(240, 82, 122, 0.25);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--color-primary-dark);
  padding: 0 0 8px;
  border-bottom: 2px solid var(--color-accent);
}

.article-body p {
  margin-bottom: 20px;
  color: var(--color-text);
  line-height: 1.95;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  line-height: 1.85;
}

.article-body ul li::before {
  content: '♡';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.85rem;
  top: 2px;
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 4px;
}

.article-body strong {
  color: var(--color-primary-dark);
  font-weight: 700;
  background: linear-gradient(transparent 60%, #ffcdd9 60%);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 13px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
}

.article-body td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  background: white;
  font-size: 0.9rem;
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tr:nth-child(even) td {
  background: #fff8fa;
}

/* アフィリエイトボックス */
.affiliate-box {
  background: linear-gradient(135deg, #fff0f4 0%, #ffe4ed 100%);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

/* ==================
   FOOTER
================== */
footer {
  background: linear-gradient(135deg, #2d1b2e 0%, #3d2535 100%);
  color: #c9a0b5;
  text-align: center;
  padding: 44px 24px;
  font-size: 0.84rem;
}

footer a {
  color: #e0b8cc;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

footer p {
  line-height: 2.2;
}

/* ==================
   MOBILE
================== */
@media (max-width: 640px) {
  .hero {
    padding: 56px 20px 48px;
  }

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

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .site-title {
    font-size: 0.95rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }

  .article-body h2 {
    font-size: 1.15rem;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }
}
