/**
 * SIDE STREET 路地裏 — Article Page Styles
 * /assets/css/article.css
 */

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--deep);
}
.article-hero-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3d1c0e 0%, #1a0d05 40%, #0f1a2a 100%);
  opacity: 0.85;
  /* 実運用時: background-imageにimg URLを指定 */
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,13,10,0.2) 0%, rgba(15,13,10,0.75) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  background-color: #2a1f15;
}
.article-hero-deco {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  font-family: 'Shippori Mincho', serif;
  font-size: 16rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 3rem;
  z-index: 2;
  animation: fadeUp 0.7s both;
}
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 780px;
}
.article-meta-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.meta-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   PAGE BODY（記事は2カラム: 本文 + サイドバー）
   ============================================================ */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 4rem;
  align-items: start;
  animation: fadeUp 0.6s 0.15s both;
}
.article-content { min-width: 0; }

/* ============================================================
   ARTICLE MAIN IMAGE / CAPTION
   ============================================================ */
.article-main-image {
  margin: 0 0 3.5rem;
  width: 100%;
}
.article-main-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  margin-bottom: 0.8rem;
}
.article-main-image figcaption,
.article-hero-credit {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: rgba(var(--ink-rgb), 0.45);
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
  font-weight: 500;
}
.article-hero-credit {
  position: absolute;
  top: 1rem; right: 1.5rem;
  z-index: 10;
  color: rgba(255,255,255,0.4);
}
.article-main-image figcaption a,
.article-hero-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.article-main-image figcaption a:hover,
.article-hero-credit a:hover {
  color: var(--red);
}

/* SLANG SPECIFIC STYLES */
.slang-examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
}
.slang-examples li {
  border-left: 3px solid var(--red);
  padding: 0.85rem 1.25rem;
  background: rgba(var(--ink-rgb), 0.03);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
  font-weight: 300;
}
.slang-examples li strong {
  color: #c09e60; /* var(--gold) fallback if not matched */
  font-weight: 600;
}
[data-theme="dark"] .slang-examples li {
    background: rgba(255,255,255,0.05);
    color: #ccc;
}
[data-theme="dark"] .slang-examples li strong {
    color: var(--gold);
}

/* ============================================================
   ARTICLE RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .article-hero-content { padding: 2rem 1.5rem; }
  .article-hero-deco { font-size: 8rem; }
}
@media (max-width: 900px) {
  .page-body {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
    gap: 3rem;
  }
  .sidebar { position: static; }
}
