:root {
  --itoba-navy-950: #032c3c;
  --itoba-navy-900: #04384c;
  --itoba-navy-800: #0a536b;
  --itoba-teal: #0b8e89;
  --itoba-teal-deep: #087a76;
  --itoba-lime: #d9ef8d;
  --itoba-lime-soft: #ebf7bd;
  --itoba-cream: #f8f5ed;
  --itoba-mist: #f2f7f6;
  --itoba-ink: #18333d;
  --itoba-muted: #586d75;
  --itoba-line: #d9e5e7;
  --itoba-white: #ffffff;
  --itoba-radius-sm: 14px;
  --itoba-radius-md: 21px;
  --itoba-radius-lg: 30px;
  --itoba-radius-pill: 999px;
  --itoba-shadow: 0 24px 65px rgba(6, 46, 59, .14);
  --itoba-shadow-soft: 0 11px 32px rgba(6, 46, 59, .08);
  --itoba-content: 1160px;
  --itoba-global-navy: var(--itoba-navy-900);
  --itoba-global-teal: var(--itoba-teal);
  --itoba-global-lime: var(--itoba-lime);
  --itoba-global-line: var(--itoba-line);
}

#header {
  color: var(--itoba-global-navy);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--itoba-global-line);
  box-shadow: 0 7px 25px rgba(4, 56, 76, .06);
}

#header .l-header__bar {
  display: none;
}

/* メニュー・検索アイコン：トップページの透過ヘッダーでは白文字指定になり、白背景で見えなくなるため紺色に固定（2026-11-21） */
#header .c-iconBtn,
#header .c-iconBtn__icon,
#header .c-iconBtn__label {
  color: var(--itoba-global-navy);
}

#header .l-header__inner {
  min-height: 96px;
}

#header .c-headLogo,
#fix_header .c-headLogo {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  column-gap: 15px;
}

#header .c-headLogo::before,
#fix_header .c-headLogo::before {
  width: 58px;
  height: 58px;
  content: "";
  background:
    url("../images/shuttle-mark.png") center / 43px 43px no-repeat,
    var(--itoba-global-lime);
  border-radius: 15px;
  transform: rotate(-5deg);
}

#header .c-headLogo__link,
#fix_header .c-headLogo__link {
  display: grid;
  color: transparent;
  font-size: 0;
  line-height: 1.25;
}

/* 本番に登録済みの旧ロゴ画像と、リニューアル用ロゴ表現の重複を防ぎます。 */
#header .c-headLogo__img,
#fix_header .c-headLogo__img {
  display: none !important;
}

/* 画像ロゴ設定時に残るSWELLの固定高を解除し、文字ロゴ時と同じ高さに揃えます。 */
#header .c-headLogo.-img {
  height: 40px !important;
}

#header .c-headLogo.-img .c-headLogo__link {
  height: auto !important;
}

#header .c-headLogo__link::before,
#fix_header .c-headLogo__link::before {
  content: "伊東市バドミントン協会";
  color: var(--itoba-global-navy);
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 700;
  letter-spacing: .055em;
  white-space: nowrap;
}

#header .c-headLogo__link::after,
#fix_header .c-headLogo__link::after {
  margin-top: 5px;
  content: "ITO CITY BADMINTON ASSOCIATION";
  color: var(--itoba-muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  white-space: nowrap;
}

#header .c-gnav > li > a {
  padding-inline: 13px;
  color: var(--itoba-global-navy);
  font-size: 12px;
  font-weight: 700;
}

#header .c-gnav > li > a::after {
  background: var(--itoba-global-teal);
}

/* メニュー項目に残っている旧サイト用の英語説明は表示しません。 */
#header .c-smallNavTitle,
#fix_header .c-smallNavTitle {
  display: none;
}

/* スクロール時に追従するヘッダー（PCのみ。スマホは通常のヘッダーが上部に固定されます）2026-11-21 再開 */
#fix_header {
  color: var(--itoba-global-navy);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--itoba-global-line);
  box-shadow: 0 7px 25px rgba(4, 56, 76, .08);
}

