@charset "utf-8";
/*
  Component - 汎用UIコンポーネント
*/

/* =========================
  Button
============================ */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--primary {
  background: #fbbf24;
  color: #111111;
  border: none;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}
.btn--primary:hover {
  background: #facc15;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}
.btn--outline {
  background: transparent;
  color: #111111;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn--outline:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

/* More Link */
.more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 40px auto 0;
  padding: 14px 32px;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
  background: linear-gradient(to right, #fbbf24 50%, #111111 50%);
  background-size: 200% 100%;
  background-position: left center;
  border: none;
  transition: background-position 0.35s ease, color 0.3s ease, gap 0.25s ease;
}
.more-link::after {
  content: '→';
  transition: transform 0.2s ease;
}
.more-link:hover {
  background-position: right center;
  color: #fbbf24;
  gap: 18px;
}
.more-link:hover::after {
  transform: translateX(4px);
}
@media screen and (min-width: 765px) {
  .more-link {
    margin-top: 50px;
    padding: 16px 40px;
  }
}


/* ==============================
  Breadcrumb（パンくずリスト）
================================= */
.breadcrumb {
  position: relative;
  z-index: 1;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb__link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.breadcrumb__link:hover {
  color: #fff;
}
.breadcrumb__separator {
  margin: 0 5px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.breadcrumb__current {
  color: #fff;
  font-weight: 500;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media screen and (min-width: 600px) {
  .breadcrumb__inner {
    padding: 12px 20px;
  }
  .breadcrumb__item {
    font-size: 10.4px;
  }
  .breadcrumb__current {
    max-width: 50vw;
  }
}
@media screen and (min-width: 765px) {
  .breadcrumb__inner {
    padding: 13px 24px;
  }
  .breadcrumb__separator {
    margin: 0 6px;
  }
  .breadcrumb__current {
    max-width: 400px;
  }
}
@media screen and (min-width: 1025px) {
  .breadcrumb__inner {
    padding: 14px 32px;
  }
  .breadcrumb__current {
    max-width: 600px;
  }
}


/* ==============================
  Card（汎用カード）
================================= */

/* List */
.post-card__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Item */
.post-card__item {
  background: #111111;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease, background 0.2s ease;
}
.post-card__item:hover {
  background: #1a1a1a;
  border-left-color: #fbbf24;
}

/* Link */
.post-card__link {
  display: block;
}

/* Thumbnail */
.post-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.post-card__item:hover .post-card__thumb img {
  transform: scale(1.06);
}

/* No Image */
.post-card__thumb--noimage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}
.post-card__thumb--noimage span {
  font-size: 12.8px;
  color: #999999;
}

/* Body */
.post-card__body {
  padding: 16px;
}

/* Title */
.post-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
}

/* Meta */
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

/* Category */
.post-card__category {
  font-size: 10px;
  padding: 0;
  background: transparent;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Date */
.post-card__date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Excerpt */
.post-card__excerpt {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

/* Responsive */
@media screen and (min-width: 600px) {
  .post-card__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .post-card__body {
    padding: 20px;
  }
  .post-card__title {
    font-size: 16px;
  }
}
@media screen and (min-width: 1025px) {
  .post-card__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}


/* =================================
  Page Detail（固定ページ詳細）
=================================== */
.page-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}
.page-detail__content {
  width: 100%;
}
.page-detail__text {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 24px;
  color: #111111;
}
.page-detail__list {
  margin: 24px 0;
  padding-left: 24px;
  list-style: none;
}
.page-detail__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #111111;
}
.page-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #fbbf24;
  border-radius: 50%;
}
.page-detail__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.page-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}
@media screen and (min-width: 765px) {
  .page-detail {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .page-detail--reverse {
    direction: rtl;
  }
  .page-detail--reverse > * {
    direction: ltr;
  }
}
@media screen and (min-width: 1025px) {
  .page-detail {
    gap: 64px;
  }
}


/* =================================
  Page Content（エディターコンテンツ）
=================================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}


/* =================================
  Category Nav（カテゴリーナビ）
=================================== */
.category-nav {
  margin-bottom: 40px;
}
.category-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid #e5e5e5;
}
.category-nav__item {
  display: inline-block;
}
.category-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888888;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.category-nav__link:hover {
  color: #111111;
  background: transparent;
  border-bottom-color: #111111;
}
.category-nav__link.is-active {
  color: #111111;
  background: transparent;
  border-bottom-color: #fbbf24;
}
@media screen and (min-width: 765px) {
  .category-nav__link {
    padding: 12px 24px;
    font-size: 12px;
  }
}


/* =================================
  Pagination（ページネーション）
=================================== */
.pagination {
  margin-top: 48px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #888888;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pagination .page-numbers:hover {
  color: #111111;
  background: transparent;
  border-color: #111111;
}
.pagination .page-numbers.current {
  color: #111111;
  background: #fbbf24;
  border-color: #fbbf24;
}
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: 16px;
  letter-spacing: 0;
}


/* =================================
  Archive Empty（検索結果なし）
=================================== */
.archive-empty {
  padding: 48px;
  text-align: center;
  font-size: 16px;
  color: #888888;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}


/* =================================
  Search Result（検索結果）
=================================== */
.search-result__count {
  margin-bottom: 32px;
  font-size: 16px;
  color: #888888;
  text-align: center;
}


/* =================================
  Error Content（エラーページ）
=================================== */
.error-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}
.error-content__text {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.9;
  color: #111111;
}
@media screen and (min-width: 600px) {
  .error-content { padding: 48px; }
}


/* =================================
  Article（記事詳細）
=================================== */
.article {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.article__thumbnail {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.article__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.article__content {
  font-size: 15px;
  line-height: 2;
  color: #111111;
}
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.article__tag {
  font-size: 12.8px;
  color: #888888;
  transition: color 0.2s ease;
}
.article__tag:hover {
  color: #fbbf24;
}


/* =================================
  Post Nav（前後記事ナビ）
=================================== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
}
.post-nav__link {
  display: block;
  padding: 16px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.post-nav__link:hover {
  background: #f5f5f5;
  border-color: #111111;
  transform: translateY(-2px);
}
.post-nav__label {
  display: block;
  font-size: 10.4px;
  color: #888888;
  margin-bottom: 4px;
}
.post-nav__title {
  display: block;
  font-size: 12.8px;
  font-weight: 600;
  color: #111111;
  line-height: 1.5;
}
.post-nav__link--next {
  text-align: right;
}
@media screen and (min-width: 765px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .post-nav__link {
    padding: 24px;
  }
  .post-nav__title {
    font-size: 16px;
  }
}


/* =================================
  Back to List（一覧へ戻る）
=================================== */
.back-to-list {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
