/**
 * agri-koukoku-theme — Design layer（v1.8.0、2026-11-14）
 * 「実務の資料室」：白地に深緑の文字、区切りは罫線、差し色は図表で予約期に使っている稲穂色。
 * 見出しは Zen Kaku Gothic New（要約 PDF と同じ）、本文は Noto Sans JP、数字は Archivo。
 * additional-styles.css のあとに読み込み、見た目だけを上書きする。文章・構成・クラス名は変えない。
 * このファイルを読み込まなければ v1.7.10 の見た目に戻る。
 */

/* ============================================================
   0. トークン
   ============================================================ */
:root {
  --ak-ink: #1B2A23;        /* 文字 */
  --ak-sub: #56645C;        /* 補助の文字 */
  --ak-mute: #7C8983;       /* さらに弱い文字 */
  --ak-green: #2D6A4F;      /* 主色（リンク・ボタン・図の検索） */
  --ak-forest: #1D4A38;     /* 濃い面（帯・フッター） */
  --ak-leaf: #DCEBE1;       /* 薄い緑 */
  --ak-tint: #F2F6F2;       /* 面の色 */
  --ak-rule: #D6DED8;       /* 罫線 */
  --ak-rule-2: #E7ECE8;     /* 弱い罫線 */
  --ak-amber: #C9871F;      /* 差し色（図の予約期と同じ） */
  --ak-amber-ink: #8A5B0A;  /* 差し色の文字 */
  --ak-amber-tint: #FBF3E2;
  --ak-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --ak-num: "Archivo", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --ak-r: 8px;
  --ak-r-s: 5px;
}

/* ============================================================
   1. 土台：文字・リンク・フォーカス
   ============================================================ */
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { color: var(--ak-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5,
.wp-block-site-title,
.wp-block-post-title,
.wp-block-button__link,
.ak-btn,
.ak-header__nav .wp-block-navigation-item__content {
  font-family: var(--ak-head);
  font-feature-settings: "palt" 1;
}
h1, h2, h3, h4 { color: var(--ak-ink); letter-spacing: .01em; }
::selection { background: var(--ak-leaf); color: var(--ak-ink); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--ak-amber); outline-offset: 2px; border-radius: 2px; }
.wp-site-blocks a:not(.wp-block-button__link):not(.ak-btn):focus-visible { outline-offset: 3px; }

/* ============================================================
   2. ヘッダー
   ============================================================ */
.ak-header { border-bottom: 1px solid var(--ak-rule) !important; box-shadow: none; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px); }
.ak-header__inner { height: 68px; padding: 0 28px; }
.ak-header__logo a,
.ak-header__logo .wp-block-site-title a,
.ak-header .wp-block-site-title a {
  font-family: var(--ak-head); font-weight: 900 !important; font-size: 19px !important; letter-spacing: .02em; color: var(--ak-ink) !important;
  display: inline-flex; align-items: center; gap: 10px;
}
/* 暦の2段（予約＝稲穂色、検索＝緑）を小さな印に */
.ak-header .wp-block-site-title a::before {
  content: ""; width: 18px; height: 16px; flex: none;
  background:
    linear-gradient(var(--ak-amber), var(--ak-amber)) 0 0 / 10px 6px no-repeat,
    linear-gradient(var(--ak-green), var(--ak-green)) 0 100% / 18px 6px no-repeat;
  border-radius: 1px;
}
.ak-header__nav .wp-block-navigation__container { gap: 2px; }
.ak-header__nav .wp-block-navigation-item__content {
  font-size: 14px; font-weight: 500; color: var(--ak-ink); padding: 10px 12px; border-radius: 0; background: none !important; position: relative;
}
.ak-header__nav .wp-block-navigation-item__content:hover { color: var(--ak-green); background: none; }
.ak-header__nav .wp-block-navigation-item:not(.ak-nav__cta) .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ak-green); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.ak-header__nav .wp-block-navigation-item:not(.ak-nav__cta) .wp-block-navigation-item__content:hover::after,
.ak-header__nav .current-menu-item:not(.ak-nav__cta) .wp-block-navigation-item__content::after,
.ak-header__nav .wp-block-navigation-item:not(.ak-nav__cta) .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.ak-header__nav .current-menu-item .wp-block-navigation-item__content,
.ak-header__nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--ak-green); font-weight: 700; }
.ak-nav__cta { margin-left: 10px; }
.ak-nav__cta .wp-block-navigation-item__content {
  background: var(--ak-green) !important; color: #fff !important; border-radius: var(--ak-r-s); font-weight: 700; padding: 10px 18px;
}
.ak-nav__cta .wp-block-navigation-item__content:hover { background: var(--ak-forest) !important; }
@media (prefers-reduced-motion: reduce) { .ak-header__nav .wp-block-navigation-item__content::after { transition: none; } }
/* スマホのメニュー（開いたとき） */
.ak-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; padding: 20px 24px 32px; }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--ak-rule-2); }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; font-size: 17px; font-weight: 700; padding: 16px 2px; }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .ak-nav__cta { border-bottom: 0; margin: 18px 0 0; }
.ak-header .wp-block-navigation__responsive-container.is-menu-open .ak-nav__cta .wp-block-navigation-item__content { text-align: center; padding: 15px; font-size: 16px; }
@media (max-width: 781px) { .ak-header__inner { height: 60px; padding: 0 18px; } .ak-header .wp-block-site-title a { font-size: 17px !important; } }

