/* ============================================================
   3Dプリント住宅レポート ブログ固有スタイル
   （ヘッダー/フッター/ナビのスタイルは ../styles.css を使用）
   ============================================================ */

/* ---------- 記事ページ ---------- */

.article-header {
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: var(--concrete-500);
  margin-bottom: 0.7rem;
}

.article-date {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--yellow-deep);
  letter-spacing: 0.06em;
}

.article-category {
  background: var(--ink);
  color: var(--yellow);
  padding: 0.1rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  padding: 0.4rem 0 0.6rem 1.1rem;
  border-left: 12px solid var(--yellow);
  border-bottom: 3px solid var(--ink);
}

.article-eyecatch {
  margin-bottom: 2rem;
}

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

.article-eyecatch::after {
  content: '';
  display: block;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.6rem 0 1rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-left: 10px solid var(--yellow);
  letter-spacing: 0.04em;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px double var(--concrete-300);
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  background: linear-gradient(transparent 68%, rgba(255, 196, 0, 0.55) 68%);
  padding: 0 0.1rem;
}

.article-body a {
  color: var(--yellow-deep);
  text-decoration: underline;
}

/* ---------- シェア・戻る ---------- */

.share-box {
  margin: 2.5rem 0 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--concrete-100);
  border: 1px solid var(--concrete-300);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.share-label {
  font-weight: 700;
  font-size: 0.88rem;
}

.share-btn {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--ink);
  background: var(--white);
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.back-to-list {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--ink);
  background: var(--white);
  transition: var(--transition);
}

.back-to-list:hover {
  background: var(--ink);
  color: var(--yellow);
}

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

.blog-hero {
  background: var(--concrete-900);
  border-bottom: 8px solid var(--yellow);
  padding: 2.6rem 0;
}

.blog-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.blog-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-left: 1rem;
  border-left: 10px solid var(--yellow);
}

.blog-hero p {
  color: var(--concrete-300);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  padding-left: 1.3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-bottom: 4px solid var(--concrete-300);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--yellow);
}

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

.blog-content {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h2 {
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.blog-content h2 a {
  color: var(--ink);
}

.blog-content h2 a:hover {
  color: var(--yellow-deep);
}

.blog-content time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--yellow-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.article-summary {
  font-size: 0.87rem;
  color: var(--concrete-700);
  margin-bottom: 0.9rem;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1.1rem;
  border: 2px solid var(--ink);
  transition: var(--transition);
}

.read-more:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

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

@media (max-width: 768px) {
  .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; }
}

.card-thumb-empty { background: linear-gradient(135deg, #27364a, #49657d); min-height: 180px; }
/* 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; }
}
