/* 研究報告一覧・詳細（CMS）。イベントページ（event-2026.css）の変数・書体・メニューを前提にした上書き。 */
.art_frame { min-height: 100vh; display: flex; flex-direction: column; color: var(--color-ink); }
.art_header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1.5em; padding: .9em var(--content-inline); background: rgba(250, 249, 247, .97); border-bottom: 1px solid rgba(18, 37, 87, .12); }
.art_brand { display: grid; color: var(--color-navy); text-decoration: none; line-height: 1.3; }
.art_brand_en { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.art_brand_date { font-size: 11px; letter-spacing: .04em; }
.art_nav { display: none; }
/* SP: メニューボタンはヘッダー内（右上）。パネルはヘッダーの下に重ねる */
.art_header .menu-button { position: relative; right: auto; bottom: auto; flex: 0 0 auto; width: 44px; height: 44px; border-width: 1px; background: transparent; }
.art_header .menu-button__icon { width: 22px; height: 14px; }
.art_header .menu-button__icon span { height: 1.5px; }
.art_header .menu-button__icon span:nth-child(2) { top: 6px; }
.art_header .menu-button__icon span:nth-child(3) { top: 12px; }
.art_header .menu-button[aria-expanded="true"] .menu-button__icon span:nth-child(1), .art_header .menu-button[aria-expanded="true"] .menu-button__icon span:nth-child(3) { top: 6px; }
.art_header .menu-panel { z-index: -1; }
body.menu-open .art_header { background: transparent; border-bottom-color: transparent; }
body.menu-open .art_brand, body.menu-open .art_header .menu-button { color: var(--color-white); }
body.menu-open .art_header .menu-button { border-color: var(--color-white); }
.art_main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin-inline: auto; padding: 3.5em var(--content-inline) 5em; }

