/* =========================================================
   トップページ — 緑のヒーロー／道を飛ぶ主役／スクロールで描かれる道
   ========================================================= */

/* ---------- キャラクターの動き（SVG内の <g> をCSSで動かす） ---------- */
@keyframes flapNear { 0% { transform: rotate(-26deg); } 100% { transform: rotate(30deg); } }
@keyframes flapFar  { 0% { transform: rotate(22deg); }  100% { transform: rotate(-28deg); } }
@keyframes flapTip  { 0% { transform: rotate(-14deg); } 100% { transform: rotate(18deg); } }
@keyframes tailSway { 0% { transform: rotate(-6deg); }  100% { transform: rotate(8deg); } }
@keyframes headBob  { 0% { transform: rotate(-3deg) translateY(0); } 100% { transform: rotate(3deg) translateY(-4px); } }
@keyframes squash   { 0% { transform: scale(1, 1); } 100% { transform: scale(1.03, .97); } }
@keyframes blink    { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.06); } }
@keyframes bob      { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes floaty   { 0% { transform: translateY(0) rotate(-2deg); } 100% { transform: translateY(-18px) rotate(3deg); } }
@keyframes hop      { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-14px) rotate(-3deg); } 40% { transform: translateY(-4px); } }
@keyframes glide    { 0% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(-10px, -16px) rotate(2deg); } 100% { transform: translate(0, 0) rotate(-3deg); } }
@keyframes hop      { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-26px) rotate(-7deg); } 60% { transform: translateY(-22px) rotate(-5deg); } }
@keyframes run      { 0% { transform: translateX(-4px) rotate(-2deg); } 100% { transform: translateX(4px) rotate(2deg); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes earTwitch { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-9deg); } 95% { transform: rotate(5deg); } }
@keyframes crestUp  { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-16deg); } }
@keyframes heartUp  { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-26px) scale(1.15); opacity: .35; } }
@keyframes marquee  { to { transform: translateX(-50%); } }

.ill .wing-near { animation: flapNear .46s cubic-bezier(.45,0,.55,1) infinite alternate; }
.ill .wing-far  { animation: flapFar  .46s cubic-bezier(.45,0,.55,1) infinite alternate; }
.ill .wing-tip  { animation: flapTip  .46s cubic-bezier(.45,0,.55,1) .08s infinite alternate; }
.ill .tail      { animation: tailSway 1.3s ease-in-out infinite alternate; }
.ill .head      { animation: headBob 2.2s ease-in-out infinite alternate; }
.ill .body      { animation: squash 1.1s ease-in-out infinite alternate; }
.ill .eye       { animation: blink 4.2s ease-in-out infinite; }
.ill .bob       { animation: bob 1.7s ease-in-out infinite alternate; }
.ill .bob-2     { animation-delay: .6s; animation-duration: 1.9s; }
.ill .hop       { animation: hop 1.15s cubic-bezier(.4,0,.2,1) infinite; }
.ill .run       { animation: run .26s ease-in-out infinite alternate; }
.ill .roll      { animation: spin 16s linear infinite; }
.ill .ear-l     { animation: earTwitch 5.5s ease-in-out infinite; }
.ill .ear-r     { animation: earTwitch 5.5s ease-in-out 2.4s infinite; }
.ill .crest     { animation: crestUp 5s ease-in-out infinite; }
.ill .float     { animation: heartUp 1.6s ease-in-out infinite alternate; }
.ill .pupil     { transition: transform .25s ease-out; }
.ill-cloud { animation: floaty 6s ease-in-out infinite alternate; }
.ill-feather, .ill-heart, .ill-seed, .ill-leaf { animation: floaty 3.4s ease-in-out infinite alternate; }
.ill-feather { animation-duration: 4.2s; }
.ill:nth-of-type(2n) .wing-near, .ill:nth-of-type(2n) .wing-far, .ill:nth-of-type(2n) .wing-tip { animation-duration: .52s; }
.ill:nth-of-type(3n) .head { animation-duration: 2.7s; }
.ill:nth-of-type(3n) .eye { animation-delay: 1.7s; }
.ill:nth-of-type(2n) { animation-delay: -1.3s; }

