/* ============================================================
   Green Re:pot / グリーン・リポット — Blog styles
   ============================================================ */

/* ── Blog hero ────────────────────────────────────────── */
.blog-hero {
  background: var(--c-bg-deep);
  padding: clamp(28px, 4vw, 48px) 0;
}
.blog-hero .crumb { display:flex; gap:10px; align-items:center; font-family:var(--font-mono); font-size:0.66rem; color:var(--c-muted); font-weight:500; margin-bottom:10px; letter-spacing:0.12em; text-transform:uppercase; }
.blog-hero .crumb a:hover { color:var(--c-ink); }
.blog-hero .crumb-sep { color:var(--c-sub); }
.blog-hero h1 {
  font-family:var(--font-display); font-weight:900;
  font-size:clamp(1.9rem,4.4vw,3.2rem); letter-spacing:-0.01em;
  color:var(--c-ink); margin:14px 0 14px;
}
.blog-hero .lead { max-width:600px; }

/* ── Category filter ──────────────────────────────────── */
.blog-cats { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.blog-cat {
  padding:8px 16px; background:var(--c-surface); border:1px solid var(--c-line);
  border-radius:var(--radius-full); font-size:0.83rem; font-weight:700;
  color:var(--c-ink-soft); cursor:pointer; transition:all 160ms ease;
}
.blog-cat:hover { border-color:var(--c-brand); color:var(--c-brand); }
.blog-cat.active { background:var(--c-brand); border-color:var(--c-brand); color:#fff; }

/* ── Featured post ────────────────────────────────────── */
.blog-feature {
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:0;
  background:var(--c-surface); border:1px solid var(--c-line);
  border-radius:var(--radius-lg); overflow:hidden; margin-bottom:clamp(32px,4vw,52px);
  transition:box-shadow 240ms ease, transform 240ms ease;
}
.blog-feature:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.blog-feature .bf-img { aspect-ratio:16/11; overflow:hidden; background:var(--c-bg-deep); }
.blog-feature .bf-img img { width:100%; height:100%; object-fit:cover; transition:transform 6s ease; }
.blog-feature:hover .bf-img img { transform:scale(1.04); }
.blog-feature .bf-body { padding:clamp(28px,3.5vw,48px); display:flex; flex-direction:column; justify-content:center; }
.blog-feature .bf-tag {
  align-self:flex-start; font-size:0.72rem; font-weight:800; letter-spacing:0.08em;
  color:var(--c-brand); background:var(--c-brand-faint); padding:5px 12px;
  border-radius:var(--radius-full); margin-bottom:16px;
}
.blog-feature h2 {
  font-family:var(--font-display); font-weight:900; letter-spacing:-0.01em;
  font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.35; color:var(--c-ink); margin-bottom:14px;
}
.blog-feature .bf-excerpt { font-size:0.95rem; line-height:1.9; color:var(--c-muted); margin-bottom:20px; }
.blog-feature .bf-meta { display:flex; gap:14px; align-items:center; font-family:var(--font-mono); font-size:0.72rem; color:var(--c-sub); letter-spacing:0.04em; }
@media (max-width:820px){ .blog-feature{ grid-template-columns:1fr; } .blog-feature .bf-img{ order:-1; aspect-ratio:16/9; } }

/* ── Post grid (magazine cards) ───────────────────────── */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.5vw,32px); }
.post-card {
  display:flex; flex-direction:column; background:var(--c-surface);
  border:1px solid var(--c-line); border-radius:var(--radius-lg); overflow:hidden;
  transition:transform 220ms ease, box-shadow 220ms ease;
}
.post-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.post-card .pc-img { aspect-ratio:4/3; overflow:hidden; background:var(--c-bg-deep); position:relative; }
.post-card .pc-img img { width:100%; height:100%; object-fit:cover; transition:transform 4s ease; }
.post-card:hover .pc-img img { transform:scale(1.05); }
.post-card .pc-tag {
  position:absolute; top:14px; left:14px; font-size:0.68rem; font-weight:800;
  letter-spacing:0.06em; color:var(--c-brand-dark); background:rgba(255,255,255,0.94);
  padding:5px 11px; border-radius:var(--radius-full);
}
.post-card .pc-body { padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.post-card h3 {
  font-family:var(--font-display); font-weight:800; letter-spacing:-0.005em;
  font-size:1.12rem; line-height:1.5; color:var(--c-ink); margin-bottom:10px;
}
.post-card .pc-excerpt { font-size:0.85rem; line-height:1.8; color:var(--c-muted); flex:1; }
.post-card .pc-meta {
  margin-top:18px; padding-top:14px; border-top:1px solid var(--c-line);
  display:flex; gap:12px; align-items:center; font-family:var(--font-mono);
  font-size:0.7rem; color:var(--c-sub); letter-spacing:0.04em;
}
.post-card.hidden { display:none; }
@media (max-width:900px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .blog-grid{ grid-template-columns:1fr; } }

/* ── Pagination ───────────────────────────────────────── */
.blog-pager { display:flex; justify-content:center; gap:8px; margin-top:clamp(36px,5vw,60px); }
.blog-pager a, .blog-pager span {
  min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:var(--radius-sm); font-size:0.88rem; font-weight:700; padding:0 12px;
  border:1px solid var(--c-line); color:var(--c-ink-soft); background:var(--c-surface); transition:all 160ms;
}
.blog-pager a:hover { border-color:var(--c-brand); color:var(--c-brand); }
.blog-pager .current { background:var(--c-brand); border-color:var(--c-brand); color:#fff; }
.blog-pager .disabled { opacity:0.4; pointer-events:none; }

/* ── Article (post detail) ────────────────────────────── */
.article-hero { background:var(--c-bg-deep); padding:clamp(36px,5vw,64px) 0 0; }
.article-hero .container:last-child { padding-bottom:clamp(12px,2vw,24px); }
.article-head { max-width:760px; margin:0 auto; text-align:center; padding-bottom:clamp(14px,2vw,22px); }
.article-head .crumb { justify-content:center; display:flex; gap:10px; align-items:center; font-family:var(--font-mono); font-size:0.66rem; color:var(--c-muted); font-weight:500; margin-bottom:16px; letter-spacing:0.12em; text-transform:uppercase; }
.article-head .crumb a:hover { color:var(--c-ink); }
.article-head .crumb-sep { color:var(--c-sub); }
.article-head .a-tag {
  display:inline-block; font-size:0.72rem; font-weight:800; letter-spacing:0.08em;
  color:var(--c-brand); background:var(--c-surface); border:1px solid var(--c-line);
  padding:5px 14px; border-radius:var(--radius-full); margin-bottom:18px;
}
.article-head h1 {
  font-family:var(--font-display); font-weight:900; letter-spacing:-0.01em;
  font-size:clamp(1.7rem,3.6vw,2.8rem); line-height:1.4; color:var(--c-ink); margin-bottom:10px;
}
.article-head .a-meta { display:flex; justify-content:center; gap:16px; align-items:center; font-family:var(--font-mono); font-size:0.74rem; color:var(--c-muted); letter-spacing:0.04em; }
.article-cover {
  max-width:960px; margin:0 auto; aspect-ratio:16/9; overflow:hidden;
  border-radius:var(--radius-lg); background:var(--c-bg-deep);
  position:relative; top:clamp(12px,2vw,24px); box-shadow:var(--shadow-lg);
}
.article-cover img { width:100%; height:100%; object-fit:cover; }

.article-body {
  max-width:768px; margin:0 auto; padding:clamp(28px,3.5vw,48px) 24px clamp(10px,1.2vw,16px);
  font-size:1.02rem; line-height:2; color:var(--c-ink-soft);
}
.article-body > p { margin-bottom:1.6em; }
.article-body h2 {
  font-family:var(--font-display); font-weight:900; letter-spacing:-0.005em;
  font-size:clamp(1.3rem,2.2vw,1.7rem); line-height:1.5; color:var(--c-ink);
  margin:2em 0 0.8em; padding-left:16px; border-left:4px solid var(--c-brand);
}
.article-body h3 { font-family:var(--font-display); font-weight:800; font-size:1.15rem; color:var(--c-ink); margin:1.6em 0 0.6em; }
.article-body ul, .article-body ol { margin:0 0 1.6em 1.4em; }
.article-body li { margin-bottom:0.6em; }
.article-body img { border-radius:var(--radius-md); margin:1.5em 0; width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.article-body .a-figure { margin:2em 0; }
.article-body .a-figure img { margin:0; }
/* Portrait / free-ratio images */
.article-body .a-figure.portrait img { aspect-ratio:3/4; max-width:440px; margin:0 auto; }
.article-body .a-figure.tall img { aspect-ratio:9/16; max-width:380px; margin:0 auto; }
.article-body .a-figure.natural img { aspect-ratio:auto; max-height:70vh; width:auto; max-width:100%; margin:0 auto; }
/* Two images side by side */
.article-body .a-duo { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:2em 0; }
.article-body .a-duo img { margin:0; aspect-ratio:3/4; }
.article-body .a-duo figcaption { grid-column:1/-1; }
@media (max-width:520px){ .article-body .a-duo { grid-template-columns:1fr; } }
.article-body .a-figure figcaption { font-size:0.8rem; color:var(--c-muted); margin-top:8px; text-align:center; }
.article-body .a-callout {
  background:var(--c-brand-faint); border-radius:var(--radius-md);
  padding:22px 26px; margin:2em 0; font-size:0.95rem; line-height:1.9; color:var(--c-brand-dark);
}
.article-body .a-callout b { display:block; margin-bottom:6px; font-family:var(--font-display); }
.article-body blockquote {
  border-left:3px solid var(--c-line-hi); padding:6px 0 6px 22px;
  margin:1.5em 0; color:var(--c-muted); font-style:italic;
}

/* Author / share */
.article-foot { max-width:768px; margin:0 auto; padding:0 24px clamp(40px,5vw,64px); }
.article-author {
  display:flex; gap:18px; align-items:center; background:var(--c-surface);
  border:1px solid var(--c-line); border-radius:var(--radius-lg); padding:24px;
}
.article-author .aa-avatar { width:56px; height:56px; border-radius:50%; overflow:hidden; flex-shrink:0; background:var(--c-brand-faint); }
.article-author .aa-avatar img { width:100%; height:100%; object-fit:cover; }
.article-author .aa-role { font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.1em; color:var(--c-brand); text-transform:uppercase; font-weight:700; }
.article-author .aa-name { font-family:var(--font-display); font-weight:800; font-size:1.05rem; color:var(--c-ink); margin:3px 0 6px; }
.article-author .aa-bio { font-size:0.82rem; color:var(--c-muted); line-height:1.7; }

/* About-shop block under author */
.about-shop { margin-top:16px; background:var(--c-brand-faint); border:1px solid var(--c-line); border-radius:var(--radius-lg); padding:26px; }
.about-shop .as-head { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.about-shop .brand-mark { width:44px; height:44px; background:transparent !important; border-radius:0 !important; box-shadow:none !important; color:inherit; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.about-shop .brand-mark img,.about-shop .brand-mark svg { width:100%; height:100%; display:block; }
.about-shop .as-name { font-family:var(--font-display); font-weight:900; font-size:1.2rem; color:var(--c-ink); }
.about-shop .as-tag { font-size:0.76rem; color:var(--c-brand-dark); font-weight:700; letter-spacing:0.02em; margin-top:2px; }
.about-shop .as-bio { font-size:0.88rem; line-height:1.9; color:var(--c-ink-soft); margin-bottom:18px; }
.about-shop .as-area { margin-bottom:20px; }
.about-shop .as-area-label { display:block; font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--c-muted); font-weight:700; margin-bottom:10px; }
.about-shop .as-area-tags { display:flex; flex-wrap:wrap; gap:7px; }
.about-shop .as-tagpill { padding:5px 12px; background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--radius-full); font-size:0.8rem; font-weight:600; color:var(--c-ink-soft); }
.about-shop .as-tagpill.primary { background:var(--c-brand); border-color:var(--c-brand); color:#fff; font-weight:700; }
.about-shop .as-cta { display:flex; flex-wrap:wrap; gap:10px; }

/* Related / CTA */
.article-related { background:var(--c-bg-deep); }
.article-related .blog-grid { grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .article-related .blog-grid{ grid-template-columns:1fr; } }

.blog-cta {
  background:var(--c-brand);
  background-image:radial-gradient(circle at 15% 85%, rgba(255,255,255,0.12) 0%, transparent 45%);
  color:#fff; text-align:center; border-radius:var(--radius-xl);
  padding:clamp(36px,5vw,56px);
}
.blog-cta h2 { color:#fff; font-family:var(--font-display); font-weight:900; font-size:clamp(1.4rem,2.6vw,2rem); margin-bottom:12px; }
.blog-cta p { color:rgba(255,255,255,0.86); margin:0 auto 26px; max-width:520px; line-height:1.9; }
.blog-cta .btn-primary { background:#fff; color:var(--c-brand-dark); }
.blog-cta .btn-primary:hover { background:var(--c-bg); }
