/* ==========================================================================
   お知らせ・コラム（ブログ）用スタイル
   style.css の色・フォント変数をそのまま利用
   ========================================================================== */

/* トップページ：H1 化したサブコピーの見た目を従来通りに */
h1.hero-subtitle { font-weight: 400; }

/* トップページ：お知らせカードをリンク化 */
a.news-card { display: block; color: inherit; }

/* ---------- 一覧 ---------- */
.page-hero.is-post { height: 42vh !important; min-height: 320px !important; }
@media (max-width: 640px) { .page-hero.is-post { height: 34vh !important; min-height: 260px !important; } }
.blog-list-head { text-align: center; margin-bottom: 40px; }

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}
.blog-cats a {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #fff;
}
.blog-cats a:hover { border-color: var(--color-orange); color: var(--color-orange); }
.blog-cats a.active { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: inherit;
}
.post-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb img.is-placeholder { object-fit: contain; padding: 18% 22%; opacity: .55; }
.post-card-body { padding: 24px 24px 28px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-orange);
}
.post-card-meta .news-category { margin: 0; }
.post-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 10px;
}
.post-card-excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-empty { text-align: center; color: var(--color-text-muted); }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 64px;
}
.pagination a, .pagination span {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}
.pagination a:hover { border-color: var(--color-orange); color: var(--color-orange); }
.pagination .current { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }

/* ---------- 記事 ---------- */
.post { padding-top: 64px; }
.post-container { max-width: 860px; }
.post-header { margin-bottom: 32px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--color-orange);
}
.post-meta .news-category { margin: 0; }
.post-updated { color: var(--color-text-dim); font-weight: 500; }
.post-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
}
.post-eyecatch { margin: 0 0 40px; border-radius: 4px; overflow: hidden; }
.post-eyecatch img { width: 100%; height: auto; }

.post-toc {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-orange);
  padding: 24px 28px;
  margin-bottom: 48px;
  border-radius: 2px;
}
.post-toc-title { font-weight: 700; margin-bottom: 10px; }
.post-toc ol { list-style: decimal; padding-left: 1.4em; }
.post-toc li { margin: 4px 0; font-size: 14px; }
.post-toc li.toc-h3 { list-style: circle; margin-left: 1.2em; font-size: 13px; }
.post-toc a:hover { color: var(--color-orange); text-decoration: underline; }

.post-body { font-size: 16px; line-height: 2; }
.post-body > * + * { margin-top: 1.4em; }
.post-body h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.6;
  margin-top: 2.6em;
  padding: 12px 0 12px 18px;
  border-left: 5px solid var(--color-orange);
  background: var(--color-bg-soft);
  scroll-margin-top: 100px;
}
.post-body h3 {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  margin-top: 2.2em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-green);
  scroll-margin-top: 100px;
}
.post-body h4 { font-size: 17px; margin-top: 2em; }
.post-body a { color: var(--color-orange-dark); text-decoration: underline; }
.post-body ul { list-style: disc; padding-left: 1.5em; }
.post-body ol { list-style: decimal; padding-left: 1.5em; }
.post-body li + li { margin-top: .3em; }
.post-body img { border-radius: 4px; margin: 0 auto; }
.post-body figure figcaption { font-size: 13px; color: var(--color-text-dim); text-align: center; margin-top: 8px; }
.post-body blockquote {
  border-left: 4px solid var(--color-line);
  padding: 8px 20px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}
.post-body strong { background: linear-gradient(transparent 62%, var(--color-orange-soft) 62%); }
.post-body hr { border: 0; border-top: 1px solid var(--color-border); margin: 3em 0; }
.post-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.post-body th, .post-body td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; }
.post-body th { background: var(--color-bg-alt); font-weight: 700; }
.post-embed { position: relative; aspect-ratio: 16 / 9; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-cta {
  margin-top: 72px;
  padding: 40px 32px;
  text-align: center;
  background: var(--color-orange-soft);
  border-radius: 6px;
}
.post-cta-lead { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.post-cta-text { color: var(--color-text-muted); font-size: 14px; margin-bottom: 24px; }
.post-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.post-related { margin-top: 80px; }
.post-related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--color-green);
}
.post-grid-sm .post-card-title { font-size: 15px; }
.post-grid-sm .post-card-excerpt { display: none; }
.post-back { text-align: center; margin-top: 64px; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post { padding-top: 40px; }
  .post-body { font-size: 15px; }
  .post-toc { padding: 20px; }
  .post-cta { padding: 32px 20px; }
  .post-cta-btns .btn { width: 100%; justify-content: center; }
  .blog-cats { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 36px; }
  .blog-cats a { white-space: nowrap; }
}

/* パンくず：長い記事タイトルでも崩れないように */
.blog-page .breadcrumb .container { flex-wrap: wrap; row-gap: 4px; }
.blog-page .breadcrumb .container > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
}
.blog-page .breadcrumb .container > a,
.blog-page .breadcrumb .container > .separator { white-space: nowrap; }