/* ---------- プリローダー：主役が画面を横切り、緑の線を残す ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--cream); display: grid; place-items: center; overflow: hidden; transition: transform .8s cubic-bezier(.76,0,.24,1); }
.preloader svg.flight { width: min(1100px, 120vw); height: auto; overflow: visible; }
.preloader .pl-bird img { width: 220px; }
.preloader .trail { fill: none; stroke: var(--grass); stroke-width: 120; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trail 1.15s cubic-bezier(.65,0,.35,1) .1s forwards; }
@keyframes trail { to { stroke-dashoffset: 0; } }
.preloader.is-done { transform: translateY(-100%); }
.preloader.is-gone { display: none; }

/* ---------- ヒーロー ---------- */
.home-hero {
  position: relative; background: var(--grass); color: var(--ink); overflow-x: clip;
  min-height: 0; padding: clamp(130px, 16vh, 180px) var(--gutter) 0;
  display: grid; align-content: start; justify-items: center; text-align: center;
}
.home-hero .display { font-size: clamp(56px, 10vw, 140px); letter-spacing: -.055em; line-height: .9; }
.home-hero .display .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .22em; margin: 0 -.06em -.18em; }  /* g・y の下の払いが切れないよう下に余白 */
.home-hero .display .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .08s + .1s); }
body.is-ready .home-hero .display .w > span { transform: none; }
.home-hero .tagline { font-size: clamp(20px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.01em; margin-top: 20px; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
body.is-ready .home-hero .tagline { opacity: 1; transform: none; }

.hero-stage { position: relative; z-index: 5; width: 100%; max-width: none; height: clamp(280px, 29vw, 620px); margin-top: clamp(6px, 1vw, 12px); pointer-events: none; }
.hero-stage .ill {
  position: absolute; width: calc(var(--w) * var(--k, 1)); left: var(--x); bottom: var(--b, 0);
  opacity: 0; transform: translateY(90px) scale(.85);
  transition: opacity .7s var(--ease), transform 1.2s cubic-bezier(.2,1.4,.3,1); transition-delay: var(--d, 0s);
}
body.is-ready .hero-stage .ill { opacity: 1; transform: none; }
/* 雲: 形の違う 3 つを見出しの左右と枝の間に散らし、それぞれ違う速さでゆっくり横に流れる */
@keyframes cloudDrift { from { translate: -1.2vw 0; } to { translate: 1.2vw -4px; } }
body.is-ready .hero-stage .cloud { animation: cloudDrift var(--dur, 9s) ease-in-out infinite alternate; }
.hero-stage .ground, .cta-stage .ground { z-index: 0; height: 34%; max-width: none; }
.hero-stage .branch, .cta-stage .branch { z-index: 1; }
.hero-stage .ill:not(.ground):not(.branch), .cta-stage .ill:not(.ground):not(.branch) { z-index: 2; }
.ill.flip { transform: scaleX(-1); }
body.is-ready .hero-stage .ill.flip { transform: scaleX(-1); }

.home-intro { position: relative; z-index: 2; background: var(--cream); border-radius: 56px 56px 0 0; margin-top: -56px; padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.home-intro .big { font-size: clamp(24px, 3.4vw, 46px); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; max-width: 1100px; }
.home-intro .big em { font-style: normal; background: linear-gradient(transparent 62%, var(--grass) 62%); }
.home-intro .btn { margin-top: 36px; }
.about-row { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(40px, 5vw, 64px); border-top: 1.5px solid rgba(44,46,42,.14); }
.about-lead { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; letter-spacing: -.02em; font-weight: 700; margin-bottom: 24px; }
.about-body { font-size: 16px; line-height: 1.9; max-width: 720px; margin-bottom: 28px; }
.card-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; font-weight: 500; }
.card-links a { border-bottom: 1.5px solid var(--stone); padding-bottom: 2px; }
.num-tile .act-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.35; margin: 4px 0 12px; }
.num-tile .act-title small { font-size: .78em; font-weight: 500; }

/* ---------- 緑の道 ---------- */
.river { position: relative; z-index: 1; overflow: clip; background: var(--cream); margin-top: 0; }
.river-inner { position: relative; width: 100%; aspect-ratio: 1600 / 5800; }
.river-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.river-path { fill: none; stroke: var(--grass); stroke-width: 460; stroke-linecap: round; }
.river-svg--m { display: none; }
.beat, .m-stage { display: contents; }
.river .ill, .river .card { position: absolute; }
.river .ill { width: var(--w); top: var(--t); left: var(--l, auto); right: var(--r, auto); z-index: 3; will-change: transform; }
.river .ill.behind { z-index: 1; }
.river .perch { position: absolute; width: var(--w); max-width: var(--maxw, 460px); aspect-ratio: var(--ar, 600 / 170); top: var(--t); left: var(--l, auto); right: var(--r, auto); z-index: 3; will-change: transform; }
.river .perch .ill { position: absolute; max-width: none; top: auto; right: auto; }
.river .perch .branch { width: 100%; left: 0; bottom: 0; }
.river .perch .ill:not(.branch) { width: var(--pw); left: var(--px); bottom: var(--pb); }
.river .card {
  width: min(540px, 38%); top: var(--t); left: var(--l, auto); right: var(--r, auto); z-index: 4;
  border-radius: 32px; padding: clamp(28px, 3vw, 46px);
  opacity: 0; transform: translateY(50px) scale(.96); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.2,1,.3,1);
}
.river .card.in { opacity: 1; transform: none; }
.river .card h2 { font-size: clamp(30px, 3.7vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 18px; }
.river .card p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; margin-bottom: 26px; }

