/* ブログ一覧・記事ページ（main.css の後に読み込む） */

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--color-main);
  color: var(--color-white);
  padding: 150px 5% 72px;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb li {
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-hero-lead {
  max-width: 36em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
}

/* ===== BLOG ARCHIVE ===== */
.blog-archive {
  padding: 80px 5% 100px;
}

.blog-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-pickup a {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid #e3e3ea;
}

.blog-pickup .blog-thumb {
  aspect-ratio: 3/2;
}

.blog-pickup-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.blog-pickup .blog-title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  margin-bottom: 16px;
}

.blog-excerpt {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}

.blog-pickup:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-pickup:hover .blog-title {
  color: var(--color-accent);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-meta .blog-tag {
  margin-bottom: 0;
}

.blog-archive .blog-card .blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  .blog-pickup a {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
}

/* ===== POST ===== */
.post-hero {
  padding-bottom: 160px;
}

.post-hero-inner {
  max-width: 880px;
}

.post-hero .blog-meta {
  margin-bottom: 20px;
}

.post-hero .blog-date {
  color: rgba(255, 255, 255, 0.6);
}

.post-title {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.45;
  text-wrap: balance;
  margin-bottom: 32px;
}

.post-author-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.post-author-mini img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.post-author-mini span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.post-cover {
  max-width: 1040px;
  margin: -120px auto 0;
  padding: 0 5%;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 5% 80px;
  font-size: 1.0625rem;
  line-height: 2;
  color: #22223a;
}

.post-body > * + * {
  margin-top: 1.4em;
}

.post-body h2 {
  position: relative;
  margin-top: 2.8em;
  padding: 0 0 16px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-main);
  border-bottom: 2px solid var(--color-main);
}

.post-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--color-accent);
}

.post-body h3 {
  margin-top: 2.2em;
  padding-left: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-main);
  border-left: 4px solid var(--color-accent);
}

.post-body ul {
  list-style: none;
  padding: 24px 28px;
  background: var(--color-gray-light);
}

.post-body ul li {
  position: relative;
  padding-left: 1.2em;
}

.post-body ul li + li {
  margin-top: 6px;
}

.post-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.post-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 執筆者表記（記事本文の先頭） */
.post-body .author-byline {
  font-size: 0.85rem;
  color: #666;
}

.post-body .author-career {
  font-size: 0.85rem;
  margin-top: 8px;
}

.post-body .author-career summary {
  cursor: pointer;
  color: var(--color-accent);
  font-weight: 700;
}

.post-body .author-career ul {
  margin-top: 12px;
  padding: 16px 20px;
}

/* 本文中の無料体験の案内 */
.post-body .cta-free-trial {
  margin-top: 3em;
  padding: 40px;
  background: var(--color-main);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.post-body .cta-free-trial h2 {
  margin-top: 0;
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.post-body .cta-free-trial p + p {
  margin-top: 1em;
}

.post-body .cta-free-trial a {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: opacity var(--transition);
}

.post-body .cta-free-trial a:hover {
  opacity: 0.85;
}

/* よくあるご質問 */
.post-body .faq-section {
  margin-top: 3em;
}

.post-body .faq-item {
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid #e3e3ea;
}

.post-body .faq-item h3 {
  margin: 0 0 12px;
  padding: 0 0 0 40px;
  border: none;
  position: relative;
}

.post-body .faq-item h3::before,
.post-body .faq-item p::before {
  position: absolute;
  left: 0;
  font-family: var(--font-en);
  font-weight: 900;
}

.post-body .faq-item h3::before {
  content: "Q";
  color: var(--color-accent);
}

.post-body .faq-item p {
  position: relative;
  padding-left: 40px;
  font-size: 0.95rem;
}

.post-body .faq-item p::before {
  content: "A";
  color: var(--color-main);
}

@media (max-width: 600px) {
  .post-hero {
    padding-bottom: 96px;
  }

  .post-cover {
    margin-top: -64px;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body .cta-free-trial {
    padding: 28px 20px;
  }

  .post-body ul,
  .post-body .faq-item {
    padding: 20px;
  }
}

/* ===== AUTHOR CARD ===== */
.post-author {
  max-width: 760px;
  margin: 0 auto 100px;
  padding: 0 5%;
}

.post-author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 32px;
  background: var(--color-gray-light);
}

.post-author-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: top;
}

.post-author-card .section-label {
  margin-bottom: 4px;
}

.post-author-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.post-author-role {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.post-author-bio {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #555;
}

@media (max-width: 600px) {
  .post-author-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ===== RELATED ===== */
.post-related {
  background: var(--color-gray-light);
  padding: var(--section-padding);
}

.post-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* アイキャッチのない記事 */
.post-hero--plain {
  padding-bottom: 72px;
}

/* ===== PAGINATION ===== */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 64px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d6d6e0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  background: var(--color-main);
  border-color: var(--color-main);
  color: var(--color-white);
}

.pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
