@charset "UTF-8";

/* =========================================================
   北海道木彫り熊文化財団
   ---------------------------------------------------------
   1. 変数（色・書体・余白）        ← 調整はまずここ
   2. 土台
   3. ヘッダー
   4. ヒーロー
   5. INFORMATION 帯
   6. セクション共通
   7. ごあいさつ・設立目的・事業内容
   8. 書類リスト（情報公開・関連書類）
   9. フッター
   10. タブレット / スマートフォン
   ========================================================= */

/* ---------- 1. 変数 ---------- */

:root {
  /* 色 */
  --ground:      #F7F5F0;  /* 地：温かみのある白 */
  --ground-tint: #EFECE5;  /* 交互に敷く淡い生成り灰 */
  --ink:         #16232B;  /* 墨：紺 */
  --ink-soft:    #3C4E58;  /* 本文 */
  --ink-mute:    #6F7F89;  /* 補足 */
  --accent:      #5B4B86;  /* 江戸紫：リンク・印 */
  --line:        #DAD5CC;
  --line-soft:   #E6E2DA;
  --danger:      #B4362B;  /* 必須・エラー */
  --rule:        #CFC9BE;  /* 細線 */
  --dash:        #D3CDC2;  /* 区切りの点線 */
  --on-ink:      #F5F7F8;  /* 墨の上の文字 */
  --hero-box:    rgba(22, 35, 43, .74);

  /* 書体 */
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans:  "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif;

  /* 余白・幅 */
  --gutter:      28px;
  --max:         1160px;
  --head-col:    200px;   /* セクション左の見出し列 */
  --sec-gap:     56px;    /* 見出し列と本文の間 */
  --sec-pad:     84px;    /* セクションの上下 */
  --header-h:    76px;
}

/* ---------- 2. 土台 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #463968; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.6; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 1em; height: 1em; flex-shrink: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  padding: 12px 20px; background: var(--ink); color: var(--on-ink); text-decoration: none;
}

/* ---------- 3. ヘッダー ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(22, 35, 43, .10);
}
@supports not (backdrop-filter: blur(8px)) { .header { background: var(--ground); } }

.header__inner {
  max-width: var(--max); margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.header__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; min-width: 0;
}
.header__mark { width: 46px; height: auto; flex-shrink: 0; }
.header__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 19px; letter-spacing: 0.1em; white-space: nowrap;
}

.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__list a {
  font-size: 13px; color: var(--ink); text-decoration: none; letter-spacing: 0.08em;
}
.nav__list a:hover { color: var(--accent); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--on-ink) !important;
  padding: 11px 20px;
}
.nav__cta:hover { background: #263842; }
.nav__cta .ico { width: 16px; height: 16px; }

/* ---------- 3-2. スマートフォンのメニュー ---------- */

