/*
  下層ページ（イドベタとは・活動メンバー など）と、切り替え中のお知らせ・投稿などの共通シェル。
  トップ・GYOMO と同じ世界：全面ミント、白い角丸カード、丸く切り抜いた写真、極太の見出し、波の区切り。
  例外（ブランドに合わせるため許可）：角丸カード（12px・24px）、丸い写真（50%）、ピル 999px。
  影・グラデーション・イラスト・絵文字・アイコンフォントは使わない（インライン SVG の波形のみ）。
  数字は Inter 600、見出しは Noto Sans JP 700。字間は 0。本文は 16px 以上。
  Elementor の本文（お知らせ・投稿）と同居するので、リセットは .idb-sub 配下に限り、詳細度ゼロの :where() で書く。
*/
:root{
  --green:#22AC38;
  --mint:#E0FBFC;
  --orange:#F39A1E;
  --orange-hover:#E08A0F;
  --orange-deep:#D9780A;
  --teal:#30C4B6;
  --teal-hover:#26A99C;
  --teal-deep:#0E8F83;
  --leaf:#58B88B;
  --yellow:#F7D33C;
  --navy:#1B2F5E;
  --ink:#1F1F1F;
  --gutter:48px;
  --section-y:80px;
}
.idb-sub *,.idb-sub *::before,.idb-sub *::after{box-sizing:border-box}
html{scroll-behavior:smooth}
.idb-sub{
  margin:0;
  font-family:"Noto Sans JP",sans-serif;font-weight:400;
  font-size:16px;line-height:1.8;color:var(--ink);background:var(--mint);
  overflow-x:hidden;
}
.idb-sub img{display:block;max-width:100%;height:auto}
.idb-sub a{color:inherit}
:where(.idb-sub .sub-main,.idb-sub .shead,.idb-sub .footer) :where(h1,h2,h3,h4,p,ul,ol,dl,dd,figure){margin:0}
:where(.idb-sub .sub-main,.idb-sub .shead,.idb-sub .footer) :where(ul,ol){padding:0;list-style:none}
:where(.idb-sub .sub-main,.idb-sub .shead,.idb-sub .footer) :where(h1,h2,h3,h4){font-family:"Noto Sans JP",sans-serif;font-weight:700;letter-spacing:0;line-height:1.4}
.idb-sub .num{font-family:"Inter",sans-serif;font-weight:600;letter-spacing:0}
.idb-sub .wrap{max-width:1200px;margin:0 auto;padding:0 var(--gutter)}
.idb-sub .wrap.narrow{max-width:920px}
.idb-sub a:focus-visible,.idb-sub summary:focus-visible,.idb-sub .btn:focus-visible,.idb-sub input:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ボタン */
.idb-sub .btn{display:inline-block;padding:14px 32px;border:0;border-radius:999px;font:inherit;font-weight:700;text-decoration:none;line-height:1.4;letter-spacing:0;cursor:pointer;transition:background-color .2s,color .2s}
.idb-sub .btn-orange{background:var(--orange);color:var(--ink)}
.idb-sub .btn-orange:hover{background:var(--orange-hover)}
.idb-sub .btn-teal{background:var(--teal);color:var(--ink)}
.idb-sub .btn-teal:hover{background:var(--teal-hover)}
.idb-sub .btn-navy{background:var(--navy);color:#fff}
.idb-sub .btn-navy:hover{background:#12214A}
.idb-sub .btn-navy:focus-visible{outline-color:var(--navy)}
.idb-sub .btns{display:flex;flex-wrap:wrap;gap:16px}
.idb-sub .btns.center{justify-content:center}

/* 波形：緑とティールの 2 層＋次の区画の色 */
.idb-sub .wave{display:block;line-height:0;background:var(--from)}
.idb-sub .wave svg{display:block;width:100%;height:56px}
.idb-sub .wave .p1{fill:var(--teal)}
.idb-sub .wave .p2{fill:var(--leaf)}
.idb-sub .wave .p3{fill:var(--to)}

/* ヘッダー：丸いロゴ＋ピルのナビ */
.shead{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px}
.slogo{display:block;flex:none;width:96px;height:96px;border-radius:50%;background:var(--green);padding:8px;line-height:0}
.slogo img{width:100%;height:100%}
.spill{display:flex;gap:4px;background:#fff;border-radius:999px;padding:6px}
.spill a{display:block;padding:8px 18px;border-radius:999px;font-weight:700;font-size:16px;line-height:1.5;text-decoration:none;white-space:nowrap;transition:background-color .2s}
.spill a:hover{background:var(--yellow)}
.smenu{display:none;position:relative}
.smenu summary{list-style:none;cursor:pointer;font-weight:700;padding:10px 22px;background:#fff;border-radius:999px;line-height:1.4}
.smenu summary::-webkit-details-marker{display:none}
.smenu summary:hover{background:var(--yellow)}
.smenu ul{position:absolute;right:0;top:calc(100% + 8px);z-index:40;background:#fff;border-radius:24px;min-width:230px;padding:8px 0}
.smenu li a{display:block;padding:10px 24px;text-decoration:none;font-weight:700}
.smenu li a:hover{background:var(--yellow)}

/* タイトル帯：文字が主役。右に団体の帯画像（小さく） */
.sub-fv{padding:8px 0 24px;background:var(--mint)}
.sub-fv .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px}
.sub-fv h1{font-size:clamp(32px,5vw,56px);color:var(--orange-deep);overflow-wrap:anywhere}
.sub-fv .lead{margin-top:16px;font-size:18px;font-weight:700;color:var(--teal-deep);max-width:34em}
.sub-fv .sticker{display:block;width:230px;flex:none}
.sub-fv-side{display:flex;flex-direction:column;align-items:flex-end;gap:16px;width:380px;max-width:100%}
.sub-fv-side:has(.fv-photo) .sticker{width:170px}
.fv-photo{margin:0;width:100%}
.fv-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:24px;border:6px solid var(--teal)}
.sub-fv-side{min-width:0}

/* 区画と見出し：色の丸印 */
.sec{padding:var(--section-y) 0;background:var(--mint)}
.sec h2{font-size:clamp(24px,3.2vw,34px);display:flex;align-items:center;gap:14px}
.sec h2::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:var(--orange)}
.sec.teal h2::before{background:var(--teal)}
.sec h3{font-size:clamp(20px,2.4vw,24px)}
.sec .sub{margin-top:8px;font-weight:700;color:var(--teal-deep)}
.sec .head-gap{margin-top:32px}
.sec .grid2>.card+.card,.sec .grid3>.card+.card{margin-top:0}
.sec p+p{margin-top:12px}
.sec.tight{padding-top:0}

/* カード */
.card{background:#fff;border-radius:24px;padding:32px 40px}
.card>h2,.card>h3{margin-bottom:16px}
.tabcard{display:block}
.tab{display:inline-block;margin-left:24px;padding:8px 28px;border-radius:12px 12px 0 0;font-weight:700;line-height:1.5;background:var(--orange);color:var(--ink)}
.tab-green{background:var(--green);color:#fff}
.tab-teal{background:var(--teal)}
.tab-yellow{background:var(--yellow)}
.tabcard .card{border-top-left-radius:0}

/* 並べる */
.grid2,.grid3,.grid4{display:grid;gap:24px}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid2>*,.grid3>*,.grid4>*{min-width:0}
.sec .grid2,.sec .grid3,.sec .grid4,.sec .rows,.sec .card+.card,.sec .statement,.sec .figs,.sec .btns{margin-top:32px}

/* 写真 */
.photo img{width:100%;border-radius:16px}
.photo img.nat,.band2 img.nat{width:auto;max-width:100%;height:auto;aspect-ratio:auto;object-fit:initial}
.photo.small{max-width:480px;margin-left:auto;margin-right:auto}
.photo figcaption,.cap{margin-top:12px;font-size:16px}
.circle{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;border:6px solid var(--teal)}
.circle.orange{border-color:var(--orange)}
.circle.yellow{border-color:var(--yellow)}
.works{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.works img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px}
.band2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.band2 img,.band3 img,.band4 img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px}
.band3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.band4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.band2 figure,.band3 figure,.band4 figure{margin:0}
.band2 figcaption,.band3 figcaption,.band4 figcaption{margin-top:8px;font-size:16px}
.pillars .pic{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;margin-bottom:12px}
.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px}
.photo.wide{max-width:900px;margin-left:auto;margin-right:auto}
.split.top{align-items:start}
.sec.tight+.sec{padding-top:24px}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:center}
.split.rev{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}

/* 人物 */
.strengths li+li{margin-top:18px}
.strengths h3{color:var(--green);font-size:20px}
.namebar{display:flex;align-items:center;gap:20px;margin-bottom:16px}
.avatar{flex:none;width:112px;height:112px;border-radius:50%;object-fit:cover;object-position:top;border:6px solid var(--teal)}

/* 大きな主張 */
.statement{background:#fff;border-radius:24px;padding:32px 40px;text-align:center}
.statement .big{font-size:clamp(22px,3vw,32px);font-weight:700;line-height:1.5;color:var(--green)}
.statement .big+p{margin-top:12px}
.statement.orange .big{color:var(--orange-deep)}
.statement .quote{font-size:clamp(24px,3.4vw,38px);font-weight:700;line-height:1.5}
.statement .quote em{font-style:normal;color:#C62828}

/* 数字カード */
.figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.fig{background:#fff;border-radius:24px;padding:28px 24px;text-align:center}
.fig .tag{font-weight:700;color:var(--teal-deep)}
.fig .big{margin-top:8px;font-family:"Inter","Noto Sans JP",sans-serif;font-weight:600;font-size:clamp(40px,5vw,60px);line-height:1.2;color:var(--orange-deep);letter-spacing:0}
.fig .unit{display:block;font-weight:700;font-size:20px;line-height:1.4}
.fig p{margin-top:12px;text-align:left}

/* 項目と内容の表（行は点線ではなく細い線で区切る） */
.rows{background:#fff;border-radius:24px;padding:8px 40px}
.rows>div{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:8px 24px;padding:16px 0;border-bottom:2px solid var(--mint)}
.rows>div:last-child{border-bottom:0}
.rows dt{font-weight:700;color:var(--teal-deep)}
.rows dd{margin:0;overflow-wrap:anywhere}
.rows .num{font-size:18px}

/* 番号つきの項目 */
.numlist{display:grid;gap:20px;counter-reset:n}
.numlist.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.numlist.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.numlist>li{position:relative;background:#fff;border-radius:24px;padding:24px 28px 24px 84px;min-width:0}
.numlist>li::before{counter-increment:n;content:counter(n);position:absolute;left:24px;top:22px;width:44px;height:44px;border-radius:50%;background:var(--orange);color:var(--ink);font-family:"Inter",sans-serif;font-weight:600;font-size:20px;line-height:44px;text-align:center}
.numlist.teal>li::before{background:var(--teal)}
.numlist b{display:block;font-size:18px;line-height:1.5}
.numlist span{display:block;margin-top:4px}

/* 箇条書き */
.bul li{position:relative;padding-left:22px}
.bul li+li{margin-top:6px}
.bul li::before{content:"";position:absolute;left:2px;top:.75em;width:10px;height:10px;border-radius:50%;background:var(--teal)}

/* 5 ステップ（地域共創）：丸い写真に番号 */
.steps5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;margin-top:32px}
.steps5 li{text-align:center;min-width:0}
.steps5 .circle{max-width:180px;margin:0 auto}
.steps5 .num{display:block;margin-top:12px;font-size:28px;color:var(--orange-deep);line-height:1.2}
.steps5 b{display:block;font-size:20px}
.steps5 span.t{display:block;margin-top:6px;text-align:left}

/* つながり（流れ） */
.flow{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin-top:32px}
.flow>li{flex:1 1 150px;min-width:0;background:#fff;border-radius:24px;padding:20px 16px;text-align:center}
.flow>li.ar{flex:0 0 auto;background:none;padding:0;display:flex;align-items:center;font-weight:700;color:var(--teal-deep)}
.flow b{display:block;font-size:20px}
.flow .goal{display:inline-block;margin-top:8px}

/* SDGs の目標（色の四角＋番号） */
.goals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:32px}
.goals>li{background:#fff;border-radius:24px;padding:20px;min-width:0}
.goal{display:inline-block;min-width:44px;padding:2px 10px;border-radius:8px;color:#fff;font-family:"Inter",sans-serif;font-weight:600;line-height:1.6;text-align:center}
.g4{background:#C5192D}.g8{background:#A21942}.g9{background:#D9500E}.g11{background:#B86E00}.g12{background:#9A6A1F}.g13{background:#3F7E44}.g14{background:#0A7FB8}
.goals .kw{display:block;margin-top:10px;font-weight:700;font-size:18px}
.goals .off{display:block;font-size:16px;color:#555}
.goals .what{display:block;margin-top:6px}

/* 活動カード（めぐるラボ） */
.acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:32px}
.acts>li{background:#fff;border-radius:24px;padding:24px;text-align:center;min-width:0}
.acts .circle{max-width:200px;margin:0 auto 16px}
.acts b{display:block;font-size:18px;line-height:1.5}
.acts span{display:block;margin-top:6px;text-align:left}
.acts>li.plain{background:#fff}

/* 3 本柱・実践リンク */
.pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px}
.pillars>li,.pillars>li.link{background:#fff;border-radius:24px;padding:28px;min-width:0}
.pillars .num{display:block;font-size:32px;color:var(--orange-deep);line-height:1.2}
.pillars b{display:block;font-size:20px;line-height:1.5}
.pillars p{margin-top:8px}
.pillars .btn{margin-top:16px}

/* 小さな見出し付きの一覧（出店・出前授業など） */
.plain-list>li{padding:14px 0;border-bottom:2px solid var(--mint)}
.plain-list>li:last-child{border-bottom:0}
.plain-list b{display:block}
.cardlist{background:#fff;border-radius:24px;padding:8px 40px;margin-top:32px}

/* 外部リンク */
.idb-sub .textlink{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;overflow-wrap:anywhere}
.idb-sub .textlink:hover{color:var(--teal-deep)}

/* お知らせ・検索結果 */
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post-card{background:#fff;border-radius:24px;overflow:hidden;min-width:0}
.post-card a{display:block;height:100%;text-decoration:none}
.post-card .thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--mint)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{display:block;padding:20px 24px 24px}
.post-card .date{display:block;color:var(--teal-deep);font-size:16px}
.post-card .title{display:block;margin-top:6px;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.post-card a:hover .title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:40px}
.pager a,.pager span,.pager .page-numbers{display:inline-block;min-width:44px;padding:8px 14px;border-radius:999px;background:#fff;font-weight:700;text-align:center;text-decoration:none}
.pager a:hover{background:var(--yellow)}
.pager .current{background:var(--orange)}
.pager ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;list-style:none;padding:0;margin:0}
.pager-list{display:block}
.empty{text-align:center;font-weight:700}
.search-box{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 32px}
.search-box input{flex:1 1 240px;min-width:0;padding:12px 20px;border:2px solid var(--teal);border-radius:999px;background:#fff;font:inherit;font-size:16px;color:var(--ink)}
.idb-article .date{color:var(--teal-deep)}
.idb-article .back{margin-top:40px}

/* 本文（お知らせ・投稿・その他の固定ページ。Elementor の本文も入る） */
.idb-prose{--e-global-color-text:var(--ink);--e-global-color-secondary:var(--ink);color:var(--ink);margin-top:16px;background:#fff;border-radius:24px;padding:32px 40px;overflow-wrap:anywhere}
.idb-prose>*:first-child{margin-top:0}
.idb-prose>*:last-child{margin-bottom:0}
.idb-prose h2,.idb-prose h3,.idb-prose h4{margin:1.8em 0 .6em;font-family:"Noto Sans JP",sans-serif;font-weight:700;letter-spacing:0;line-height:1.4}
.idb-prose h2,.idb-prose h3,.idb-prose h4{display:block;color:var(--ink)}
.sec .idb-prose h2::before{content:none;display:none}
.idb-prose :is(h1,h2,h3,h4,h5,h6,p,div,span):empty:not(.elementor-widget-container){display:none}
.idb-prose .elementor-widget-container:empty{display:none}
.idb-prose p,.idb-prose li,.idb-prose span{color:inherit}
.idb-prose h2{font-size:26px}
.idb-prose h3{font-size:22px}
.idb-prose h4{font-size:18px}
.idb-prose p,.idb-prose ul,.idb-prose ol,.idb-prose figure,.idb-prose blockquote,.idb-prose table{margin:0 0 1.2em}
.idb-prose ul,.idb-prose ol{padding-left:1.6em}
.idb-prose ul{list-style:disc}
.idb-prose ol{list-style:decimal}
.idb-prose a{color:var(--teal-deep);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.idb-prose img,.idb-prose video,.idb-prose iframe{max-width:100%;height:auto;border-radius:12px}
.idb-prose iframe{aspect-ratio:16/9;width:100%}
.idb-prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.idb-prose th,.idb-prose td{padding:8px 12px;border:1px solid var(--mint)}
.idb-prose blockquote{padding:8px 20px;border-left:6px solid var(--teal)}

/* フッター：ティールの波の下に団体の緑 */
.footer{background:var(--green);color:var(--ink);padding:56px 0 40px}
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.footer .top{display:flex;justify-content:space-between;gap:48px}
.footer .org{font-size:20px;font-weight:700}
.footer .addr{margin-top:12px}
.footer .addr+.addr{margin-top:8px}
.footer .copy{margin-top:56px;font-family:"Inter",sans-serif;font-weight:600}
.sitemap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 40px;max-width:560px}
.wave-foot{background:var(--mint)}
.wave-foot .p3{fill:var(--green)}

@media (max-width:1100px){
  .spill a{padding:8px 12px;font-size:15px}
  .steps5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .goals{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:960px){
  .spill{display:none}
  .smenu{display:block}
}
@media (max-width:860px){
  .sub-fv-side{align-items:flex-start;width:100%;max-width:380px}
  .band3,.band4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .works{grid-template-columns:repeat(3,minmax(0,1fr))}
  :root{--gutter:20px;--section-y:48px}
  .shead{padding:14px 12px}
  .slogo{width:72px;height:72px;padding:6px}
  .sub-fv .wrap{grid-template-columns:minmax(0,1fr);gap:20px}
  .sub-fv .sticker{width:170px}
  .idb-sub .wave svg{height:36px}
  .card,.statement{padding:24px 20px}
  .rows{padding:4px 20px}
  .rows>div{grid-template-columns:minmax(0,1fr);gap:2px;padding:14px 0}
  .grid2,.grid3,.numlist.two,.numlist.three,.figs,.pillars,.acts,.post-grid,.split,.split.rev{grid-template-columns:minmax(0,1fr)}
  .grid4,.gallery,.goals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{gap:10px}
  .steps5{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .steps5 li:last-child{grid-column:1/3}
  .split,.split.rev{gap:24px}
  .numlist>li{padding:20px 20px 20px 72px}
  .numlist>li::before{left:16px;top:18px}
  .flow>li.ar{display:none}
  .flow>li{flex-basis:100%}
  .idb-prose{padding:24px 20px}
  .cardlist{padding:4px 20px}
  .footer .top{flex-direction:column;gap:32px}
  .sitemap{gap:8px 20px}
}
@media (max-width:420px){
  .band2{grid-template-columns:minmax(0,1fr)}
  .works{gap:8px}
  .grid4,.goals{grid-template-columns:minmax(0,1fr)}
  .steps5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sitemap{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
}
