/* ============================================================
   DEALCA Blog - Stylesheet
   Brand: #0F172A (Primary) / #38BDF8 (Accent/Cyan) / #333 (Text)
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #38BDF8;
  --accent-dark: #0EA5E9;
  --accent-light: #E0F2FE;
  --text-main: #333333;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --bg-base: #F8FAFC;
  --border: #E2E8F0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 48px rgba(15,23,42,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.5em; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.blog-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.blog-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.blog-header__logo img {
  height: 26px;
  width: auto;
}

.blog-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.blog-header__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.blog-header__nav a:hover {
  color: var(--primary);
}

.blog-header__nav .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
}

.blog-header__nav .nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 88px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent-dark);
  transition: var(--transition);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--text-muted);
}

/* ── Article Meta ── */
.article-meta {
  margin-top: 16px;
  margin-bottom: 8px;
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 12px;
}

/* ── Typography ── */
.article-body h1 {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--primary);
  margin: 12px 0 32px;
  letter-spacing: -0.01em;
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--primary);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-light);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-body strong {
  color: var(--primary);
  font-weight: 700;
}

/* ── Highlight Box ── */
.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.highlight-box p {
  margin-bottom: 8px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* ── Number Steps ── */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}

/* ── FAQ Section (GEO対策) ── */
.faq-section {
  margin: 48px 0;
  padding: 32px;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-list dt {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}

.faq-list dd {
  margin: 8px 0 0 0;
  padding-left: 11px;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ── Practice Column (実践コラム / ブランドストーリー層) ── */
.practice-column {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin: 40px 0;
  position: relative;
}

.practice-column::before {
  content: 'DEALCA\306E\5B9F\8DF5\304B\3089';
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  position: absolute;
  top: -12px;
  left: 24px;
}

.practice-column h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 12px;
  padding-left: 0;
  border-left: none;
}

.practice-column p {
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 10px;
}

.practice-column p:last-child {
  margin-bottom: 0;
}

/* ── CTA Section ── */
.blog-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
  color: var(--white);
}

.blog-cta h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  border: none;
  padding: 0;
}

.blog-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.blog-cta .cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(56,189,248,0.3);
}

.blog-cta .cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56,189,248,0.45);
}

.blog-cta .cta-sub {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* ── Related Articles ── */
.related-articles {
  margin: 48px 0;
}

.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  color: var(--accent-dark);
  font-weight: 600;
  transition: var(--transition);
}

.related-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Footer ── */
.blog-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
  margin-top: 64px;
  font-size: 0.8125rem;
}

.blog-footer a {
  color: var(--accent);
  transition: var(--transition);
}

.blog-footer a:hover {
  color: var(--white);
}

.blog-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

/* ============================================================
   Blog Index Page
   ============================================================ */

.blog-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 120px 0 64px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.blog-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 16px;
}

.category-filter button {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: var(--transition);
}

.category-filter button:hover,
.category-filter button.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-light);
}

/* Article Cards */
.article-list {
  padding: 24px 0 64px;
}

.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card__category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-header__nav {
    gap: 14px;
  }

  .blog-header__nav a {
    font-size: 0.8125rem;
  }

  .article-body h1 {
    font-size: 1.5rem;
  }

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

  .article-body h3 {
    font-size: 1.0625rem;
  }

  .blog-cta {
    padding: 36px 20px;
  }

  .blog-cta h2 {
    font-size: 1.2rem;
  }

  .blog-hero {
    padding: 100px 0 48px;
  }

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

  .article-card {
    padding: 20px;
  }

  .article-card__title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-header__inner {
    height: 56px;
  }

  .blog-header__logo img {
    height: 22px;
  }

  .blog-header__nav {
    gap: 10px;
  }

  .breadcrumb {
    padding-top: 72px;
    font-size: 0.75rem;
  }

  .article-body h1 {
    font-size: 1.3rem;
  }

  .step-list li {
    padding-left: 40px;
  }
}