/* SWELLは背景色を ::before で塗るため、こちらも白にします（そのままだと紺で文字が見えません） */
#fix_header::before {
  background: rgba(255, 255, 255, .98);
}

#fix_header .l-fixHeader__inner {
  min-height: 66px;
  align-items: center;
}

#fix_header .c-gnav > li > a {
  padding-inline: 12px;
  color: var(--itoba-global-navy);
  font-size: 12px;
  font-weight: 700;
}

#fix_header .c-gnav > li > a::after {
  background: var(--itoba-global-teal);
}

#fix_header .c-headLogo {
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 11px;
}

#fix_header .c-headLogo::before {
  width: 42px;
  height: 42px;
  background-size: 31px 31px;
  border-radius: 11px;
}

#fix_header .c-headLogo__link::before {
  font-size: 17px;
}

#fix_header .c-headLogo__link::after {
  margin-top: 2px;
  font-size: 11px;
}

/* 本番の旧フッターウィジェットを候補テーマ内だけで除外します。 */
#footer {
  color: var(--itoba-global-navy);
  background: var(--itoba-white);
  border-top: 1px solid var(--itoba-global-line);
}

#footer .l-footer__widgetArea {
  display: none !important;
}

#footer .l-footer__foot {
  padding: 30px 0 24px;
  color: var(--itoba-global-navy);
  background: var(--itoba-white);
}

#footer .l-footer__foot > .l-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#footer .l-footer__nav {
  order: 1;
  margin-bottom: 22px;
}

#footer .l-footer__nav a {
  color: var(--itoba-global-navy) !important;
}

#footer .itoba-footer-social {
  display: flex;
  order: 2;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

#footer .itoba-footer-social__title {
  color: var(--itoba-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

#footer .itoba-footer-social__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .itoba-footer-social a {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  align-items: center;
  gap: 7px;
  color: var(--itoba-global-navy);
  background: var(--itoba-mist);
  border: 1px solid var(--itoba-global-line);
  border-radius: var(--itoba-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

#footer .itoba-footer-social a:hover,
#footer .itoba-footer-social a:focus-visible {
  color: var(--itoba-white);
  background: var(--itoba-global-teal);
  border-color: var(--itoba-global-teal);
}

#footer .itoba-footer-social svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

#footer .copyright {
  order: 3;
  color: var(--itoba-muted);
}

@media (max-width: 959px) {
  #header .l-header__inner {
    min-height: 72px;
    padding-inline: 14px;
  }

  #header .c-headLogo {
    grid-template-columns: 47px minmax(0, 1fr);
    column-gap: 11px;
  }

  #header .c-headLogo::before {
    width: 44px;
    height: 44px;
    background-size: 32px 32px;
    border-radius: 11px;
  }

  #header .c-headLogo__link::before {
    font-size: clamp(15px, 4.2vw, 19px);
    letter-spacing: .025em;
  }

  #header .c-headLogo__link::after {
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: .1em;
  }

  #footer .itoba-footer-social {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  #header .c-headLogo__link::before {
    font-size: 14px;
  }

  #header .c-headLogo__link::after {
    letter-spacing: .055em;
  }
}

/* DESIGN-SYSTEM.md: standard post pages, 2026-09-08 */
#body_wrap.single-post {
  color: var(--itoba-ink);
  background: var(--itoba-white);
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

#body_wrap.single-post #content {
  width: min(var(--itoba-content), calc(100% - 40px));
  max-width: var(--itoba-content);
  padding-top: 56px;
  padding-bottom: 100px;
}

#body_wrap.single-post .l-mainContent {
  width: min(100%, 860px);
  max-width: 860px;
  margin-inline: auto;
}

#body_wrap.single-post .l-sidebar,
#body_wrap.single-post .c-shareBtns.-fix {
  display: none !important;
}

#body_wrap.single-post .p-articleHead {
  display: flex;
  margin-bottom: 14px;
  padding-bottom: 28px;
  flex-direction: column;
  gap: 13px;
  border-bottom: 1px solid var(--itoba-line);
}

#body_wrap.single-post .c-postTitle__ttl {
  order: 2;
  margin: 0;
  color: var(--itoba-navy-900);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.025em;
}