.menu-btn {
  display: none; flex-shrink: 0; flex-direction: column; gap: 15px;
  width: 52px; height: 48px; padding: 10px 0 0; margin-right: -8px;
  align-items: center; justify-content: flex-start;
  background: transparent; border: 0; border-radius: 4px; cursor: pointer; color: var(--ink);
}
.menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after {
  display: block; width: 22px; height: 1.6px; background: currentColor; border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-btn__bar { position: relative; margin-top: 7px; }
.menu-btn__label { font-size: 10px; line-height: 1; letter-spacing: 0.04em; color: var(--ink-soft); white-space: nowrap; }
.menu-btn__bar::before, .menu-btn__bar::after { content: ""; position: absolute; left: 0; }
.menu-btn__bar::before { top: -7px; }
.menu-btn__bar::after  { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bar::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar::after  { transform: translateY(-7px) rotate(-45deg); }

.spmenu {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  top: var(--header-h);
  background: var(--ground);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 40px;
}
.spmenu[hidden] { display: none; }
.spmenu__list li { border-bottom: 1px solid var(--line); }
.spmenu__list a {
  display: block; padding: 18px 4px;
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.1em;
  color: var(--ink); text-decoration: none;
}
.spmenu__list a:active { background: rgba(22, 35, 43, .06); }
.spmenu__cta {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 3px;
  background: var(--ink); color: var(--on-ink) !important; text-decoration: none;
  font-size: 15px; letter-spacing: 0.1em;
}
.spmenu__cta .ico { width: 18px; height: 18px; }
html.is-menu-open { overflow: hidden; }

/* ---------- 3-3. 上に戻る ---------- */

.totop {
  position: fixed; z-index: 30; right: 22px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 35, 43, .78); color: var(--on-ink);
  box-shadow: 0 2px 10px rgba(22, 35, 43, .18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease;
}
.totop svg { width: 20px; height: 20px; }
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { background: var(--ink); color: var(--on-ink); }
html.is-menu-open .totop { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .totop, .menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after { transition: none; } }

/* ---------- 4. ヒーロー ---------- */

.hero {
  position: relative; overflow: hidden;
  /* 高さは幅の 1/2.2。aspect-ratio と max-height を併用すると
     幅まで 1,672px で止まってしまうため、高さだけを決める */
  height: clamp(440px, 45.45vw, 760px);
  background: #E9ECF0;
}

.hero__bg, .hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

.hero__inner {
  position: relative; height: 100%;
  max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 題字の箱。左は画面の端まで伸ばし、文字は本文の左端に揃える。
   文字の大きさは画面幅に比例させ、アートボード（1,440px）の比率を保つ */
.hero__title {
  position: absolute;
  left: calc(50% - 50vw);
  top: 36%;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 34px) clamp(48px, 6vw, 88px) clamp(20px, 2.4vw, 36px) calc(50vw - 50% + var(--gutter));
  background: var(--hero-box);
  color: var(--on-ink);
  font-family: var(--serif);
  line-height: 1.4;
}
/* 箱の右端に毛彫りの模様 */
/* 模様の画像は箱の高さいっぱい（縦100%）に合わせ、右端に置く */
.hero__title::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: 0;
  background: url("../img/fur-title.png") right center / auto 100% no-repeat;
  mix-blend-mode: screen;
  opacity: .18; pointer-events: none;
}
.hero__type, .hero__name { position: relative; z-index: 1; }
.hero__type {
  display: block;
  font-size: clamp(14px, 1.4vw, 21px); font-weight: 500; letter-spacing: 0.16em;
  margin-bottom: clamp(4px, .6vw, 12px);
}
.hero__name {
  display: block;
  font-size: clamp(28px, 3.15vw, 47px); font-weight: 700; letter-spacing: 0.1em;
}

.meta {
  position: absolute; left: var(--gutter); top: 66%;
  display: flex; align-items: center; gap: clamp(20px, 2vw, 36px);
  color: var(--ink);
}
.meta__item { display: flex; flex-direction: column; gap: 2px; }
.meta__item--area { flex-direction: row; align-items: center; gap: clamp(10px, 1.1vw, 20px); }
.meta__item + .meta__item {
  align-self: stretch; justify-content: center;
  padding-left: clamp(20px, 2vw, 36px);
  border-left: 1px dashed rgba(22, 35, 43, .45);
}
.meta dt { font-size: clamp(11px, .85vw, 13px); color: var(--ink); letter-spacing: 0.08em; line-height: 1.5; }
.meta dd {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(17px, 1.5vw, 23px); letter-spacing: 0.04em; line-height: 1.5;
}
.meta__map { width: clamp(64px, 7.2vw, 108px); height: auto; display: block; }

.hero__bear {
  position: absolute;
  /* 右端はヘッダーの「お問い合わせ」ボタンの右端に揃える
     （.hero__inner と .header__inner は同じ幅・同じ余白） */
  right: var(--gutter); top: 50%;
  width: clamp(240px, 24vw, 400px);
  transform: translateY(-50%);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6));
}

/* ---------- 5. INFORMATION 帯 ---------- */

.band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }

