/* ==========================================================
   Press Release（一覧・詳細）
   既存テーマ common.min.css に追加で読み込む想定
   ※ html{font-size:62.5%} 前提（1rem = 10px）
   ========================================================== */
.p-press {
  --blue: #2317af;
  --line: rgba(35, 23, 175, .2);
  background: #fff;
  color: var(--blue);
  font-family: var(--base-text);
  padding-bottom: 160px;
}

/* ---------- ページタイトル ---------- */
.p-press__head { padding-top: 220px; padding-bottom: 80px; }
.p-press__heading { font-size: 8rem; line-height: 1.1; font-weight: 500; }
.p-press__sub { margin-top: 18px; font-size: 1.6rem; font-weight: 500; }

/* ---------- カテゴリ絞り込み ---------- */
.p-press__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.p-press__filter a {
  border: 1px solid var(--blue); border-radius: 10rem;
  padding: 8px 22px; font-size: 1.4rem; line-height: 1.4;
}
.p-press__filter a:hover,
.p-press__filter a.is-current { background: var(--blue); color: #fff; }

/* ---------- 一覧 ---------- */
.p-press__list { border-top: 1px solid var(--blue); }
.p-press__item { border-bottom: 1px solid var(--line); }
.p-press__link {
  display: grid; grid-template-columns: 250px 1fr 44px; align-items: center;
  column-gap: 30px; width: 100%; padding: 36px 10px;
}
.p-press__meta { display: flex; align-items: center; gap: 16px; }
.p-press__meta time { font-family: "Inter", sans-serif; font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; }
.p-press__cat {
  border: 1px solid var(--blue); border-radius: 10rem;
  padding: 3px 14px; font-size: 1.2rem; line-height: 1.5; white-space: nowrap;
}
.p-press__title {
  font-family: var(--base-text); font-size: 1.8rem; font-weight: 500;
  line-height: 1.7; letter-spacing: .02em;
}
.p-press__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: .25s cubic-bezier(.215, .61, .355, 1);
}
.p-press__link:hover { background: rgba(35, 23, 175, .04); }
.p-press__link:hover .p-press__arrow { background: var(--blue); color: #fff; }

/* ---------- ページネーション ---------- */
.p-press__pager {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 80px; font-family: "Inter", sans-serif; font-size: 1.5rem; font-weight: 500;
}
.p-press__pager > * {
  min-width: 44px; height: 44px; padding-inline: 10px; border-radius: 10rem;
  border: 1px solid var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.p-press__pager a:hover,
.p-press__pager .is-current { background: var(--blue); color: #fff; }
.p-press__pager .p-press__pagerNext { padding-inline: 22px; margin-left: 10px; }

/* ==========================================================
   詳細
   ========================================================== */
.p-article { padding-top: 190px; }
.p-article__inner { max-width: 900px; margin-inline: auto; padding-inline: 50px; box-sizing: content-box; }

.p-article__breadcrumb { display: flex; flex-wrap: wrap; font-size: 1.2rem; line-height: 1.6; margin-bottom: 60px; }
.p-article__breadcrumb li:not(:last-child)::after { content: "/"; margin-inline: 10px; opacity: .5; }
.p-article__breadcrumb li:last-child { opacity: .6; }
.p-article__breadcrumb a:hover { text-decoration: underline; }

.p-article__head { padding-bottom: 40px; border-bottom: 1px solid var(--blue); }
.p-article__title {
  margin-top: 24px; font-family: var(--base-text); font-size: 3.6rem; font-weight: 700;
  line-height: 1.5; letter-spacing: .02em;
}
.p-article__lead { margin-top: 18px; font-size: 1.8rem; font-weight: 500; line-height: 1.7; }

.p-article__kv { margin-top: 50px; }
.p-article__kv img { width: 100%; height: auto; border-radius: 12px; display: block; }
.p-article__kvDummy {
  aspect-ratio: 1200 / 630; border-radius: 12px; background: #e9e7fb;
  display: flex; align-items: center; justify-content: center;
  font-family: "Unbounded", sans-serif; font-size: 1.6rem; opacity: .8;
}

/* 本文（WordPress化の際はエディタ出力領域にそのまま使えます） */
.p-article__content { margin-top: 56px; color: #1b1b3a; font-size: 1.6rem; line-height: 2; letter-spacing: .02em; }
.p-article__content > * + * { margin-top: 28px; }
.p-article__content h2 {
  margin-top: 72px; padding-left: 18px; border-left: 4px solid var(--blue);
  font-family: var(--base-text); color: var(--blue);
  font-size: 2.4rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
}
.p-article__content h3 {
  margin-top: 48px; font-family: var(--base-text); color: var(--blue);
  font-size: 1.9rem; font-weight: 700; line-height: 1.6; letter-spacing: .02em;
}
.p-article__content a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
.p-article__content a:hover { opacity: .6; }
.p-article__content ul li { position: relative; padding-left: 20px; }
.p-article__content ul li::before {
  content: ""; position: absolute; left: 4px; top: .85em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.p-article__content img { max-width: 100%; height: auto; border-radius: 12px; }
.p-article__content blockquote { background: #f4f3fd; border-radius: 12px; padding: 32px 36px; }
.p-article__content blockquote cite { display: block; margin-top: 12px; font-size: 1.4rem; font-style: normal; text-align: right; }
.p-article__content table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.p-article__content th,
.p-article__content td { padding: 18px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
.p-article__content th { width: 180px; color: var(--blue); font-weight: 700; }

.p-article__contact { margin-top: 72px; border: 1px solid var(--blue); border-radius: 12px; padding: 36px 40px; }
.p-article__contact h2 { margin-top: 0; padding-left: 0; border-left: 0; font-size: 1.8rem; }
.p-article__contact p { margin-top: 12px; }

/* 前後記事 */
.p-article__nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 100px; border-block: 1px solid var(--blue); }
.p-article__navLink { padding: 30px 24px 30px 0; font-size: 1.4rem; font-weight: 500; line-height: 1.7; }
.p-article__navLink span { display: block; margin-bottom: 8px; font-family: "Unbounded", sans-serif; font-size: 1.2rem; }
.p-article__navLink--next { padding: 30px 0 30px 24px; border-left: 1px solid var(--line); text-align: right; }
.p-article__navLink:hover { opacity: .6; }

.p-article__back { margin-top: 60px; text-align: center; }
.p-article__back .c-btn { min-height: 50px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .p-press { padding-bottom: 120px; }
  .p-press__head { padding-top: 170px; padding-bottom: 60px; }
  .p-press__heading { font-size: 5.6rem; }
  .p-press__link { grid-template-columns: 1fr 44px; row-gap: 12px; padding-block: 28px; }
  .p-press__meta { grid-column: 1 / 2; }
  .p-press__title { grid-column: 1 / 2; }
  .p-press__arrow { grid-column: 2; grid-row: 1 / 3; }
  .p-article { padding-top: 150px; }
  .p-article__inner { padding-inline: 30px; }
}

@media (max-width: 767px) {
  .p-press { padding-bottom: 80px; }
  .p-press__head { padding-top: 110px; padding-bottom: 40px; }
  .p-press__heading { font-size: 3.4rem; }
  .p-press__sub { margin-top: 10px; font-size: 1.3rem; }
  .p-press__filter { gap: 8px; margin-bottom: 30px; }
  .p-press__filter a { padding: 6px 16px; font-size: 1.2rem; }
  .p-press__link { grid-template-columns: 1fr 32px; column-gap: 16px; padding: 22px 0; }
  .p-press__meta time { font-size: 1.3rem; }
  .p-press__cat { font-size: 1.1rem; padding: 2px 12px; }
  .p-press__title { font-size: 1.5rem; line-height: 1.65; }
  .p-press__arrow { width: 32px; height: 32px; }
  .p-press__arrow svg { width: 10px; height: 10px; }
  .p-press__pager { margin-top: 50px; gap: 8px; font-size: 1.3rem; }
  .p-press__pager > * { min-width: 38px; height: 38px; }
  .p-press__pager .p-press__pagerNext { padding-inline: 16px; margin-left: 4px; }

  .p-article { padding-top: 100px; }
  .p-article__inner { padding-inline: 20px; }
  .p-article__breadcrumb { font-size: 1.1rem; margin-bottom: 36px; }
  .p-article__head { padding-bottom: 28px; }
  .p-article__title { margin-top: 18px; font-size: 2.2rem; }
  .p-article__lead { font-size: 1.4rem; }
  .p-article__kv { margin-top: 30px; }
  .p-article__content { margin-top: 36px; font-size: 1.4rem; line-height: 1.95; }
  .p-article__content > * + * { margin-top: 22px; }
  .p-article__content h2 { margin-top: 52px; padding-left: 14px; font-size: 1.9rem; }
  .p-article__content h3 { margin-top: 36px; font-size: 1.6rem; }
  .p-article__content blockquote { padding: 22px 20px; }
  .p-article__content th,
  .p-article__content td { display: block; width: 100%; padding: 14px 4px; }
  .p-article__content th { padding-bottom: 0; border-bottom: 0; }
  .p-article__content td { padding-top: 4px; }
  .p-article__contact { margin-top: 52px; padding: 24px 20px; }
  .p-article__contact h2 { font-size: 1.5rem; }
  .p-article__nav { grid-template-columns: 1fr; margin-top: 60px; }
  .p-article__navLink { padding: 20px 0; font-size: 1.3rem; }
  .p-article__navLink--next { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .p-article__back { margin-top: 40px; }
  .p-article__back .c-btn { min-height: 40px; }
}

/* ==========================================================
   カーソルエフェクト無効化（通常のカーソルを表示）
   ========================================================== */
body { cursor: auto; }
.circle-cursor { display: none; }

/* ==========================================================
   ヘッダーナビ：PRESS 追加（10項目）に伴う間隔調整
   画面幅が狭いPCでロゴとナビが詰まらないよう、項目間を可変にする
   ========================================================== */
@media (min-width: 1025px) {
  .c-header__list { column-gap: clamp(12px, calc((100vw - 1060px) / 9), 40px); }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .c-header__link { font-size: 12px; }
}

.p-article__content .p-article__note { margin-top: 10px; font-size: 1.2rem; line-height: 1.7; opacity: .75; }
.p-article__content blockquote p + p { margin-top: 1em; }

/* お問い合わせ先ボックス内の見出し：本文h2のSP用余白・インデントを打ち消す */
.p-article__content .p-article__contact h2 { margin-top: 0; padding-left: 0; border-left: 0; }
@media (max-width: 767px) {
  .p-article__content .p-article__contact h2 { font-size: 1.5rem; }
  .p-article__content .p-article__contact p { margin-top: 10px; }
}

/* ==========================================================
   WordPress化に伴う追加分
   ========================================================== */
/* ページネーション：前へ */
.p-press__pager .p-press__pagerPrev { padding-inline: 22px; margin-right: 10px; }
.p-press__pager .p-press__pagerPrev svg { transform: rotate(-90deg); }
.p-press__pager .dots { border: 0; min-width: auto; padding-inline: 0; }

/* 一覧：記事なし */
.p-press__empty { padding: 60px 10px; font-size: 1.6rem; border-bottom: 1px solid var(--line); }

/* 詳細：配信元リンク */
.p-article__content .p-article__source {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 1.4rem; line-height: 1.8; word-break: break-all;
}
.p-article__content .p-article__source span { margin-right: 12px; color: var(--blue); font-weight: 700; }

@media (max-width: 767px) {
  .p-press__pager .p-press__pagerPrev { padding-inline: 16px; margin-right: 4px; }
  .p-article__content .p-article__source { margin-top: 40px; font-size: 1.3rem; }
}

/* 本文：ブロックエディタ標準スタイル（テーブルの枠線など）を静的HTMLのデザインに合わせる */
.p-article__content .wp-block-table { margin-inline: 0; }
.p-article__content .wp-block-table th,
.p-article__content .wp-block-table td { padding: 18px 10px; border: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

/* テーブルブロック：会社概要表と同じ見た目（1列目を青太字・行罫線のみ）。標準ブロックは全セルが td のため1列目で判定する */
.p-article__content .wp-block-table thead,
.p-article__content .wp-block-table tfoot { border: 0; }
.p-article__content .wp-block-table tbody tr > :first-child,
.p-article__content .wp-block-table tfoot tr > :first-child { width: 180px; color: var(--blue); font-weight: 700; }
.p-article__content .wp-block-table tbody tr > :not(:first-child),
.p-article__content .wp-block-table tfoot tr > :not(:first-child) { width: auto; color: inherit; font-weight: 400; }
/* ヘッダー行あり：見出しセルは青太字＋淡い背景、1列目の幅は本文行と揃える */
.p-article__content .wp-block-table thead th { width: auto; background: #f4f3fd; color: var(--blue); font-weight: 700; }
.p-article__content .wp-block-table thead th:first-child { width: 180px; }
.p-article__content .wp-block-table figcaption { margin-top: 10px; font-size: 1.2rem; line-height: 1.7; opacity: .75; text-align: left; }

@media (max-width: 767px) {
  .p-article__content .wp-block-table th,
  .p-article__content .wp-block-table td { padding: 14px 4px; }
  /* スマホは各行を縦積み（1列目→2列目以降）。列数・ヘッダー行の有無に関わらず行の最後のセルにだけ罫線を引く */
  .p-article__content .wp-block-table table,
  .p-article__content .wp-block-table thead,
  .p-article__content .wp-block-table tbody,
  .p-article__content .wp-block-table tfoot,
  .p-article__content .wp-block-table tr { display: block; width: 100%; }
  .p-article__content .wp-block-table tr > * { display: block; width: 100% !important; }
  .p-article__content .wp-block-table tr > :not(:last-child) { padding-bottom: 0; border-bottom: 0; }
  .p-article__content .wp-block-table tr > :not(:first-child) { padding-top: 4px; }
  .p-article__content .wp-block-table thead th { padding-inline: 10px; }
}
