/* =========================================================
   福岡未踏 静的サイト  共通レイアウト（ヘッダー・フッター等）
   本文ブロックの見た目は content.css（旧テーマから抽出）を利用
   ========================================================= */
:root {
  --sh-navy: #012156;
  --sh-accent: #eb5a35;
  --sh-yellow: #fcd03e;
  --sh-cream: #fbf5e4;
  --sh-header-h: 64px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sh-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sh-cream); color: var(--sh-navy); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.sh-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

.sh-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 16px; }
.sh-skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(1, 33, 86, .08);
  transition: background-color .3s, box-shadow .3s;
}
.home .sh-header { background: var(--sh-yellow); box-shadow: none; }
.home.is-scrolled .sh-header { background: #fff; box-shadow: 0 1px 4px rgba(1, 33, 86, .08); }
.sh-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--sh-header-h); padding: 0 clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}
.sh-logo { display: flex; flex: 0 1 auto; min-width: 0; }
.sh-logo img { width: clamp(220px, 34vw, 420px); height: auto; display: block; }

.sh-gnav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.sh-gnav__list a {
  display: block; padding: 10px 10px; color: var(--sh-navy);
  font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.sh-gnav__list a:hover, .sh-gnav__list a[aria-current] { color: var(--sh-accent); }

.sh-burger {
  display: none; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--sh-navy);
}
.sh-burger__bars { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.sh-burger__bars span { display: block; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.sh-burger__label { font-size: 9px; letter-spacing: .05em; font-weight: 700; }
.sh-burger[aria-expanded="true"] .sh-burger__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-burger[aria-expanded="true"] .sh-burger__bars span:nth-child(2) { opacity: 0; }
.sh-burger[aria-expanded="true"] .sh-burger__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sh-drawer {
  position: fixed; inset: var(--sh-header-h) 0 0 0; z-index: 99;
  background: var(--sh-yellow); overflow-y: auto; padding: 16px 24px 40px;
}
.sh-drawer[hidden] { display: none; }
.sh-drawer__list { list-style: none; margin: 0; padding: 0; }
.sh-drawer__list a {
  display: block; padding: 1rem 0; color: var(--sh-navy); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(1, 33, 86, .15);
}
@media (max-width: 1199px) {
  .sh-gnav { display: none; }
  .sh-burger { display: flex; }
}
body.is-drawer-open { overflow: hidden; }

/* ---------- footer ---------- */
.sh-footer { background: var(--sh-navy); color: #fff; font-size: 14px; }
.sh-footer a { color: #fff; }
.sh-footer__inner { max-width: 1080px; margin: 0 auto; padding: 48px 20px 24px; box-sizing: border-box; }
.sh-footer__top { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.sh-footer__logo img { width: min(428px, 100%); display: block; }
.sh-footer__org { margin: 0; line-height: 1.9; }
.sh-footer__nav { display: flex; gap: 20px; list-style: none; padding: 0; margin: 32px 0 0; font-size: 13px; }
.sh-footer__nav a { text-decoration: none; }
.sh-footer__nav a:hover { text-decoration: underline; }
.sh-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.sh-footer__copy { font-size: 12px; letter-spacing: .05em; }
.sh-social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sh-social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--sh-navy); font-size: 18px; transition: opacity .2s;
}
.sh-social li:first-child a { color: #41c9b4; }
.sh-social a:hover { opacity: .8; }

.sh-pagetop {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sh-accent); color: #fff; font-size: 18px; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.is-scrolled .sh-pagetop { opacity: 1; pointer-events: auto; }

/* ---------- news list filter ---------- */
.sh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.sh-filter__btn {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--sh-navy);
  background: #fff; color: var(--sh-navy); transition: background-color .2s, color .2s;
}
.sh-filter__btn[aria-pressed="true"], .sh-filter__btn:hover { background: var(--sh-navy); color: #fff; }
.c-entries__item.is-hidden { display: none !important; }

/* 一覧カード（トップの最新NEWS / NEWS一覧） */
.sh-latest { margin: 0 auto; }
.c-entry-summary__figure img.is-noimage { object-fit: contain !important; background: #fff; padding: 15%; box-sizing: border-box; }
.c-entry-summary__meta .c-meta__item--categories .c-entry-summary__term + .c-entry-summary__term { margin-left: .5em; }
.c-entry-summary__meta .c-entry-summary__term { position: static; display: inline-block; }

/* ---------- 採択プロジェクト一覧（works.html） ---------- */
/* 年度見出し：スマホで「ト」だけ折り返さないよう文字サイズを画面幅に合わせて縮小 */
.works-secTitle { font-size: clamp(1.25rem, 5.2vw, 2rem) !important; letter-spacing: .02em; line-height: 1.4; }
.works-secTitle > span { font-size: clamp(2rem, 9vw, 3rem) !important; margin-right: .1em; }
/* 年度ボタン：文字を小さくし、折り返さないようにする */
.archiveAnker__link { font-size: 14px; letter-spacing: .02em; white-space: nowrap; max-width: none !important; align-items: center; }
@media (max-width: 639px) { .archiveAnker__link { font-size: 13px; max-width: 100% !important; } }
/* 画像差し替え前の枠（2026年度など） */
img.works-entry-summary__figure[src$="works-placeholder.svg"] { object-fit: cover; }

/* 本文中の長いURLがスマホで画面からはみ出さないよう折り返す */
.p-entry-content a { overflow-wrap: break-word; word-break: break-word; }

/* 見出し構造の整理（h1を1ページ1つに）で、見た目を元のまま保つための指定 */
.smb-section__header h1 { font-size: 2.5625rem; letter-spacing: .13em; text-indent: .13em; text-shadow: 8px 8px 11px rgba(1, 33, 86, .12); line-height: 1; font-weight: 900; }
.p-entry-content > h2.sh-h1look { --_font-size-level: 4; background-color: transparent; border-left: 0; padding: 0; color: #012156; }
.p-entry-content > h2.sh-h1look + h2 { --_margin-top: 2; }