/* 一覧 */
.articles_hero { margin-bottom: 2em; }
.articles_title { margin: .2em 0 .5em; }
.articles_lead { font-size: 14px; }
.articles_lead a { color: var(--color-navy); font-weight: bold; text-decoration: underline; }
.articles_filter ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 2.25em; }
.articles_filter a { display: inline-block; padding: .35em 1.1em; border-radius: 999px; background: #e4e1da; color: var(--color-navy); font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .18s ease; }
.articles_filter a[aria-current="page"] { background: var(--color-navy); color: var(--color-white); }
.articles_grid { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; padding: 0; margin: 0; }
.articles_empty { padding: 4em 0; text-align: center; color: #777; }

.article_card { height: 100%; }
.article_card_link { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 18px; border-radius: 12px; background: var(--color-white); box-shadow: 0 0 8px rgb(18 37 87 / 12%); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.article_card_thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #e9e6df; }
.article_card_thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article_card_thumb_placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #cfe9dc, #c9cfe6 60%, #f0d3e2); }
.article_card_tag { position: absolute; top: 0; left: 0; padding: .35em 1em .35em .85em; border-bottom-right-radius: 8px; background: var(--color-green); color: var(--color-white); font-size: 11px; font-weight: bold; letter-spacing: .06em; line-height: 1.5; }
.article_card_arrow { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; border-top-left-radius: 10px; background: var(--color-white); }
.article_card_arrow::after { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10h8m-3-3 3 3-3 3' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% no-repeat; content: ""; }
.article_card_body { display: flex; flex-direction: column; gap: .35em; padding: 10px 6px 0; }
.article_card_date { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; color: #666; }
.article_card_title { margin: 0; color: var(--color-navy); font-size: 16px; line-height: 1.65; }

/* 詳細 */
.article { max-width: 760px; margin: 0 auto; padding: 2em 1.25em 2.5em; border-radius: 12px; background: var(--color-white); box-shadow: 0 0 8px rgb(18 37 87 / 12%); }
.article_category a { display: inline-block; padding: .3em .9em; background: var(--color-green); color: var(--color-white); font-size: 11px; font-weight: bold; letter-spacing: .06em; text-decoration: none; }
.article_title { margin: .6em 0 .3em; color: var(--color-navy); font-size: clamp(22px, 6vw, 30px); line-height: 1.5; }
.article_date { display: block; padding-bottom: 1.25em; border-bottom: 1px solid rgba(18, 37, 87, .2); font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; color: #666; }
/* リード文（管理画面の「リード文」）。タイトルの下・目次の前に、枠なしの文章として（枠を付けると目次の枠と並んで一体に見える） */
.article_lead { margin: 1.75em 0 0; color: #333; font-size: 15px; line-height: 2; }
.article_thumb { margin: 1.75em 0 0; }
.article_thumb img { display: block; width: 100%; height: auto; border-radius: 8px; }
.article_body { margin-top: 2.25em; font-size: 15px; line-height: 2; }
.article_body h1, .article_body h2 { color: var(--color-navy); line-height: 1.5; }
/* h1: ネイビーの縦線＋薄いネイビーの帯（h2 の緑の縦線と区別する） */
.article_body h1 { margin: 4.4em 0 .8em; padding: .55em .8em; border-left: 6px solid var(--color-navy); background: rgb(18 37 87 / 7%); font-size: 22px; }
.article_body h2 { margin: 4em 0 .6em; padding-left: .7em; border-left: 4px solid var(--color-green); font-size: 19px; }
/* 本文は管理画面のエディタで見えているとおりに出す。Enter 1 回で次の行（段落の間は空けない）、Enter を押すごとに 1 行ずつ空く。
   空白の扱いもエディタ（white-space: pre-wrap）と同じにし、何も書いていない段落は 1 行分の高さで見せる */
.article_body p { margin: 0; white-space: pre-wrap; }
.article_body p:empty::before { content: "\00a0"; }
.article_body blockquote { margin-top: 0; margin-bottom: 0; }
.article_body img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 6px; }
.article_body a { color: var(--color-navy); font-weight: bold; text-decoration: underline; }
.article_body ul, .article_body ol { margin: 0; padding-left: 1.4em; }
/* PDF へのリンク（管理画面の「PDF」ボタンで入れたもの。URL が .pdf で終わる）。赤い PDF 印の付いたカードにして別タブで開く */
.article_body a[href$=".pdf"] { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(18, 37, 87, .2); border-radius: 8px; background: var(--color-white, #fff); color: var(--color-navy); line-height: 1.5; text-decoration: none; word-break: break-all; }
.article_body a[href$=".pdf"]::before { content: "PDF"; flex-shrink: 0; padding: 4px 7px; border-radius: 4px; background: #d7263d; color: #fff; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.article_body a[href$=".pdf"]::after { content: "↗"; flex-shrink: 0; margin-left: auto; color: #888; font-weight: 400; }
/* 自社バケットの PDF は 1 ページずつのビューア（← → でページ送り・全画面）で表示する（lib/pdf-viewer/viewer.ts）。
   中の元のリンクカードは、ビューアが描けないとき（読み込み失敗・JS 無効）だけ見せる */
.article_body .article_pdf { margin: 1.5em 0; }
.article_body .article_pdf.is-mounted .article_pdf_link { display: none; }
.article_body .article_pdf:not(.is-mounted) .pdfv { display: none; }
.article_body .article_pdf_link { margin: 0; }
.article_body .pdfv { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(18, 37, 87, .2); border-radius: 8px; overflow: hidden; background: #e9e9ec; outline: none; }
.article_body .pdfv:focus-visible { box-shadow: 0 0 0 3px rgba(18, 37, 87, .35); }
/* 枠の上でも 2 本指で画面を拡大できるようにする（pan-y だけだと Android でピンチが効かない）。
   拡大している間（.is-zoomed）は、枠の上からも縦横に動かせるようブラウザに任せる（その間は横に払ってもページを送らない） */
.article_body .pdfv_stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; touch-action: pan-y pinch-zoom; }
.article_body .pdfv.is-zoomed .pdfv_stage { touch-action: auto; }
.article_body .pdfv_canvas { display: block; max-width: 100%; background: #fff; }
.article_body .pdfv_status { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; margin: 0; color: #555; font-size: 14px; }
.article_body .pdfv.is-loading .pdfv_status, .article_body .pdfv.is-error .pdfv_status { display: flex; }
.article_body .pdfv.is-loading .pdfv_canvas, .article_body .pdfv.is-error .pdfv_canvas { visibility: hidden; }
.article_body .pdfv_bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #122557; color: #fff; }
.article_body .pdfv_bar button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.article_body .pdfv_bar button:disabled { opacity: .35; cursor: default; }
.article_body .pdfv_nav { position: absolute; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(18, 37, 87, .78); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.article_body .pdfv_nav svg { display: block; }
/* ‹ › はページの左下に並べる。端のページで押せない側は消さずに薄くして、もう片方の位置が動かないようにする
   （薄い側は押下を受けず、下にある PDF 内のリンクをそのまま押せる） */
.article_body .pdfv_prev { left: 10px; }
.article_body .pdfv_next { left: 60px; }
.article_body .pdfv_nav:disabled { opacity: .35; pointer-events: none; }
/* ‹ › のボタンはページの文字に重なるので、操作が止まってしばらくしたら消す（viewer.ts の NAV_HIDE_MS）。
   消えている間は押せなくして、下のページ（PDF 内のリンク）をそのまま押せるようにする */
.article_body .pdfv_nav { transition: opacity .25s ease; }
.article_body .pdfv.is-nav-hidden .pdfv_nav { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .article_body .pdfv_nav { transition: none; } }
/* PDF 内のリンク（透明な押せる領域）としおりの目次。本文のリンク装飾・PDF カード化を打ち消す */
.article_body .pdfv_page { position: relative; display: block; max-width: 100%; }
.article_body .pdfv_links { position: absolute; top: 0; left: 0; overflow: hidden; }
.article_body .pdfv .pdfv_link { position: absolute; display: block; margin: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; color: transparent; text-decoration: none; cursor: pointer; }
.article_body .pdfv .pdfv_link::before, .article_body .pdfv .pdfv_link::after { content: none; display: none; }
.article_body .pdfv .pdfv_link:focus-visible { outline: 2px solid #2fb578; outline-offset: 1px; }
.article_body .pdfv_bar .pdfv_toc_toggle { font-size: 14px; font-weight: 700; padding: 0 16px; }
.article_body .pdfv_toc { position: absolute; top: 52px; left: 8px; z-index: 3; display: flex; flex-direction: column; width: min(360px, calc(100% - 16px)); max-height: min(480px, calc(100% - 60px)); overflow-y: auto; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(18, 37, 87, .25); }
.article_body .pdfv_toc[hidden], .article_body .pdfv_bar .pdfv_toc_toggle[hidden] { display: none; }
.article_body .pdfv .pdfv_toc_item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #122557; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; }
.article_body .pdfv .pdfv_toc_item.is-sub { padding-left: 28px; font-size: 13px; color: #3b4a72; }
@media (hover: hover) { .article_body .pdfv .pdfv_link:hover { background: rgba(47, 181, 120, .18); } .article_body .pdfv .pdfv_toc_item:hover { background: #f2f0ec; } }
.article_body .pdfv_count { min-width: 64px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.article_body .pdfv_spacer { flex: 1; }
.article_body .pdfv.is-full { position: fixed; inset: 0; z-index: 9999; border: 0; border-radius: 0; background: #2b2b30; }
.article_body .pdfv.is-full .pdfv_stage { flex: 1; min-height: 0; }
@media (hover: hover) { .pdfv_nav:not(:disabled):hover { background: rgba(18, 37, 87, .92); } .pdfv_bar button:not(:disabled):hover { background: rgba(255, 255, 255, .26); } }
/* 目次（本文の h1・h2 から自動生成）。クリックでスムーススクロールし、sticky ヘッダーに隠れない位置で止める */
html:has(.article_toc) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.article_toc) { scroll-behavior: auto; } }
.article_body [id^="toc-"] { scroll-margin-top: 96px; }
/* e-mu のブログ詳細と同じ型: 薄いグレーの枠・「目次」見出し・番号付きの一覧。h1 の下の h2 は一段下げる */
.article_toc { margin: 2.25em 0 3em; padding: 20px 24px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.article_toc_title { margin: 0 0 12px; color: var(--color-navy); font-size: 15px; font-weight: 700; }
.article_toc_list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article_toc_list li { margin: 0; }
.article_toc_list .article_toc_sub { padding-left: 1.6em; }
.article_toc_list a { display: inline-flex; align-items: flex-start; gap: 6px; color: #374151; font-size: 14px; line-height: 1.6; text-decoration: none; transition: color .18s ease; }
.article_toc_num { flex-shrink: 0; color: var(--color-navy); font-weight: 700; }
.article_toc_list .article_toc_sub a { font-size: 13px; }
.article_toc_list .article_toc_sub .article_toc_num { font-weight: 500; }
.article_footer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid rgba(18, 37, 87, .2); }
.article_back { color: var(--color-navy); font-size: 14px; font-weight: bold; text-decoration: none; }

@media (hover: hover) {
  .article_card_link:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgb(18 37 87 / 18%); }
  .articles_filter a:hover, .article_back:hover { opacity: .7; }
  .article_toc_list a:hover { color: var(--color-navy); }
  .article_body a[href$=".pdf"]:hover { background: rgb(18 37 87 / 5%); }
  .article_toc_list a:hover .article_toc_text { text-decoration: underline; }
}

@media (min-width: 560px) {
  .articles_grid { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 3em 3em 3.5em; }
}
@media (min-width: 900px) {
  .art_header { padding-inline: clamp(1.5em, 4vw, 3em); }
  .art_nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4em 1.6em; }
  .art_nav a { color: var(--color-navy); font-size: 13px; font-weight: bold; text-decoration: none; }
  .art_nav a:hover { opacity: .65; }
  .art_main { padding-top: 4.5em; }
  .articles_grid { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .art_frame .site-footer { margin-top: auto; }
}

/* ページ送り */
.articles_pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 3em 0 0; }
.articles_pager a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6em; border-radius: 50%; background: #e4e1da; color: var(--color-navy); font-family: var(--font-display); font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .18s ease; }
.articles_pager a[aria-current="page"] { background: var(--color-navy); color: var(--color-white); }
.articles_pager_step { font-size: 20px !important; }

/* イベントTOPへのセクション */
.articles_cta { margin-top: 5em; padding: 2.5em 1.25em; border-radius: 8px; background: var(--color-white); box-shadow: 0 0 8px rgb(18 37 87 / 19%); color: var(--color-navy); text-align: center; }
.articles_cta_title { margin: .3em 0 .4em; font-family: var(--font-display); font-size: clamp(22px, 6.2vw, 40px); font-weight: 600; letter-spacing: .04em; line-height: 1.3; }
.articles_cta_text { margin: 0 0 1.75em; font-size: 14px; }
.articles_cta_button { display: flex; align-items: center; justify-content: center; gap: .8em; width: min(100%, 420px); margin-inline: auto; padding: .85em 1em; border-radius: 8px; background: var(--color-green); color: var(--color-white); font-size: 16px; font-weight: bold; letter-spacing: .08em; text-decoration: none; transition: opacity .18s ease; }
.articles_cta_button span { width: 1.1em; height: 1.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13m-4-4 4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (hover: hover) {
  .articles_pager a:hover, .articles_cta_button:hover { opacity: .75; }
}
@media (min-width: 900px) {
  .articles_cta { padding: 3.5em 2em; }
}

/* SP の記事詳細: カードを外し、カードの白をそのままページ背景にする */
@media (max-width: 559px) {
  .art_frame:has(.article_page) { background: var(--color-white); }
  .art_main:has(.article) { padding-top: 2.5em; }
  .article { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
}

/* 管理画面から発行したプレビューの目印 */
.article_preview_notice { margin: 0 0 1.5em; padding: .6em 1em; border-radius: 6px; background: #fff4d6; color: #7a5200; font-size: 13px; font-weight: bold; text-align: center; }