#body_wrap.single-post .c-postTitle__date {
  position: static !important;
  display: flex;
  order: 1;
  align-items: baseline;
  gap: 7px;
  color: var(--itoba-teal-deep);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transform: none !important;
}

#body_wrap.single-post .c-postTitle__date .__y,
#body_wrap.single-post .c-postTitle__date .__md {
  display: inline;
  font-size: inherit;
}

#body_wrap.single-post .p-articleMetas.-top {
  margin: 0 0 44px;
  color: var(--itoba-muted);
  font-size: 12px;
}

#body_wrap.single-post .c-categoryList__link {
  min-height: 28px;
  padding: 5px 12px;
  color: var(--itoba-white) !important;
  background: var(--itoba-navy-900) !important;
  border-radius: var(--itoba-radius-pill);
  font-size: 11px;
  font-weight: 700;
}

#body_wrap.single-post .post_content {
  color: var(--itoba-ink);
  font-size: 16px;
  line-height: 1.85;
}

#body_wrap.single-post .post_content p,
#body_wrap.single-post .post_content li {
  line-height: 1.85;
}

#body_wrap.single-post .post_content h2 {
  margin-top: 64px;
  padding: 18px 20px;
  color: var(--itoba-navy-900);
  background: var(--itoba-mist);
  border-left: 5px solid var(--itoba-teal);
  border-radius: 0 var(--itoba-radius-sm) var(--itoba-radius-sm) 0;
  font-size: 30px;
  line-height: 1.4;
}

#body_wrap.single-post .post_content h3 {
  margin-top: 48px;
  padding: 0 0 12px;
  color: var(--itoba-navy-900);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--itoba-teal);
  font-size: 24px;
  line-height: 1.45;
}

#body_wrap.single-post .post_content h4 {
  margin-top: 38px;
  color: var(--itoba-navy-900);
  font-size: 19px;
  line-height: 1.5;
}

#body_wrap.single-post .post_content a:not(.wp-block-button__link):not(.wp-block-file__button) {
  color: var(--itoba-teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

#body_wrap.single-post .post_content a:focus-visible,
#body_wrap.single-post .c-shareBtns__btn:focus-visible {
  outline: 3px solid var(--itoba-teal);
  outline-offset: 3px;
}

#body_wrap.single-post .post_content img {
  height: auto;
  border-radius: var(--itoba-radius-sm);
}

#body_wrap.single-post .post_content blockquote {
  padding: 24px 26px;
  color: var(--itoba-ink);
  background: var(--itoba-cream);
  border: 0;
  border-left: 5px solid var(--itoba-lime);
  border-radius: 0 var(--itoba-radius-sm) var(--itoba-radius-sm) 0;
}

#body_wrap.single-post .post_content table {
  border-color: var(--itoba-line);
  font-size: 15px;
}

#body_wrap.single-post .post_content th {
  color: var(--itoba-navy-900);
  background: var(--itoba-mist);
  border-color: var(--itoba-line);
}

#body_wrap.single-post .post_content td {
  border-color: var(--itoba-line);
}

#body_wrap.single-post .post_content .wp-block-file {
  display: flex;
  min-height: 72px;
  margin: 28px 0;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--itoba-cream);
  border: 1px solid var(--itoba-line);
  border-radius: var(--itoba-radius-sm);
}

#body_wrap.single-post .post_content .wp-block-file a:first-child {
  color: var(--itoba-navy-900);
  font-weight: 700;
}

#body_wrap.single-post .post_content .wp-block-file__button,
#body_wrap.single-post .post_content .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  color: var(--itoba-white) !important;
  background: var(--itoba-navy-900) !important;
  border-radius: var(--itoba-radius-pill) !important;
  font-weight: 700;
  text-decoration: none;
}

#body_wrap.single-post .p-articleFoot,
#body_wrap.single-post .c-shareBtns.-bottom,
#body_wrap.single-post .l-articleBottom__section {
  margin-top: 64px;
}

