@charset "UTF-8";

/* =========================================
   ARTICLE HEADER
   ========================================= */
.article-header {
  padding: 0 0 60px;
}

.article-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: clamp(30px, 5vw, 50px);
}

/* Hero Image (Contained) */
.article-hero-contained {
  width: 100%;
  max-width: 1000px;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}
.article-hero-contained img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   ARTICLE LAYOUT (Sticky Sidebar)
   ========================================= */
.article-content-sec {
  padding-bottom: 80px;
}

.article-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(40px, 5vw, 60px);
  max-width: 1000px;
}

/* --- Left Sidebar (Meta Sticky) --- */
.article-sidebar {
  width: 150px;
  flex-shrink: 0;
  position: sticky;
  top: 150px;
  padding-top: 10px;
  border-top: 2px solid #111;
}

.sidebar-inner {
  padding-top: 20px;
}

.meta-group {
  margin-bottom: 40px;
}
.meta-label {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.cat-pill {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  background-color: var(--c-green);
  color: #fff;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.meta-val {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

/* --- Right Body --- */
.article-body {
  flex: 1;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 2;
  color: #333;
}

.lead-text {
  font-weight: 700;
  margin-bottom: 50px;
}

/* Typography inside article */
.article-body h2 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  margin-top: 60px;
  margin-bottom: 30px;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.article-body h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 20px;
}

.article-body p {
  margin-bottom: 30px;
  text-align: justify;
}

.article-body figure {
  margin: 50px 0;
}
.article-body img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-body figcaption {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  text-align: right;
}

.article-body ul {
  background-color: #f9f9f9;
  padding: 30px 30px 30px 50px;
  border-radius: 4px;
  margin-bottom: 40px;
}
.article-body li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.article-body blockquote {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  border: 1px solid #cce0df;
  color: var(--c-green);
  border-radius: 4px;
}

/* =========================================
   POST PAGINATION (Prev / Next)
   ========================================= */
.post-nav-sec {
  padding-bottom: 120px;
}

.post-pagination {
  max-width: 1000px;
  margin: 0 auto 60px;
  display: flex;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-card {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  text-decoration: none;
  color: #111;
  transition: background-color 0.3s;
}
.nav-card:hover {
  background-color: #fcfcfc;
}

.prev-card {
  border-right: 1px solid #eee;
  justify-content: flex-start;
}
.next-card {
  justify-content: flex-end;
  text-align: right;
}

.nav-arrow {
  font-family: var(--font-en);
  font-size: 20px;
  color: #ccc;
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.prev-card .nav-arrow {
  margin-right: 20px;
}
.next-card .nav-arrow {
  margin-left: 20px;
}

.nav-card:hover .nav-arrow {
  color: var(--c-green);
}
.prev-card:hover .nav-arrow {
  transform: translateX(-5px);
}
.next-card:hover .nav-arrow {
  transform: translateX(5px);
}

.nav-info {
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: #888;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
}

.nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.3s;
}
.nav-card:hover .nav-title {
  color: var(--c-green);
}

/* Back to List */
.back-list-wrap {
  text-align: center;
}
.back-to-list {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}
.back-to-list:hover {
  opacity: 0.6;
}

/* =========================================
   RESPONSIVE MANAGER
   ========================================= */

/* --- 950px --- */
@media (max-width: 950px) {
  .article-grid {
    flex-direction: column;
    gap: 40px;
  }

  .article-sidebar {
    width: 100%;
    position: static;
    border-top: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
  }

  .sidebar-inner {
    display: flex;
    gap: 30px;
    padding-top: 0;
  }
  .meta-group {
    margin-bottom: 0;
  }

  .post-pagination {
    flex-direction: column;
  }
  .nav-card {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
  }
  .nav-card:last-child {
    border-bottom: none;
  }

  .sp-br {
    display: block;
  }
}
