/* ============================================================
   tag.css — タグアーカイブページ専用スタイル
   ※ ヘッダー・フッターは base.css のみで管理。ここでは記述しない。
   ============================================================ */

.tag-page {
  background: #f8f6f1;
}

.tag-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tag-hero {
  background: #f4f0e8;
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0;
}

.tag-hero__breadcrumb {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(26,26,46,0.5);
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.tag-hero__breadcrumb a,
.tag-hero__breadcrumb span { display: inline !important; }
.tag-hero__breadcrumb a { color: rgba(26,26,46,0.5); text-decoration: none; transition: color 0.2s; }
.tag-hero__breadcrumb a:hover { color: #c0392b; }
.tag-hero__breadcrumb > span:not(:last-child) { color: rgba(26,26,46,0.3); }

.tag-hero__header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tag-hero__title { font-size: clamp(28px,4vw,40px); font-weight: 700; color: #1a1a2e; line-height: 1.3; display: block; }
.tag-hero__title-hash { color: #c0392b; display: inline !important; }
.tag-hero__sub { font-size: 16px; color: rgba(26,26,46,0.5); font-weight: 400; margin-left: 4px; display: inline !important; }

.tag-hero__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag-section {
  background: #f8f6f1;
  padding: 64px 0;
  margin: 0;
}
.tag-section--empty { padding: 40px 0 !important; }
.tag-section:last-of-type { padding-bottom: 80px; }

.tag-section__header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.tag-section__title { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.tag-section__count { font-size: 13px; color: rgba(26,26,46,0.5); font-weight: 500; }

.interview-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width:1023px) { .interview-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:767px)  { .interview-grid { grid-template-columns: 1fr; max-width: 400px; } }

.interview-card { position: relative; 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; display: block; }
.interview-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.interview-card__photo { position: relative; aspect-ratio: 3/4; background: #f4f0e8; overflow: hidden; }
.interview-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.interview-card__photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(26,26,46,0.25); font-size: 12px; letter-spacing: 0.05em; }
.interview-card__badge { position: absolute; top: 12px; left: 12px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 3px; letter-spacing: 0.03em; z-index: 2; }
.interview-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(26,26,46,0.9) 0%,rgba(26,26,46,0.6) 50%,transparent 100%); padding: 60px 16px 20px; z-index: 1; }
.interview-card__name { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.interview-card__univ { font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.interview-card__excerpt { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-top: 4px; }

.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-item { display: flex; gap: 24px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s,box-shadow 0.2s; text-decoration: none; color: inherit; }
.article-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
@media (max-width:767px) { .article-item { flex-direction: column; gap: 0; } }

.article-item__thumb { flex-shrink: 0; width: 280px; aspect-ratio: 16/9; background: #f4f0e8; position: relative; overflow: hidden; display: block; text-decoration: none; }
@media (max-width:1023px) { .article-item__thumb { width: 220px; } }
@media (max-width:767px)  { .article-item__thumb { width: 100%; } }

.article-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-item__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(26,26,46,0.25); font-size: 12px; letter-spacing: 0.05em; }
.article-item__category { position: absolute; top: 12px; left: 12px; background: #1a1a2e; color: #fff; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 3px; letter-spacing: 0.03em; }

.article-item__body { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width:767px) { .article-item__body { padding: 20px; } }

.article-item__date { font-size: 11px; color: rgba(26,26,46,0.45); margin-bottom: 8px; }
.article-item__title { font-size: 17px; font-weight: 600; color: #1a1a2e; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item__title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.article-item__title a:hover { color: #c0392b; }
.article-item__excerpt { font-size: 13px; color: rgba(26,26,46,0.6); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item__link { font-size: 13px; font-weight: 600; color: #c0392b; text-decoration: none; transition: opacity 0.2s; align-self: flex-start; }
.article-item__link:hover { opacity: 0.7; }

.tag-pagination { margin-top: 48px; }
.tag-pagination .page-numbers { display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-pagination .page-numbers li { margin: 0; }
.tag-pagination a.page-numbers,
.tag-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgba(26,26,46,0.15); border-radius: 4px; background: #fff; color: #1a1a2e; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.tag-pagination a.page-numbers:hover { border-color: #1a1a2e; background: #1a1a2e; color: #fff; }
.tag-pagination span.current { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
.tag-pagination span.dots { border: none; background: transparent; }

.tag-empty { text-align: center; color: rgba(26,26,46,0.5); font-size: 15px; padding: 40px 0; }

@media (prefers-reduced-motion:reduce) {
  .interview-card, .article-item, .tag-pagination a.page-numbers { transition: none !important; }
}
:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }

/* ========================================
   base.css のヘッダー・フッター余白を上書き
   （category.css と同じ対処）
   ======================================== */
body.tag .keikyo-interview-header {
  margin-bottom: 0 !important;
}
body.tag .keikyo-interview-site-footer {
  margin-top: 0 !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; }

/* interview-card overlay link */
.interview-card {
  position: relative;
}
.interview-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.interview-card__overlay {
  position: relative;
  z-index: 2;
}
.interview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}
.interview-card__tag--light {
  position: relative;
  z-index: 3;
}

/* category.php unified interview-card styles */
.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: 599px) {
  .interview-card-grid { grid-template-columns: 1fr; }
}
.interview-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.interview-card__thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #e0dbd2;
  border-radius: 6px;
  display: block;
}
.interview-card__thumb .interview-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0; left: 0;
  transition: transform 0.3s;
}
.interview-card:hover .interview-card__img {
  transform: scale(1.03);
}
.interview-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}
.interview-card__profile {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 48px 14px 14px;
  color: #fff;
  z-index: 2;
}
.interview-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.interview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.interview-card__tag,
.interview-card__tag--light {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  position: relative;
  z-index: 3;
  transition: background 0.2s;
}
.interview-card__tag:hover,
.interview-card__tag--light:hover {
  background: rgba(255,255,255,0.4);
}
.interview-card__desc {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
