/* P3-2 活動記録詳細 */

/* ── BREADCRUMB ── */
.breadcrumb-wrap {
  margin-top: var(--nav-h); /* fixed nav 分オフセット */
  background: var(--beige-1); border-bottom: 1px solid var(--border);
}
.breadcrumb {
  max-width: var(--content-w); margin: 0 auto;
  padding: 10px 40px;
  font-size: 13px; color: var(--mid);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--ink-mid); }

/* ── ARTICLE LAYOUT ── */
.article-outer {
  max-width: var(--content-w); margin: 0 auto;
  padding: 44px 40px 60px;
  display: flex; gap: 40px; align-items: flex-start;
}
.article-main { flex: 1; min-width: 0; }
.article-sidebar {
  width: 240px; flex-shrink: 0;
  position: sticky; top: calc(var(--nav-h) + 20px);
}

/* ── ARTICLE HEADER ── */
.tag {
  display: inline-block; font-size: 12px; font-weight: 400;
  padding: 3px 9px; border-radius: 2px; letter-spacing: .04em;
}
.tag-news   { background: #EAF3DE; color: #27500A; }
.tag-report { background: #E6F1FB; color: #0C447C; }
.article-tag-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.article-date { font-size: 13px; color: var(--mid); }
.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 400;
  line-height: 1.65; letter-spacing: .05em;
  color: var(--ink); margin-bottom: 24px;
}

/* ── KEY VISUAL ── */
.article-kv {
  width: 100%; aspect-ratio: 16/9;
  background: var(--beige-2); border-radius: 8px;
  margin-bottom: 28px; display: block; object-fit: cover;
}

/* ── ARTICLE BODY（WPブロックエディタ出力に対してスタイル当て） ── */
.article-body-content {
  font-size: 16px; color: var(--ink-mid); line-height: 2.1;
  margin-bottom: 28px;
}
.article-body-content p { margin-bottom: 1.2em; }
.article-body-content p:last-child { margin-bottom: 0; }

/* リード文：エディタでblockquoteを使う */
.article-body-content blockquote {
  font-size: 16px; font-weight: 400; color: var(--ink);
  border-left: 2.5px solid var(--ink); padding: 12px 16px;
  background: var(--beige-1); border-radius: 0 3px 3px 0;
  line-height: 1.85; margin-bottom: 24px; font-style: italic;
  letter-spacing: .04em;
}
.article-body-content blockquote p { margin-bottom: 0; }

/* 見出し */
.article-body-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; font-weight: 400;
  color: var(--ink); line-height: 1.6; letter-spacing: .05em;
  border-left: 4px solid var(--ink); padding-left: 14px;
  margin: 32px 0 14px;
}
.article-body-content h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px; font-weight: 500;
  color: var(--ink); line-height: 1.65; letter-spacing: .04em;
  border-left: 3px solid var(--beige-2); padding-left: 12px;
  margin: 28px 0 10px;
}
.article-body-content h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--ink-mid); line-height: 1.7; letter-spacing: .06em;
  border-left: 2px solid var(--border); padding-left: 10px;
  margin: 18px 0 8px;
}

/* 画像・キャプション */
.article-body-content figure { margin: 0 0 24px; }
.article-body-content figure img {
  width: 100%; border-radius: 4px; display: block; object-fit: cover;
}
.article-body-content figcaption {
  font-size: 12px; color: var(--mid); text-align: center;
  margin-top: 5px; line-height: 1.45;
}

/* ギャラリー（写真グリッド PC:3列 / SP:2列） */
.article-body-content .wp-block-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 24px;
}
.article-body-content .wp-block-gallery figure { margin: 0; }
.article-body-content .wp-block-gallery figure img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px;
}
.article-body-content .wp-block-gallery figcaption { font-size: 11px; }