/* 帯とフッターの右端に、木彫り熊の毛彫りを模様として敷く */
.band::after, .footer__inner-wrap::before {
  content: ""; position: absolute; top: 0; right: 0; pointer-events: none;
}
/* INFO：帯の高さいっぱい（縦100%）、右端 */
.band::after {
  bottom: 0; left: 0;
  background: url("../img/fur-info.png") right center / auto 100% no-repeat;
  mix-blend-mode: screen;
  opacity: .16;
}
/* フッター：画像を50%の大きさで右上に */
.footer__inner-wrap::before {
  width: 370px; height: 310px;
  background: url("../img/fur-footer.png") right top / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: .16;
}
.band__inner { position: relative; z-index: 1; }
.band__inner {
  max-width: var(--max); margin-inline: auto;
  padding: 30px var(--gutter);
  display: grid; grid-template-columns: var(--head-col) 1fr; gap: var(--sec-gap);
  align-items: baseline;
}
.band__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; letter-spacing: 0.16em; line-height: 1.5;
}
.band__item { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.band__date { letter-spacing: 0.06em; white-space: nowrap; }
.band__text { color: #DDE2E5; }

/* ---------- 6. セクション共通 ---------- */

.section { padding: var(--sec-pad) 0; }
.section--tint { background: var(--ground-tint); }

.section__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: var(--head-col) 1fr; gap: var(--sec-gap);
}
.section__head { padding-top: 2px; }
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; letter-spacing: 0.1em;
}
.section__en {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0.08em; line-height: 1;
}
.section__mark { width: 7px; height: 15px; flex-shrink: 0; background: var(--accent); }

/* 共通のあしらい：細線の左端だけ紫 */
.rule {
  position: relative; height: 1px; border: 0; margin: 0;
  background: var(--rule);
}
.rule::before {
  content: ""; position: absolute; left: 0; top: -0.5px;
  width: 84px; height: 2px; background: var(--accent);
}
.section__body { min-width: 0; }

/* ---------- 7. ごあいさつ・設立目的・事業内容 ---------- */

.greeting p { font-family: var(--serif); color: var(--ink); line-height: 2.2; text-align: justify; }
.greeting p + p { margin-top: 1.3em; }

.greeting .rule { margin-top: 36px; }
.greeting__sign {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr; justify-items: end;
  gap: 2px; text-align: right;
}
.greeting__org  { font-family: var(--serif); font-size: 14px; letter-spacing: 0.08em; color: var(--ink); }
.greeting__role { font-family: var(--serif); font-size: 13px; color: var(--ink); margin-right: 14px; }
.greeting__person {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px; letter-spacing: 0.16em; color: var(--ink);
}

.purpose p { font-family: var(--serif); color: var(--ink); line-height: 2.2; text-align: justify; }
.purpose p + p { margin-top: 1.3em; }

.business__intro { font-family: var(--serif); font-size: 16px; line-height: 2; color: var(--ink); }
.business__intro + .rule { margin: 22px 0 8px; }
.business { counter-reset: biz; }
.business__item {
  counter-increment: biz;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline;
  padding: 22px 0; line-height: 2;
  font-family: var(--serif); color: var(--ink);
  border-bottom: 1px dashed var(--dash);
}
.business__item::before {
  content: counter(biz) ".";
  font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1;
  color: var(--accent); letter-spacing: 0.04em;
}

/* ---------- 8. 書類リスト ---------- */

.docgroup + .docgroup { margin-top: 44px; }
.docgroup--related { margin-top: 40px; }

.docgroup__title {
  position: relative;
  font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 0.08em;
  padding: 0 2px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
/* 細線の左端だけ紫 */
.docgroup__title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 84px; height: 2px; background: var(--accent);
}
.docgroup + .docgroup { margin-top: 56px; }

.docrow {
  display: grid; grid-template-columns: 108px 1fr; gap: 0 24px;
  padding: 16px 0; border-bottom: 1px dashed var(--dash);
}
.docrow--plain { display: block; padding: 8px 0 4px; }
.docrow__head { line-height: 1.6; padding-top: 6px; }
.docrow__year {
  font-family: var(--serif); font-weight: 600;
  font-size: 19px; letter-spacing: 0.08em; color: var(--accent);
}
.docrow__year small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink); letter-spacing: 0.06em; margin-left: 5px; }

.docgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.docgrid li:nth-child(even) { border-left: 1px solid var(--line-soft); padding-left: 12px; }

/* 行全体がリンク。ホバーで背景がふわっと暗くなる */
.doc {
  display: flex; align-items: flex-start; gap: 9px;
  min-height: 42px; padding: 7px 10px;
  color: var(--ink); text-decoration: none;
  border-radius: 4px;
  transition: background-color .25s ease, color .25s ease;
}
.doc:hover, .doc:focus-visible { background-color: rgba(22, 35, 43, .07); color: var(--ink); }
.doc:hover .ico--doc, .doc:focus-visible .ico--doc { color: var(--accent); }
.doc:active { background-color: rgba(22, 35, 43, .11); }
@media (prefers-reduced-motion: reduce) { .doc { transition: none; } }
.doc .ico--doc { width: 15px; height: 15px; margin-top: 6px; color: var(--ink-mute); transition: color .25s ease; }
/* 長い書類名は行間を詰めて折り返す。アイコンと容量は1行目に揃える */
.doc__title { flex-grow: 1; min-width: 0; font-size: 15px; line-height: 1.6; letter-spacing: 0.04em; padding-top: 2px; }
.doc__meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; white-space: nowrap;
  line-height: 28px;
}

/* 折りたたみ（情報公開） */
details.docrow { display: block; padding: 0; }
details.docrow > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 108px 1fr auto; gap: 0 24px; align-items: baseline;
  padding: 16px 0;
}
details.docrow > summary::-webkit-details-marker { display: none; }
details.docrow > summary:hover .docrow__year { color: #463968; }
.docrow__count { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; }
.docrow__icon {
  width: 9px; height: 9px; align-self: center; margin: 0 6px 4px 0;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform .2s;
}
details.docrow[open] > summary .docrow__icon { transform: rotate(-135deg); margin-bottom: -2px; }
details.docrow[open] > summary .docrow__count { visibility: hidden; }
details.docrow > .docgrid { margin-left: 132px; padding: 0 0 16px; }

.docs__empty { color: var(--ink-mute); }

/* ---------- 9. フッター ---------- */

.footer { background: var(--ink); color: var(--on-ink); }
.footer__inner-wrap { position: relative; overflow: hidden; }
.footer__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin-inline: auto;
  padding: 60px var(--gutter) 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
}
.footer__name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer__type { font-size: 13px; letter-spacing: 0.06em; }
.footer__name span:last-child {
  font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: 0.1em;
}
.footer__address {
  margin-top: 22px; font-style: normal;
  font-size: 14px; line-height: 1.8; color: var(--on-ink);
}
.footer__contact { margin-top: 26px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__tel {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-ink); text-decoration: none; font-size: 18px; letter-spacing: 0.04em;
}
.footer__tel .ico { width: 20px; height: 20px; }
/* 墨の地の上なので、共通の a:hover（深緑）を打ち消し、明るさと下線で示す */
.footer__tel { transition: color .2s ease; }
.footer__tel:hover, .footer__tel:focus-visible { color: #FFFFFF; }
.footer__tel:hover span, .footer__tel:focus-visible span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ground-tint); color: var(--ink) !important; text-decoration: none;
  border-radius: 3px;
  padding: 9px 18px; font-size: 14px; letter-spacing: 0.06em;
}
.footer__btn:hover { background: #FFFFFF; }
.footer__btn .ico { width: 18px; height: 18px; color: var(--ink-soft); }
.footer__links { margin-top: 18px; }
.footer__links a { font-size: 12px; color: #C3CBD0; text-decoration: none; }
.footer__links a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 額装：白い縁 → 紫の線 → 白い台紙 */
.footer__figure { margin: 0; flex-shrink: 0; }
.footer__frame {
  width: 176px;
  background: #FFFFFF;
  border: 3px solid var(--accent);
  outline: 4px solid #FFFFFF;
  padding: 20px 16px 16px;
  text-align: center;
}
.footer__frame img { width: 100%; height: auto; }
.footer__frame figcaption {
  margin-top: 12px; font-size: 11px; line-height: 1.7; color: var(--ink); letter-spacing: 0.04em;
}

.footer__bottom { background: var(--ground); }
.footer__bottom-inner {
  max-width: var(--max); margin-inline: auto; padding: 22px var(--gutter);
  text-align: center;
}
.footer__bottom a { font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom small { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; }

/* =========================================================
   10. タブレット
   ========================================================= */

@media (max-width: 960px) {
  :root { --head-col: 1fr; --sec-gap: 24px; --sec-pad: 64px; --header-h: 70px; }

  .nav__list { gap: 18px; }
  .nav__list a { font-size: 12px; }

  .hero { height: clamp(420px, 62vw, 640px); }
  .hero__title { top: 30%; }
  .meta { top: 66%; }
  .hero__bear { right: var(--gutter); width: clamp(220px, 30vw, 340px); }

  .band__inner { grid-template-columns: 1fr; gap: 6px; padding: 24px var(--gutter); }

  .section__inner { grid-template-columns: 1fr; }
  .section__head { display: flex; align-items: baseline; gap: 16px; }
  .section__en { margin-top: 0; }

  details.docrow > .docgrid { margin-left: 132px; }
}

/* =========================================================
   スマートフォン
   ========================================================= */

@media (max-width: 640px) {
  :root { --gutter: 20px; --sec-pad: 52px; --header-h: 58px; }
  body { font-size: 14px; }

  /* ---- ヘッダー：法人名＋メニューボタン ---- */
  .header__inner { padding: 10px var(--gutter); gap: 10px; }
  .header__mark { width: 34px; }
  .header__name { font-size: 15px; letter-spacing: 0.06em; }
  .nav { display: none; }
  .menu-btn { display: flex; }

  /* ---- メインビジュアル：熊（横長の雪）→ 財団名 → 助成対象（うっすら雪） ---- */
  .hero { height: auto; background: var(--ground); }
  .hero__bg { display: none; }
  /* 財団名と助成対象の後ろに、ひと続きの雪を敷く（熊の部分は自前の背景で上書き） */
  .hero__inner {
    padding: 0 var(--gutter); display: flex; flex-direction: column;
    background: url("../img/hero-sp.jpg") center bottom / cover no-repeat;
  }

  .hero__bear {
    order: 1;
    position: static; transform: none; filter: none;
    align-self: stretch; width: auto; max-width: none; min-width: 0;
    margin: 0 calc(var(--gutter) * -1);
    padding: 30px 25% 26px;
    background: url("../img/hero-1920.jpg") 62% 55% / cover no-repeat;
  }

  .hero__title {
    order: 2;
    position: static; align-self: stretch;
    margin: 0 calc(var(--gutter) * -1);
    padding: 16px var(--gutter) 18px;
    text-align: center;
    background: var(--hero-box);
  }
  .hero__type { font-size: 12px; margin-bottom: 2px; }
  .hero__name { font-size: 23px; }

  .meta {
    order: 3;
    position: static; align-self: stretch; justify-content: center;
    margin: 0 calc(var(--gutter) * -1);
    padding: 18px var(--gutter) 20px;
    background: rgba(250, 250, 248, .35);
    gap: 18px;
  }
  .meta__item + .meta__item { padding-left: 18px; }
  .meta__map { width: 40px; }
  .meta dt { font-size: 11px; }
  .meta dd { font-size: 15px; }

  /* ---- INFO：左に見出し、右に日付と記事を一つの塊で ---- */
  .band__inner {
    grid-template-columns: auto 1fr; gap: 0 18px; align-items: center;
    padding: 18px var(--gutter);
  }
  .band__title { font-size: 15px; letter-spacing: 0.14em; padding-right: 18px; border-right: 1px solid rgba(250, 250, 248, .3); align-self: stretch; display: flex; align-items: center; }
  .band__title-rest { display: none; }
  .band__item { display: block; font-size: 13px; line-height: 1.6; }
  .band__date { display: block; font-size: 12px; color: #C3CBD0; margin-bottom: 2px; }
  .band__text { display: block; }

  .greeting p, .purpose p { line-height: 2.1; }
  .greeting__person { font-size: 20px; }

  .business__item { grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; }

  .docrow { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .docrow__head { padding-top: 0; }
  .docrow__year { font-size: 16px; }
  .docgrid { grid-template-columns: 1fr; gap: 0; }
  .docgrid li:nth-child(even) { border-left: 0; padding-left: 0; }
  .doc { min-height: 40px; padding: 6px 10px; }
  .doc__title { font-size: 14px; }
  .doc__date { display: none; }
  details.docrow > summary { grid-template-columns: 1fr auto auto; gap: 0 14px; padding: 14px 0; }
  details.docrow > .docgrid { margin-left: 0; padding-bottom: 10px; }

  /* ---- フッター：中央揃えで縦一列 ---- */
  .footer__inner-wrap::before { display: none; }
  .footer__inner {
    flex-direction: column; align-items: center; text-align: center;
    gap: 26px; padding: 44px var(--gutter) 40px;
  }
  .footer__figure { order: -1; align-self: center; }
  .footer__frame { width: 148px; padding: 14px 10px 10px; border-width: 2px; outline-width: 3px; }
  .footer__frame figcaption { font-size: 10px; margin-top: 8px; white-space: nowrap; letter-spacing: 0; }
  .footer__body { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .footer__name { flex-direction: column; align-items: center; gap: 2px; }
  .footer__type { font-size: 12px; }
  .footer__name span:last-child { font-size: 21px; }
  .footer__address { margin-top: 14px; font-size: 13px; }
  .footer__contact { margin-top: 22px; width: 100%; flex-direction: column; gap: 12px; }
  .footer__tel { justify-content: center; }
  .footer__btn { width: 100%; justify-content: center; padding: 13px 18px; }

  .totop { right: 14px; bottom: 14px; }
}

/* =========================================================
   11. 下層ページ（お問い合わせ・個人情報保護方針）
   ========================================================= */

/* ---------- ページ見出し ---------- */

.phero { position: relative; overflow: hidden; background: #FFFFFF; }
.phero__inner {
  position: relative;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  height: clamp(180px, 19vw, 280px);
  display: flex; align-items: center;
}
.phero__title {
  position: relative; z-index: 2;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px); letter-spacing: 0.1em;
}
/* 斜めの帯：トップページの雪紋を切り取って敷く */
.phero__band {
  position: absolute; top: 0; bottom: 0;
  right: calc(var(--gutter) - 40px);
  width: clamp(260px, 34vw, 520px);
  background: url("../img/hero-1920.jpg") 70% 60% / cover no-repeat;
  clip-path: polygon(0 0, 52% 0, 100% 100%, 22% 100%);
  opacity: .9;
}
.phero__bear {
  position: absolute; z-index: 1;
  right: var(--gutter); top: 50%;
  width: clamp(150px, 17vw, 260px);
  transform: translateY(-46%);
}

/* ---------- パンくず ---------- */

.crumbs { background: #5A6A73; color: var(--on-ink); }
.crumbs__list {
  max-width: var(--max); margin-inline: auto; padding: 11px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  font-size: 13px; letter-spacing: 0.04em; line-height: 1.6;
}
.crumbs__list li { display: flex; align-items: center; }
.crumbs__list li + li::before {
  content: ""; width: 7px; height: 7px; margin: 0 18px 0 14px;
  border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor;
  transform: rotate(45deg); opacity: .8;
}
.crumbs__list a { color: var(--on-ink); text-decoration: none; }
.crumbs__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 本文 ---------- */

.section--sub { background: var(--ground); padding-bottom: calc(var(--sec-pad) + 24px); }

.form-lead { font-family: var(--serif); font-size: 16px; line-height: 2; color: var(--ink); margin-bottom: 22px; }

.form__panel {
  background: #FFFFFF;
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3.4vw, 48px);
}

.field + .field { margin-top: 24px; }
.field__note { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.field__label {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px;
}
.req { font-size: 12px; font-weight: 500; color: var(--danger); letter-spacing: 0.04em; }

.field__input {
  display: block; width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 16px; min-height: 50px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field__input:hover { border-color: #B3BCC2; }
.field__input:focus {
  outline: none; background: #FFFFFF;
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 75, 134, .18);
}
.field__input--area { min-height: 220px; resize: vertical; line-height: 1.8; }

.field__select { position: relative; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.field__select::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg); pointer-events: none;
}

/* 迷惑メール対策の隠し欄 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 同意 */
.consent { margin-top: 28px; background: #E9ECEE; padding: 22px clamp(20px, 3.4vw, 48px); }
.consent__label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 15px; line-height: 1.8; }
.consent__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
  background: #FFFFFF; border: 1px solid #C2C9CD; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.consent__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border-right: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF;
  transform: rotate(45deg); opacity: 0;
}
.consent__check:checked + .consent__box { background: var(--accent); border-color: var(--accent); }
.consent__check:checked + .consent__box::after { opacity: 1; }
.consent__check:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent__label a { color: var(--ink); text-underline-offset: 4px; }
.consent__label a:hover { color: var(--accent); }

/* ボタン */
.form__actions { margin-top: 40px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 280px; min-height: 60px; padding: 14px 32px;
  font: inherit; font-size: 16px; letter-spacing: 0.1em; text-decoration: none;
  border-radius: 3px; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); }
.btn-primary:hover { background: #263842; border-color: #263842; }
.btn-secondary { background: transparent; color: var(--ink) !important; border: 1px solid #8C9AA3; }
.btn-secondary:hover { background: rgba(22, 35, 43, .06); }

/* 確認画面 */
.confirm__row {
  display: grid; grid-template-columns: 200px 1fr; gap: 0 24px;
  padding: 18px 0; border-bottom: 1px dashed var(--dash);
}
.confirm__row:first-child { padding-top: 0; }
.confirm__row:last-child { border-bottom: 0; padding-bottom: 0; }
.confirm dt { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.confirm dd { margin: 0; font-size: 15px; line-height: 1.9; word-break: break-word; }

/* 送信完了 */
.done__title {
  font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.08em;
  padding: 2px 0 22px; margin-bottom: 26px; border-bottom: 1px dashed var(--dash);
}
.done p { font-family: var(--serif); line-height: 2; color: var(--ink); }
.done p + p { margin-top: 1.1em; }
.done__back { margin-top: 44px !important; }

@media (max-width: 960px) {
  .phero__band { width: 42vw; }
}

@media (max-width: 640px) {
  .phero__inner { height: 150px; }
  .phero__title { font-size: 24px; }
  .phero__band { right: -40px; width: 64vw; }
  .phero__bear { width: 118px; right: 14px; }
  .crumbs__list { font-size: 12px; padding: 9px var(--gutter); }
  .crumbs__list li + li::before { margin: 0 12px 0 9px; width: 6px; height: 6px; }

  .form-lead { font-size: 15px; }
  .field__label { font-size: 14px; }
  .field__input { font-size: 16px; }   /* iPhone で拡大されないよう 16px を保つ */
  .consent__label { font-size: 14px; }
  .form__actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-primary, .btn-secondary { min-width: 0; width: 100%; }

  .confirm__row { grid-template-columns: 1fr; gap: 4px; }
  .done__title { font-size: 18px; }
  .done p br { display: none; }
}

/* ---------- お問い合わせ：エラー・案内・reCAPTCHA ---------- */
.form-notice {
  margin-bottom: 24px; padding: 14px 18px;
  border-left: 3px solid var(--danger); background: rgba(180, 54, 43, .06);
  color: var(--ink); font-size: 14px; line-height: 1.9;
}
.form-notice__tel { white-space: nowrap; }
.field__error { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--danger); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.consent .field__error { text-align: center; }
.form-recaptcha { margin-top: 18px; font-size: 12px; line-height: 1.8; color: var(--ink-mute); text-align: center; }
.form-recaptcha a { color: inherit; }
.grecaptcha-badge { visibility: hidden; }
.tel-noscript { font-size: 13px; }


/* =========================================================
   12. B案：メインビジュアル（雪＋木彫り熊のパネル）と見出し
   ========================================================= */

/* ---- メインビジュアル：左に雪と財団名、右に熊の写真 3 列 × 2 段 ---- */
.hero { background: var(--ground); }
.hero__bg { right: auto; width: 47.7%; }
.hero__bg img {
  /* 雪の稜線が財団名の後ろを通るように、写真の右寄りの部分を見せる（デザインの位置） */
  width: 100%; height: 100%; object-fit: cover; object-position: 80% center;
}

.hero__panels {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52.3%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 3px; padding-left: 3px; background: #FFFFFF;
}
.hero__panel { display: block; min-height: 0; overflow: hidden; }
.hero__panel img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 財団名：帯をやめ、雪の上に墨色で置く */
.hero__title {
  left: var(--gutter); top: 30%;
  padding: 0; background: none; color: var(--ink); overflow: visible;
}
.hero__title::after { display: none; }
.hero__type {
  font-size: clamp(14px, 1.5vw, 22px); font-weight: 400; letter-spacing: 0.12em;
  margin-bottom: 0;
}
/* 「一般財団法人」と法人名の間の細線（左端だけ紫） */
.hero__rule {
  position: relative; display: block; height: 1px;
  margin: clamp(10px, 1vw, 16px) 0 clamp(14px, 1.4vw, 22px);
  background: rgba(22, 35, 43, .28);
}
.hero__rule::before {
  content: ""; position: absolute; left: 0; top: -0.5px;
  width: clamp(40px, 4.4vw, 64px); height: 2px; background: var(--accent);
}
.hero__name { font-size: clamp(26px, 2.7vw, 40px); letter-spacing: 0.06em; }
.meta { top: 62%; }

/* ---- 見出し：日本語見出し・紫の短い線・英字を中央にそろえて縦に ---- */
.section__head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 0;
}
.section__en {
  flex-direction: column; gap: 12px; margin-top: 12px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em;
}
.section__mark { width: 18px; height: 4px; }

/* ごあいさつの見出しに添える熊 */
.section__bear { position: relative; display: block; width: 100%; max-width: 200px; margin-bottom: 18px; }
.section__bear img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* 影は画像側に含める（bear-greeting.png / .webp を差し替える） */

/* 背景色が切り替わる境目に白い線 */
.section + .section { border-top: 4px solid #FFFFFF; }

@media (max-width: 960px) {
  .section__head { flex-direction: column; align-items: center; gap: 0; }
  .section__en { margin-top: 12px; }
}

@media (max-width: 640px) {
  /* 熊の写真（3 列 × 2 段）→ 財団名 → 助成対象 */
  .hero__panels {
    position: static; width: auto; aspect-ratio: 1320 / 1160;
    gap: 2px; padding-left: 0;
  }
  .hero__inner { padding-top: 30px; }
  .hero__title {
    position: static; order: 1; margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center;
    background: none; color: var(--ink);
  }
  .hero__type { font-size: 13px; }
  .hero__rule { align-self: stretch; margin: 10px 12% 12px; }
  .hero__rule::before { left: 50%; width: 36px; transform: translateX(-50%); }
  .hero__name { font-size: 24px; letter-spacing: 0.06em; }
  .meta { order: 2; background: none; padding: 20px var(--gutter) 26px; }

  .section__bear { max-width: 170px; margin-bottom: 14px; }
  .section__head { margin-bottom: 4px; }
}

/* ---------- お問い合わせ：日本語の案内・連続送信の注記 ---------- */
.form-notice__en { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.form-rate { margin-top: 18px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); text-align: center; }
.form-rate + .form-recaptcha { margin-top: 6px; }

/* ---- 助成対象・設立：財団名の細線の右端に収め、写真との間をあける ---- */
@media (min-width: 641px) {
  .meta { gap: clamp(14px, 1.5vw, 28px); }
  .meta__item + .meta__item { padding-left: clamp(14px, 1.5vw, 28px); }
  .meta__item--area { gap: clamp(8px, .9vw, 16px); }
  .meta__map { width: clamp(54px, 5.6vw, 92px); }
  .meta dd { font-size: clamp(15px, 1.35vw, 21px); }
}
