@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ============================================================
   絶対内定ラボ（STUDIOからの移管）
   docs/source-analysis.md のデザイントークンに合わせている。
   このファイルが正本。theme/style.css を直してから反映すること。
   ============================================================ */

/* ------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------ */
:root {
  /* 配色 */
  --zl-bg: #ececec;
  --zl-card: #ffffff;
  --zl-text: #000000;
  --zl-text-strong: #333333;
  --zl-text-sub: #666666;
  --zl-text-mute: #bbbbbb;
  --zl-placeholder: #aeaeae;
  --zl-gray: #f3f3f3;
  --zl-gray-box: #f6f6f6;
  --zl-toc-bg: #fbfbfb;
  --zl-accent: #f0620f;
  --zl-brand: #800000;
  --zl-brand-light: #ff4d4d;
  --zl-brand-sub: #e57373;
  --zl-h2-border: #870000;
  --zl-strong-border: rgba(152, 0, 0, .7);
  --zl-profile-bg: #fffbe4;
  --zl-cta-gradient: linear-gradient(90deg, #800000 0%, #ff4d4d 100%);

  /* 書体 */
  --zl-font-ui: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont,
                "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --zl-font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
                  "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* 寸法 */
  --zl-container: 1280px;
  --zl-gutter: 24px;
  --zl-sidebar: 320px;
  --zl-article: 720px;
  --zl-card-pad: 48px;
  --zl-radius: 8px;
  --zl-header-h: 64px;
}

/* ------------------------------------------------------------
   2. 土台
   ------------------------------------------------------------ */
body,
.body,
#container,
.container {
  background-color: var(--zl-bg);
  color: var(--zl-text);
  font-family: var(--zl-font-body);
}

/* コンテナ幅：1280px、左右24px */
.wrap,
.header-container-in.hlt-top-menu {
  width: var(--zl-container);
  max-width: calc(100% - var(--zl-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
}

/* 2カラム：メイン＋サイドバー320px */
.content {
  margin-top: 0;
}

.content-in {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--zl-gutter);
  padding-top: 48px;
  padding-bottom: 48px;
}

/* flex-basis を 0 にしないと、中身の広い .main が折り返してしまう */
.main {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

.sidebar {
  flex: 0 0 var(--zl-sidebar);
  width: var(--zl-sidebar);
  padding: 0;
  border: 0;
  background-color: transparent;
}

/* 白カード。Cocoonが .main / .sidebar に載せる白地は外して、
   中の要素ひとつひとつをカードにする */
.zl-card,
.main > .article,
.main > .under-entry-content > .related-entries,
.main > .list,
.main > .archive-title,
.main > .pagination {
  background-color: var(--zl-card);
  border-radius: var(--zl-radius);
}

.zl-card {
  padding: var(--zl-card-pad);
  margin-bottom: var(--zl-gutter);
}

.zl-card:last-child {
  margin-bottom: 0;
}

/* 見出し下のオレンジの短いバー */
.zl-bar {
  display: block;
  width: 14px;
  height: 5px;
  margin: 6px auto 0;
  border-radius: 4px;
  background-color: var(--zl-accent);
}

/* ------------------------------------------------------------
   3. ヘッダー
   ------------------------------------------------------------ */
.header-container {
  background-color: var(--zl-card);
  position: relative;
}

.header-container-in.hlt-top-menu {
  height: var(--zl-header-h);
  align-items: center;
  position: relative;
  padding-right: 54px;  /* 右端の検索ボタンのぶん */
}

.header-container-in.hlt-top-menu .header-in {
  padding: 0;
  flex: 0 0 auto;
}

.header-container-in.hlt-top-menu .logo-header img,
.header-container-in.hlt-top-menu .logo-header amp-img {
  width: 160px;
  max-width: 100%;
  max-height: none;
  height: auto;
}

.header-container-in.hlt-top-menu .header-in,
.header-container-in.hlt-top-menu .logo-header,
.header-container-in.hlt-top-menu .logo-header a {
  min-width: 0;
  max-width: 100%;
}

.header-container-in.hlt-top-menu .navi {
  width: auto;
  flex: 1 1 auto;
}

.navi-in {
  padding: 0;
}

.navi-in > ul {
  justify-content: flex-end;
  height: auto;
}

.navi-in > ul > li {
  height: auto;
  line-height: 1.4;
}

.navi-in > ul > li > a {
  display: block;
  height: auto;
  padding: 0 12px;
  line-height: 1.4;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--zl-text);
  text-align: center;
  background-color: transparent;
}

.navi-in > ul > li > a:hover {
  background-color: transparent;
  opacity: .6;
}

.navi-in a .caption-wrap {
  padding: 0;
  height: auto;
}

/* 右端の丸い検索ボタン（子テーマの functions.php で出している） */
.zl-header-search {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  line-height: 0;
}

.zl-header-search .zl-search-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.zl-header-search .zl-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--zl-gray);
  color: var(--zl-text);
  cursor: pointer;
}

