/* ============================================================
   ブログ一覧 + ブログ詳細 ページ固有CSS
   移植元: docs/design/mocks/blog-list-v1.html / blog-detail-v1.html
   共通分（reset / .wrap / .pill-btn / .wavy-link / .reveal /
   ヘッダー / .git / .pager / フッター）は common.css 側にあるため含めない
   ============================================================ */

/* ---------- 共有（一覧・詳細両方で使用） ---------- */
.wrap--narrow { max-width: 1080px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 11px;
  flex-wrap: wrap;
}
/* タップ領域を 44px 以上にする（元は 24×22px）。左右 5px は gap の代わり（2026-08-10） */
.breadcrumb a { padding: 11px 5px; transition: opacity 0.2s ease; }
.breadcrumb a:hover { opacity: 0.6; }
.breadcrumb .sep { padding: 0 5px; opacity: 0.5; }

/* カテゴリチップ（配色はカテゴリスラッグ know / local / interview に対応。
   未定義スラッグは標準色 = 淡青） */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 10px;
  background: var(--mint);
  color: var(--blue-dark);
  white-space: nowrap;
}
.chip--know { background: var(--accent-dim); color: var(--accent-strong); }
.chip--local { background: var(--mist); color: var(--ink-soft); }
.chip--interview { background: rgba(255, 255, 255, 0.92); color: #0C0E13; }

/* アイキャッチ無し投稿のフォールバック（グレー面 + カテゴリ名） */
.thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- 一覧: ページヘッド ---------- */
.pagehead {
  position: relative;
  background: var(--grad);
  padding: 148px 0 132px;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.24;
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.pagehead__title {
  font-family: var(--font-en);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
}
.pagehead__sub { margin-top: 18px; color: #fff; font-size: 15px; font-weight: 900; }

/* ---------- 一覧: 本体 ---------- */
.blogbody {
  position: relative;
  background: var(--paper);
  border-radius: 44px 44px 0 0;
  margin-top: -56px;
  z-index: 2;
  padding: 84px 0 110px;
}

/* カテゴリフィルター（リンク遷移方式） */
.cat-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 46px; }
.cat-pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue-dark); }
.cat-pill.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.cat-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.cat-count b { font-family: var(--font-en); font-size: 16px; color: var(--blue-dark); margin: 0 3px; }

/* フィーチャード記事 */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.featured__img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--teal-deep);
  box-shadow: var(--shadow-card);
}
.featured__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1); }
.featured:hover .featured__img img { transform: scale(1.04); }
.featured__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  /* 面として塗るので CTA と同じ濃紺に揃える（淡い青の面だと 3.18:1 で AA 未達） */
  background: var(--accent-fill);
  color: #fff;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 50px;
  padding: 5px 14px;
}
.featured__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.featured__date { font-family: var(--font-en); font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.featured__title { font-size: clamp(20px, 2.2vw, 27px); font-weight: 900; line-height: 1.6; margin-bottom: 14px; transition: color 0.2s ease; }
.featured:hover .featured__title { color: var(--blue-dark); }
.featured__excerpt { font-size: 14px; font-weight: 500; color: var(--ink-soft); line-height: 2.0; margin-bottom: 22px; }

/* 記事グリッド（common.css の企業用 .post-grid 定義をブログ配下でモック値に上書き） */
.page--blog .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.b-card { display: block; }
.b-card__img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--teal-deep);
  margin-bottom: 14px;
}
.b-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1); }
.b-card:hover .b-card__img img { transform: scale(1.05); }
.b-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.b-card__date { font-family: var(--font-en); font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.b-card__title { font-size: 15px; font-weight: 700; line-height: 1.75; transition: color 0.2s ease; }
.b-card:hover .b-card__title { color: var(--blue-dark); }

/* 0件時 */
.blog-empty { padding: 40px 0 20px; font-size: 15px; font-weight: 700; color: var(--ink-soft); text-align: center; }

/* ---------- 詳細: 記事ヘッド（グラデ） ---------- */
.arthead {
  position: relative;
  background: var(--grad);
  padding: 140px 0 120px;
  overflow: hidden;
}
.arthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.24;
  pointer-events: none;
}
.arthead__inner { position: relative; max-width: 900px; }
.arthead .breadcrumb { margin-bottom: 24px; }
.arthead__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.arthead__chip {
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  padding: 5px 16px;
}
.arthead__date { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.arthead__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.6;
  color: #fff;
}
.arthead__sub { margin-top: 16px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

/* ---------- 詳細: 記事本体 ---------- */
.artbody {
  position: relative;
  background: var(--paper);
  border-radius: 44px 44px 0 0;
  margin-top: -56px;
  z-index: 2;
  padding: 80px 0 110px;
}
.artgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* 本文 */
.article { min-width: 0; }
.article__hero {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--teal-deep);
  margin-bottom: 36px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.article__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 15px; font-weight: 500; line-height: 2.2; margin-bottom: 24px; }
.article p strong { font-weight: 900; }

