/* ============================================
   保育テックジャーナル blog.css
   ブログ固有: 記事装飾 + 一覧2カラム
   ※ ヘッダー/フッター/ナビは ../styles.css を使用（ここには書かない）
   ============================================ */

/* ---------- 記事ヒーロー ---------- */
.blog-article-hero {
  min-height: 220px;
  background-image: linear-gradient(135deg, #134f4b 0%, #1e6f6a 60%, #f2865e 140%);
}

.blog-article-hero::after {
  background: linear-gradient(180deg, rgba(19, 79, 75, 0.1) 30%, rgba(19, 79, 75, 0.35) 100%);
}

.blog-list-hero {
  min-height: 240px;
  background-image: linear-gradient(135deg, #134f4b 0%, #1e6f6a 55%, #f2865e 150%);
}

.blog-list-hero::after {
  background: linear-gradient(180deg, rgba(19, 79, 75, 0.1) 20%, rgba(19, 79, 75, 0.35) 100%);
}

.blog-list-hero .page-hero-lead {
  color: #fbf7f0;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ---------- 記事メタ ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.article-meta span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.article-date {
  background: var(--primary);
  color: #fff;
}

.article-category {
  background: var(--accent);
  color: #fff;
}

.article-readtime {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ---------- アイキャッチ ---------- */
.article-eyecatch {
  margin: 0 0 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-eyecatch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ---------- 本文リード ---------- */
.article-content .article-lead {
  background: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.97rem;
}

/* ---------- 図解SVGの色トーン ---------- */
.figure .svg-bar-primary {
  fill: var(--primary);
}

.figure .svg-bar-accent {
  fill: var(--accent);
}

.figure .svg-axis {
  stroke: #c9c2b3;
  stroke-width: 1;
}

.figure .svg-label {
  fill: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
}

.figure .svg-value {
  fill: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
}

.figure .svg-title {
  fill: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-head);
}

.figure .svg-flow-box {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 2;
}

.figure .svg-flow-box-accent {
  fill: var(--primary-light);
  stroke: var(--accent);
  stroke-width: 2;
}

.figure .svg-flow-text {
  fill: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
}

.figure .svg-flow-head {
  fill: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
}

.figure .svg-arrow {
  fill: var(--accent);
}

/* ---------- シェアボックス ---------- */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.4rem 0 1.6rem;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.share-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.share-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.25s ease;
}

.share-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.share-x {
  background: #111827;
}

.share-facebook {
  background: #1877f2;
}

/* ---------- 一覧へ戻る ---------- */
.back-to-list {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.65rem 1.4rem;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  transition: background 0.25s ease, color 0.25s ease;
}

.back-to-list:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ---------- ブログ一覧: カードグリッド ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(30, 60, 55, 0.18);
}

.blog-card .blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h2 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.blog-card-body h2 a {
  color: var(--primary-dark);
}

.blog-card-body h2 a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.blog-card-body time {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.blog-card-body .article-summary {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 0.9rem;
}

.blog-card-body .read-more {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.blog-card-body .read-more::after {
  content: " →";
}

/* ---------- 一覧のリード ---------- */
.blog-intro {
  background: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .share-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile news-commentary readability baseline (shared site-local rule). */
@media (max-width: 768px) {
  .blog-main, .blog-container, .two-col-layout { min-width: 0; }
  .article-detail, .blog-article, .article-body { min-width: 0; }
  .article-detail .article-body, .blog-article { padding-inline: 16px; }
  .article-content {
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .article-content h2 { font-size: clamp(1.25rem, 6vw, 1.45rem); line-height: 1.4; }
  .article-content h3 { font-size: clamp(1.12rem, 5vw, 1.25rem); line-height: 1.45; }
  .article-content :is(img, iframe, video) { max-width: 100%; height: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .sidebar, .blog-sidebar { position: static; order: 2; }
}
/* Mobile article reading width: keep outer page gutters, remove duplicated inner gutters. */
@media (max-width: 768px) {
  .article-content,
  .article-detail .article-body,
  .blog-article,
  .main-content > article.main-content {
    padding-left: 0;
    padding-right: 0;
  }
  /* Cap article-panel padding without removing deliberate card framing. */
  .article-panel,
  .article-main,
  .post-content,
  .article-detail {
    padding-left: min(16px, 4vw);
    padding-right: min(16px, 4vw);
  }
  .article-body { padding-left: 0; padding-right: 0; }
}