.zl-header-search .zl-search-btn svg {
  width: 18px;
  height: 18px;
}

.zl-header-search .zl-search-panel {
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 30;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 12px;
  border-radius: var(--zl-radius);
  background-color: var(--zl-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.zl-header-search .zl-search-toggle:checked ~ .zl-search-panel {
  display: block;
}

.zl-header-search .zl-search-panel input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 32px;
  background-color: var(--zl-gray);
  font-family: var(--zl-font-ui);
  font-size: 14px;
}

/* ------------------------------------------------------------
   4. フッター
   ------------------------------------------------------------ */
.footer {
  background-color: var(--zl-bg);
  padding: 0 0 48px;
  border: 0;
}

.footer-in {
  padding: 0;
}

/* ロゴ左・リンク右・コピーライトは下の段で中央。
   マークアップ上コピーライトは .footer-bottom-content の中にあるので、
   display:contents で grid の直接の子として扱う */
.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  row-gap: 40px;
  column-gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  text-align: left;
}

.footer-bottom-logo {
  margin: 0;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
  line-height: 0;
}

.footer-bottom-logo img {
  width: 160px;
  height: auto;
}

/* Cocoonは position:absolute + float で置いているので、gridに載せるため戻す */
.footer-bottom-logo {
  grid-column: 1;
  grid-row: 1;
  position: static;
  float: none;
}

.footer-bottom-content {
  display: contents;
}

.footer-bottom .navi-footer {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  width: auto;
}

.navi-footer-in > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
}

.navi-footer-in > .menu-footer li,
.navi-footer-in > .menu-footer li:last-child {
  width: auto;
  border: 0;
}

.navi-footer-in > .menu-footer li > a {
  display: block;
  padding: 0 12px;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--zl-text);
}

.navi-footer-in > .menu-footer li > a:hover {
  background-color: transparent;
  opacity: .6;
}

.footer-bottom .source-org {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  font-family: var(--zl-font-ui);
  font-size: 13px;
  line-height: 1.4;
  color: var(--zl-text);
  text-align: center;
}

/* ------------------------------------------------------------
   5. サイドバー4ブロック
   ------------------------------------------------------------ */
.sidebar .widget,
.sidebar .widget-sidebar {
  margin: 0 0 var(--zl-gutter);
  padding: 0;
  border: 0;
  background-color: transparent;
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

/* 共通の見出し。Cocoonの .sidebar h2 が灰色の帯を付けるので、
   .sidebar を含めた指定で打ち消す */
.sidebar .zl-side-title,
.zl-side-title {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  font-family: var(--zl-font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text);
  text-align: center;
}

.zl-side {
  padding: var(--zl-gutter);
}

/* このサイトで足したリンクは下線を出さない */
.zl-card a,
.zl-profile-link,
.zl-cat-link,
.zl-tag-link {
  text-decoration: none;
}

.zl-card a:hover {
  text-decoration: none;
  opacity: .6;
}

/* 我究館プロフィールカード */
.zl-profile {
  padding: 0;
  overflow: hidden;
}

.zl-profile-band {
  height: 180px;
  line-height: 0;
}

.zl-profile-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* 中身はすべて左寄せ（移管元も align-items: flex-start） */
.zl-profile-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -48px;
  padding: 0 var(--zl-gutter) var(--zl-gutter);
  text-align: left;
}

