*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f6f8;
  color: #1a1a2e;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e5ea;
  padding: 14px 0;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}
.site-header__logo:hover { opacity: 0.7; }
.site-header__home-link {
  font-size: 0.8125rem;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.site-header__home-link:hover { color: #1a1a2e; }
.site-header__home-link svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}
.hero.hero--bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  aspect-ratio: 16 / 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.hero--bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.4);
}
.hero--bg-image .hero__title,
.hero--bg-image .hero__subtitle {
  position: relative;
  z-index: 1;
}
.hero--with-author {
  padding: 48px 24px;
}
.hero--with-author .hero__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.hero__photo {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero--with-author .hero__subtitle {
  margin: 0;
}
.hero__author-name {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag-filter {
  padding: 32px 0 8px;
}
.tag-filter__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.tag-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #555;
  user-select: none;
}
.tag-chip:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}
.tag-chip--active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}
.tag-chip--active:hover {
  background: #2d2d5e;
  border-color: #2d2d5e;
  color: #fff;
}
.tag-chip__count {
  margin-left: 6px;
  font-size: 0.6875rem;
  opacity: 0.6;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 64px;
}
@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 20px; }
  .hero--bg-image { aspect-ratio: 16 / 7; }
  .hero__title { font-size: 1.5rem; }
  .hero--with-author .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .hero--with-author .hero__subtitle { margin: 0 auto; }
  .hero__photo { width: 96px; height: 96px; }
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}
.article-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #e8eaee;
  overflow: hidden;
}
.article-card__thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}
.article-card__thumb--placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #bbb;
}
.article-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.article-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5b6abf;
  background: #eef0ff;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.article-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__excerpt {
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #999;
  border-top: 1px solid #f0f1f3;
  padding-top: 14px;
}
.article-card__author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ddd;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card__author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-card__author-name {
  font-weight: 600;
  color: #555;
}
.article-card__date { margin-left: auto; }

.article-card--fade-in {
  animation: fadeInUp 0.3s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #999;
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state__text {
  font-size: 1rem;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.result-count {
  font-size: 0.8125rem;
  color: #888;
}
.result-count strong {
  color: #1a1a2e;
  font-weight: 700;
}
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: #888;
}
.page-size-selector__label {
  margin-right: 4px;
}
.page-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #555;
  transition: all 0.15s ease;
}
.page-size-btn:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}
.page-size-btn--active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}
.page-size-btn--active:hover {
  background: #2d2d5e;
  border-color: #2d2d5e;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0 64px;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #555;
  transition: all 0.15s ease;
  user-select: none;
}
.pagination__btn:hover:not(:disabled):not(.pagination__btn--active) {
  border-color: #1a1a2e;
  color: #1a1a2e;
}
.pagination__btn--active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
  cursor: default;
}
.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 0.875rem;
  color: #999;
  user-select: none;
}
@media (max-width: 600px) {
  .list-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pagination {
    gap: 2px;
  }
  .pagination__btn {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 0.8125rem;
  }
}

.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8125rem;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 1rem;
}

.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #c62828;
  font-size: 1rem;
}

/* ===== Custom CSS ===== */
/* ===== カスタムCSS：上品で信頼感のあるコラムサイト向け ===== */

/* 全体設計
   - 読みやすさ重視
   - 落ち着いた配色
   - コラム/企業メディア/専門サイトに馴染みやすいデザイン
*/

/* =========================
   記事ページ
   ========================= */

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  color: #2b2f38;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: #1d2736;
  line-height: 1.45;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.article-body h1 {
  font-size: 2rem;
  margin: 0 0 1.2em;
  padding-bottom: 0.45em;
  border-bottom: 2px solid #d9e2ec;
}

.article-body h2 {
  font-size: 1.55rem;
  margin: 2.8em 0 1em;
  padding-left: 0.8em;
  border-left: 5px solid #54708c;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 2.2em 0 0.9em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid #dfe7ef;
}

.article-body h4 {
  font-size: 1.02rem;
  margin: 1.8em 0 0.7em;
  color: #425466;
}

.article-body p {
  margin: 0 0 1.4em;
}

.article-body a {
  color: #2b5f8a;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 95, 138, 0.35);
  transition: all 0.25s ease;
}

.article-body a:hover {
  color: #173b59;
  border-bottom-color: rgba(23, 59, 89, 0.7);
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(21, 34, 50, 0.10);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  background: #f7fafc;
  border-left: 4px solid #7b95ad;
  border-radius: 10px;
  color: #425466;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 35, 55, 0.05);
}

.article-body thead th {
  background: #eef4f8;
  color: #243447;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid #d9e2ec;
  text-align: left;
}

.article-body table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.author-footer-container {
  margin-top: 56px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8fbfd 0%, #eef4f8 100%);
  border: 1px solid #dde7f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 35, 55, 0.05);
}

.back-to-index a {
  display: inline-block;
  margin-top: 24px;
  color: #2b5f8a;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-index a:hover {
  opacity: 0.8;
  transform: translateX(-2px);
}

/* =========================
   記事一覧ページ
   ========================= */

.hero {
  position: relative;
  padding: 88px 20px 84px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, #243447 0%, #3b4f63 55%, #6c8398 100%);
  overflow: hidden;
}

.hero--bg-image::before {
  background: rgba(26, 26, 46, 0);
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 2.4rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.hero__subtitle {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(19, 34, 50, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #d3dee8;
  box-shadow: 0 16px 36px rgba(19, 34, 50, 0.10);
}

/* =========================
   レスポンシブ
   ========================= */

@media (max-width: 768px) {
  .article-body {
    padding: 28px 16px 56px;
    font-size: 15.5px;
    line-height: 1.88;
  }

  .article-body h1 {
    font-size: 1.7rem;
  }

  .article-body h2 {
    font-size: 1.35rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .hero {
    padding: 64px 16px 60px;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .author-footer-container {
    padding: 20px;
  }
}

