/* ============================================================
   category.css — カテゴリーアーカイブページ専用スタイル
   V0デザインより変換
   ============================================================ */

/* ========================================
   HERO
   ======================================== */
.cat-hero {
  background: var(--navy) !important;
  padding: 48px 0 56px;
}

.cat-hero .breadcrumb {
  margin-bottom: 24px;
}

.cat-hero .breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.cat-hero .breadcrumb__item a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.cat-hero .breadcrumb__item a:hover {
  color: rgba(255,255,255,0.8);
}

.cat-hero .breadcrumb__item::after {
  content: '›';
  margin-left: 8px;
  color: rgba(255,255,255,0.3);
}

.cat-hero .breadcrumb__item:last-child::after {
  display: none;
}

.cat-hero .breadcrumb__item.is-current {
  color: rgba(255,255,255,0.5);
}

.cat-hero__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-hero__title > h1,
h1.cat-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white) !important;
  line-height: 1.3;
}

.cat-hero__title-suffix {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.6) !important;
}

.cat-hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  margin-top: 20px;
}

/* ========================================
   CATEGORY TABS
   ======================================== */
.cat-filter {
  background: var(--cream);
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cat-filter__inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-filter__btn:hover {
  background: var(--sand);
}

.cat-filter__btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cat-filter__btn-count {
  font-size: 11px;
  opacity: 0.7;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cat-interviews,
.cat-posts {
  background: var(--cream);
  padding: 48px 0;
}

.cat-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cat-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.cat-section-count {
  font-size: 13px;
  color: rgba(26,26,46,0.5);
}

/* ========================================
   VOICE CARDS（合格者対談）
   ======================================== */
.interview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .interview-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .interview-card-grid {
    grid-template-columns: 1fr;
  }
}

.interview-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
}

.interview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.interview-card__thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--sand);
}

.interview-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interview-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.interview-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.interview-card__profile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 48px 14px 14px;
  color: var(--white);
}

.interview-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.interview-card__univ {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.interview-card__desc {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.6;
  margin-top: 4px;
}

.cat-interviews__more {
  margin-top: 24px;
  text-align: center;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--navy);
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-more:hover {
  background: var(--navy);
  color: var(--white);
}

/* ========================================
   ARTICLE LIST（対策・情報記事）
   ======================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card--list {
  display: flex !important;
  flex-direction: row !important;
  gap: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.post-card--list .post-card__link {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
  text-decoration: none;
}

.post-card--list:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-card__thumb {
  flex-shrink: 0 !important;
  width: 240px !important;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sand);
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.post-card__body {
  flex: 1;
  padding: 20px 24px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.post-card__date {
  font-size: 12px;
  color: rgba(26,26,46,0.5);
}

.post-card__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: rgba(192,57,43,0.08);
  padding: 3px 8px;
  border-radius: 3px;
}

.post-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-size: 13px;
  color: rgba(26,26,46,0.6);
  line-height: 1.7;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .post-card--list {
    flex-direction: column;
  }
  .post-card--list .post-card__link {
    flex-direction: column !important;
  }
  .post-card__thumb {
    width: 100% !important;
  }
  .post-card__body {
    padding: 16px;
  }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  list-style: none;
}

.pagination .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-numbers a:hover {
  background: var(--sand);
  border-color: var(--navy);
}

.pagination .page-numbers .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.cat-empty {
  padding: 64px 0;
  text-align: center;
}

.cat-empty__text {
  font-size: 15px;
  color: rgba(26,26,46,0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
  .cat-hero {
    padding: 32px 0 40px;
  }
  .cat-interviews,
  .cat-posts {
    padding: 32px 0;
  }
}

/* ========================================
   全幅レイアウトリセット
   ======================================== */
.category-page {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.site-main,
#main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* containerをフル幅にしてセクションが全幅背景を持てるよう修正 */
.category-page .container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* cat-heroのcontainerを他セクションと揃える */
.category-page .cat-hero .container,
.cat-hero .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

@media (max-width: 767px) {
  .category-page .cat-hero .container,
  .cat-hero .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* 各セクション内のコンテンツを中央寄せ */
.cat-filter__inner,
.cat-section-header,
.interview-card-grid,
.post-list,
.cat-interviews__more,
.pagination,
.cat-empty {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ヘッダー・フッター間の白余白リセット */
body.category .keikyo-interview-header {
  margin-bottom: 0 !important;
}
body.category .keikyo-interview-site-footer {
  margin-top: 0 !important;
}

/* cat-heroの左パディング修正 */
.cat-hero .container {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* cat-heroのh1も左パディング */
.cat-hero__title,
.cat-hero .breadcrumb,
.cat-hero__badge {
  padding-left: 0;
}

/* 対策・情報記事のテキストと画像の間隔 */
.post-card--list .post-card__body {
  padding: 20px 24px !important;
}

/* セクション内コンテンツの左右パディング統一 */
.cat-filter,
.cat-interviews,
.cat-posts {
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
}

/* interview_tag link badge */
.interview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.interview-card__tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  text-decoration: none;
  background: rgba(26,26,46,0.7);
  color: #fff;
  position: relative;
  z-index: 3;
}
.interview-card__tag:hover { opacity: 0.8; }
.interview-card__tag--light {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
a.story-card__origin {
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 3;
}
a.story-card__origin:hover { opacity: 0.8; }