.zl-avatar {
  box-sizing: border-box;
  flex: none;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--zl-card);
  border: 1px solid #8f8f8f;
  line-height: 0;
}

.zl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar .zl-profile-name,
.zl-profile-name {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  font-family: var(--zl-font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text-strong);
}

/* .zl-bar は既定で左右auto（中央寄せ）なので、ここでは左に戻す */
.zl-profile .zl-bar {
  margin: 6px 0 0;
}

.zl-profile-text {
  margin: 12px 0 0;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text);
  text-align: left;
}

.zl-sns {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.zl-sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--zl-gray);
  color: var(--zl-text);
}

.zl-sns-btn svg {
  width: 18px;
  height: 18px;
}

.zl-sns-btn:hover {
  opacity: .6;
}

/* 移管元は下線あり。.zl-card a の text-decoration: none を打ち消す */
.zl-card .zl-profile-link,
.zl-profile-link {
  margin-top: var(--zl-gutter);
  font-family: var(--zl-font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--zl-text);
  text-decoration: underline;
}

.zl-card .zl-profile-link:hover {
  text-decoration: none;
}

/* カテゴリ */
.zl-cat-list {
  margin-top: var(--zl-gutter);
}

.zl-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text);
}

.zl-cat-link .zl-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* タグ */
.zl-tag-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
}

.zl-tag-link {
  margin: 12px 6px 0;
  font-family: var(--zl-font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text);
}

/* 記事を探す */
.zl-search {
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: var(--zl-gutter);
  border-radius: 32px;
  background-color: var(--zl-gray);
  overflow: hidden;
}

.zl-search input {
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  padding: 8px 16px;
  border: 0;
  background-color: transparent;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--zl-text);
}

.zl-search input::placeholder {
  color: var(--zl-placeholder);
}

.zl-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: var(--zl-text);
  cursor: pointer;
}

.zl-search button .zl-ico {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------
   6. 記事詳細ページ
   ------------------------------------------------------------ */
.main > .article {
  padding: 0;
  overflow: hidden;   /* アイキャッチの角をカードの角丸で切る */
}

/* 現行サイトは パンくず → 関連記事 の順。Cocoonは逆なので並べ替える */
.main {
  display: flex;
  flex-direction: column;
}

.main > .article { order: 1; }
.main > .breadcrumb { order: 2; }
.main > .under-entry-content { order: 3; }
.main > .pagination,
.main > .pagination-next { order: 4; }

/* --- 記事ヘッダー --- */
.article-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* 本文まわりの横幅。固定幅にすると狭い画面ではみ出すので max-width で決める */
.article .entry-title,
.zl-meta,
.article .entry-content,
.zl-after-content {
  width: auto;
  max-width: var(--zl-article);
  margin-left: 48px;
  margin-right: 48px;
}

.article .entry-title {
  order: 1;
  margin-top: 48px;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--zl-font-body);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--zl-text);
  text-align: left;
}

.article .entry-title::after {
  content: "";
  display: block;
  width: 14px;
  height: 5px;
  margin-top: 6px;
  border-radius: 4px;
  background-color: var(--zl-accent);
}

.zl-meta {
  order: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 0;
}

.zl-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--zl-cta-gradient);
  color: #ffffff;
  font-family: var(--zl-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-decoration: none;
  white-space: nowrap;
}

.zl-cat-badge:hover {
  opacity: .85;
  text-decoration: none;
}

.zl-meta .date-tags {
  margin: 0;
  font-family: var(--zl-font-body);
  font-size: 14px;
  color: var(--zl-text-sub);
}

.zl-meta .date-tags .post-update,
.zl-meta .date-tags .fa,
.zl-meta .date-tags .font-awesome-icon,
.zl-meta .date-tags svg {
  display: none;
}

/* アイキャッチは白カードいっぱい */
.article .eye-catch-wrap {
  order: 3;
  width: 100%;
  margin: 48px 0 0;
}

.article .eye-catch {
  margin: 0;
  border-radius: 0;
}

.article .eye-catch img {
  display: block;
  width: 100%;
  height: auto;
}