/* 道を飛ぶ主役（羽ばたきは SVG の中で動く） */
.lead { position: absolute; left: 0; top: 0; z-index: 5; width: clamp(150px, 15vw, 240px); pointer-events: none; will-change: transform; opacity: 0; transition: opacity .4s; }
.lead .ill { width: 100%; display: block; }

/* 色付きピル */

/* ---------- 緑の締め ---------- */
.home-cta { position: relative; z-index: 2; background: var(--grass); border-radius: 56px 56px 0 0; margin-top: -220px; padding: clamp(96px, 12vw, 180px) var(--gutter) 0; text-align: center; overflow-x: clip; }
.home-cta h2 { font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.04em; }
.home-cta p { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.6; max-width: 640px; margin: 28px auto 32px; }
.cta-stage { position: relative; height: clamp(240px, 32vw, 640px); margin-top: clamp(32px, 5vw, 64px); max-width: none; }
.cta-stage .ill { position: absolute; width: calc(var(--w) * var(--k, 1)); left: var(--x); bottom: var(--b, 0); }

/* ---------- 人と小鳥 ---------- */
.callout { padding: clamp(64px, 8vw, 120px) 0 0; }
.callout-box { position: relative; max-width: 1100px; margin-inline: auto; }
.callout-photo { border-radius: 40px; aspect-ratio: 16 / 9; background: var(--lav); display: grid; place-items: end center; overflow: hidden; position: relative; }
.callout-photo .ill { position: absolute; }
.callout-photo .prop-swing { width: 26%; left: 12%; bottom: 8%; }
.callout-photo .on-swing { width: 13%; left: 18%; bottom: 2%; }   /* 足の指をブランコの座面に乗せる */
.callout-photo .prop-house { width: 30%; right: 8%; bottom: 0; }
.callout-photo .note { position: absolute; left: 24px; top: 20px; z-index: 2; font-size: 13px; color: var(--ink); opacity: .7; font-weight: 500; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.ribbon text { font-size: 32px; font-weight: 500; fill: var(--ink); letter-spacing: .02em; }

/* ---------- 数字 ---------- */
.numbers { padding: clamp(56px, 8vw, 110px) 0; }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.num-tile { border-radius: 36px; padding: clamp(28px, 3vw, 44px); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.num-tile .big { font-family: var(--font-latin); font-size: clamp(88px, 11vw, 168px); line-height: .9; letter-spacing: -.06em; font-weight: 500; position: relative; }
.num-tile .big small { font-family: var(--font-jp); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: 0; margin-left: 6px; }
.num-tile p { font-size: 16px; line-height: 1.6; margin-top: 24px; position: relative; }
.num-tile .ill { position: absolute; right: -2%; top: 4%; width: 40%; }
.num-tile--sky { background: var(--white); color: var(--ink); }
.num-tile--sky .big, .num-tile--sky .act-title { color: #3f6c99; }
.num-tile--grass { background: var(--grass); color: var(--ink); }
.num-tile--coral { background: var(--coral-hero); color: var(--ink); }

/* ---------- ニュース ---------- */
.rail { padding: clamp(40px, 6vw, 80px) 0; background: var(--sand); border-radius: 56px; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 78vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-card { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.rail-card .thumb { aspect-ratio: 4 / 3; border-radius: 24px; background: var(--thumb, var(--white)); display: grid; place-items: center; overflow: hidden; position: relative; transition: transform .4s var(--ease); }
.rail-card:hover .thumb { transform: translateY(-4px); }
.rail-card .thumb .ill { position: absolute; left: 10%; top: 9%; width: 80%; height: 85%; max-width: none; object-fit: contain; object-position: 50% 100%; }
@media (max-width: 960px) {
  /* スマホでは横スクロールをやめて縦の一覧にする（見出しが画面端で切れないように） */
  .rail-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; gap: 14px; }
  .rail-card { grid-template-columns: 38% 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; }
  .rail-card .thumb { grid-row: 1 / 4; aspect-ratio: 1; border-radius: 18px; }
  .rail-card h3 { font-size: 15px; }
}
@media (min-width: 961px) {
  /* PC ではカードを4枚とも収め、見出しが画面端で切れないようにする */
  .rail-track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; padding-inline: 0; }
}
.rail-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rail-card .chips span { background: var(--white); border-radius: 30px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.rail-card h3 { font-size: 18px; line-height: 1.45; }
.rail-card time { font-family: var(--font-latin); font-size: 13px; color: var(--stone); font-weight: 500; }

/* ---------- パートナー ---------- */
.marquee-sec { padding: clamp(56px, 8vw, 110px) 0; text-align: center; }
.marquee-sec h2 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 40px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; padding: 6px 0; }
.marquee-row:nth-child(2) { animation-duration: 52s; animation-direction: reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-sec .sec-head { text-align: left; margin-bottom: 36px; }
.logo-pill { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 28px; width: 220px; height: 120px; padding: 16px 24px; }
.logo-pill img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.logo-pill .m { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-family: var(--font-latin); font-size: 13px; color: var(--stone); }

/* 道の登場人物の縮尺（実寸比） */

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .river-inner { aspect-ratio: auto; height: auto; padding: 0 0 24vh; }
  .river-svg--d { display: none; }
  .river-svg--m { display: block; }
  .lead { width: 26vw; z-index: 3; }  /* スマホではカードの文字の下をくぐる */
  .beat { display: block; position: relative; }
  .m-stage { display: block; position: relative; height: 74vw; }
  .river .card { position: relative; width: min(100% - var(--gutter) * 2, 560px); margin: 0 auto; top: auto; left: auto; right: auto; z-index: 4; }
  .river .ill, .river .perch { width: var(--mw, var(--w)); top: var(--mt, var(--t)); left: var(--ml, var(--l, auto)); right: var(--mr, var(--r, auto)); }
  .river .perch .ill { width: var(--pw); left: var(--px); top: auto; right: auto; }
  .river .ill.m-hide { display: none; }
  .num-grid { grid-template-columns: 1fr; }
  .num-tile { min-height: 240px; }
  .home-cta { margin-top: -120px; }
  .home-intro, .home-cta { border-radius: 36px 36px 0 0; }
}
@media (max-width: 600px) {
  .home-hero { min-height: 0; padding-top: 130px; }
  .hero-stage { height: clamp(240px, 70vw, 340px); --k: 1.8; }
  .hero-stage .ill { left: var(--mx, var(--x)); }
  .hero-stage .ill.m-hide { display: none; }
  .cta-stage { --k: 1.7; height: 62vw; }
  .cta-stage .ill.m-hide { display: none; }
  .ribbon text { font-size: 26px; }
  .callout-photo { aspect-ratio: 4 / 3; }
  .about-row { grid-template-columns: 1fr; }
  .logo-pill { width: 160px; height: 90px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .home-hero .display .w > span, .home-hero .tagline, .hero-stage .ill { opacity: 1; transform: none; transition: none; }
  .ill *, .ill, .marquee-row { animation: none !important; }
  .river .card { opacity: 1; transform: none; }
  .river-path { stroke-dashoffset: 0 !important; }

}
/* 左の枝から垂れる葉がうさぎの耳の後ろに重なって、耳が欠けて見えるため外す */
.hero-stage .ill-branch path:last-child { display: none; }   /* 1 本目の枝の垂れた葉がうさぎの耳に重なるため */

/* ===== 登場アニメーション =====
   道の筆先が届いた子から出てくる（js が .await → .arr を付け替える）。
   地上の子は草の中からぴょこっと跳ねて着地、鳥は画面の外から飛んできて枝にとまり、枝がしなる */
@keyframes popIn { 0% { opacity: 0; transform: translateY(30%) scale(.3, .1); } 26% { opacity: 1; transform: translateY(-26%) scale(.86, 1.16); } 46% { transform: translateY(0) scale(1.16, .82); } 62% { transform: translateY(-8%) scale(.95, 1.07); } 80% { transform: translateY(0) scale(1.04, .96); } 100% { opacity: 1; transform: none; } }
@keyframes swoopIn { 0% { opacity: 0; transform: translate(calc(var(--sx, 1) * 170%), -160%) rotate(calc(var(--sx, 1) * 26deg)) scale(.6); } 55% { opacity: 1; transform: translate(calc(var(--sx, 1) * -4%), -12%) rotate(calc(var(--sx, 1) * -8deg)) scale(1.02); } 70% { transform: translate(0, 2%) scale(1.1, .88); } 84% { transform: scale(.96, 1.05); } 100% { opacity: 1; transform: none; } }
@keyframes decoPop { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 60% { opacity: 1; transform: scale(1.25) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes branchIn { 0% { opacity: 0; translate: calc(var(--sx, 1) * 34%) 0; } 100% { opacity: 1; translate: 0 0; } }
@keyframes boing { 0%, 100% { rotate: 0deg; } 28% { rotate: calc(var(--sx, 1) * -3.5deg); } 55% { rotate: calc(var(--sx, 1) * 2deg); } 78% { rotate: calc(var(--sx, 1) * -.8deg); } }
@keyframes heartUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(.2); } 22% { opacity: 1; transform: translate(calc(-50% + var(--dx) * .3), -30px) scale(1.15); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -150px) scale(.8) rotate(var(--r)); } }
.pet { transform-origin: 50% 100%; }
.perch:not(.flip), .bird.from-l { --sx: -1; }
.pop-heart { position: absolute; z-index: 6; width: clamp(14px, 1.4vw, 22px); pointer-events: none; animation: heartUp 1.35s cubic-bezier(.2,.7,.3,1) both; }
.pop-heart svg { display: block; width: 100%; }

.river .await { opacity: 0; }
.river .arr { opacity: 1; }
.river .pet.arr { animation: popIn .95s cubic-bezier(.3,.7,.3,1) both; }
.river .deco.arr { animation: decoPop .6s cubic-bezier(.3,1.5,.5,1) both; }
.river .perch { transform-origin: 100% 70%; }
.river .perch:not(.flip) { transform-origin: 0% 70%; }
.river .perch.arr { animation: boing .9s .95s ease-out both; }
.river .perch.arr .branch { animation: branchIn .5s var(--ease) both; }
.river .perch.arr .ill:not(.branch) { transform-origin: 50% 100%; animation: popIn .95s .3s cubic-bezier(.3,.7,.3,1) both; }

/* ヒーロー: 読み込み後に順番に登場 */
.hero-stage .pet, .hero-stage .bird { transition: none; transform: none; }
body.is-ready .hero-stage .pet { animation: popIn .95s cubic-bezier(.3,.7,.3,1) var(--d, 0s) both; }
body.is-ready .hero-stage .bird { transform-origin: 50% 100%; animation: popIn .95s cubic-bezier(.3,.7,.3,1) var(--d, 0s) both; }
/* 締め: 画面に入ったら登場 */
.cta-stage .pet, .cta-stage .bird { opacity: 0; }
.cta-stage.arr .pet { animation: popIn .95s cubic-bezier(.3,.7,.3,1) var(--d, 0s) both; }
.cta-stage.arr .bird { transform-origin: 50% 100%; animation: popIn .95s cubic-bezier(.3,.7,.3,1) var(--d, 0s) both; }
@media (prefers-reduced-motion: reduce) {
  .river .await, .cta-stage .pet, .cta-stage .bird { opacity: 1; }
  .river .arr, .hero-stage .pet, .hero-stage .bird, .cta-stage .pet, .cta-stage .bird, .river .perch .ill, .river .perch .branch { animation: none !important; }
  .pop-heart { display: none; }
}

/* 締め: 枝は画面の右端から差し込む（ステージの幅に関係なく端に付く） */
.cta-stage .cta-perch { position: absolute; left: auto; right: calc((100% - 100vw) / 2 - 1%); bottom: 50%; width: clamp(300px, 32vw, 540px); aspect-ratio: 600 / 170; z-index: 1; }
.cta-stage .cta-perch .branch { width: 100%; left: 0; bottom: 0; }
.cta-stage .cta-perch .bird { width: var(--pw); left: var(--px); bottom: var(--pb); }
@media (max-width: 600px) { .cta-stage .cta-perch { width: 58vw; bottom: 56%; } }

/* ヒーローの止まり木: 枝と鳥を 1 組にして、画面幅が変わっても足が枝から浮かない */
.hero-stage .hero-perch { position: absolute; left: var(--x); bottom: var(--b); width: var(--w); aspect-ratio: 600 / 170; z-index: 1; }
.hero-stage .hero-perch .branch, body.is-ready .hero-stage .hero-perch .branch { width: 100%; left: 0; bottom: 0; transform: none; }
.hero-stage .hero-perch.flip .branch, body.is-ready .hero-stage .hero-perch.flip .branch { transform: scaleX(-1); }
.hero-stage .hero-perch .bird { width: var(--pw); left: var(--px); bottom: var(--pb); z-index: 2; }
@media (max-width: 600px) { .hero-stage .hero-perch { left: var(--mx); bottom: var(--mb); width: var(--mw); } .hero-stage .hero-perch .bird { width: var(--pw); } }

/* ヒーロー直下のお知らせ：最初の画面に「いま見るべきもの」を 1 つ置く */
.hero-note { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 18px 6px 6px; min-height: 44px; border-radius: 40px; background: var(--white); font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s; }
.hero-note .k { padding: 6px 14px; border-radius: 30px; background: var(--ink); color: var(--white); font-size: 13px; }
.hero-note .arrow { transition: transform .35s var(--ease); }
.hero-note:hover .arrow { transform: translateX(4px); }
body.is-ready .hero-note { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-note { opacity: 1; transform: none; transition: none; } }
@media (max-width: 600px) { .hero-stage .ill-heart { left: 45% !important; bottom: 88% !important; width: 7% !important; } }
.hero-note .k { background: var(--grass); color: var(--ink); }
.hero-note .k { background: var(--grass); color: var(--ink); }

/* ===== 端末ごとの動物の縮尺を揃える（ヒーローと道で大きさが食い違わないように） ===== */
/* スマホ・タブレット：道の動物を少し小さく、ヒーローの動物を大きくして、同じ世界の大きさに見せる */
@media (max-width: 960px) {
  .river .m-stage > .pet { scale: .86; }
  .river .m-stage > .deco { scale: .86; transform-origin: 50% 100%; }
}
@media (max-width: 600px) {
  .hero-stage .pet { scale: 1.2; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .hero-stage .pet { scale: 1.15; }   /* うさぎの耳が左の枝に掛からない上限 */
  .hero-stage .hero-perch .bird { scale: 1.12; transform-origin: 50% 100%; }
  .cta-stage .pet { scale: 1.15; }
}
/* スマホより広い幅（431〜960px）：道の舞台はスマホ幅の箱（430×318）にする。
   舞台の中の割合はスマホ前提なので、画面が広がるほど動物が巨大化して配置が間延びするのを防ぐ */
@media (min-width: 431px) and (max-width: 960px) {
  .m-stage { width: 430px; margin-inline: auto; height: 318px; }
  /* 枝は箱ではなく画面の端から出す */
  .river .m-stage > .perch:not(.flip) { left: calc((100% - 100vw) / 2 - 8px); }
  .river .m-stage > .perch.flip { right: calc((100% - 100vw) / 2 - 8px); left: auto; }
  .lead { width: min(26vw, 124px); }
}
/* タブレット（601〜960px）：箱を「道が通っている側」に寄せて、動物が緑の上に立つようにする。枝は反対側の画面端から伸ばす */
@media (min-width: 601px) and (max-width: 960px) {
  .m-stage.m-left { margin-left: 4vw; margin-right: auto; }
  .m-stage.m-right { margin-left: auto; margin-right: 4vw; }
  .river .m-stage.m-left > .perch.flip { right: calc(430px + 4vw - 100vw - 8px); }
  .river .m-stage.m-right > .perch:not(.flip) { left: calc(430px + 4vw - 100vw - 8px); width: calc(var(--mw) * 1.55); }
}
@media (max-width: 600px) { .river .m-stage > .pet, .river .m-stage > .deco { scale: .76; } }

/* ── パートナー：流れるロゴをやめ、上下のセクションと同じ幅（container）に固定のタイルで並べる ──
   ロゴは縦横比がまちまちなので、build.py が面積の揃う幅（--lw：64〜188）を付ける。タイル幅に対する割合で描くので、
   画面幅が変わってもロゴどうしの大きさの釣り合いは同じ */
.marquee-sec { text-align: left; }
.plogos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; --cols: 6; }
.plogos li { flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols)); aspect-ratio: 16 / 9; background: var(--white); border-radius: 24px;
  display: flex; align-items: center; justify-content: center; padding: 14px 18px; min-width: 0; box-sizing: border-box; box-shadow: 0 1px 0 rgba(60, 50, 30, .05); }
.plogos img { max-width: 100%; max-height: 82%; height: auto; object-fit: contain; }
.marquee-sec .partners-note { text-align: center; margin-top: 20px; }
@media (max-width: 1080px) { .plogos { --cols: 5; } }
@media (max-width: 760px) { .plogos { --cols: 4; } }
@media (max-width: 640px) { .plogos { --cols: 3; gap: 10px; } .plogos li { flex-basis: calc((100% - 20px) / 3); border-radius: 16px; } }
/* フッターの上に余白（margin-top）があるので、パートナーの下の余白はそのぶん詰め、上（ニュースとの間）と同じ見え方にする */
.marquee-sec { padding-bottom: clamp(16px, 2.2vw, 28px); }
.plogos img { width: calc(var(--lw, 120) * .53%) !important; }
@media (max-width: 480px) {
  .plogos { --cols: 2; gap: 10px; }
  .plogos li { flex-basis: calc((100% - 10px) / 2); aspect-ratio: 2 / 1; padding: 12px 16px; }
}

/* 緑の締め：寝ている 2 匹は、パソコンでは寄り添わせ、iPad・スマホでは大きくなるぶん離して重ならないようにする */
@media (max-width: 960px) { .cta-stage .ill.sleepy { left: var(--tx, var(--x)); } }
@media (max-width: 600px) { .cta-stage .ill.sleepy { left: var(--sx, var(--x)); } }
/* 人と小鳥：スマホはテープを空いている上側に通す（パソコン用の曲線のままだと、文字が 8px ほどになりインコに掛かる） */
.ribbon--m { display: none; }
@media (max-width: 600px) {
  .ribbon--d { display: none; }
  .ribbon--m { display: block; }
  .ribbon--m text { font-size: 13.5px; letter-spacing: .04em; }
  .callout-photo .prop-swing { width: 30%; left: 9%; }
  .callout-photo .on-swing { width: 15%; left: 16%; }
  .callout-photo .prop-house { width: 34%; right: 6%; }
}

/* スマホのヒーロー：地上の 5 匹は 1 匹ずつ幅（--mw）と位置（--mx）を決める。画面幅の倍率でまとめて拡大すると、
   体の大きいうさぎだけが極端に大きくなり、右側が空くため */
@media (max-width: 600px) {
  .hero-stage .pet { width: var(--mw, calc(var(--w) * var(--k, 1))); scale: 1; }
}
@media (max-width: 600px) {
  .hero-stage { height: clamp(280px, 86vw, 380px); }
  .hero-stage .hero-perch .bird { width: var(--mpw, var(--pw)); }
}
/* 03（コーラル）は白文字。白が読める濃さ（4.6:1）のコーラルに一段深める */
.num-tile--coral { background: var(--coral-deep); color: var(--white); }
.num-tile--coral .big, .num-tile--coral .act-title, .num-tile--coral p { color: var(--white); }

/* 人と小鳥（紫のカード）：テープは上の空いた所にガーランドのように渡し、絵の上を横切らない。
   テープはカードの角丸で切り、端が外へ飛び出さない。にんじんの家からハムスター、ブランコへ向かうセキセイインコ */
.callout-box { border-radius: 40px; overflow: hidden; }
.callout-photo .peek { width: 9.5%; right: 18.5%; bottom: 0; z-index: 2; }
.callout-photo .fly-in { position: absolute; left: 42%; bottom: 34%; width: 15%; z-index: 2; transform: scaleX(-1); }
.callout-photo .fly-in .ill { position: static; width: 100%; animation: flyHover 2.4s ease-in-out infinite; }
@keyframes flyHover { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .callout-photo .fly-in .ill { animation: none; } }
@media (max-width: 600px) {
  .callout-box { border-radius: 28px; }
  .callout-photo .peek { width: 12%; right: 17%; }
  .callout-photo .fly-in { left: 40%; bottom: 40%; width: 19%; }
}
/* 03（コーラル）の文字：真っ白はきついので、わずかにグレーを含んだ白。背景もごくわずかに深めて本文の読みやすさを保つ */
.num-tile--coral { background: #c94124; }
.num-tile--coral .big, .num-tile--coral .act-title { color: #ece5db; }
.num-tile--coral p { color: #f4efe8; }
/* スマホ：鳥を枝の上で置き直すときの位置と足の高さ（--mpx / --mpb）。足が枝に乗るよう birds.py で計算した値 */
@media (max-width: 600px) { .hero-stage .hero-perch .bird { left: var(--mpx, var(--px)); bottom: var(--mpb, var(--pb)); } }

/* スマホのファーストビュー：Safari のアドレスバーとツールバーを除いた高さ（svh）に、見出しから地上の動物までを収める。
   舞台の高さ＝見える高さ − 舞台より上の高さ（見出し・お知らせ）。狭すぎる端末では下限 250px（スクロールで見える） */
@media (max-width: 600px) {
  .home-hero { padding-top: 104px; }
  .hero-stage { height: max(250px, min(86vw, calc(100svh - 336px))); }
}
@media (max-width: 600px) and (max-height: 620px) {
  .home-hero { padding-top: 96px; }
  .home-hero .display { font-size: 46px; }
  .home-hero .tagline { font-size: 18px; margin-top: 14px; }
  .hero-note { margin-top: 16px; }
  .hero-stage { height: max(230px, min(86vw, calc(100svh - 296px))); }
}
@media (max-width: 600px) { .hero-stage .ill-heart { bottom: 76% !important; } }
@media (max-width: 600px) and (max-height: 620px) { .hero-stage .hero-perch.flip { bottom: 44%; } .hero-stage .ill-heart { bottom: 72% !important; } }
/* 帯の文字（英語）：欧文書体で、帯の幅に合う大きさ */
.ribbon text { font-family: var(--font-latin); font-weight: 600; letter-spacing: .01em; }
.ribbon--d text { font-size: 28px; }
@media (max-width: 600px) { .ribbon--m text { font-size: 12.5px; letter-spacing: .02em; } }
/* にんじんの家のハムスター：入口の真ん中へ */
.callout-photo .peek { right: 15.5%; }
@media (max-width: 600px) { .callout-photo .peek { right: 14.5%; } }
/* 主な活動の番号：「0」の左の余白（0.05em）だけ左へ寄せ、数字の左端を見出し・本文の左端に揃える */
.num-tile .big { margin-left: -.05em; }

/* 人と小鳥：大きいインコは座面の左端へ、空いた右側にセキセイインコが飛んできて止まる */
.callout-photo .on-swing { left: 14.5%; }
.callout-photo .fly-in { left: 0; top: 0; bottom: auto; width: 12%; transform-origin: 50% 50%; transform: translate(110%, 0) scale(-1, 1); will-change: transform; transition: opacity .18s; }
.callout-photo .fly-in .ill { animation: none; }
.callout-photo .land-bird { width: 7%; left: 26.94%; bottom: 15%; z-index: 2; transform: scaleX(-1); opacity: 0; translate: 0 -10px; transition: opacity .18s, translate .45s cubic-bezier(.3, 1.7, .5, 1); }
.callout-box.landed .fly-in { opacity: 0; }
.callout-box.landed .land-bird { opacity: 1; translate: 0 0; }
@media (max-width: 600px) {
  .callout-photo .on-swing { left: 12%; }
  .callout-photo .fly-in { left: 0; bottom: auto; width: 15%; }
  .callout-photo .land-bird { width: 8%; left: 26.27%; bottom: 14.1%; }
}

/* ===== 人と小鳥：2 羽が飛んできてブランコに止まり、ハムスターがにんじんの家から出てくる（home.js がスクロールで動かす） =====
   鳥は止まった姿の絵そのものを動かす（飛ぶ姿との差し替えなし）。止まった位置がこの CSS の位置 */
.callout-photo .cb-bird { position: absolute; height: auto; overflow: visible; z-index: 2; will-change: transform; }
.callout-photo .on-swing.cb-bird { left: 10.3%; bottom: 2%; width: 13%; }
.callout-photo .land-bird.cb-bird { left: 26.94%; bottom: 15%; width: 7%; opacity: 1; translate: none; transition: none; }
.callout-box.landed .land-bird { opacity: 1; }
@media (max-width: 600px) {
  .callout-photo .on-swing.cb-bird { left: 7.2%; width: 15%; }
  .callout-photo .land-bird.cb-bird { left: 26.27%; bottom: 14.1%; width: 8%; }
}
/* 止まった後だけ、もとの絵と同じ小さな動き（首をかしげる・翼を整える・尾・まばたき） */
@keyframes cbHeadTilt { 0%, 28%, 100% { transform: rotate(0); } 32%, 56% { transform: rotate(-7deg); } 60% { transform: rotate(2deg); } 66% { transform: rotate(0); } }
@keyframes cbWing { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(-9deg); } 74% { transform: rotate(2deg); } 80% { transform: rotate(-5deg); } 86% { transform: rotate(0); } }
@keyframes cbTail { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes cbBlink { 0%, 90%, 100% { transform: scaleY(0); } 94% { transform: scaleY(1); } }
.cb-bird .lid { transform: scaleY(0); animation: cbBlink 4.6s ease-in-out infinite; }
.cb-bird.is-perched .head { animation: cbHeadTilt 5.4s ease-in-out 1s infinite; }
.cb-bird.is-perched .wing { animation: cbWing 7.2s ease-in-out 2s infinite; }
.cb-bird.is-perched .tail { animation: cbTail 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cb-bird *, .cb-bird.is-perched * { animation: none !important; } }
/* にんじんの家の入口：入口の形で切り抜いた中にハムスターを置き、奥（暗い所）から手前へ出てくる */
.callout-photo .house-door { position: absolute; right: 8%; bottom: 0; width: 30%; aspect-ratio: 1 / 1.3645; z-index: 2; pointer-events: none; }
.callout-photo .door-in { position: absolute; left: 33.2%; top: 53.2%; width: 43.2%; bottom: 0; clip-path: inset(0 round 50% 50% 0 0 / 34% 34% 0 0); }
.callout-photo .door-in .peek { left: 50%; right: auto; bottom: 0; width: 73%; translate: -50% 0; transform-origin: 50% 100%; will-change: transform, filter; }
@media (max-width: 600px) {
  .callout-photo .house-door { right: 6%; width: 34%; }
  .callout-photo .door-in .peek { right: auto; width: 81.7%; }
}
/* セキセイインコは右の綱の外側（座面の右端）に止まる。大きいインコと重ならないように */
.callout-photo .land-bird.cb-bird { left: 32.9%; }
@media (max-width: 600px) { .callout-photo .land-bird.cb-bird { left: 33.25%; } }
/* ハムスターはスライドで出る（拡大・暗さの変化はなし） */
.callout-photo .door-in .peek { will-change: transform; filter: none; }
/* セキセイインコは座面の真ん中寄り（右の紐の二股の内側に入らない位置）に止まり、大きいインコと向かい合う */
.callout-photo .land-bird.cb-bird { left: 31.3%; }
@media (max-width: 600px) { .callout-photo .land-bird.cb-bird { left: 31.4%; } }
/* セキセイインコは座面の右端（紐が付いている所より外側）に止まる。尾は座面の外へ出るので、紐を突き抜けない */
.callout-photo .land-bird.cb-bird { left: 37.7%; bottom: 13.5%; }
@media (max-width: 600px) { .callout-photo .land-bird.cb-bird { left: 38.76%; bottom: 12.8%; } }

/* 賛助会員：パートナーの下に、同じタイルで一段小さな見出しを付けて並べる */
.sponsors { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1.5px solid var(--hair); }
.sponsors-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-bottom: 28px; text-align: left; }
.sponsors-head .h-sub { font-family: var(--font-latin); font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.sponsors-head .label { font-size: 16px; font-weight: 500; }
.sponsors-head .action { margin-left: auto; }
/* トップ冒頭の文章：文節ごとの改行はせず、行の端まで詰めて流す（禁則は守る） */
.home-intro .big { word-break: normal; overflow-wrap: break-word; line-break: strict; text-wrap: wrap; }
/* 賛助会員の上の区切り線はなし。注記（※五十音順）はロゴ一覧の右下にそろえる */
.sponsors { border-top: 0; padding-top: 0; }
.marquee-sec .partners-note { text-align: right; margin-top: 14px; }