@media (max-width: 760px) {
  #body_wrap.single-post #content {
    width: min(100% - 28px, 860px);
    padding-top: 38px;
    padding-bottom: 77px;
  }

  #body_wrap.single-post .p-articleHead {
    padding-bottom: 22px;
  }

  #body_wrap.single-post .c-postTitle__ttl {
    font-size: 31px;
    line-height: 1.38;
  }

  #body_wrap.single-post .p-articleMetas.-top {
    margin-bottom: 36px;
  }

  #body_wrap.single-post .post_content {
    font-size: 15px;
    line-height: 1.8;
  }

  #body_wrap.single-post .post_content h2 {
    margin-top: 52px;
    padding: 15px 16px;
    font-size: 27px;
  }

  #body_wrap.single-post .post_content h3 {
    margin-top: 42px;
    font-size: 22px;
  }

  #body_wrap.single-post .post_content .wp-block-file {
    align-items: stretch;
    flex-direction: column;
  }

  #body_wrap.single-post .post_content .wp-block-file__button,
  #body_wrap.single-post .post_content .wp-block-button__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #body_wrap.single-post *,
  #body_wrap.single-post *::before,
  #body_wrap.single-post *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

#body_wrap.single-post .p-articleHead {
  align-items: flex-start;
}

/* 記事内の写真ギャラリー：正方形タイルで並べ、押すと拡大表示（2026-11-21）
   旧サイトで作ったJetpackタイルギャラリーと、標準のギャラリーブロックの両方に効かせる */
#body_wrap.single-post .post_content .wp-block-jetpack-tiled-gallery { margin: 24px 0; }
#body_wrap.single-post .post_content .tiled-gallery__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
#body_wrap.single-post .post_content .tiled-gallery__row,
#body_wrap.single-post .post_content .tiled-gallery__col { display: contents; }
#body_wrap.single-post .post_content .tiled-gallery__item,
#body_wrap.single-post .post_content .wp-block-gallery .wp-block-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--itoba-mist, #eef4f5);
  border-radius: var(--itoba-radius-sm, 8px);
  cursor: zoom-in;
}
#body_wrap.single-post .post_content .tiled-gallery__item img,
#body_wrap.single-post .post_content .wp-block-gallery .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .25s ease;
}
#body_wrap.single-post .post_content .tiled-gallery__item:hover img,
#body_wrap.single-post .post_content .wp-block-gallery .wp-block-image:hover img { transform: scale(1.04); }
#body_wrap.single-post .post_content .itoba-zoomable:focus-visible { outline: 3px solid var(--itoba-lime, #c5e86c); outline-offset: 2px; }
@media (max-width: 600px) {
  #body_wrap.single-post .post_content .tiled-gallery__gallery { grid-template-columns: repeat(3, 1fr); gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  #body_wrap.single-post .post_content .tiled-gallery__item img { transition: none; }
}