/* アイキャッチ上のカテゴリラベルとページ上部のシェアボタンは現行サイトに無い */
.article .cat-label,
.article .sns-share.ss-top,
.article-footer {
  display: none;
}

/* --- 本文 --- */
.article .entry-content {
  margin-top: 0;
  margin-bottom: 0;
  padding: 48px 0;
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--zl-text);
}

.entry-content p {
  margin: 15px 0;
  line-height: 1.80;
}

.entry-content h2 {
  margin: 50px 0 15px;
  padding: 0 0 5px 10px;
  border: 0;
  border-bottom: 1px solid var(--zl-h2-border);
  border-radius: 0;
  background: none;
  color: var(--zl-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.entry-content h3 {
  margin: 40px 0 15px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zl-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.entry-content h4 {
  margin: 30px 0 15px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.entry-content strong {
  font-weight: 700;
  border-bottom: 3px solid var(--zl-strong-border);
}

.entry-content a {
  color: var(--zl-accent);
}

.entry-content ul {
  margin: 20px 0;
  padding: 20px 50px 20px 20px;
  border-radius: 0;
  background-color: var(--zl-gray-box);
  list-style: disc;
}

.entry-content ul li {
  margin-left: 20px;
  line-height: 1.8;
}

.entry-content ol {
  margin: 20px 0;
  padding-left: 40px;
}

.entry-content figure {
  margin: 20px 0;
}

.entry-content figure img {
  width: 100%;
  height: auto;
}

.entry-content figcaption:empty {
  display: none;
}

.entry-content blockquote {
  margin: 20px 0;
  padding: 20px 20px 20px 24px;
  border: 0;
  border-left: 3px solid var(--zl-brand);
  border-radius: 0;
  background-color: var(--zl-gray-box);
}

.entry-content blockquote::before,
.entry-content blockquote::after {
  content: none;
}

.entry-content blockquote p {
  margin: 10px 0;
}

.entry-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #dddddd;
}

.entry-content u {
  text-decoration: underline;
}

/* --- 目次（Cocoon標準）を現行サイトの見た目に寄せる --- */
.entry-content .toc {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 0;
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background-color: var(--zl-toc-bg);
}

.entry-content .toc .toc-title {
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
}

.entry-content .toc-content ol,
.entry-content .toc-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
  background: none;
}

.entry-content .toc-list li {
  margin: 6px 0;
  line-height: 1.6;
}

.entry-content .toc a {
  color: var(--zl-text);
  text-decoration: none;
}

/* --- 本文下（バナー・CTA・監修者・シェア） --- */
.zl-after-content {
  margin-top: 0;
  margin-bottom: 48px;
}

.zl-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 50px 0 0;
}

.zl-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 15px;
  color: #ffffff;
  font-family: var(--zl-font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.zl-cta:hover {
  opacity: .9;
  text-decoration: none;
  color: #ffffff;
}

.zl-cta-primary {
  background: var(--zl-cta-gradient);
}

.zl-cta-secondary {
  background-color: var(--zl-brand-sub);
}

.zl-chevron {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

/* 監修者プロフィール */
.zl-supervisor {
  margin: 50px 0 0;
}

.zl-supervisor-head {
  margin: 0;
  padding: 15px;
  background-color: var(--zl-brand);
  color: #ffffff;
  font-family: var(--zl-font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.zl-supervisor-body {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 30px;
  background-color: var(--zl-profile-bg);
}

.zl-supervisor-photo {
  flex: 0 0 30%;
  width: 30%;
  display: flex;
  justify-content: center;
}

.zl-supervisor-photo img {
  width: 200px;
  max-width: 100%;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.zl-supervisor-text {
  flex: 0 0 70%;
  width: 70%;
  padding: 0 20px;
}

.zl-supervisor-name {
  margin: 0 0 20px;
  color: var(--zl-text-strong);
  font-family: var(--zl-font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.zl-supervisor-bio {
  margin: 0;
  color: var(--zl-text-strong);
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* シェアボタン */
.zl-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 48px 0 0;
}

.zl-share-message {
  margin: 24px 0 0;
  color: var(--zl-text-strong);
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.zl-share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.zl-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #ffffff;
}

.zl-share-btn svg {
  width: 24px;
  height: 24px;
}

.zl-share-btn:hover {
  opacity: .85;
}

.zl-share-x { background-color: #1d9bf0; }
.zl-share-facebook { background-color: #1877f2; }
.zl-share-line { background-color: #06c755; }

/* --- パンくず（現行サイトと同じテキスト表記にする） --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Cocoonが出す家・フォルダ・ファイルのアイコンは使わない */
.breadcrumb .fa,
.breadcrumb .font-awesome-icon,
.breadcrumb svg {
  display: none;
}

/* 区切りは「＞」の文字にする */
.breadcrumb .sp {
  display: inline-block;
  margin: 0 12px;
}

.breadcrumb .sp::before {
  content: "＞";
  color: var(--zl-text-mute);
}

.breadcrumb .breadcrumb-home,
.breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb .breadcrumb-item:last-child .breadcrumb-caption {
  color: var(--zl-text-strong);
}

/* トップページにパンくずは出さない */
.home .breadcrumb {
  display: none;
}

.main > .breadcrumb {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--zl-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--zl-text-mute);
}

.main > .breadcrumb a,
.main > .breadcrumb .fa,
.main > .breadcrumb .sp {
  color: var(--zl-text-mute);
  text-decoration: none;
}

.main > .breadcrumb .breadcrumb-item:last-child,
.main > .breadcrumb .breadcrumb-caption {
  color: var(--zl-text-strong);
}

/* --- 関連記事 --- */
.under-entry-content .related-entries {
  margin: 48px 0 0;
  padding: var(--zl-card-pad);
  border: 0;
  border-radius: var(--zl-radius);
  background-color: var(--zl-card);
}

.related-entry-heading {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zl-text);
  font-family: var(--zl-font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  text-align: center;
}

.related-entry-heading::after {
  content: "";
  display: block;
  width: 14px;
  height: 5px;
  margin: 6px auto 0;
  border-radius: 4px;
  background-color: var(--zl-accent);
}

/* 前後の記事へのリンクは現行サイトに無い */
.pager-post-navi {
  display: none;
}

/* ------------------------------------------------------------
   7. 一覧（トップ・カテゴリ・タグ・検索）
   ------------------------------------------------------------ */

/* ヒーロー */
.zl-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 現行サイトは背景画像に filter: brightness(0.8) を掛けている */
.zl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .2);
}

.zl-hero-in {
  position: relative;
  width: 1180px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 192px 0 288px;
  text-align: center;
}

.zl-hero-title {
  margin: 0;
  font-family: var(--zl-font-ui);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  color: #ffffff;
}

.zl-hero-lead {
  margin: 12px 0 0;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  color: #ffffff;
}

/* ヒーローに本体カードを -96px 重ねる。
   ヒーローは position:relative なので、そのままだと重なった部分が
   ヒーローの下に潜ってしまう（サイドバーのカード上部が隠れる）。
   本体側にも重ね順を与えて前に出す */
.content {
  position: relative;
  z-index: 1;
}

.home .content-in {
  margin-top: -96px;
  padding-top: 0;
}

/* セクション見出し */
.zl-section-title,
.archive-title,
.zl-archive-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zl-text);
  font-family: var(--zl-font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  text-align: center;
}

.zl-kicker {
  margin: 0;
  color: var(--zl-text-sub);
  font-family: var(--zl-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .05em;
  text-align: center;
}

/* 白カードの箱 */
.zl-card-block {
  margin: 0 0 48px;
  padding: var(--zl-card-pad);
  border-radius: var(--zl-radius);
  background-color: var(--zl-card);
}

/* 「記事をもっと読む」の黒いボタン */
.zl-more {
  margin-top: 48px;
  text-align: center;
}

.zl-more-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 12px 48px;
  border-radius: var(--zl-radius);
  background-color: var(--zl-text);
  color: #ffffff;
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.zl-more-link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: .85;
}

.zl-more-link .zl-chevron {
  position: absolute;
  right: 24px;
  width: 18px;
  height: 18px;
}

/* 見出しだけのカード（下のリストと繋げる） */
.zl-list-head {
  padding: var(--zl-card-pad);
  padding-bottom: 0;
  border-radius: var(--zl-radius) var(--zl-radius) 0 0;
  background-color: var(--zl-card);
}

/* カードの並び */
.zl-cards,
.main > .list,
.related-list {
  display: flex;
  flex-direction: row;   /* Cocoonは column にしていることがある */
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.main > .list {
  margin-top: 0;
  padding: 0 48px 48px;
  border-radius: 0 0 var(--zl-radius) var(--zl-radius);
  background-color: var(--zl-card);
}

.zl-card-item,
.main > .list > .entry-card-wrap,
.related-list > .related-entry-card-wrap {
  display: flex;
  flex-direction: column;
  width: calc(33.3% - 24px);
  margin: 24px 12px 0;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
}

.zl-cards .zl-card-item {
  margin-top: 24px;
}

/* サムネイル */
.zl-card-thumb,
.entry-card-thumb,
.related-entry-card-thumb {
  display: block;
  float: none;
  width: 100%;
  height: 144px;
  margin: 0;
  border-radius: var(--zl-radius);
  overflow: hidden;
  line-height: 0;
}

.zl-card-thumb img,
.entry-card-thumb img,
.related-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カードの中身 */
.entry-card,
.related-entry-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: none;
}

.entry-card-content,
.related-entry-card-content {
  margin: 12px 0 0;
  padding: 0;
}

/* タイトルは2行で「…」に切る。2行ぶんの高さを確保して、
   どのカードでも日付の位置が揃うようにする
   （移管元のSTUDIOは34文字前後で切っていて、3列カードではおよそ2行） */
.zl-card-title,
.entry-card-title,
.related-entry-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(16px * 1.4 * 2);
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zl-text);
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.entry-card-content .entry-card-title,
.related-entry-card-content .related-entry-card-title {
  margin: 0;
}

/* 日付はタイトルの直下に24px。Cocoonは absolute で右下に置いているので戻す */
.zl-card-date,
.entry-card-meta,
.related-entry-card-meta {
  display: block;
  position: static;
  margin: 24px 0 0;
  padding-top: 0;
  color: var(--zl-text);
  font-family: var(--zl-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

/* 日付は .e-card-info（flex・右寄せ）に入っているので左寄せに戻す */
.entry-card-meta .e-card-info,
.related-entry-card-meta .e-card-info {
  justify-content: flex-start;
}

.entry-card-content,
.related-entry-card-content {
  display: flex;
  flex-direction: column;
}

.entry-card-meta .fa,
.related-entry-card-meta .fa,
.entry-card-meta svg,
.related-entry-card-meta svg,
.entry-card-meta .post-update,
.related-entry-card-meta .post-update,
.entry-card-meta .category,
.entry-card-meta .entry-card-categories {
  display: none;
}

/* 抜粋とカテゴリラベルは現行サイトのカードに無い */
.entry-card-snippet,
.related-entry-card-snippet,
.entry-card-wrap .cat-label,
.related-entry-card-wrap .cat-label {
  display: none;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover,
.zl-card-item:hover {
  background: none;
  opacity: .75;
}

/* Cocoonのアーカイブ見出し・カテゴリ説明は独自の見出しに置き換える */
.main > .archive-title,
.main > .category-content,
.main > .tag-content,
.list-title-inner {
  display: none;
}

/* 検索ページの検索窓。見出しカードと一覧カードの間に入るので、
   同じ白地でつないで1枚のカードに見せる */
.main > .search-box {
  margin: 0;
  padding: 24px 48px 0;
  background-color: var(--zl-card);
}

.main > .search-box .search-edit {
  height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 32px;
  background-color: var(--zl-gray);
  font-family: var(--zl-font-body);
  font-size: 14px;
}

.main > .search-box .search-submit {
  color: var(--zl-text);
}

/* ページャー。現行サイトの黒い「記事をもっと読む」ボタンに寄せる */
.pagination-next {
  margin: 24px 0 0;
  text-align: center;
}

.pagination-next .pagination-next-link {
  display: inline-block;
  padding: 12px 48px;
  border: 0;
  border-radius: var(--zl-radius);
  background-color: var(--zl-text);
  color: #ffffff;
  font-family: var(--zl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.pagination-next .pagination-next-link:hover {
  background-color: var(--zl-text);
  color: #ffffff;
  opacity: .85;
}

.pagination {
  margin: 12px 0 0;
  text-align: center;
}

.pagination .page-numbers {
  min-width: 32px;
  margin: 0 2px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--zl-radius);
  background-color: transparent;
  color: var(--zl-text-sub);
  font-family: var(--zl-font-body);
  font-size: 14px;
}

.pagination .current {
  background-color: transparent;
  color: var(--zl-text);
  font-weight: 600;
}

/* 横スクロールが出ないようにする保険 */
.container,
.content,
.content-in,
.main,
.sidebar,
.zl-hero {
  max-width: 100%;
  overflow-wrap: break-word;
}

.entry-content img,
.entry-content iframe,
.entry-content table {
  max-width: 100%;
}

/* ------------------------------------------------------------
   8. レスポンシブ（docs/source-analysis.md のブレークポイント）
   ------------------------------------------------------------ */

/* Cocoonは1023px以下でモバイルボタンを出し、その分 body を押し下げる。
   現行サイトの切り替えは840pxなので、押し下げは常に消し、
   841px以上ではモバイルボタン自体を出さない */
body.mblt-header-mobile-buttons,
body.mblt-header-and-footer-mobile-buttons {
  margin-top: 0;
}

@media (min-width: 841px) {
  .mobile-menu-buttons {
    display: none;
  }

  /* Cocoonは1023px以下でPCメニューを隠し、ヘッダーを縦積みにするが、
     現行サイトは840pxまで「ロゴ左・メニュー右」の一列のまま */
  .navi-in > .menu-header,
  .navi-in .menu-pc {
    display: flex;
  }

  .header-container-in.hlt-top-menu {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 1140px以下：サイドバーが本文の下へ回り込む */
@media (max-width: 1140px) {
  :root {
    --zl-card-pad: 48px 24px;
  }

  .content-in {
    flex-wrap: wrap;
  }

  .sidebar {
    flex: 1 1 100%;
    width: 100%;
  }

  .article .entry-title,
  .zl-meta,
  .article .entry-content,
  .zl-after-content {
    margin-left: 24px;
    margin-right: 24px;
  }

  .main > .list {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 840px以下：ハンバーガー表示、PCナビは非表示 */
@media (max-width: 840px) {
  :root {
    --zl-card-pad: 24px;
  }

  .content-in {
    flex-direction: column;
    padding-top: 24px;
  }

  .header-container-in.hlt-top-menu {
    justify-content: center;
    padding-left: 64px;
    padding-right: 64px;
  }

  .header-container-in.hlt-top-menu .navi {
    display: none;
  }

  .zl-header-search {
    right: 11px;
  }

  /* ハンバーガー。Cocoonの「モバイルヘッダーボタン」のうちメニューだけを残し、
     ヘッダーの左端（64px角）に重ねる。スライドインメニューの開閉は
     Cocoon側のチェックボックスがそのまま効く */
  .mobile-header-menu-buttons {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 64px;
    height: var(--zl-header-h);
    margin: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .mobile-header-menu-buttons > li,
  .mobile-header-menu-buttons > li.menu-button,
  .mobile-header-menu-buttons > li.menu-item {
    display: none;
  }

  .mobile-header-menu-buttons > li.navi-menu-button.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: var(--zl-header-h);
    border: 0;
    background-color: transparent;
    color: var(--zl-text);
  }

  .mobile-header-menu-buttons > li.navi-menu-button .fa,
  .mobile-header-menu-buttons > li.navi-menu-button .font-awesome-icon,
  .mobile-header-menu-buttons > li.navi-menu-button svg {
    font-size: 24px;
  }

  /* ボタン名（「メニュー」の文字）は現行サイトに無いので出さない */
  .mobile-header-menu-buttons .menu-caption {
    display: none;
  }

  /* 記事まわりの余白を詰める */
  .article .entry-title {
    margin-top: 24px;
    font-size: 24px;
  }

  .article .entry-content {
    padding: 24px 0;
  }

  .zl-after-content {
    margin-bottom: 24px;
  }

  /* 現行サイトと同じく、新着記事のカードは1列の横長（サムネ左・テキスト右） */
  .main > .list {
    margin-left: 0;
    margin-right: 0;
  }

  .main > .list > .entry-card-wrap {
    flex-direction: row;
    width: 100%;
    margin: 24px 0 0;
  }

  .main > .list > .entry-card-wrap .entry-card {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .main > .list > .entry-card-wrap .entry-card-thumb {
    flex: 0 0 160px;
    width: 160px;
    height: 90px;
  }

  .main > .list > .entry-card-wrap .entry-card-content {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
  }

  .main > .list > .entry-card-wrap .entry-card-title {
    min-height: 0;
  }

  .main > .list > .entry-card-wrap .entry-card-meta {
    margin-top: 12px;
  }

  /* おすすめ記事と関連記事は3列のまま、間隔だけ詰める */
  .zl-cards,
  .related-list {
    margin-left: -6px;
    margin-right: -6px;
  }

  .zl-card-item,
  .related-list > .related-entry-card-wrap {
    width: calc(33.3% - 12px);
    margin-left: 6px;
    margin-right: 6px;
  }

  .zl-hero-in {
    padding: 144px 0 216px;
  }

  .zl-hero-title {
    font-size: 40px;
  }

  .zl-supervisor-body {
    flex-direction: column;
    gap: 20px;
  }

  .zl-supervisor-photo,
  .zl-supervisor-text {
    flex: 1 1 100%;
    width: 100%;
    padding: 0;
  }

  .zl-cta {
    font-size: 18px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 24px;
  }

  .footer-bottom-logo {
    grid-column: 1;
  }

  .footer-bottom .navi-footer {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  .footer-bottom .source-org {
    grid-row: 3;
  }

  .navi-footer-in > ul {
    justify-content: center;
  }
}

/* 540px以下 */
@media (max-width: 540px) {
  :root {
    --zl-card-pad: 24px 12px;
  }

  .zl-side {
    padding: 24px 12px;
  }

  .article .entry-title,
  .zl-meta,
  .article .entry-content,
  .zl-after-content {
    margin-left: 12px;
    margin-right: 12px;
  }

  .article .entry-title {
    font-size: 22px;
  }

  .main > .list {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* すべてのカードが1列 */
  .zl-cards,
  .related-list {
    margin-left: 0;
    margin-right: 0;
  }

  .zl-card-item,
  .related-list > .related-entry-card-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .zl-card-title,
  .related-entry-card-title {
    min-height: 0;
  }

  .zl-hero-in {
    padding: 120px 0 168px;
  }

  .zl-hero-title {
    font-size: 36px;
  }

  .home .content-in {
    margin-top: -48px;
  }

  .zl-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .zl-cta {
    font-size: 16px;
    padding: 16px;
  }

  .zl-share-btn {
    width: 56px;
    height: 56px;
  }

  /* ヘッダーはハンバーガーと検索ボタンのぶんだけ内側に寄せる */
  .header-container-in.hlt-top-menu {
    padding-left: 56px;
    padding-right: 48px;
  }

  .header-container-in.hlt-top-menu .logo-header img {
    width: 140px;
  }
}

/* 320px以下 */
@media (max-width: 320px) {
  .zl-profile-text,
  .zl-profile-link {
    font-size: 13px;
  }

  .zl-hero-title {
    font-size: 30px;
  }

  .main > .list > .entry-card-wrap .entry-card-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 56px;
  }

  .wrap,
  .header-container-in.hlt-top-menu {
    max-width: calc(100% - 24px);
  }

  .header-container-in.hlt-top-menu {
    padding-left: 48px;
    padding-right: 44px;
  }

  .header-container-in.hlt-top-menu .logo-header img {
    width: 110px;
  }

  .mobile-header-menu-buttons,
  .mobile-header-menu-buttons > li.navi-menu-button.menu-button {
    width: 48px;
  }

  .zl-header-search {
    right: 0;
  }

  .zl-header-search .zl-search-btn {
    width: 38px;
    height: 38px;
  }
}