/* カラム */
.article-body-content .wp-block-columns {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.article-body-content .wp-block-column { flex: 1; min-width: 0; }
.article-body-content .wp-block-column figure img {
  width: 100%; border-radius: 4px; display: block;
}

/* SWELLのリスト装飾（is-style-num_circle等）が position:absolute を使うため */
.article-body-content li { position: relative; }

/* テーブル（概日程など） */
.article-body-content .wp-block-table { margin-bottom: 28px; }
.article-body-content .wp-block-table table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: var(--ink-mid);
}
.article-body-content .wp-block-table th,
.article-body-content .wp-block-table td {
  border: 1px solid var(--border);
  padding: 10px 14px; line-height: 1.7; vertical-align: top;
}
.article-body-content .wp-block-table th {
  background: var(--beige-2);
  font-weight: 500; color: var(--ink);
  font-size: 13px; white-space: nowrap;
}

/* ── PDF CARD ── */
.pdf-card {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 14px 18px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px; text-decoration: none;
  transition: background .15s;
}
.pdf-card:hover { background: var(--beige-1); }
.pdf-icon {
  width: 38px; height: 48px; background: var(--dark); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 10px; font-weight: 500; color: rgba(255,255,255,.85);
  letter-spacing: .04em; line-height: 1;
}
.pdf-info { flex: 1; min-width: 0; }
.pdf-name { font-size: 14px; font-weight: 400; color: var(--ink); margin-bottom: 3px; }
.pdf-meta { font-size: 12px; color: var(--mid); }
.pdf-dl   { font-size: 13px; color: var(--ink); white-space: nowrap; }

/* ── PREV/NEXT NAV ── */
.article-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border); gap: 12px;
}
.article-nav-link {
  font-size: 14px; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 5px; transition: color .15s;
}
.article-nav-link:hover { color: var(--vermillion); }
.article-nav-center {
  font-size: 13px; color: var(--mid); text-decoration: none; transition: color .15s;
}
.article-nav-center:hover { color: var(--ink); }

/* ── SIDEBAR ── */
.sb-box {
  background: var(--beige-1); border-radius: 4px;
  padding: 16px; margin-bottom: 16px; border: 1px solid var(--border);
}
.sb-title {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--mid);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sb-article {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.sb-article:last-child { border-bottom: none; padding-bottom: 0; }
.sb-thumb {
  width: 54px; aspect-ratio: 4/3; border-radius: 2px;
  background: var(--beige-2); flex-shrink: 0; object-fit: cover; display: block;
}
.sb-thumb-ph {
  width: 54px; aspect-ratio: 4/3; border-radius: 2px;
  background: var(--beige-2); flex-shrink: 0;
}
.sb-article-info { min-width: 0; }
.sb-article-date  { font-size: 12px; color: var(--mid); margin-bottom: 3px; }
.sb-article-title { font-size: 12px; color: var(--ink); line-height: 1.6; }
.sb-article-title a { color: inherit; text-decoration: none; }
.sb-article-title a:hover { color: var(--vermillion); }


/* ── SIDEBAR TOC ── */
.seba-toc {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc-counter;
}
.seba-toc li {
  counter-increment: toc-counter;
  padding: 5px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--ink-mid); line-height: 1.55;
}
.seba-toc li:last-child { border-bottom: none; padding-bottom: 0; }
.seba-toc li::before {
  content: counter(toc-counter) ". ";
  color: var(--mid);
}
.seba-toc a { color: inherit; text-decoration: none; transition: color .15s; }
.seba-toc a:hover { color: var(--vermillion); }

/* ── SWELL自動生成TOC非表示（記事本文内のみ・サイドバーは表示） ── */
.article-body-content .p-toc { display: none !important; }

/* ===== SP ===== */
@media (max-width: 767px) {
  .breadcrumb { padding: 9px 20px; font-size: 12px; }

  .article-outer { flex-direction: column; padding: 28px 20px 44px; gap: 0; }
  .article-sidebar { width: 100%; position: static; margin-top: 36px; }

  .article-title { font-size: 21px; margin-bottom: 18px; }

  .article-body-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .article-body-content .wp-block-columns { flex-direction: column; }

  .pdf-card  { padding: 12px 14px; gap: 12px; }
  .pdf-icon  { width: 32px; height: 40px; font-size: 9px; }
  .pdf-name  { font-size: 13px; }

  .article-nav-link { font-size: 13px; }
}