/* 拡大表示（ライトボックス） */
.itoba-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(4, 22, 29, .94); }
.itoba-lightbox[hidden] { display: none; }
.itoba-lightbox__img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.itoba-lightbox__btn { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 999px; font-size: 26px; line-height: 1; cursor: pointer; }
.itoba-lightbox__btn:hover { background: rgba(255,255,255,.28); }
.itoba-lightbox__btn:focus-visible { outline: 3px solid var(--itoba-lime, #c5e86c); outline-offset: 2px; }
.itoba-lightbox__close { top: 16px; right: 16px; }
.itoba-lightbox__prev { top: 50%; left: 14px; transform: translateY(-50%); }
.itoba-lightbox__next { top: 50%; right: 14px; transform: translateY(-50%); }
.itoba-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #d7e6e8; font-size: 13px; letter-spacing: .08em; }
@media (max-width: 600px) {
  .itoba-lightbox__img { max-width: 100vw; max-height: 78vh; border-radius: 0; }
  .itoba-lightbox__prev, .itoba-lightbox__next { top: auto; bottom: 8px; transform: none; }
  .itoba-lightbox__count { bottom: 22px; }
}


/* PC表示の幅が狭いとき（960〜1239px、iPad横向きなど）はロゴ文字とメニューが重なるため、
   ロゴとメニューを詰めて1行に収める（2026-11-21） */
@media (min-width: 960px) and (max-width: 1239px) {
  #header .l-header__inner { padding-inline: 20px; }
  #header .c-headLogo { grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; flex-shrink: 0; }
  #header .c-headLogo::before { width: 42px; height: 42px; background-size: 31px 31px, auto; border-radius: 12px; }
  #header .c-headLogo__link::before { font-size: 15px; letter-spacing: .03em; }
  #header .c-headLogo__link::after { display: none; }
  #header .c-gnav > li > a { padding-inline: 7px; font-size: 11.5px; }
}
@media (min-width: 960px) and (max-width: 1059px) {
  #header .c-headLogo__link::before { font-size: 14px; }
  #header .c-gnav > li > a { padding-inline: 5px; font-size: 11px; }
}

/* =========================================================================
   2026-11-21 サイト共通の見直し（点検結果への対応）
   ====================================================================== */

/* 書体：独自ページと記事・一覧ページで指定が分かれていたため、サイト全体で同じ並びに統一。
   Webフォントは読み込まず、端末に入っている書体で表示します（表示の速さを優先）。 */
body,
#body_wrap {
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* 見出しの改行：1〜2文字だけが次の行に残らないようにする
   （.itoba-nb で囲んだ語句は途中で折り返さない。その他の見出しは最終行が短くなりすぎないよう調整） */
.itoba-nb { display: inline-block; }
#main_content :where(h1, h2, h3),
.c-postTitle__ttl,
.c-pageTitle {
  text-wrap: pretty;
}

/* 追従ヘッダー：幅が狭いPCではロゴとメニューを詰める（通常ヘッダーと同じ考え方） */
@media (min-width: 960px) and (max-width: 1239px) {
  #fix_header .c-headLogo__link::before { font-size: 15px; letter-spacing: .03em; }
  #fix_header .c-headLogo__link::after { display: none; }
  #fix_header .c-gnav > li > a { padding-inline: 7px; font-size: 11.5px; }
}
@media (min-width: 960px) and (max-width: 1059px) {
  #fix_header .c-headLogo__link::before { font-size: 14px; }
  #fix_header .c-gnav > li > a { padding-inline: 5px; font-size: 11px; }
}

/* スマホのヘッダー：協会名と英字を左でそろえ、シャトルマークと一体に見せる */
@media (max-width: 959px) {
  #header .c-headLogo__link { justify-items: start; text-align: left; }
}

/* スマホのメニュー（左から出るメニュー）をサイトの配色にそろえる */
#sp_menu .c-widget__title.-spmenu { color: var(--itoba-white); background: var(--itoba-navy-900); letter-spacing: .12em; }
#sp_menu .p-spMenu__nav a { min-height: 50px; padding-block: 14px; color: var(--itoba-navy-900); font-size: 15px; font-weight: 700; }
#sp_menu .p-spMenu__nav a::before { color: var(--itoba-teal-deep); }

/* フッターのメニュー：スマホで押しやすい高さにする */
@media (max-width: 959px) {
  #footer .l-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
  #footer .l-footer__nav a { display: inline-flex; min-height: 44px; padding: 0 10px; align-items: center; font-size: 13px; }
  #footer .l-footer__foot { padding-bottom: 76px; }
}

/* 「上へ戻る」ボタン：スマホでは少し小さく・半透明にして、本文やボタンへの重なりを減らす */
@media (max-width: 959px) {
  .p-fixBtnWrap { right: 12px; bottom: 14px; }
  #pagetop.c-fixBtn { width: 44px; height: 44px; opacity: .88; }
}

/* 検索結果・404：サイドバーなしの1カラムにして、他のページと同じ色・書体に */
#body_wrap.itoba-plain-list #sidebar,
#body_wrap.page #sidebar { display: none !important; }
#body_wrap.itoba-plain-list #content,
#body_wrap.page #content:has(> main.l-mainContent) { padding-top: 56px; padding-bottom: 96px; color: var(--itoba-ink); }
#body_wrap.itoba-plain-list main.l-mainContent { width: min(100%, 1000px) !important; max-width: 1000px; margin-inline: auto !important; }
#body_wrap.page #content > main.l-mainContent { width: min(100%, 860px) !important; max-width: 860px; margin-inline: auto !important; }
#body_wrap.itoba-plain-list .c-pageTitle,
#body_wrap.page #content > main.l-mainContent .c-pageTitle { margin-bottom: 32px; padding-bottom: 18px; color: var(--itoba-navy-900); border-bottom: 1px solid var(--itoba-line); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.35; }
#body_wrap.itoba-plain-list .p-postList__title { color: var(--itoba-navy-900); font-weight: 700; }
#body_wrap.itoba-plain-list .c-pagination .page-numbers { color: var(--itoba-navy-900); background: var(--itoba-mist); }
#body_wrap.itoba-plain-list .c-pagination .page-numbers.current { color: var(--itoba-white); background: var(--itoba-navy-900); }

/* 通常の固定ページ（プライバシーポリシーなど）の本文 */
#body_wrap.page #content > main.l-mainContent .post_content { color: var(--itoba-ink); font-size: 16px; line-height: 1.85; }
#body_wrap.page #content > main.l-mainContent .post_content h2 { margin-top: 56px; padding: 16px 20px; color: var(--itoba-navy-900); background: var(--itoba-mist); border-left: 5px solid var(--itoba-teal); border-radius: 0 var(--itoba-radius-sm) var(--itoba-radius-sm) 0; font-size: 24px; line-height: 1.45; }
#body_wrap.page #content > main.l-mainContent .post_content h2::before { content: none; }
#body_wrap.page #content > main.l-mainContent .post_content h3 { margin-top: 40px; padding: 0 0 10px; color: var(--itoba-navy-900); background: transparent; border: 0; border-bottom: 2px solid var(--itoba-teal); font-size: 20px; }
#body_wrap.page #content > main.l-mainContent .post_content h3::before { content: none; }
#body_wrap.page #content > main.l-mainContent .post_content a { color: var(--itoba-teal-deep); text-decoration: underline; text-underline-offset: .18em; }

/* 404 */
#body_wrap.error404 { background: var(--itoba-white); }
#body_wrap.error404 #content { background: transparent; }
#body_wrap.error404 .c-ttl404 { color: var(--itoba-navy-900); font-size: clamp(24px, 3vw, 32px); }
#body_wrap.error404 .post_content { color: var(--itoba-ink); }
#body_wrap.error404 .is-style-more_btn a { color: var(--itoba-white); background: var(--itoba-navy-900); border-color: var(--itoba-navy-900); border-radius: var(--itoba-radius-pill); font-weight: 700; }
.itoba-404-links { width: min(100% - 28px, 760px); margin: 44px auto 0; padding: 28px; background: var(--itoba-mist); border: 1px solid var(--itoba-line); border-radius: var(--itoba-radius-md); }
.itoba-404-links p { margin: 0 0 14px; color: var(--itoba-navy-900); font-size: 15px; font-weight: 700; text-align: center; }
.itoba-404-links ul { display: flex; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.itoba-404-links a { display: inline-flex; min-height: 46px; padding: 0 18px; align-items: center; gap: 8px; color: var(--itoba-navy-900); background: var(--itoba-white); border: 1px solid var(--itoba-line); border-radius: var(--itoba-radius-pill); font-size: 14px; font-weight: 700; text-decoration: none; }
.itoba-404-links a:hover { border-color: var(--itoba-teal-deep); }
.itoba-404-links a:focus-visible { outline: 3px solid var(--itoba-teal-deep); outline-offset: 2px; }

/* 記事ページ：パンくず・日付などの小さい文字を読みやすく */
#breadcrumb .p-breadcrumb__list,
#breadcrumb .p-breadcrumb__item { font-size: 12px; }
#body_wrap.single-post .c-postTitle__date { color: var(--itoba-teal-deep); }
#body_wrap.single-post .post_content a:not(.wp-block-button__link):not(.wp-block-file__button) { color: var(--itoba-teal-deep); }
#body_wrap.single-post .p-articleMetas .c-postTimes__posted,
#body_wrap.single-post .p-articleMetas .c-postTimes__modified,
#body_wrap.single-post .p-relatedPosts .p-postList__times,
#body_wrap.single-post .p-relatedPosts .c-postTimes__posted { font-size: 12px; }
#body_wrap.single-post .p-relatedPosts .p-postList__title { font-size: 13px; line-height: 1.6; }

/* 記事ページ：ダウンロードボタンに文字が無いとき（アイコンだけ）の補い */
#body_wrap.single-post .post_content .wp-block-file__button:empty::after { content: "ダウンロード"; }

/* 記事ページ：要項・結果の「テキスト版」。画像の下に折りたたんで置き、押すと文字で読める
   （検索エンジンや読み上げにも内容が伝わります） */
#body_wrap.single-post .post_content details { margin: 28px 0; background: var(--itoba-white); border: 1px solid var(--itoba-line); border-radius: var(--itoba-radius-sm); }
#body_wrap.single-post .post_content details > summary { display: flex; min-height: 56px; padding: 14px 20px; align-items: center; justify-content: space-between; gap: 14px; color: var(--itoba-navy-900); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
#body_wrap.single-post .post_content details > summary::-webkit-details-marker { display: none; }
#body_wrap.single-post .post_content details > summary::after { width: 11px; height: 11px; margin-right: 4px; flex: 0 0 auto; content: ""; border-right: 2px solid var(--itoba-teal-deep); border-bottom: 2px solid var(--itoba-teal-deep); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
#body_wrap.single-post .post_content details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
#body_wrap.single-post .post_content details[open] > summary { border-bottom: 1px solid var(--itoba-line); }
#body_wrap.single-post .post_content details > summary:hover { background: var(--itoba-mist); }
#body_wrap.single-post .post_content details > summary:focus-visible { outline: 3px solid var(--itoba-teal-deep); outline-offset: 2px; }
#body_wrap.single-post .post_content details > :not(summary) { margin-inline: 20px; }
#body_wrap.single-post .post_content details > summary + * { margin-top: 18px; }
#body_wrap.single-post .post_content details > :last-child { margin-bottom: 20px; }
#body_wrap.single-post .post_content details dl { display: grid; margin-block: 18px 20px; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--itoba-line); }
#body_wrap.single-post .post_content details dt,
#body_wrap.single-post .post_content details dd { margin: 0; padding: 11px 12px; border-bottom: 1px solid var(--itoba-line); font-size: 14px; line-height: 1.75; }
#body_wrap.single-post .post_content details dt { color: var(--itoba-navy-900); background: var(--itoba-mist); font-weight: 700; }
@media (max-width: 600px) {
  #body_wrap.single-post .post_content details > :not(summary) { margin-inline: 14px; }
  #body_wrap.single-post .post_content details dl { grid-template-columns: 1fr; }
  #body_wrap.single-post .post_content details dt { padding-bottom: 6px; border-bottom: 0; }
}

/* 検索結果・通常の固定ページの背景は、他のページと同じ白にする */
#body_wrap.itoba-plain-list,
#body_wrap.page { background: var(--itoba-white); }
#body_wrap.itoba-plain-list #content,
#body_wrap.page #content { background: transparent; }

/* 新フォーマットのアイキャッチ（左に文字・右にシャトル）を縦長・正方形の小さな枠に入れるときは、
   文字が途中で切れないようシャトル側を見せる */
.itoba-event-thumb img[src*="2026brand"],
.itoba-exchange-card-image img[src*="2026brand"],
.itoba-report-card-image img[src*="2026brand"] { object-position: 90% center; }

/* 2026-11-22 改行の仕上げ：題名や短い説明文で、最後の行に1〜2文字だけ残らないようにする。
   題名・リード文は行の長さをそろえ（balance）、それ以外の文章は最終行だけ調整する（pretty）。
   対応していないブラウザでは従来どおりの改行になる。 */
#body_wrap { text-wrap: pretty; line-break: strict; } /* strict：行頭に「ー」や小さい「っ・ゃ」が来ないようにする */
[class*="itoba-"] a strong,
a[class*="itoba-"] strong,
.itoba-news-card__title,
.p-pnLinks__title,
.itoba-report__body > span,
.itoba-team-card b,
.itoba-section-heading > p,
[class*="itoba-"] header > p,
[class*="itoba-"][class*="-container"] > p,
[class*="itoba-"] :where(h1, h2, h3) + p { text-wrap: balance; }
