/* =============================================
   Enowa. Blog — style.css
   ※ ../style.css（メインCSS）を継承した上で追加
   ============================================= */

/* ---------- ブログ共通：ヘッダー固定色 ---------- */
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.97) !important;
  box-shadow: 0 1px 0 var(--border) !important;
}
.nav-menu a.current {
  color: var(--teal);
  font-weight: 500;
}

/* ---------- スクリーンリーダー専用 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   BLOG HERO
   ============================================= */
.blog-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(150deg, var(--navy) 0%, #0d3060 50%, #0e4a5e 100%);
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.blog-hero .section-label { color: rgba(255,255,255,0.7); }
.blog-hero .section-label::before { background: rgba(255,255,255,0.4); }
.blog-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: 0.02em;
}
.blog-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
}
.blog-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bh-circle {
  position: absolute;
  border-radius: 50%;
}
.bh-circle.c1 {
  width: 400px; height: 400px;
  right: -80px; top: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(26,143,160,0.2), transparent 70%);
}
.bh-circle.c2 {
  width: 250px; height: 250px;
  right: 120px; bottom: -60px;
  background: radial-gradient(circle, rgba(232,114,74,0.15), transparent 70%);
}

/* =============================================
   CATEGORY FILTER
   ============================================= */
.blog-filter {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 70px;
  z-index: 30;
}
.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 clamp(20px, 5vw, 60px);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--slate);
  padding: 1rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  letter-spacing: 0.04em;
}
.filter-tab:hover { color: var(--navy); }
.filter-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 500;
}

/* =============================================
   ARTICLE LIST
   ============================================= */
.blog-list {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--sand);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

/* 記事カード共通 */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.article-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(10,35,66,0.1);
  transform: translateY(-4px);
}
.article-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  height: 100%;
  text-decoration: none;
}
.article-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

/* カテゴリバッジ */
.article-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  width: fit-content;
}
.article-cat.shopify { background: rgba(150,191,85,0.12); color: #5a8a1a; border: 1px solid rgba(150,191,85,0.3); }
.article-cat.ai      { background: rgba(26,143,160,0.1);  color: var(--teal); border: 1px solid rgba(26,143,160,0.25); }
.article-cat.lp      { background: rgba(232,114,74,0.1);  color: var(--coral); border: 1px solid rgba(232,114,74,0.25); }
.article-cat.line    { background: rgba(6,199,85,0.1);    color: #059a42; border: 1px solid rgba(6,199,85,0.25); }
.article-cat.dx      { background: rgba(10,35,66,0.08);   color: var(--navy); border: 1px solid rgba(10,35,66,0.15); }

.article-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  flex: 1;
}
.article-card:hover .article-title { color: var(--teal); }

.article-excerpt {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.article-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--slate-light);
  letter-spacing: 0.06em;
}
.article-read {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-light);
  margin-left: auto;
}

/* プレースホルダーカード */
.article-placeholder {
  background: var(--sand-warm);
  border-style: dashed;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  height: 100%;
}
.placeholder-icon { font-size: 2rem; line-height: 1; }
.placeholder-inner p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}
.placeholder-inner span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.6;
}
.placeholder-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  background: #06C755;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.placeholder-line-btn:hover { background: #05b34c; transform: translateY(-1px); }

/* No articles */
.no-articles {
  text-align: center;
  padding: 4rem 2rem;
}
.no-articles p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* =============================================
   BLOG CTA
   ============================================= */
.blog-cta {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--cream);
}
.blog-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.blog-cta-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate-light);
  letter-spacing: 0.08em;
}
.blog-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
}
.blog-cta-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.8;
}

/* =============================================
   ARTICLE PAGE
   ============================================= */

/* Header */
.article-header {
  padding: 100px 0 50px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

/* パンくず */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate-light);
  flex-wrap: wrap;
}
.breadcrumb li + li::before {
  content: '/';
  color: var(--border);
}
.breadcrumb a {
  color: var(--teal);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--navy); }

.article-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0.75rem 0 1.5rem;
  letter-spacing: 0.01em;
}

.article-page-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.author-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-light);
}
.article-dates {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.article-date { font-family: var(--font-display); font-size: 0.82rem; color: var(--slate-light); letter-spacing: 0.08em; }
.article-modified { font-family: var(--font-sans); font-size: 0.75rem; color: var(--slate-light); }

/* Body layout */
.article-body { padding: 0; }
.article-body .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

/* 記事本文 */
.article-content {
  max-width: 680px;
  font-family: var(--font-serif);
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.95;
}
.article-content p { margin-bottom: 1.4rem; }
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.5;
}
.article-content h4 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  list-style: revert;
}
.article-content li { margin-bottom: 0.4rem; line-height: 1.8; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--navy); }
.article-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(26,143,160,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { margin: 0; color: var(--navy); font-style: italic; }
.article-content figure {
  margin: 2rem 0;
}
.article-content img {
  border-radius: var(--radius);
  width: 100%;
}
.article-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* ボックス */
.point-box, .warn-box {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.point-box {
  background: rgba(26,143,160,0.07);
  border: 1px solid rgba(26,143,160,0.2);
}
.warn-box {
  background: rgba(232,114,74,0.07);
  border: 1px solid rgba(232,114,74,0.2);
}
.point-label, .warn-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.point-label { color: var(--teal); }
.warn-label  { color: var(--coral); }

/* 記事末尾CTA */
.article-end-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--sand-warm);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.article-end-cta p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
}

/* 目次・サイドバー */
.article-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.toc-inner {
  background: var(--sand-warm);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.toc-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  counter-reset: toc;
}
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.5;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--teal);
  flex-shrink: 0;
  opacity: 0.7;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--teal);
  background: rgba(26,143,160,0.08);
}

/* 著者ボックス */
.author-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-box-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  flex-shrink: 0;
}
.author-box-text { flex: 1; }
.author-box-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.author-box-bio {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.author-box-line {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #059a42;
  font-weight: 500;
  transition: color 0.2s;
}
.author-box-line:hover { color: #06C755; }

/* =============================================
   RELATED ARTICLES
   ============================================= */
.related-articles {
  padding: clamp(50px, 7vw, 80px) 0;
  background: var(--sand);
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.related-back { text-align: center; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .article-body .container {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
    order: -1;
  }
  .toc-inner { display: none; } /* モバイルでは目次を非表示（任意） */
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .blog-filter { top: 70px; }
  .article-page-meta { gap: 0.75rem; }
}