/* 目次（blog.js が本文 h2/h3 から生成） */
.toc {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 36px 0 44px;
}
.toc__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 14px;
}
.toc__label .en { font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--blue-dark); letter-spacing: 0.08em; }
.toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.toc ol > li { counter-increment: toc; margin-bottom: 8px; }
.toc ol a {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}
.toc ol > li > a::before {
  content: "0" counter(toc);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  padding-top: 1px;
}
.toc ol a:hover { color: var(--blue-dark); }
/* h3（小見出し）のネスト */
.toc ol ul { list-style: none; margin: 6px 0 2px 30px; padding: 0; }
.toc ol ul li { margin-bottom: 6px; }
.toc ol ul a { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.toc ol ul a::before { content: "−"; color: var(--blue-dark); font-size: 12px; }

/* 見出し（the_content 内の h2/h3 に適用） */
.article h2 {
  position: relative;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.7;
  margin: 56px 0 24px;
  padding-bottom: 16px;
  scroll-margin-top: 90px;
}
.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.article h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 900;
  margin: 36px 0 16px;
  scroll-margin-top: 90px;
}
.article h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--yellow);
  flex: none;
}

/* 引用・リスト・画像（the_content の記事装飾） */
.article blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--mist);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 2.1;
}
.article blockquote p { font-size: 14px; line-height: 2.1; margin-bottom: 0; }
.article blockquote cite { display: block; margin-top: 10px; font-size: 12px; font-style: normal; color: var(--ink-soft); }
.article ul.disc,
.post-body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.article ul.disc li,
.post-body ul > li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 2.1;
  margin-bottom: 8px;
}
.article ul.disc li::before,
.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.post-body ol { margin: 0 0 24px; padding-left: 26px; list-style: decimal; }
.post-body ol > li { font-size: 14.5px; font-weight: 500; line-height: 2.1; margin-bottom: 8px; }
.article figure.img,
.post-body figure { border-radius: 16px; overflow: hidden; margin: 30px 0 10px; position: relative; }
.article figure.img { aspect-ratio: 16 / 9; background: var(--teal-deep); }
.article figure.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body img { border-radius: 16px; height: auto; }
.article .imgcap,
.post-body figcaption { font-size: 12px; color: var(--ink-soft); margin: 8px 0 30px; text-align: left; }
.post-body a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s ease; }
.post-body a:hover { opacity: 0.65; }

/* 企業リンクカード */
.compcard {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px 18px 18px;
  margin: 40px 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.compcard:hover { box-shadow: 0 16px 32px -18px rgba(12, 35, 54, 0.28); transform: translateY(-3px); }
.compcard__thumb {
  position: relative;
  flex: none;
  width: 168px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--teal-deep);
}
.compcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compcard__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 54, 0.22);
}
.compcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compcard__play::after {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--blue-dark);
  margin-left: 2px;
}
.compcard__label { display: block; font-size: 10.5px; font-weight: 700; color: var(--blue-dark); letter-spacing: 0.06em; margin-bottom: 4px; }
.compcard__name { display: block; font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.compcard__tags { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.compcard__arw {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.compcard:hover .compcard__arw { background: var(--accent-fill); color: #fff; }

/* シェア */
.share { display: flex; align-items: center; gap: 12px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.share__label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-right: 6px; }
.share a, .share button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.share a:hover, .share button:hover { background: #fff; border-color: #fff; color: #0C0E13; }
/* URLコピー完了フィードバック（blog.js が .is-copied を1.6秒付与） */
.share__copy { position: relative; }
.share__copy.is-copied { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.share__copy.is-copied::after {
  content: "コピーしました";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #0C0E13;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- 詳細: サイドバー ---------- */
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }
.side__box { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.side__label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.side__label .en { font-family: var(--font-en); font-size: 15px; font-weight: 700; }
.side__label small { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.side__cats li { border-bottom: 1px solid var(--line); }
.side__cats li:last-child { border-bottom: none; }
.side__cats a {
  display: flex;
  align-items: center;
  padding: 11px 2px;
  font-size: 13.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.side__cats a:hover { color: var(--blue-dark); }
.side__cats .n { margin-left: auto; font-family: var(--font-en); font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.side__post { display: flex; gap: 12px; padding: 10px 0; align-items: center; }
.side__post + .side__post { border-top: 1px solid var(--line); }
.side__post-thumb { position: relative; flex: none; width: 84px; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden; background: var(--teal-deep); }
.side__post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side__post-title { font-size: 12.5px; font-weight: 700; line-height: 1.65; transition: color 0.2s ease; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side__post:hover .side__post-title { color: var(--blue-dark); }
.side__cta {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--grad);
  padding: 28px 24px;
  color: #fff;
  display: block;
}
.side__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.3;
}
.side__cta > * { position: relative; }
.side__cta-en { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.9; }
.side__cta-copy { display: block; font-size: 16.5px; font-weight: 900; line-height: 1.7; margin: 8px 0 16px; }
.side__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0C0E13;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 18px;
  transition: transform 0.2s ease;
}
.side__cta:hover .side__cta-btn { transform: translateX(3px); }

/* ---------- 詳細: 関連記事 ---------- */
.related { background: var(--paper); padding: 20px 0 110px; }
.related .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.related .section-title { font-family: var(--font-en); font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.related .section-title small { display: block; font-family: var(--font-jp); font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; margin-top: 8px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .featured { grid-template-columns: 1fr; gap: 22px; }
  .page--blog .post-grid { grid-template-columns: repeat(2, 1fr); }
  .artgrid { grid-template-columns: 1fr; }
  .side { position: static; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .pagehead { padding: 120px 0 110px; }
  .page--blog .post-grid { grid-template-columns: 1fr; }
  .cat-count { display: none; }
  .arthead { padding: 120px 0 100px; }
  .rel-grid { grid-template-columns: 1fr; }
  .compcard { flex-direction: column; align-items: flex-start; }
  .compcard__thumb { width: 100%; }
  .compcard__arw { display: none; }
}