/* ============================================================
   3. ボタン：グラデーションと影をやめ、3種類に揃える
   ============================================================ */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.ak-btn {
  font-weight: 700; border-radius: var(--ak-r-s) !important; box-shadow: none !important; background-image: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; transform: none !important; letter-spacing: .02em;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background),
.ak-btn--primary { background: var(--ak-green) !important; color: #fff !important; border: 1.5px solid var(--ak-green); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link[style*="#2D6A4F"] { background: var(--ak-green) !important; }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.ak-btn--primary:hover { background: var(--ak-forest) !important; border-color: var(--ak-forest); color: #fff !important; }
.wp-block-button.is-style-outline > .wp-block-button__link,
.ak-btn--line { background: #fff !important; color: var(--ak-ink) !important; border: 1.5px solid var(--ak-ink) !important; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ak-btn--line:hover { background: var(--ak-ink) !important; color: #fff !important; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 15px 28px; font-size: 15.5px; line-height: 1.3; }

/* ============================================================
   4. トップ：冒頭（見出しと3つの要点）と、調査レポート・データの一覧
   ============================================================ */
.ak-hero2 { background: #fff; padding: 84px 28px 0; position: relative; }
.ak-hero2__in { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px 72px; align-items: end; }
.ak-hero2__title { font-family: var(--ak-head); font-weight: 900; font-size: clamp(31px, 4.6vw, 58px); line-height: 1.3; letter-spacing: .015em; margin: 0 0 26px; color: var(--ak-ink); word-break: keep-all; overflow-wrap: anywhere; }
.ak-hero2__title span { color: var(--ak-green); }
.ak-hero2__lead { font-size: 17px; line-height: 1.95; color: var(--ak-sub); margin: 0 0 34px; max-width: 34em; }
.ak-hero2__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ak-hero2__values { list-style: none; margin: 0 0 6px; padding: 0; border-top: 2px solid var(--ak-ink); }
.ak-hero2__values li { padding: 14px 0 13px; border-bottom: 1px solid var(--ak-rule); }
.ak-hero2__values b { display: block; font-family: var(--ak-head); font-size: 15.5px; font-weight: 700; color: var(--ak-ink); }
.ak-hero2__values span { display: block; font-size: 12.5px; line-height: 1.6; color: var(--ak-sub); margin-top: 2px; }
.ak-hero2__credit { max-width: 1144px; margin: 30px auto 0; padding: 0 0 40px; font-size: 11.5px; letter-spacing: .06em; color: var(--ak-mute); text-align: right; }
.ak-hero2__credit a { color: var(--ak-sub); text-decoration: none; }
.ak-hero2__credit a:hover { text-decoration: underline; }

/* 冒頭は深緑の面に（白地だけだと色が足りないため）。文字は白、要の一句だけ稲穂色 */
.ak-hero2 { background: var(--ak-forest); }
.ak-hero2__title { color: #fff; }
.ak-hero2__title span { color: #EDBE62; }
.ak-hero2__lead { color: rgba(255,255,255,.84); }
.ak-hero2 .ak-btn--primary { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff !important; }
.ak-hero2 .ak-btn--primary:hover { background: var(--ak-leaf) !important; border-color: var(--ak-leaf) !important; color: var(--ak-forest) !important; }
.ak-hero2 .ak-btn--line { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.ak-hero2 .ak-btn--line:hover { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff !important; }
.ak-hero2__values { border-top-color: #EDBE62; }
.ak-hero2__values li { border-bottom-color: rgba(255,255,255,.22); }
.ak-hero2__values b { color: #fff; }
.ak-hero2__values span { color: rgba(255,255,255,.74); }
.ak-hero2__credit { color: rgba(255,255,255,.6); }
.ak-hero2__credit a { color: rgba(255,255,255,.85); }
.ak-hero2 :focus-visible { outline-color: #EDBE62; }
.ak-home-report--v2 { padding-top: 48px !important; }
/* 冒頭の背景に、圃場の写真を1枚だけ沈める（色は深緑の濃淡に加工済み。右に寄せ、見出しのある左へ向かって消す） */
.ak-hero2 { overflow: hidden; }
.ak-hero2::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(assets/hero-field.webp) right center / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to right, transparent 18%, #000 62%); mask-image: linear-gradient(to right, transparent 18%, #000 62%);
}
.ak-hero2 > *, .ak-hero2__in > * { position: relative; z-index: 1; }
/* 写真の上に乗る3つの要点は、深緑の半透明の面に載せて読みやすくする */
.ak-hero2__values { background: rgba(20, 54, 41, .8); padding: 4px 20px 6px; }
.ak-hero2__values li:last-child { border-bottom: 0; }
.ak-hero2__values span { color: rgba(255,255,255,.86); }
@media (max-width: 960px) {
  .ak-hero2__values { background: transparent; padding: 0; }
  .ak-hero2::before { opacity: .36; background-position: 78% bottom; background-size: auto 60%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 42%, #000 86%); mask-image: linear-gradient(to bottom, transparent 42%, #000 86%); }
}


/* 調査レポート・データの3本（冒頭のすぐ下） */
.ak-home-report--v2 { background: #fff; border: 0; padding: 0 28px 64px; }
.ak-home-report--v2 .ak-home-report__in { max-width: 1144px; border-left: 0; padding: 0; }
.ak-home-report--v2 .ak-home-report__k { font-family: var(--ak-head); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ak-ink); margin: 0; padding: 0 0 10px; border-bottom: 2px solid var(--ak-ink); }
.ak-home-report__list { list-style: none; margin: 0; padding: 0; }
.ak-home-report__list li { display: grid; grid-template-columns: 190px minmax(0, auto) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--ak-rule); }
.ak-home-report__list span { font-size: 12.5px; font-weight: 700; color: var(--ak-amber-ink); }
.ak-home-report__list a { font-family: var(--ak-head); font-size: 16.5px; font-weight: 700; color: var(--ak-ink); text-decoration: none; }
.ak-home-report__list a:hover { color: var(--ak-green); text-decoration: underline; }
.ak-home-report__list em { font-style: normal; font-size: 13.5px; color: var(--ak-sub); }

@media (max-width: 960px) {
  .ak-hero2 { display: flex; flex-direction: column; }
  .ak-hero2__in { display: contents; }
  .ak-hero2__copy { order: 1; }
  .ak-hero2__values { order: 3; margin-top: 34px !important; }
  .ak-hero2__credit { order: 4; width: 100%; }
  .ak-hero2__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; border-top: 0; }
  .ak-hero2__values li { border-top: 2px solid #EDBE62; border-bottom: 0; }
}
@media (max-width: 700px) {
  .ak-hero2 { padding: 40px 18px 0; }
  .ak-hero2__title { font-size: clamp(21px, 6.4vw, 31px); line-height: 1.45; margin-bottom: 18px; letter-spacing: 0; }
  .ak-hero2__lead { font-size: 15.5px; margin-bottom: 24px; }
  .ak-hero2__cta .ak-btn { flex: 1 1 100%; }
  .ak-hero2__values { grid-template-columns: 1fr; }
  .ak-hero2__values li { border-top: 0; border-bottom: 1px solid rgba(255,255,255,.22); padding: 11px 0; }
  .ak-hero2__values li:first-child { border-top: 2px solid #EDBE62; }
  .ak-hero2__credit { margin-top: 18px; padding-bottom: 26px; }
  .ak-home-report--v2 { padding: 0 18px 44px; padding-top: 34px !important; }
  .ak-home-report__list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
}

/* ============================================================
   5. トップ：各セクション（左揃え・罫線・影なし）
   ============================================================ */
.home .ak-section,
.home .ak-pain { padding-left: 28px; padding-right: 28px; }
.home .ak-label { display: none; }                           /* 見出しの上の小ラベルは外す */
.home .ak-section > h2,
.home .ak-pain > h2,
.home .ak-section > .wp-block-heading {
  text-align: left !important; font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 900 !important; line-height: 1.4 !important;
  max-width: 1144px; margin-left: auto !important; margin-right: auto !important; padding-top: 22px; border-top: 2px solid var(--ak-ink);
}
.home .ak-section > h2 + p,
.home .ak-pain > h2 + p,
.home .ak-section > p.has-text-align-center { text-align: left !important; }
.home .ak-section:not(.ak-section--dark) > h2 + p,
.home .ak-pain > h2 + p { color: var(--ak-sub) !important; }
/* 中身の幅を、見出しと同じ 1144px にそろえる */
.home .ak-section.is-layout-constrained > *,
.home .ak-section > *,
.home .ak-pain > * { max-width: 1144px !important; margin-left: auto !important; margin-right: auto !important; }
.home .ak-section > .wp-block-group:has(> h2) { padding-top: 22px; border-top: 2px solid var(--ak-ink); }
.home .ak-section h2 { font-family: var(--ak-head); font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 900 !important; line-height: 1.4 !important; }
.home .wp-block-buttons { gap: 12px !important; }
.home .ak-section .wp-block-buttons.is-content-justification-center,
.home .ak-section .wp-block-buttons { justify-content: flex-start !important; max-width: 1144px; margin-left: auto; margin-right: auto; }
.home .ak-section--pale { background: var(--ak-tint) !important; box-shadow: none !important; }
/* 濃い帯：グラデーションと光彩をやめて面に */
.ak-section--dark { background: var(--ak-forest) !important; background-image: none !important; }
.ak-section--dark::before, .ak-section--dark::after { display: none !important; }
.home .ak-section--dark > h2 { border-top-color: rgba(255,255,255,.55); color: #fff !important; }
.home .ak-section--dark > h2 + p, .home .ak-section--dark > p { color: rgba(255,255,255,.88) !important; }
.home .ak-section--dark .ak-phase-bar { width: 100%; }
.home .ak-section--dark .ak-webads-chips { justify-content: flex-start !important; }
/* 運営者の紹介・悩みの囲み：黒とグラデーションをやめる */
.ak-operator__card { background: var(--ak-forest) !important; background-image: none !important; border-radius: var(--ak-r) !important; box-shadow: none !important; }
.ak-operator__card::before, .ak-operator__card::after { display: none !important; }
.ak-operator__card .wp-block-button > .wp-block-button__link { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff !important; }
.ak-pain__item { background: var(--ak-tint) !important; border-left: 3px solid var(--ak-green) !important; border-radius: 0 var(--ak-r-s) var(--ak-r-s) 0 !important; box-shadow: none !important; transform: none !important; }
.ak-pain__note { background: var(--ak-forest) !important; background-image: none !important; border-radius: var(--ak-r-s) !important; box-shadow: none !important; }
.ak-section--dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff; }
.ak-section--dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--ak-leaf) !important; color: var(--ak-forest) !important; }
.ak-section--dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.75) !important; }
.ak-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--ak-forest) !important; }

/* ============================================================
   6. カード類：影と持ち上げをやめ、罫線と面で示す
   ============================================================ */
.ak-media-card, .ak-post-card, .ak-pattern-card, .ak-res-card, .ak-related__item, .ak-purpose-card, .ak-qa-card, .ak-qa-list__item {
  box-shadow: none !important; transform: none !important; border-radius: var(--ak-r) !important; border-color: var(--ak-rule) !important; background-image: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.ak-media-card::after, .ak-post-card::after { display: none !important; }
.ak-media-card:hover, .ak-post-card:hover, .ak-pattern-card:hover, .ak-related__item:hover, .ak-qa-card:hover, .ak-qa-list__item:hover { border-color: var(--ak-green) !important; box-shadow: none !important; transform: none !important; }

/* ============================================================
   7. 本文ページ：見出し・本文・表・囲み
   ============================================================ */
main > h1, main h1.wp-block-post-title, main h1.wp-block-heading, .ak-qa__title {
  font-size: clamp(27px, 3.1vw, 38px) !important; font-weight: 900 !important; line-height: 1.42 !important; letter-spacing: .012em;
}
main h2.wp-block-heading, main .entry-content h2 {
  font-size: clamp(21px, 2.1vw, 26px) !important; font-weight: 900 !important; line-height: 1.5 !important;
  border-bottom: 0 !important; border-top: 2px solid var(--ak-ink); padding: 18px 0 0 !important; margin-top: 64px !important; margin-bottom: 20px !important;
}
main h3.wp-block-heading, main .entry-content h3 { font-weight: 700 !important; line-height: 1.55 !important; }
main .entry-content > p, main .entry-content > ul, main .entry-content > ol { line-height: 1.95; }
main .entry-content a:not(.wp-block-button__link):not([class*="ak-"]) { color: var(--ak-green); text-decoration: underline; text-decoration-color: rgba(45,106,79,.45); }
main .entry-content a:not(.wp-block-button__link):not([class*="ak-"]):hover { text-decoration-color: currentColor; }
.ak-breadcrumb { font-size: 12.5px; color: var(--ak-mute); }
.ak-breadcrumb a { color: var(--ak-sub); }
.ak-breadcrumb a:hover { color: var(--ak-green); text-decoration: underline; }
.ak-label { text-transform: none; letter-spacing: .04em; color: var(--ak-amber-ink) !important; font-weight: 700; }
.ak-label::after { display: none !important; }

/* 結論の囲み・目次 */
.ak-tldr { background: var(--ak-tint) !important; border: 0 !important; border-left: 4px solid var(--ak-green) !important; border-radius: 0 var(--ak-r) var(--ak-r) 0 !important; box-shadow: none !important; }
.ak-tldr__title { font-family: var(--ak-head); font-weight: 900; color: var(--ak-ink); }
.ak-toc { border: 1px solid var(--ak-rule) !important; border-radius: var(--ak-r) !important; background: #fff !important; box-shadow: none !important; }

/* 表 */
main table { border-collapse: collapse; }
main .wp-block-table table, main .ak-data-table table, main .ak-table table { border: 0 !important; border-top: 2px solid var(--ak-ink) !important; font-size: 14.5px; }
main .wp-block-table thead th, main .ak-data-table thead th, main .ak-table thead th {
  background: #fff !important; color: var(--ak-ink) !important; font-family: var(--ak-head); font-weight: 700; text-align: left;
  border: 0 !important; border-bottom: 1px solid var(--ak-ink) !important; padding: 11px 14px !important; font-size: 13.5px;
}
main .wp-block-table td, main .wp-block-table tbody th,
main .ak-data-table td, main .ak-data-table tbody th,
main .ak-table td, main .ak-table tbody th {
  border: 0 !important; border-bottom: 1px solid var(--ak-rule) !important; padding: 12px 14px !important; vertical-align: top; background: transparent !important; line-height: 1.75;
}
main .wp-block-table tbody th, main .ak-data-table tbody th, main .ak-table tbody th { color: var(--ak-ink) !important; font-weight: 700; text-align: left; background: var(--ak-tint) !important; }
main .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent !important; }
main .ak-data-table caption { caption-side: top; text-align: left; font-size: 13px; color: var(--ak-sub); padding: 0 0 10px; line-height: 1.7; }
main .wp-block-table, main .ak-data-table, main .ak-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 図 */
main .ak-data-chart, main .ak-figure { border: 1px solid var(--ak-rule) !important; border-radius: var(--ak-r) !important; box-shadow: none !important; background: #fff; }
main .ak-data-chart figcaption, main .ak-figure figcaption { color: var(--ak-sub); }

/* 折りたたみ */
main details.ak-fold { border: 0 !important; border-top: 1px solid var(--ak-rule) !important; border-bottom: 1px solid var(--ak-rule) !important; border-radius: 0 !important; padding: 0 !important; margin: 16px 0 26px !important; }
main details.ak-fold + details.ak-fold { margin-top: -27px !important; }
main details.ak-fold > summary { list-style: none; cursor: pointer; padding: 15px 34px 15px 2px; position: relative; font-family: var(--ak-head); font-weight: 700; color: var(--ak-ink) !important; line-height: 1.6; }
main details.ak-fold > summary::-webkit-details-marker { display: none; }
main details.ak-fold > summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ak-green); border-bottom: 2px solid var(--ak-green); transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
main details.ak-fold[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
main details.ak-fold > summary:hover { color: var(--ak-green) !important; }
main details.ak-fold > div { padding: 4px 2px 20px; }
@media (prefers-reduced-motion: reduce) { main details.ak-fold > summary::after { transition: none; } }

/* 出典・あわせて読む */
.ak-data-source { background: #fff !important; border: 0 !important; border-top: 1px solid var(--ak-rule) !important; border-radius: 0 !important; padding: 20px 0 0 !important; }
.ak-data-related { background: var(--ak-tint) !important; border-left: 4px solid var(--ak-green) !important; border-radius: 0 var(--ak-r) var(--ak-r) 0 !important; }

/* ============================================================
   8. 相談の帯・フッター
   ============================================================ */
.ak-cta-band { background: var(--ak-forest) !important; background-image: none !important; border-radius: var(--ak-r) !important; box-shadow: none !important; }
.ak-cta-band::before, .ak-cta-band::after { display: none !important; }
.ak-cta-band .wp-block-button > .wp-block-button__link { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff !important; }
.ak-cta-band .wp-block-button > .wp-block-button__link:hover { background: var(--ak-leaf) !important; }
.ak-sidebar__cta { background: var(--ak-forest) !important; background-image: none !important; border-radius: var(--ak-r) !important; }
.ak-sidebar__cta .wp-block-button > .wp-block-button__link { background: #fff !important; color: var(--ak-forest) !important; border-color: #fff !important; }

.ak-footer { background: var(--ak-forest) !important; }
.ak-footer__inner { padding: 56px 28px 36px; gap: 40px 64px; }
.ak-footer .wp-block-site-title a { font-family: var(--ak-head); font-weight: 900 !important; font-size: 19px !important; letter-spacing: .02em; }
.ak-footer p { color: rgba(255,255,255,.66) !important; }
.ak-footer__nav .wp-block-navigation__container { display: grid !important; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 2px 44px !important; }
.ak-footer .wp-block-navigation-item__content { color: rgba(255,255,255,.86) !important; font-size: 14px; padding: 6px 0; }
.ak-footer .wp-block-navigation-item__content:hover { color: #fff !important; text-decoration: underline; }
.ak-footer__copy { border-top: 1px solid rgba(255,255,255,.18) !important; padding: 18px 28px; }
.ak-footer__copy p, .ak-footer__copy a { color: rgba(255,255,255,.6) !important; }
@media (max-width: 600px) { .ak-footer__nav .wp-block-navigation__container { grid-template-columns: 1fr 1fr; gap: 2px 20px !important; } .ak-footer__inner { padding: 40px 20px 28px; } }

/* ============================================================
   9. フォーム
   ============================================================ */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
  border-radius: var(--ak-r-s) !important; border: 1.5px solid transparent; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ak-amber); box-shadow: 0 0 0 3px rgba(201,135,31,.35); }
.wpcf7 input[type="submit"] { font-family: var(--ak-head); font-weight: 700; border-radius: var(--ak-r-s) !important; background-image: none !important; box-shadow: none !important; }
.wpcf7-not-valid-tip { font-weight: 700; }

/* ============================================================
   10. スマホ：記事ページの横はみ出しを止める（表や図が列の幅を押し広げていた）
   ============================================================ */
.ak-sidebar-layout > .wp-block-column { min-width: 0; max-width: 100%; }
main .ak-figure--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 781px) { .ak-sidebar-layout > .wp-block-column { flex: 0 0 100% !important; width: 100% !important; box-sizing: border-box; } }
main .entry-content { min-width: 0; max-width: 100%; }
main .entry-content figure.wp-block-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
main .entry-content pre { overflow-x: auto; }
main .entry-content figure img, main .entry-content figure svg { max-width: 100%; height: auto; }

/* ============================================================
   11. 記事の横の欄・一覧の細部
   ============================================================ */
.ak-sidebar .wp-block-categories, .ak-sidebar ul.wp-block-categories-list { list-style: none; margin: 0; padding: 0; }
.ak-sidebar .wp-block-categories li { padding: 9px 0; border-bottom: 1px solid var(--ak-rule-2); font-size: 14px; color: var(--ak-mute); }
.ak-sidebar .wp-block-categories li:last-child { border-bottom: 0; }
.ak-sidebar .wp-block-categories a { color: var(--ak-ink); text-decoration: none; font-weight: 500; }
.ak-sidebar .wp-block-categories a:hover { color: var(--ak-green); text-decoration: underline; }
.ak-sidebar > .wp-block-group:not(.ak-sidebar__cta) { border-color: var(--ak-rule) !important; border-radius: var(--ak-r) !important; box-shadow: none !important; }
/* 絞り込みのボタン（媒体一覧・Q&A） */
.ak-filter__btn { border-radius: 999px; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.ak-filter__btn--active { background: var(--ak-ink) !important; border-color: var(--ak-ink) !important; color: #fff !important; }
/* 記事カードの見出し */
.ak-post-card h3, .ak-media-card h3, .ak-res-card__name, .ak-related__name { font-family: var(--ak-head); letter-spacing: .01em; }

/* トップの記入例の表も、本文の表と同じ決まりに */
.home .wp-block-table table, .home table { border-collapse: collapse; }
.home .wp-block-table thead th, .home table thead th { background: #fff !important; color: var(--ak-ink) !important; font-family: var(--ak-head); border: 0 !important; border-top: 2px solid var(--ak-ink) !important; border-bottom: 1px solid var(--ak-ink) !important; }
.home .wp-block-table td, .home table td, .home table tbody th { border: 0 !important; border-bottom: 1px solid var(--ak-rule) !important; background: transparent !important; }

/* 章のラベル（第1章 …）は罫線の下、見出しのすぐ上に置く */
main .ak-label:not(:first-child):has(+ h2) { display: block; border-top: 2px solid var(--ak-ink); padding-top: 18px; margin-top: 64px !important; margin-bottom: 6px !important; }
main .ak-label + h2.wp-block-heading { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
