/* ══════════════════════════════════════════════════
   DISCOVER — Blog listing + Article pages
   page-hero styles (from tc-pages.css) + overrides
   Blog card/grid/filter/article styles come from tc-blog.css
   ══════════════════════════════════════════════════ */

/* ── Page Hero (ported from tc-pages.css) ── */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #FAF8F0 0%, #F5F0DC 60%, #EDE8D0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(46,125,50,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,166,35,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

h1.page-hero-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: #1A1A1A;
  margin: 0 0 12px;
}

.page-hero-subtitle {
  font-size: 16px;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .page-hero { padding: 80px 0 64px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 48px 0 32px; }
}

/* ── Filter bar hardcoded (mirrors tc-blog.css .blog-filter) ── */
.blog-filter {
  padding: 16px 0;
  background: #FFFFFF;
  border-bottom: 1px solid #EDE8D0;
  position: sticky;
  top: 70px;
  z-index: 90;
}

.blog-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  /* single scrollable row: start-aligned when overflowing, centered when it
     fits ("safe center"; older browsers fall back to flex-start) */
  justify-content: flex-start;
  justify-content: safe center;
  scroll-snap-type: x proximity;
  scroll-padding: 20px;
  /* fade hints at the edges when there is more to scroll */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.blog-filter-bar::-webkit-scrollbar { display: none; }

.blog-filter-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-block;
  text-decoration: none;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  color: #6B6B6B;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-filter-chip:hover {
  border-color: #2E7D32;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.04);
}

.blog-filter-chip.active {
  background: #2E7D32;
  color: #FFFFFF;
  border-color: #2E7D32;
}

@media (max-width: 640px) {
  .blog-filter { padding: 10px 0; }
  .blog-filter-bar { gap: 6px; padding-left: 16px; padding-right: 16px; }
  .blog-filter-chip {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* ── Section badge (in hero) ── */
.section-badge {
  display: inline-block;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

/* ── Featured Post ── */
.blog-featured {
  padding: 48px 0;
  background: #FAF8F0;
}

a.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 40, 30, 0.08), 0 2px 4px rgba(42, 40, 30, 0.04);
  max-width: 1080px;
  margin: 0 auto;
  -webkit-transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.blog-featured-card:hover {
  box-shadow: 0 12px 32px rgba(42, 40, 30, 0.10), 0 4px 8px rgba(42, 40, 30, 0.04);
  transform: translateY(-2px);
}

.blog-featured-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  -webkit-transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.blog-featured-card:hover .blog-featured-img img {
  transform: scale(1.04);
}

/* Banner-shaped covers (wider than 2:1): show whole image on a soft
   background instead of cropping most of it away */
.blog-featured-img.img-contain img,
.blog-card-img.img-contain img {
  object-fit: contain;
}
.blog-featured-img.img-contain,
.blog-card-img.img-contain {
  background: #F4EFDF;
}

/* Small legacy covers (old 220px thumbnails): sharp image at a capped size
   over a blurred fill, instead of a blurry blow-up */
.blog-featured-img.img-blurbg,
.blog-card-img.img-blurbg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-blurbg .img-blurbg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.15) brightness(1.02);
  transform: scale(1.2);
}
.img-blurbg .img-blurbg-fg {
  position: relative;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.blog-featured-content {
  padding: 24px 32px 32px;
}

h2.blog-featured-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A1A;
  margin: 12px 0 16px;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: #6B6B6B;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 540px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2E7D32;
  -webkit-transition: gap 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: gap 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a.blog-featured-card:hover .blog-read-more {
  gap: 12px;
}

@media (min-width: 768px) {
  a.blog-featured-card {
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
  }
  .blog-featured-img {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .blog-featured-content {
    padding: 40px 40px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Blog Post Meta ── */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-cat-tag {
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.08);
}

.blog-post-meta time {
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 13px;
  color: #A8A8A0;
}

/* ── Blog Grid ── */
.blog-grid-section {
  padding: 48px 0 64px;
  background: #FAF8F0;
}

.blog-grid-section .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

a.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #EDE8D0;
  -webkit-transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

a.blog-card:hover {
  box-shadow: 0 8px 24px rgba(42, 40, 30, 0.10);
  transform: translateY(-3px);
  border-color: rgba(46, 125, 50, 0.2);
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  -webkit-transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-img .blog-card-noimg {
  width: 100%;
  height: 100%;
  background: #EDE8D0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8A8A0;
  font-size: 14px;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-body h3.blog-card-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #1A1A1A;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 540px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-card-body h3.blog-card-title { font-size: 18px; }
}


/* ══════════════════════════════════════════════════
   ARTICLE — Hero, Body, Related
   ══════════════════════════════════════════════════ */

.article-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 40px;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(26, 26, 26, 0.5) 45%,
    rgba(26, 26, 26, 0.15) 100%
  );
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.article-breadcrumb a:hover { color: #FFFFFF; }

.article-breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.article-hero-content {
  max-width: 680px;
}

.article-hero-badge {
  display: inline-block;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

h1.article-hero-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin: 16px 0 12px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.article-meta-item svg { opacity: 0.7; }

@media (min-width: 768px) {
  .article-hero {
    min-height: 480px;
    padding: 64px 0 48px;
  }
}

/* Article body */
.article-body {
  padding: 48px 0 64px;
  background: #FFFFFF;
}

.article-body .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-content p {
  font-size: 16px;
  color: #2C2C2C;
  line-height: 1.75;
  margin: 0 0 20px;
}

.article-content h2 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid #EDE8D0;
}

.article-content h3 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.25;
  margin: 32px 0 12px;
}

.article-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.article-content a {
  color: #2E7D32;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(46, 125, 50, 0.4);
  -webkit-transition: text-decoration-color 180ms ease;
  transition: text-decoration-color 180ms ease;
}

.article-content a:hover {
  text-decoration-color: #2E7D32;
}

.article-content strong { font-weight: 700; color: #1A1A1A; }

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-content li {
  font-size: 16px;
  color: #2C2C2C;
  line-height: 1.75;
  margin-bottom: 8px;
}

.article-content li::marker { color: #2E7D32; }

.article-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #2E7D32;
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: #6B6B6B;
}

.article-content .article-img {
  margin: 32px 0;
}

.article-content .article-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-content .article-img figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #A8A8A0;
  text-align: center;
}

.article-lead {
  font-size: 18px;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #EDE8D0;
}

/* Tags in article */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.article-tags a,
.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #6B6B6B;
  background: #F5F0DC;
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  -webkit-transition: background 180ms ease;
  transition: background 180ms ease;
}

.article-tags a:hover { background: #EDE8D0; }

.article-social-text {
  font-size: 13px;
  color: #A8A8A0;
  margin: 0;
}

/* Related articles */
.shop-related {
  background: #F5F0DC;
  padding: 64px 0;
}

.shop-related .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.shop-related-header h2 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  background: transparent;
  border: 1.5px solid #2C2C2C;
  border-radius: 9999px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: background 180ms ease, color 180ms ease;
  transition: background 180ms ease, color 180ms ease;
}

.btn-outline:hover {
  background: #1A1A1A;
  color: #FFFFFF;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .blog-featured-content { padding: 20px 16px 24px; }
  .blog-grid-section { padding: 32px 0 48px; }
  .article-body .container { padding: 0 16px; }
}
