/* ============================================================
   フェムテック産業レポート blog.css
   ブログ固有スタイル（2カラムレイアウト・記事装飾のみ）
   ヘッダー/フッター/ナビは ../styles.css を使用（ここには書かない）
   ============================================================ */

/* ---------------- Blog layout (2 columns) ---------------- */

.blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 4rem;
}

.blog-breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.blog-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.blog-breadcrumb a:hover {
  color: var(--rose-deep);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

/* ---------------- Blog index (page heading) ---------------- */

.blog-page-head {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-page-head .en {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--rose);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.blog-page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--plum);
  line-height: 1.5;
}

.blog-page-head p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------------- Card grid ---------------- */

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(74, 37, 69, 0.18);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.blog-card-body time {
  font-size: 0.76rem;
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.blog-card-body h2 {
  font-family: var(--font-head);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--plum);
}

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

.blog-card-body h2 a:hover {
  color: var(--rose-deep);
}

.blog-card-summary {
  font-size: 0.83rem;
  color: var(--ink-soft);
  flex: 1;
}

.blog-card .read-more {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.blog-card .read-more:hover {
  color: var(--coral);
}

/* ---------------- Article ---------------- */

.blog-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem 2.6rem;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.article-date {
  color: var(--rose-deep);
  font-weight: 700;
}

.article-category {
  background: var(--rose-light);
  color: var(--plum);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.article-readtime {
  color: var(--ink-soft);
}

.blog-article h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--plum);
  line-height: 1.55;
  margin-bottom: 1.3rem;
}

.article-eyecatch {
  margin-bottom: 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--plum);
  line-height: 1.5;
  padding-left: 0.9rem;
  border-left: 5px solid var(--rose);
  margin: 2.2rem 0 1.1rem;
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: var(--rose-deep);
  margin: 1.6rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--line);
}

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

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

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

.article-body a {
  text-decoration: underline;
}

.article-lead {
  background: linear-gradient(135deg, #fdf1f5 0%, #f7ecf3 100%);
  border: 1px solid var(--rose-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}

/* inline SVG figures */

.article-figure {
  margin: 1.8rem 0;
  padding: 1.4rem;
  background: #fdfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* data table */

.table-scroll {
  overflow-x: auto;
  margin: 1.6rem 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 480px;
  background: #fff;
}

.blog-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--plum);
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}

.blog-table th,
.blog-table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.blog-table thead th {
  background: var(--plum);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.blog-table tbody tr:nth-child(even) {
  background: #faf3f6;
}

.blog-table tbody th {
  background: var(--rose-light);
  color: var(--plum);
  white-space: nowrap;
}

/* ---------------- Share / back ---------------- */

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.4rem 0 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.share-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--plum);
}

.share-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.share-x {
  background: #1a1a1a;
}

.share-x:hover {
  background: #000;
  color: #fff;
}

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

.share-facebook:hover {
  background: #0d63d1;
  color: #fff;
}

.back-to-list {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.back-to-list::before {
  content: "← ";
}

/* ---------------- Sidebar ---------------- */

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 96px;
}

.side-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.side-block-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--plum);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rose-light);
}

.side-ad {
  text-align: center;
}

.side-ad img {
  max-width: 100%;
  height: auto;
}

.side-ad .amazon-banner:last-child {
  margin-bottom: 0;
}

/* TOC */

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.toc-list li {
  margin-bottom: 0.2rem;
}

.toc-list a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  color: var(--ink);
  border-left: 3px solid var(--rose-light);
}

.toc-list a:hover {
  background: var(--rose-light);
  color: var(--plum);
  border-left-color: var(--rose);
}

/* Related */

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.related-list li {
  border-bottom: 1px dashed var(--line);
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  display: block;
  padding: 0.55rem 0.2rem;
  color: var(--ink);
}

.related-list a::before {
  content: "▸ ";
  color: var(--rose);
}

.related-list a:hover {
  color: var(--rose-deep);
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.6rem;
  }

  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-article {
    padding: 1.5rem 1.3rem 1.8rem;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

/* 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; }
}
