@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*
 * AI Media Factory 共通構造（全媒体共通）。基準：Figma Make「空のレスポンシブページ作成」Version 13（guidelines/）。
 * 色・角丸などの媒体ごとの値は子テーマのスキン（skins/amf-*）で --amf-* を上書きする。ここは既定値だけ。
 * 既定値は :where() で詳細度 0 にし、スキン（:root）が必ず勝つようにする。
 * 親テーマ（Cocoon 2.9.5）の HTML は変えない。並び替えが必要な所だけ order を使う（amf/design.php 参照）。
 */
:where(html) {
  --amf-brand: #4a5b6c;
  --amf-brand-strong: #263442;
  --amf-brand-soft: #eef2f5;
  --amf-accent: #2d8ea1;
  --amf-canvas: #f8f8f7;
  --amf-ink: #22282e;
  --amf-muted: #65707a;
  --amf-line: #dde2e6;
  --amf-warning: #a84a46;
  --amf-radius: 8px;
  --amf-font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* ---------- 全体 ---------- */
.body {
  color: var(--amf-ink);
  background-color: var(--amf-canvas);
  font-family: var(--amf-font);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.body a { color: var(--amf-brand-strong); }
.body :focus-visible { outline: 3px solid #1675d1; outline-offset: 3px; }
.body .wrap { width: min(1200px, calc(100% - 48px)); }
.body .content { margin-top: 0; }
.body .content-in { padding-block: 16px 64px; column-gap: clamp(32px, 5vw, 60px); flex-wrap: nowrap; align-items: flex-start; }
.body .main {
  width: auto; flex: 1 1 820px; max-width: 820px; min-width: 0;
  padding: 0; background: transparent; border: 0;
}
.body.no-sidebar .main, .body .main.no-sidebar { max-width: none; }
.body.no-sidebar .sidebar { display: none; }
.body .sidebar {
  width: auto; flex: 0 1 320px; min-width: 260px;
  padding: 0; background: transparent; border: 0;
  display: grid; gap: 24px; align-content: start;
}

/* ---------- ヘッダー・ナビ ---------- */
.body .header-container { background: #fff; border-bottom: 1px solid var(--amf-line); }
.body .header { background: #fff; }
.body .header div.header-in, .body .header-in {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px;
  align-content: center; min-height: 84px; padding: 0;
}
.body .header-in .logo-header { grid-column: 2; grid-row: 1; text-align: left; padding: 0; margin: 0; align-self: end; }
.body .header-in .tagline { grid-column: 2; grid-row: 2; text-align: left; margin: 2px 0 0; padding: 0; font-size: 11px; color: var(--amf-muted); align-self: start; }
.body .header-in .tagline:empty { display: none; }
.body .logo-header .site-name-text { font-size: clamp(21px, 2.1vw, 27px); font-weight: 700; letter-spacing: 0.03em; color: var(--amf-ink); }
.body .logo-header .site-name { padding: 0; }
/* ロゴ画像が未登録の間だけ出す仮の印（差し替え前提。正式ロゴは Cocoon の the_site_logo_url で登録） */
.body .header-in:has(.logo-text)::before {
  content: ""; grid-column: 1; grid-row: 1 / span 2; align-self: center;
  width: 38px; height: 38px;
  background:
    linear-gradient(var(--amf-brand), var(--amf-brand)) 0 0 / 15px 15px no-repeat,
    radial-gradient(circle, var(--amf-accent) 7px, transparent 7.5px) 19px 0 / 15px 15px no-repeat,
    linear-gradient(var(--amf-brand-strong), var(--amf-brand-strong)) var(--amf-mark-offset, 0) 19px / 28px 15px no-repeat;
}
.body .navi { background: #fff; border-top: 1px solid var(--amf-line); }
.body .navi-in > ul { display: flex; justify-content: flex-start; gap: 32px; height: auto; }
.body .navi-in > ul > li { width: auto; height: auto; flex: 0 0 auto; }
.body .navi-in > ul > li > a { height: auto; padding: 10px 0 8px; color: var(--amf-ink); border-bottom: 2px solid transparent; }
.body .navi-in > ul .item-label { font-size: 12px; font-weight: 600; }
.body .navi-in > ul > li.current-menu-item > a, .body .navi-in > ul > li > a[aria-current="page"] { color: var(--amf-brand-strong); border-color: var(--amf-brand); }
.body .navi-in a:hover { background: transparent; color: var(--amf-brand-strong); }

/* ---------- パンくず ---------- */
.body .breadcrumb { margin: 0 0 24px; font-size: 11px; color: var(--amf-muted); white-space: nowrap; overflow: hidden; display: flex; gap: 8px; }
.body .breadcrumb .fa, .body .breadcrumb .sp { display: none; }
.body .breadcrumb > div + div::before { content: "/"; margin-right: 8px; }
.body .breadcrumb > div:last-child { overflow: hidden; text-overflow: ellipsis; }
.body .breadcrumb a { color: inherit; text-decoration: none; }

/* ---------- 共通の小部品 ---------- */
.body .amf-chip, .body .cat-label {
  display: inline-flex; align-items: center; width: fit-content; padding: 2px 7px;
  color: var(--amf-brand-strong); background: var(--amf-brand-soft); border: 0; border-radius: 4px;
  font-size: 10px; font-weight: 700; line-height: 1.6; text-decoration: none;
}
.body .amf-pr-label {
  display: inline-block; padding: 2px 9px; color: #fff; background: var(--amf-warning);
  border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.6;
}

/* ---------- 広告枠（ラベル「広告」・使わない枠は Cocoon が出さない） ---------- */
.body .ad-area { margin: 32px 0; padding: 0; text-align: center; }
.body .ad-area .ad-label { font-size: 10px; letter-spacing: 0.05em; color: #74787b; margin-bottom: 4px; }
.body .amf-ad-placeholder {
  display: grid; place-content: center; min-height: 90px; color: #74787b; background: #eeefef;
  border: 1px dashed #c8cbcc; font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
}
.body .ad-content-middle .amf-ad-placeholder, .body .ad-content-bottom .amf-ad-placeholder { min-height: 90px; }
.body .sidebar .ad-area { margin: 0; }
.body .sidebar .amf-ad-placeholder { aspect-ratio: 300 / 250; }

/* ---------- 記事カード（一覧・関連記事）：画像が上・16:9・3/2/1 列 ---------- */
.body #list.ect-vertical-card, .body .related-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0;
}
.body #list.ect-vertical-card > *, .body .related-list > * { width: auto; margin: 0; }
.body #list .ad-area, .body #list .widget { grid-column: 1 / -1; margin: 24px 0; }
.body .entry-card-wrap, .body .related-entry-card-wrap { padding: 0; border: 0; background: transparent; }
.body .entry-card-wrap:hover, .body .related-entry-card-wrap:hover { background: transparent; }
.body .entry-card-wrap:hover .entry-card-title, .body .related-entry-card-wrap:hover .related-entry-card-title { color: var(--amf-brand-strong); text-decoration: underline; }
.body .e-card, .body .entry-card { display: flex; flex-direction: column; }
.body .e-card .card-thumb, .body .entry-card-thumb, .body .related-entry-card-thumb {
  width: 100%; float: none; margin: 0; overflow: visible; display: flex; flex-direction: column; gap: 12px;
}
.body .card-thumb img, .body .entry-card-thumb img, .body .related-entry-card-thumb img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: min(var(--amf-radius), 6px);
}
.body .card-thumb .cat-label { position: static; order: 2; }
.body .e-card .card-content, .body .entry-card-content, .body .related-entry-card-content { margin: 0; padding: 8px 0 0; }
.body .entry-card-title, .body .related-entry-card-title, .body .e-card .card-title {
  margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--amf-ink);
}
.body .entry-card-meta, .body .e-card .card-meta { display: flex; justify-content: flex-start; gap: 12px; color: var(--amf-muted); font-size: 10px; padding: 0; margin: 0; }
.body .entry-card-meta .fa { display: none; }
.body .entry-card-snippet, .body .related-entry-card-snippet { display: none; }

/* 一覧の見出し・カテゴリー・ページ送り */
.body .archive-title {
  margin: 0 0 32px; padding: 0 0 24px; border-bottom: 2px solid var(--amf-brand);
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.38; letter-spacing: -0.035em; background: none;
}
.body .archive-title .fa { display: none; }
.body .amf-page-header { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 2px solid var(--amf-brand); }
.body .amf-page-header .archive-title { margin: 0 0 8px; padding: 0; border: 0; }
.body .amf-page-header p { max-width: 680px; margin: 0; color: var(--amf-muted); }
.body .amf-filter, .body .widget-index-top .wp-block-categories { display: flex; gap: 8px; margin: 0 0 24px; padding: 0 0 8px; list-style: none; overflow-x: auto; }
.body .widget-index-top .wp-block-categories li a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; white-space: nowrap;
  color: var(--amf-brand-strong); background: #fff; border: 1px solid var(--amf-line); border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.body .widget-index-top .wp-block-categories li.current-cat a { color: #fff; background: var(--amf-brand-strong); border-color: var(--amf-brand-strong); }
.body .pagination-next { display: none; }
.body .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.body .pagination .page-numbers {
  display: grid; place-items: center; width: auto; min-width: 42px; height: 42px; margin: 0;
  color: var(--amf-ink); background: #fff; border: 1px solid var(--amf-line); border-radius: 0;
}
.body .pagination .page-numbers.current { color: #fff; background: var(--amf-brand-strong); border-color: var(--amf-brand-strong); }

/* ---------- 記事詳細：見出し部（並び：カテゴリー・PR → タイトル → リード → 日付 → アイキャッチ → 共有 → 広告 → PR 開示） ---------- */
.body .article { margin: 0; }
.body.single .article-header { display: flex; flex-direction: column; }
.body.single .article-header > * { order: 20; }
.body.single .article-header > .amf-article-kicker { order: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.body.single .article-header > .entry-title { order: 2; }
.body.single .article-header > .amf-article-lead { order: 3; }
.body.single .article-header > .date-tags { order: 4; }
.body.single .article-header > .eye-catch-wrap { order: 5; }
.body.single .article-header > .sns-share { order: 6; }
.body.single .article-header > .ad-content-top { order: 7; }
.body.single .article-header > .pr-label-l { order: 8; }
.body .article .entry-title {
  margin: 16px 0 24px; padding: 0; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.38; letter-spacing: -0.035em;
}
.body.page .article .entry-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.4; letter-spacing: -0.025em; margin: 12px 0; }
.body .amf-article-lead { margin: 0; color: var(--amf-muted); font-size: 18px; }
.body .date-tags {
  margin: 16px 0 0; padding: 0 0 24px; border-bottom: 1px solid var(--amf-line);
  text-align: left; color: var(--amf-muted); font-size: 11px; font-weight: 600; line-height: 1.6;
}
.body .date-tags .fa { display: none; }
.body .date-tags .post-update::after { content: " 更新"; }
.body .date-tags .post-date:not(:only-child) { display: none; }
.body .eye-catch-wrap { margin: 32px 0 0; }
.body .eye-catch { margin: 0; }
.body .eye-catch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: min(var(--amf-radius), 6px); }
.body .eye-catch .cat-label { display: none; }

/* 共有ボタン：X・Facebook・LINE・URL コピーの 4 種、上下とも同じ */
.body .sns-share { margin: 24px 0; padding: 12px 0; border-bottom: 1px solid var(--amf-line); }
.body .sns-share-message { margin: 0 0 8px; text-align: left; color: var(--amf-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.body.single .ss-top::before { content: "この記事をシェア"; display: block; margin: 0 0 8px; color: var(--amf-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.body .sns-share-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.body .sns-share-buttons a {
  width: auto; height: 36px; min-height: 36px; gap: 7px; padding: 5px 9px;
  border-radius: calc(var(--amf-radius) / 2); font-size: 11px; font-weight: 600; color: #fff;
}
.body .sns-share-buttons a .social-icon { font-size: 16px; }
.body .sns-share-buttons a .button-caption { font-size: 11px; font-weight: 600; padding: 0; }
.body .sns-share-buttons a .share-count { display: none; }
.body .sns-share-buttons .x-corp-button { background-color: #000; }
.body .sns-share-buttons .facebook-button { background-color: #3b5998; }
.body .sns-share-buttons .line-button { background-color: #06c755; }
.body .sns-share-buttons .copy-button { background-color: #555; }
.body .sns-share-buttons .copy-button .button-caption { font-size: 0; }
.body .sns-share-buttons .copy-button .button-caption::after { content: "URLコピー"; font-size: 11px; }

/* PR 開示（広告を含む記事だけ。Cocoon の PR 表記（大）を使う） */
.body .pr-label-l {
  display: flex; gap: 12px; align-items: center; width: auto; max-width: none; margin: 16px 0 32px; padding: 12px 16px;
  color: var(--amf-ink); background: color-mix(in srgb, var(--amf-warning) 7%, #fff);
  border: 1px solid var(--amf-warning); border-left-width: 5px; border-radius: 0; font-size: 13px; text-align: left;
}
.body .pr-label-l::before { content: "広告・PR"; flex: 0 0 auto; color: var(--amf-warning); font-weight: 700; }

/* 根拠情報 */
.body .amf-evidence {
  display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 32px 0; padding: 16px;
  color: var(--amf-muted); background: #fff; border: 1px solid var(--amf-line); font-size: 11px; line-height: 1.6;
}
.body .amf-evidence > div { display: flex; gap: 5px; }
.body .amf-evidence dt { color: var(--amf-brand-strong); font-weight: 700; }
.body .amf-evidence dd { margin: 0; }

/* 目次 */
.body .toc {
  display: block; width: auto; margin: 32px 0; padding: 24px; text-align: left;
  background: var(--amf-brand-soft); border: 0; border-left: 3px solid var(--amf-brand); border-radius: 0;
}
.body .toc-title { text-align: left; color: var(--amf-brand-strong); font-size: 16px; font-weight: 700; padding: 0; }
.body .toc-content { padding: 0; }
.body .toc-list { margin: 12px 0 0; padding-left: 1.5em; font-size: 14px; display: grid; gap: 8px; }
.body .toc-list ol { margin: 8px 0 0; display: grid; gap: 6px; }
.body .toc a { color: var(--amf-ink); text-decoration: none; }

/* ---------- 本文 ---------- */
.body .entry-content { margin: 0; counter-reset: amf-h2; }
.body .entry-content > * { margin-block: 0 1.4em; }
.body .entry-content p, .body .entry-content li { line-height: 1.9; }
.body .article .entry-content h2 {
  counter-increment: amf-h2; margin: 64px 0 24px; padding: 0 0 12px; background: none; border: 0; border-bottom: 2px solid var(--amf-brand); border-radius: 0;
  font-size: 28px; line-height: 1.5; color: var(--amf-ink);
}
.body.single .article .entry-content h2::before {
  content: counter(amf-h2, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--amf-brand); font-size: 13px; font-weight: 700; letter-spacing: 0.15em;
}
.body .article .entry-content h3 {
  margin: 32px 0 12px; padding: 0 0 0 12px; background: none; border: 0; border-left: 3px solid var(--amf-accent); border-radius: 0;
  font-size: 21px; line-height: 1.55;
}
.body .entry-content ul, .body .entry-content ol { padding-left: 1.4em; }
.body .entry-content blockquote {
  margin: 32px 0; padding: 16px 24px; color: var(--amf-brand-strong); background: var(--amf-brand-soft);
  border: 0; border-left: 4px solid var(--amf-brand); font-weight: 600;
}
.body .entry-content blockquote::before, .body .entry-content blockquote::after { display: none; }
.body .entry-content blockquote p { margin: 0; }
.body .amf-callout {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 24px 0; padding: 16px;
  color: var(--amf-ink); background: var(--amf-brand-soft); border-left: 4px solid var(--amf-brand); font-size: 14px; line-height: 1.75;
}
.body .amf-callout::before {
  content: "i"; grid-row: 1 / span 2; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 3px;
  border: 1.8px solid currentColor; border-radius: 50%; color: var(--amf-brand-strong); font-size: 12px; font-weight: 700; line-height: 1;
}
.body .amf-callout > strong { display: block; color: var(--amf-brand-strong); font-size: 15px; }
.body .amf-callout--caution { background: color-mix(in srgb, var(--amf-warning) 7%, #fff); border-left-color: var(--amf-warning); }
.body .amf-callout--caution::before { content: "!"; color: var(--amf-warning); }
.body .amf-callout--caution > strong { color: var(--amf-warning); }
.body .entry-content ol.amf-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: amf-step; }
.body .entry-content ol.amf-steps > li {
  counter-increment: amf-step; display: grid; grid-template-columns: 42px 1fr; gap: 0 16px; padding: 16px; border: 1px solid var(--amf-line);
  color: var(--amf-muted); font-size: 14px; line-height: 1.75;
}
.body .entry-content ol.amf-steps > li::before {
  content: counter(amf-step); grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px;
  color: #fff; background: var(--amf-brand-strong); border-radius: 50%; font-weight: 700; font-size: 16px;
}
.body .entry-content ol.amf-steps > li > strong { display: block; color: var(--amf-ink); font-size: 18px; }
.body .entry-content .wp-block-table { margin: 24px 0; overflow-x: auto; border: 1px solid var(--amf-line); }
.body .entry-content .wp-block-table table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.body .entry-content .wp-block-table th, .body .entry-content .wp-block-table td { padding: 12px; text-align: left; border: 1px solid var(--amf-line); }
.body .entry-content .wp-block-table thead { border: 0; }
.body .entry-content .wp-block-table thead th { color: #fff; background: var(--amf-brand-strong); }
.body .entry-content .wp-block-table figcaption { margin: 0; padding: 8px 12px; color: var(--amf-brand-strong); background: var(--amf-brand-soft); font-size: 11px; font-weight: 600; text-align: left; }

/* ---------- 記事の下：タグ → 広告 → 共有 → フォロー（RSS・Feedly）→ 著者・編集部 → 関連記事 ---------- */
.body .entry-categories-tags { margin: 32px 0 0; }
.body .entry-categories { display: none; }
.body .entry-tags {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px; background: #fff;
  border-top: 1px solid var(--amf-line); border-bottom: 1px solid var(--amf-line); font-size: 11px;
}
.body .entry-tags::before { content: "タグ"; margin-right: 8px; color: var(--amf-muted); font-weight: 700; }
.body .entry-tags .tag-link { padding: 3px 9px; color: var(--amf-brand-strong); background: var(--amf-brand-soft); border: 0; border-radius: 4px; font-size: 11px; }
.body .entry-tags .tag-link .fa { display: none; }
.body .entry-tags:not(:has(a))  { display: none; }
.body .footer-meta { display: none; }

/* フォロー枠（記事下）：RSS・Feedly だけ。著者の SNS はプロフィール側に出す */
.body .sf-bottom {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 32px 0; padding: 16px;
  color: var(--amf-brand-strong); background: var(--amf-brand-soft); border-top: 3px solid var(--amf-brand);
}
.body .sf-bottom .sns-follow-message { margin: 0; font-size: 20px; font-weight: 700; text-align: left; }
.body .sf-bottom .sns-follow-buttons { display: flex; gap: 8px; flex: 0 0 auto; margin: 0; align-items: center; }
.body .sf-bottom .follow-button:not(.feedly-button):not(.rss-button) { display: none; }
.body .sns-follow .follow-button { width: auto; min-width: 112px; height: 36px; gap: 7px; padding: 5px 12px; border-radius: calc(var(--amf-radius) / 2); font-size: 16px; }
.body .sns-follow .follow-button .follow-count { display: none; }
.body .sns-follow .feedly-button { background-color: #2ab14c; }
.body .sns-follow .rss-button { background-color: #ed4f00; }
.body .sns-follow .feedly-button::after { content: "Feedly"; font-size: 11px; font-weight: 700; }
.body .sns-follow .rss-button::after { content: "RSS"; font-size: 11px; font-weight: 700; }

/* 著者・編集部プロフィール（Cocoon のプロフィール＝WordPress の利用者情報） */
.body .widget-below-sns-buttons { margin: 0; }
.body .author-box {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start; max-width: none; margin: 48px 0 0; padding: 24px 0 16px;
  background: transparent; border: 0; border-top: 1px solid var(--amf-line); border-radius: 0;
}
.body .author-box .author-thumb { float: none; width: 72px; margin: 0; }
.body .author-box .author-thumb img { width: 72px; height: 72px; aspect-ratio: 1; object-fit: cover; border-radius: min(var(--amf-radius), 8px); border: 1px solid var(--amf-line); background: var(--amf-brand-soft); }
.body .author-box .author-content { margin: 0; }
.body .author-box .author-name { margin: 2px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.45; text-align: left; }
.body .author-box .author-name a { color: var(--amf-ink); text-decoration: none; }
.body .author-box .author-description { color: var(--amf-muted); font-size: 14px; line-height: 1.75; }
.body .author-box .author-description p { margin: 0; }
.body .sf-profile { margin-top: 16px; }
.body .sf-profile .sns-follow-message { display: none; }
.body .sf-profile .sns-follow-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.body .sf-profile .feedly-button, .body .sf-profile .rss-button, .body .sf-profile .website-button { display: none; }
.body .sf-profile .x-corp-button { background-color: #000; }
.body .sf-profile .youtube-button { background-color: #c82720; }
.body .sf-profile .x-corp-button::after { content: "公式Xをフォロー"; font-size: 11px; font-weight: 700; }
.body .sf-profile .youtube-button::after { content: "YouTubeチャンネルを見る"; font-size: 11px; font-weight: 700; }
.body .author-box .sns-follow-buttons a.follow-button {
  width: auto; height: 36px; gap: 8px; padding: 5px 12px; color: #fff; border: 1px solid transparent; border-radius: calc(var(--amf-radius) / 2); font-size: 16px;
}
.body .author-box .sns-follow-buttons a.x-corp-button { background-color: #000; }
.body .author-box .sns-follow-buttons a.youtube-button { background-color: #c82720; }
.body .amf-profile-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 0 96px; padding: 0 0 24px; border-bottom: 1px solid var(--amf-line); }
.body .amf-profile-links a { padding: 0 0 2px; color: var(--amf-brand-strong); border-bottom: 1px solid var(--amf-brand); font-size: 12px; font-weight: 700; text-decoration: none; }

/* 関連記事 */
.body .related-entries { margin-top: 64px; }
.body .related-entry-heading { margin: 0 0 16px; padding: 0; background: none; border: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; }
.body .related-entry-heading .related-entry-main-heading::before { content: "RELATED"; display: block; color: var(--amf-brand); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; }

/* ---------- サイドバー ---------- */
.body .sidebar .widget { margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--amf-line); }
.body .sidebar h2, .body .sidebar h3, .body .sidebar .wp-block-search__label {
  display: block; margin: 0 0 16px; padding: 0 0 12px; background: none; border: 0; border-bottom: 2px solid var(--amf-brand); border-radius: 0;
  color: var(--amf-ink); font-size: 16px; font-weight: 700;
}
.body .sidebar .wp-block-search__inside-wrapper { min-height: 44px; }
.body .sidebar .wp-block-search__input { border: 1px solid var(--amf-line); background: var(--amf-canvas); font-size: 12px; }
.body .sidebar .wp-block-search__button { background: var(--amf-brand-strong); color: #fff; border: 0; font-size: 12px; }
.body .sidebar .wp-block-latest-posts { margin: 0; padding: 0; list-style: none; counter-reset: amf-recent; display: grid; gap: 12px; }
.body .sidebar .wp-block-latest-posts li { counter-increment: amf-recent; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 13px; line-height: 1.55; }
.body .sidebar .wp-block-latest-posts li::before { content: counter(amf-recent, decimal-leading-zero); color: var(--amf-brand); font-size: 11px; font-weight: 700; }
.body .sidebar .wp-block-latest-posts a { color: var(--amf-ink); text-decoration: none; }
.body .sidebar .amf-callout { margin: 0; background: transparent; border: 0; padding: 0; }
.body .sidebar .amf-callout > a { grid-column: 2; }

/* ---------- 固定ページ（3 型：編集方針・運営者情報・お問い合わせ） ---------- */
.body.page .article-header { max-width: 820px; padding: 24px 0 48px; border-bottom: 1px solid var(--amf-line); }
.body.page .date-tags { border: 0; padding: 0; }
.body .amf-fixed { max-width: 800px; margin: 48px 0 0; }
.body .amf-fixed > * { margin-block: 0 1.2em; }
.body .amf-fixed h2 { margin: 48px 0 16px; padding: 48px 0 0; border: 0; border-top: 1px solid var(--amf-line); background: none; font-size: 25px; line-height: 1.5; }
.body .amf-draft-note { padding: 8px 12px; color: var(--amf-muted); background: #fff; border: 1px dashed var(--amf-line); font-size: 12px; }
.body .amf-fixed--operator .amf-operator-table { border: 0; border-top: 1px solid var(--amf-line); overflow: visible; }
.body .amf-fixed--operator .amf-operator-table table { min-width: 0; font-size: 15px; }
.body .amf-fixed--operator .amf-operator-table thead { display: none; }
.body .amf-fixed--operator .amf-operator-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--amf-line); }
.body .amf-fixed--operator .amf-operator-table td:first-child { width: 35%; min-width: 150px; color: var(--amf-brand-strong); background: var(--amf-brand-soft); font-weight: 700; }
.body .amf-fixed--operator .amf-operator-table td.amf-unverified { color: var(--amf-muted); font-weight: 600; }
.body .amf-fixed--contact .wpcf7 { margin-top: 32px; }
.body .amf-fixed--contact .wpcf7-form { display: grid; gap: 24px; }
.body .amf-fixed--contact .wpcf7-form p { margin: 0; }
.body .amf-fixed--contact .wpcf7-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.body .amf-fixed--contact .wpcf7-form input:not([type="checkbox"]):not([type="submit"]),
.body .amf-fixed--contact .wpcf7-form select,
.body .amf-fixed--contact .wpcf7-form textarea {
  width: 100%; min-height: 46px; padding: 12px; color: var(--amf-ink); background: #fff; border: 1px solid var(--amf-line);
  border-radius: min(var(--amf-radius), 6px); font: inherit; font-weight: 400;
}
.body .amf-fixed--contact .wpcf7-form textarea { min-height: 180px; }
.body .amf-fixed--contact .wpcf7-acceptance { font-size: 14px; }
.body .amf-fixed--contact .wpcf7-acceptance input { width: 18px; height: 18px; accent-color: var(--amf-brand); }
.body .amf-fixed--contact .wpcf7-submit {
  min-height: 46px; padding: 0 24px; color: #fff; background: var(--amf-brand-strong); border: 1px solid var(--amf-brand-strong);
  border-radius: var(--amf-radius); font-size: 14px; font-weight: 700;
}

/* ---------- フッター ---------- */
.body .footer { color: #fff; background: var(--amf-brand-strong); margin-top: 0; }
.body .footer a { color: #fff; }
.body .footer-bottom { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: start; gap: 32px; padding-block: 48px; }
.body .footer-bottom::before, .body .footer-bottom::after { display: none; }
.body .footer-bottom-logo { grid-column: 1; grid-row: 1; position: static; float: none; }
.body .footer-bottom-content { grid-column: 2; grid-row: 1; }
.body .footer-bottom-logo { float: none; }
.body .footer-bottom-logo .site-name-text { font-size: 22px; font-weight: 700; color: #fff; }
.body .footer-bottom-content { float: none; text-align: left; }
.body .navi-footer-in > .menu-footer { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; margin: 0 0 16px; }
.body .navi-footer-in > .menu-footer li { border: 0; }
.body .navi-footer-in > .menu-footer a { padding: 0 0 1px; border-bottom: 1px solid color-mix(in srgb, #fff 35%, transparent); font-size: 12px; }
.body .copyright { color: color-mix(in srgb, #fff 70%, transparent); font-size: 10px; text-align: left; }


/* ---------- ホーム（固定ページ＋ブロック：主記事＋周辺記事、カテゴリー、最初に読む記事、媒体の道具、新着、編集方針） ---------- */
.body.home .article-header .date-tags, .body.home .article-header .entry-title { display: none; }
.body.home .article-header { padding: 0; border: 0; max-width: none; }
.body.home .ad-content-top { margin: 0 0 32px; }
.body.home .ad-content-bottom { display: none; }
.body .entry-content .amf-home { margin: 0; }
.body .entry-content .amf-home > * { margin-block: 0; }
.body .entry-content .amf-home .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.body .entry-content .amf-home .wp-block-post-featured-image { margin: 0; }
.body .entry-content .amf-home .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: min(var(--amf-radius), 6px); }
.body .entry-content .amf-home .amf-card-cat { margin: 12px 0 0; }
.body .entry-content .amf-home .amf-card-cat a { display: inline-flex; padding: 2px 7px; color: var(--amf-brand-strong); background: var(--amf-brand-soft); border-radius: 4px; font-size: 10px; font-weight: 700; text-decoration: none; }
.body .article .entry-content .amf-home .wp-block-post-title { margin: 8px 0; padding: 0; background: none; border: 0; font-size: 17px; line-height: 1.5; }
.body .entry-content .amf-home .wp-block-post-title a { color: var(--amf-ink); text-decoration: none; }
.body .entry-content .amf-home .wp-block-post-title a:hover { text-decoration: underline; }
.body .entry-content .amf-home .amf-card-date { color: var(--amf-muted); font-size: 10px; }
.body .entry-content .amf-home-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr); gap: 24px; }
.body .article .entry-content .amf-lead-story .wp-block-post-title { margin: 12px 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.38; letter-spacing: -0.035em; }
.body .entry-content .amf-lead-story .wp-block-post-excerpt { max-width: 620px; margin: 0; color: var(--amf-muted); }
.body .entry-content .amf-lead-story .wp-block-post-excerpt p { margin: 0; }
.body .entry-content .amf-lead-support .wp-block-post-template { display: grid; gap: 24px; align-content: start; }
.body .entry-content .amf-lead-support .wp-block-post-title { font-size: 15px; line-height: 1.45; }
.body .entry-content .amf-home-ad { margin: 48px 0 0; }
.body .entry-content .amf-home-ad .ad-area { margin: 0; }
.body .article .entry-content .amf-home .amf-section-heading {
  display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; margin: 64px 0 16px; padding: 0;
  background: none; border: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4;
}
.body .entry-content .amf-home .amf-section-heading::before { content: attr(data-eyebrow); grid-column: 1 / -1; color: var(--amf-brand); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; }
.body .entry-content .amf-home .amf-section-heading::after { content: ""; height: 1px; background: var(--amf-line); }
.body .entry-content .amf-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.body .entry-content .amf-topic-grid a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; color: var(--amf-ink); border-bottom: 1px solid var(--amf-line); font-weight: 600; text-decoration: none; }
.body .entry-content .amf-topic-grid a::after { content: "→"; color: var(--amf-ink); }
.body .entry-content .amf-topic-grid a span { color: var(--amf-brand); font-size: 11px; }
.body .entry-content .amf-card-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.body .entry-content .amf-family-utility {
  display: grid; grid-template-columns: 1fr auto; gap: 0 48px; align-items: center; margin: 64px 0 0; padding: 24px;
  color: var(--amf-brand-strong); background: var(--amf-brand-soft); border-top: 3px solid var(--amf-brand);
}
.body .entry-content .amf-family-utility > * { grid-column: 1; margin: 0; }
.body .article .entry-content .amf-family-utility h3 { margin: 3px 0 0; padding: 0; background: none; border: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; }
.body .entry-content .amf-family-utility p:not(.amf-eyebrow) { max-width: 620px; margin-top: 12px; color: var(--amf-brand-strong); }
.body .entry-content .amf-family-utility ul { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 8px; padding: 0; list-style: none; }
.body .entry-content .amf-family-utility li { font-size: 14px; font-weight: 600; }
.body .entry-content .amf-family-utility li::before { content: "✓ "; }
.body .entry-content .amf-eyebrow { color: var(--amf-brand); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; margin: 0; }
.body .entry-content .amf-compact-list .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--amf-line); counter-reset: amf-row; }
.body .entry-content .amf-compact-list .wp-block-post {
  counter-increment: amf-row; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--amf-line);
}
.body .entry-content .amf-compact-list .wp-block-post::before { content: counter(amf-row, decimal-leading-zero); grid-row: 1 / span 2; color: var(--amf-brand); font-size: 10px; font-weight: 700; }
.body .entry-content .amf-compact-list .amf-card-cat { grid-column: 2; margin: 0; }
.body .article .entry-content .amf-compact-list .wp-block-post-title { grid-column: 2; margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.body .entry-content .amf-compact-list .amf-card-date { grid-column: 3; grid-row: 1; font-size: 9px; }
.body .entry-content .amf-home-policy { margin: 48px 0 0; padding: 24px 0; border-top: 1px solid var(--amf-line); border-bottom: 1px solid var(--amf-line); }
.body .article .entry-content .amf-home-policy h3 { margin: 4px 0 0; padding: 0; background: none; border: 0; font-size: 22px; }
.body .entry-content .amf-home-policy p:not(.amf-eyebrow) { margin: 8px 0 0; color: var(--amf-muted); font-size: 14px; }

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .body .content-in { flex-wrap: wrap; }
  .body .main { flex-basis: 100%; max-width: none; }
  .body .sidebar { flex-basis: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
}

/*900px以下（タブレット）*/
@media screen and (max-width: 900px){
  .body #list.ect-vertical-card, .body .related-list, .body .entry-content .amf-card-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*700px以下（スマホ）*/
@media screen and (max-width: 700px){
  .body { font-size: 16px; }
  .body .wrap { width: min(1200px, calc(100% - 32px)); }
  .body .header div.header-in, .body .header-in { min-height: 76px; }
  .body .footer-bottom, .body .footer-bottom-logo, .body .footer-bottom-content, .body .copyright { text-align: left; justify-content: start; }
  .body .footer-bottom-logo .logo-footer { text-align: left; }
  .body .navi-in > ul { gap: 0; justify-content: space-between; overflow-x: auto; }
  .body .navi-in > ul > li > a { padding: 11px 10px 9px; }
  .body .navi-in > ul > li:first-child > a { padding-left: 0; }
  .body #list.ect-vertical-card, .body .related-list, .body .entry-content .amf-card-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .body .sidebar { grid-template-columns: 1fr; }
  .body .entry-content .amf-home-lead, .body .entry-content .amf-family-utility, .body .entry-content .amf-compact-list .wp-block-post-template { grid-template-columns: 1fr; }
  .body .entry-content .amf-family-utility { gap: 16px; }
  .body .entry-content .amf-family-utility ul { grid-column: 1; grid-row: auto; }
  .body .article .entry-content .amf-lead-story .wp-block-post-title { font-size: 27px; line-height: 1.45; }
  .body .entry-content .amf-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body .entry-content .amf-topic-grid a { grid-template-columns: auto 1fr; padding: 12px; font-size: 13px; }
  .body .entry-content .amf-topic-grid a::after { display: none; }
  .body .article .entry-content .amf-home .amf-section-heading { margin-top: 48px; }
  .body .article .entry-title { font-size: 28px; line-height: 1.45; letter-spacing: -0.025em; }
  .body .archive-title { font-size: 27px; line-height: 1.45; }
  .body .amf-article-lead { font-size: 16px; }
  .body .article .entry-content h2 { font-size: 23px; }
  .body .article .entry-content h3 { font-size: 19px; }
  .body .sns-share-buttons { gap: 4px; }
  .body .sns-share-buttons a { gap: 5px; padding-inline: 4px; }
  .body .sns-share-buttons a .button-caption { display: none; }
  .body .pr-label-l, .body .sf-bottom { flex-direction: column; align-items: flex-start; }
  .body .sf-bottom .sns-follow-buttons { width: 100%; }
  .body .sf-bottom .follow-button { flex: 1; }
  .body .author-box { grid-template-columns: 1fr; gap: 16px; }
  .body .author-box .author-thumb, .body .author-box .author-thumb img { width: 64px; height: 64px; }
  .body .sf-profile .sns-follow-buttons { display: grid; grid-template-columns: 1fr; }
  .body .amf-profile-links { margin-left: 0; display: grid; }
  .body .entry-content ol.amf-steps > li { grid-template-columns: 36px 1fr; gap: 0 12px; padding: 12px; }
  .body .entry-content ol.amf-steps > li::before { width: 36px; height: 36px; }
  .body .amf-fixed h2 { font-size: 22px; }
  .body .amf-fixed--operator .amf-operator-table td { display: block; width: auto; }
  .body .navi-footer-in > .menu-footer { grid-template-columns: 1fr; }
  .body .footer-bottom { grid-template-columns: 1fr; }
  .body .footer-bottom-content { grid-column: 1; grid-row: 2; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

@media (prefers-reduced-motion: reduce) {
  .body *, .body *::before, .body *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
