/* =============================================
   CASE LIST SECTION
============================================= */
.case-list-section {
  padding: 100px 0 150px;
  position: relative;
}

.case-list-header {
  margin-bottom: 52px;
}

.case-list-heading {
  font-size: clamp(80px, 9.2vw, 120px);
  line-height: 0.8;
}

/* Filter tabs */
.case-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 50px;
  font-family: var(--font-body-ja);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  line-height: 1;
}

.filter-btn.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  border-radius: 30px;
}

.filter-btn:hover:not(.is-active) {
  background: #f0f0f0;
}

/* Card grid */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 28px;
}

.case-card-item {
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition);
  color: inherit;
}

.case-card-item:hover { opacity: 0.8; }

.case-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d9d9d9;
  overflow: hidden;
  margin-bottom: 16px;
  display: block;
  flex-shrink: 0;
  border: 1px solid #cccccc;
}

.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

/* å„æ®µï¼šæ¨ªä¸¦ã³ï¼‹æŠ˜ã‚Šè¿”ã—è¨±å®¹ */
.case-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.case-date {
  flex-basis: auto;
  background: #eee;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  width: fit-content;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  background: var(--grad);
  border-radius: 30px;
  padding: 3px 10px;
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-company {
  color: #666;
  font-family: "Noto Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.case-card-title {
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
  flex: 1;
}

.case-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 6px 12px;
  margin-top: 10px;
  align-self: flex-start;
  background: linear-gradient(to right, #fff 50%, #222 50%);
  background-size: 210% 110%;
  background-position: right center;
  border: 1px solid #222;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: background-position 0.35s ease, color 0.35s ease;
  pointer-events: none;
}

.case-card-btn i { font-size: 10px; }

.case-card-item:hover .case-card-btn {
  background-position: left center;
  color: #222;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: #999;
  border: none;
  transition: background var(--transition);
  flex-shrink: 0;
}

.page-btn.is-active,
.page-btn--arrow {
  background: #222;
}

.page-btn:hover { background: #222; }


/* =============================================
   CASE DETAIL SECTION
============================================= */
.case-detail-section {
  padding: 100px 0 150px;
}

.case-detail-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* First View: thumbnail left, meta+title right */
.case-detail-fv {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.case-detail-thumb {
  flex: 0 0 28%;
  background: #d9d9d9;
  overflow: hidden;
  border: 1px solid #cccccc;
  aspect-ratio: 4 / 3;
}

.case-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-detail-fv-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-detail-company {
  color: #666;
  font-family: "Noto Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.case-detail-date {
  background: #eee;
  padding: 2px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #666;
}

.case-detail-title {
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Article body */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 80px;
}

.article-body h2 {
  background: var(--grad);
  padding: 6px 16px;
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
}

.article-body h3 {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-body-ja);
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
}

.article-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--grad);
  border-radius: 2px;
}

.article-body h4 {
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
}

.article-body p {
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #000;
  line-height: 1.9;
  margin-bottom: 32px;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prev/Next navigation */
.post-nav {
  display: flex;
  gap: 24px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}

.post-nav-card {
  flex: 0 0 calc(50% - 12px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid #ccc;
  transition: border-color var(--transition);
  color: inherit;
}

/* ç‰‡æ–¹ã ã‘è¡¨ç¤ºã•ã‚Œã‚‹å ´åˆï¼šnext ã¯å³å¯„ã› */
.post-nav-card--next:only-child { margin-left: auto; }

.post-nav-card:hover { border-color: #888; }

.post-nav-card--prev { flex-direction: row; }
.post-nav-card--next { flex-direction: row-reverse; }

.post-nav-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
}

.post-nav-card--next .post-nav-arrow {
  transform: none;
}

.post-nav-body { flex: 1; min-width: 0; }

.post-nav-label {
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.post-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-nav-title {
  font-family: var(--font-body-ja);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .case-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .case-list-section,
  .case-detail-section { padding: 60px 0 80px; }

  .case-list-heading { font-size: 56px; }
  .case-card-grid { grid-template-columns: 1fr; gap: 80px; }

  .case-detail-fv { flex-direction: column; gap: 24px; }
  .case-detail-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .case-detail-title { font-size: 18px; }

  .post-nav { flex-direction: column; }
  .post-nav-card { flex: 0 0 100%; }
  .post-nav-card--next:only-child { margin-left: 0; }
}
