/* 観光レジリエンス・アワード 共通デザイン（index.html / winners-2026.html） */
:root{--base:#EEF3F0;--alt:rgb(0 82 74/.06);--ink:#17332D;--mut:#445A53;--line:#BDCCC5;--green:#00524A;--deep:#0D3A33;--teal:#00AD96;--coral:#DF5D53;--yellow:#F2D500;--tri:linear-gradient(90deg,var(--teal) 0 33.33%,var(--coral) 33.33% 66.66%,var(--yellow) 66.66%);--ease:cubic-bezier(.22,.7,.25,1)}

/* 背景と文字（薄い緑の部分は半透明にして、背景のロゴを透かす） */
html{scroll-padding-top:72px!important}
html body.bg-white{background:var(--base);color:var(--ink)}
html body section.bg-brand-gray{background:var(--alt)}
html body p.text-xs:not(footer p){font-size:.875rem;line-height:1.75}
html body section .text-brand-textMuted{color:var(--mut)}
html body section .text-brand-dark\/70{color:rgb(23 51 45/.85)}
html body .hero a,html body .hero button{white-space:nowrap}

section :is(h2,h3){word-break:auto-phrase;line-break:strict;text-wrap:balance}

/* ---------- 背景のロゴ（常に表示） ---------- */
.bgmark{position:fixed;z-index:-1;left:calc(50% + 330px);top:calc(50vh - 212px);width:440px;aspect-ratio:656/750;pointer-events:none}
.bgmark i,.emblem i{position:absolute;inset:0;background:url(mark-tint.png) center/100% 100% no-repeat}
.bgmark i:nth-child(1),.emblem i:nth-child(1){clip-path:polygon(0 0,82.3% 0,68% 21.5%,59.5% 34.7%,42.4% 41.3%,0 44.8%);--from:translate(-7%,-7%);--x:-1;--y:-1}
.bgmark i:nth-child(2),.emblem i:nth-child(2){clip-path:polygon(82.3% 0,100% 0,100% 100%,69.1% 100%,50.6% 72%,52.6% 50.4%,59.5% 34.7%,68% 21.5%);--from:translate(9%,0);--x:1.3;--y:0}
.bgmark i:nth-child(3),.emblem i:nth-child(3){clip-path:polygon(0 44.8%,32% 46.7%,32% 58.7%,45.7% 60%,50.6% 72%,69.1% 100%,0 100%);--from:translate(-7%,7%);--x:-1;--y:1}
.bgmark i:nth-child(4),.emblem i:nth-child(4){clip-path:polygon(32.6% 41.9%,52.2% 41.9%,52.2% 59%,32.6% 59%);transform-origin:42.4% 50.4%;--from:scale(.3);--x:0;--y:0}
@media(max-width:1199px){.bgmark{left:auto;right:-60px;width:360px;top:calc(50vh - 170px)}}
@media(max-width:639px){.bgmark{right:-48px;width:250px;top:calc(50vh - 100px)}}
/* 濃い緑の部分では、同じ位置のロゴをその部分だけに映す */
#entry,#grandprix{clip-path:inset(0);isolation:isolate}
.bgmark.on-dark{opacity:.1}
html body #entry{background:var(--deep)}
html body #entry .text-emerald-400{color:#6BD3C0}

/* ---------- ヘッダー ---------- */
html body>header.fixed{background:rgb(248 250 249/.97);border-bottom:1px solid var(--line)}
html body>header.fixed>div{height:72px;gap:20px}
html body>header a.brandlink{display:flex;align-items:center;gap:12px;margin-right:auto;font-size:15px;letter-spacing:.06em}
.brandlink img{height:42px;width:auto}
html body>header a,html body>header button{white-space:nowrap}
html body>header nav.hidden{font-size:13px;letter-spacing:.03em;color:var(--ink)}
html body>header nav>*{padding:8px 0;font-weight:700}
html body>header nav+div>:is(a,button)[class],html body>header nav+a[class]{display:inline-flex;align-items:center;height:42px;padding:0 20px;font-size:13px;letter-spacing:.08em;border:1px solid var(--green)}
html body>header nav+a,html body>header nav+div>button{color:var(--green)}
html body>header nav+div{flex:none;gap:8px}
html body>header nav+div>*{margin:0!important}
/* 公募要項は1か所にまとめる（PCは右のボタン、タブレットはメニュー内） */
@media(min-width:1024px){html body>header nav>button{display:none}}
@media(max-width:1023px){
  html body>header.fixed>div{gap:14px}
  html body>header a.brandlink{gap:8px;font-size:12px;letter-spacing:.02em}
  .brandlink img{height:34px}
  html body>header nav.hidden{font-size:12px;letter-spacing:0}
  html body>header nav>:not(:first-child){margin-left:14px!important}
  html body>header nav+div>button{display:none!important}
  html body>header nav+div>:is(a,button)[class],html body>header nav+a[class]{height:38px;padding:0 12px;font-size:12px;letter-spacing:.04em}
}
@media(max-width:639px){html{scroll-padding-top:64px!important}html body>header.fixed>div{height:64px;padding:0 16px}}

/* ---------- 部門の線（募集部門） ---------- */
#categories .grid>div{--c:var(--teal);--w:5px;border-top:var(--w) solid transparent!important;background:linear-gradient(var(--c),var(--c)) 0 0/100% var(--w) no-repeat border-box}
#categories .grid>div:nth-child(2){--c:var(--coral)}
#categories .grid>div:nth-child(3){--c:var(--yellow)}
html body #categories .bg-brand-gray{background:rgb(0 82 74/.07)}

/* ---------- 受賞団体（1団体＝1枚のカード） ---------- */
.winners{display:grid;grid-template-columns:minmax(0,1fr);gap:88px}
html body .winner:not(#grandprix) h3{font-size:clamp(1.375rem,2.2vw,1.75rem)}
.winner{--c:var(--green);--tint:#D5E5DF;position:relative;background:rgb(255 255 255/.72);border:1px solid var(--line);scroll-margin-top:24px}
.award{position:relative;display:flex;align-items:center;gap:20px;min-height:104px;padding:16px 48px;background:var(--tint);color:var(--ink);font-size:32px;font-weight:700;line-height:1.3;letter-spacing:.06em}
.award::before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:var(--c);transform-origin:left}
.winner-body{padding:40px 48px 48px}
.winner-body .flex-1{max-width:100%}
.winner :is(h3,p,dt,dd){overflow-wrap:anywhere}
.emblem{position:relative;flex:none;width:56px;aspect-ratio:656/750;margin-top:8px}
.emblem i{filter:brightness(.86)}
#regional{--c:var(--teal);--tint:#CDEBE4}
#private{--c:var(--coral);--tint:#F8DEDA}
#phasefree{--c:var(--yellow);--tint:#FAF2BC}
#jury{--c:var(--green);--tint:#CFE0DA}
#encouragement{--c:#6F978C;--tint:#E0EAE5}
#regional .emblem i:nth-child(1),#private .emblem i:nth-child(2),#phasefree .emblem i:nth-child(3),#grandprix .emblem i{background-image:url(mark.png);filter:none}
#jury .emblem i,#encouragement .emblem i:nth-child(4){background-image:url(mark-green.png);filter:none}
@media(max-width:1023px){.award{padding-inline:32px}.winner-body{padding:32px}}
/* グランプリは濃い緑のカードと、ひときわ大きい見出し */
#grandprix{--c:var(--tri);--tint:#fff;background:var(--deep);border:0}
#grandprix .award{min-height:148px;font-size:52px;gap:28px;color:var(--green)}
#grandprix .award::before{height:12px}
#grandprix .emblem{width:88px;margin-top:12px}
@media(max-width:767px){
  .winners{gap:64px}
  /* スマホ：読んでいる間、賞の名前をカードの上に残す */
  .award{position:sticky;top:64px;z-index:2;min-height:72px;padding:14px 20px 8px;gap:12px;font-size:21px;letter-spacing:.02em}
  .award::before{height:6px}
  .emblem{width:36px;margin-top:4px}
  .winner-body{padding:24px 20px 32px}
  #grandprix .award{min-height:88px;font-size:32px;gap:16px}
  #grandprix .award::before{height:8px}
  #grandprix .emblem{width:48px;margin-top:6px}
}

/* ---------- フッター ---------- */
.sitefoot{border-top:1px solid var(--line);font-size:14px;line-height:1.8;color:var(--ink)}
.sitefoot>div{width:min(1104px,100% - 48px);margin:0 auto}
.sitefoot .foot-main{display:grid;grid-template-columns:260px 1fr;gap:72px;padding-top:64px;padding-bottom:56px;align-items:center}
.foot-brand{text-align:center}
.foot-brand img{width:140px;height:auto;margin:0 auto 20px}
.foot-brand p{font-weight:700;white-space:nowrap}
.foot-orgs{display:grid;grid-template-columns:auto 1fr;gap:24px 72px;padding-left:72px;border-left:1px solid var(--line)}
.foot-label{margin-bottom:8px;font-weight:700;color:var(--green)}
.foot-orgs ul{display:grid;grid-template-columns:repeat(2,max-content);gap:4px 40px}
.sitefoot .foot-fund{display:flex;align-items:center;justify-content:center;gap:20px 32px;padding-top:28px;padding-bottom:28px;border-top:1px solid var(--line)}
.foot-fund img{width:270px;height:90px;max-width:100%}
.sitefoot .foot-end{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;padding-top:20px;padding-bottom:28px;border-top:1px solid var(--line);font-size:13px}
.foot-site{margin-top:4px}
.foot-site a{display:inline-block;padding:4px 0;font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.foot-contact{margin-top:12px;max-width:230px}
.foot-contact span{white-space:nowrap}
@media(max-width:767px){.foot-contact{max-width:none}}
.foot-fund p{word-break:auto-phrase;text-wrap:balance}
@media(min-width:1024px){.foot-orgs{align-items:start;column-gap:56px}.foot-orgs ul{column-gap:28px}.sitefoot .foot-main{gap:56px}.foot-orgs{padding-left:56px}}
@media(min-width:1024px) and (max-width:1199px){.foot-orgs ul{grid-template-columns:max-content}}
@media(min-width:768px) and (max-width:1023px){.foot-orgs{column-gap:40px}.foot-orgs ul{column-gap:20px}}
.foot-links{display:flex;gap:24px}
.foot-links :is(a,button){padding:8px 0;font-weight:500;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1023px){
  .sitefoot .foot-main{grid-template-columns:1fr;gap:40px;padding-top:56px;padding-bottom:40px}
  .foot-orgs{padding:32px 0 0;border-left:0;border-top:1px solid var(--line);justify-content:center;grid-template-columns:auto auto}
}
@media(max-width:767px){
  .foot-orgs{grid-template-columns:1fr}
  .foot-orgs ul{grid-template-columns:1fr}
  .sitefoot .foot-fund,.sitefoot .foot-end{flex-direction:column;text-align:center}
  .sitefoot .foot-end{flex-direction:column}
}

/* ---------- 「なにができるのか会議」のサイトに合わせた見せ方 ---------- */
:root{--hl:#007568;--mono:"IBM Plex Mono",ui-monospace,Menlo,monospace}
/* 見出し */
html body :is(h1,h2,h3)[class],.award{font-weight:900;letter-spacing:.02em}
html body .hero h1{line-height:1.3;max-width:none}
@media(min-width:1024px){html body .hero h1{font-size:3.5rem}}
#outlineModal h2{padding-right:44px;word-break:auto-phrase;text-wrap:balance}
html body section h2{line-height:1.45}
.hero h1:has(>span:nth-of-type(4))>span:nth-of-type(n+3),#story h2>span:nth-of-type(n+2){color:var(--hl)}
/* 見出しの上のラベル：ロゴの3色の点 */
section :is(div,span).text-xs.font-bold.tracking-widest:is(.mb-4,.mb-2){font-family:var(--mono);font-weight:500;letter-spacing:.16em}
section :is(div,span).text-xs.font-bold.tracking-widest.mb-4{display:flex;align-items:center;gap:26px}
section :is(div,span).text-xs.font-bold.tracking-widest.mb-4::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--teal);box-shadow:6px 0 0 var(--coral),12px 0 0 var(--yellow)}
#entry .text-emerald-400{justify-content:center}
html body section .font-mono{font-family:var(--mono)}
/* 丸いボタン（カーソルを合わせると色が左から満ちる） */
:where(.hero,#entry,#result,#next) :is(a,button).inline-flex,html body>header nav+div>:is(a,button)[class],html body>header nav+a[class]{position:relative;isolation:isolate;overflow:hidden;border-radius:999px;font-weight:700}
:where(.hero,#entry,#result,#next) :is(a,button).inline-flex{--fill:var(--deep);gap:16px;min-height:60px;padding:14px 20px 14px 30px;font-size:15px;border:2px solid var(--green)}
:where(.hero,#entry,#result,#next) :is(a,button).inline-flex::before{content:"";position:absolute;inset:-2px;z-index:-1;background:var(--fill);transform:translateX(-102%);transition:transform .45s cubic-bezier(.7,0,.2,1)}
:where(.hero,#entry,#next) :is(a,button).inline-flex::after{content:"→";content:"→" / "";display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--green);font:500 14px/1 var(--mono);transition:transform .35s var(--ease)}
.hero a[href^="#"].inline-flex::after{content:"↓";content:"↓" / ""}
.hero button.inline-flex{--fill:var(--green);color:var(--green)}
.hero button.inline-flex::after{background:var(--green);color:#fff}
#entry :is(a,button).inline-flex{--fill:var(--green);border-color:#fff}
.hero a.bg-white.inline-flex{--fill:var(--green);color:var(--green)}
.hero a.bg-white.inline-flex::after{background:var(--green);color:#fff}
/* トップの第2回の案内 */
.nextaward{padding:88px 0}
.nextrow{display:flex;align-items:center;justify-content:space-between;gap:32px}
.nextsoon{margin-top:12px;color:var(--hl);font-size:24px;font-weight:900;letter-spacing:.04em}
.nextrow a{flex:none}
@media(max-width:767px){.nextaward{padding:64px 0}.nextrow{flex-direction:column;align-items:stretch}}
/* 写真：色の面をずらして重ねる */
.heroimg,.hero>div>img{box-shadow:14px 14px 0 var(--teal)}
.winner{--c2:var(--c)}
#grandprix{--c2:var(--yellow)}
.winner-body .flex>img{box-shadow:12px 12px 0 var(--c2)}
/* 募集部門：3枚のカード */
html body #categories .grid{gap:28px}
#categories .grid>div{padding:28px 26px 26px!important;background:linear-gradient(var(--c),var(--c)) 0 0/100% var(--w) no-repeat border-box,rgb(255 255 255/.72);border-radius:4px;transition:translate .4s var(--ease),box-shadow .4s}
@media(min-width:768px) and (max-width:1023px){html body #categories .grid{gap:18px}#categories .grid>div{padding:24px 18px 18px!important}html body #categories h3{font-size:17px;letter-spacing:0}html body #grandprix h3{font-size:30px}}
/* 応募対象：丸い枠 */
section .flex-wrap>span.bg-white{padding:9px 18px;border:2px solid var(--ink);border-radius:999px;background:rgb(255 255 255/.6);font-weight:700}
/* 受賞団体の数字 */
html body .winner dl{border-top:0;padding-top:8px}
.winner dl>div{border-top:3px solid var(--c2);padding-top:14px}
html body .winner dt{font-size:clamp(1.75rem,2.7vw,2.375rem);font-weight:900;line-height:1.2;letter-spacing:0}
html body #grandprix dt{font-size:clamp(2.125rem,3.7vw,3.25rem)}
html body .winner dd{margin-top:8px;font-size:13px;line-height:1.75}
/* 日程・開催実績：縦の線でつなぐ（--tl は motion-plus.js がスクロールに合わせて変える） */
:is(#schedule,#result) .space-y-0{--x0:248px;--tl:1;position:relative;border-top:0}
:is(#schedule,#result) .space-y-0::before,:is(#schedule,#result) .space-y-0::after{content:"";position:absolute;left:var(--x0);top:0;bottom:0;width:2px;margin-left:-1px;background:var(--line)}
:is(#schedule,#result) .space-y-0::after{background:var(--teal);transform-origin:top;transform:scaleY(var(--tl))}
html body :is(#schedule,#result) .space-y-0>div{position:relative;display:grid;grid-template-columns:216px minmax(0,1fr);gap:8px 64px;padding:28px 0;border:0}
html body :is(#schedule,#result) .space-y-0>div>*{grid-column:auto}
:is(#schedule,#result) .space-y-0>div::before{content:"";position:absolute;z-index:1;left:var(--x0);top:35px;width:14px;height:14px;margin-left:-7px;border:2px solid var(--teal);border-radius:50%;background:var(--teal);transition:background .4s,border-color .4s}
.tl-live>div:not(.lit)::before{background:var(--base)!important;border-color:var(--line)!important}
html body :is(#schedule,#result) .space-y-0>div>:first-child{font-family:var(--mono),"Zen Kaku Gothic New",sans-serif;font-size:17px;font-weight:500;letter-spacing:0;text-align:right;white-space:nowrap}
html body :is(#schedule,#result) .space-y-0 h3{font-size:19px}
@media(max-width:767px){
  .heroimg,.hero>div>img,.winner-body .flex>img{box-shadow:8px 8px 0 var(--c2,var(--teal))}
  :is(#schedule,#result) .space-y-0{--x0:7px}
  html body :is(#schedule,#result) .space-y-0>div{grid-template-columns:minmax(0,1fr);padding:20px 0 20px 34px}
  :is(#schedule,#result) .space-y-0>div::before{top:27px}
  html body :is(#schedule,#result) .space-y-0>div>:first-child{text-align:left}
}
@media(max-width:379px){html body>header a.brandlink{font-size:11px;gap:6px;letter-spacing:0}.brandlink img{height:28px}html body>header.has-menu nav+div>a[class]{padding:0 10px}}
/* 今いる場所をメニューに示す */
header nav a.on{color:var(--hl)}
header nav a{position:relative}
header nav a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--teal);transform:scaleX(0);transform-origin:left}
header nav a.on::after{transform:none}
/* スマホ・タブレットのメニュー（nav.js が作る） */
.menubtn,.menupanel{display:none}
@media(max-width:1023px){
  html body>header.has-menu nav.hidden{display:none}
  html body>header .menubtn{display:grid;place-content:center;gap:6px;flex:none;width:44px;height:44px;border:1px solid var(--green);border-radius:50%;color:var(--green)}
  .menubtn i{display:block;width:18px;height:2px;background:currentColor;transition:transform .3s}
  .menubtn[aria-expanded=true] i:first-child{transform:translateY(4px) rotate(45deg)}
  .menubtn[aria-expanded=true] i:last-child{transform:translateY(-4px) rotate(-45deg)}
  html body>header.fixed>.menupanel:not([hidden]){display:block;height:auto;max-width:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 72px);overflow-y:auto;padding:8px 24px 24px;background:#F8FAF9;border-top:1px solid var(--line);box-shadow:0 24px 40px -24px rgb(13 58 51/.5)}
  html body>header .menupanel :is(a,button){display:block;width:100%;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px;font-weight:700;text-align:left;letter-spacing:.04em}
  .menupanel .on{color:var(--hl)}
}
@media(min-width:640px) and (max-width:1023px){html body>header.has-menu nav+div>button{display:inline-flex!important}}
@media(max-width:639px){
  html body>header.has-menu>div{gap:8px}
  html body>header.has-menu nav+div>a[class]{padding:0 14px}
  /* スマホは主なボタン1つだけを残し、ほかはメニューに入れる */
  html body>header.has-menu nav+div>a~a,html body>header.has-menu nav+a{display:none}
}
:is(a,button):focus-visible{outline:3px solid var(--teal);outline-offset:3px}

/* ---------- 動き ----------
   「視差効果を減らす」を設定している人には、動きを付けずに表示する */
@keyframes rise{from{opacity:0;transform:translateY(22px)}}
@keyframes fade{from{opacity:0}}
@keyframes gather{from{opacity:0;transform:var(--from)}}
@keyframes line{from{background-size:0 var(--w)}}
@keyframes draw{from{transform:scaleX(0)}}
@keyframes curtain{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes settle{from{transform:scale(1.08)}}
@media screen and (prefers-reduced-motion:no-preference){
  /* 冒頭：ロゴの3つの形が中心に集まり、文章が順に現れる */
  body>.bgmark i{animation:gather 1.8s var(--ease) .2s both}
  body>.bgmark i:nth-child(4){animation-delay:.9s;animation-duration:1s}
  .hero .space-y-10>:not(h1),.hero h1>span{animation:rise .9s var(--ease) both}
  .hero h1>span:nth-of-type(1){animation-delay:.15s}
  .hero h1>span:nth-of-type(2){animation-delay:.27s}
  .hero h1>span:nth-of-type(3){animation-delay:.39s}
  .hero h1>span:nth-of-type(4){animation-delay:.51s}
  .hero .space-y-10>:nth-child(3){animation-delay:.65s}
  .hero .space-y-10>:nth-child(4){animation-delay:.8s}

  /* スクロール：画面に入ったら一度だけ現れる（クラスは motion.js が付ける） */
  .m-wait{opacity:0}
  .m-in{animation:rise .9s var(--ease) var(--d,0s) both}
  #categories .m-in{animation:rise .9s var(--ease) var(--d,0s) both,line 1.1s var(--ease) calc(var(--d,0s) + .2s) both}
  .winner.m-in .award::before{animation:draw 1.2s var(--ease) .3s both}
  /* 動かすと中に映したロゴの位置がずれるため、グランプリは濃さだけを変える */
  #grandprix.m-in{animation:fade 1.1s ease-out both}
  .heroimg.m-in{animation:curtain 1.3s var(--ease) both}
  .heroimg.m-in img{animation:settle 2.2s var(--ease) both}

  /* 公募要項を開くとき */
  #outlineModal:not(.hidden){animation:fade .25s ease-out}
  #outlineModal:not(.hidden)>div{animation:rise .45s var(--ease)}

  /* カーソルを合わせたとき */
  @media(hover:hover){
    header nav a::after{transition:transform .35s var(--ease)}
    header nav a:hover::after,header nav a:focus-visible::after{transform:none}
    :where(.hero,#entry,#result,#next) :is(a,button).inline-flex:hover{color:#fff}
    :where(.hero,#entry,#result,#next) :is(a,button).inline-flex:hover::before{transform:none}
    :where(.hero,#entry,#next) :is(a,button).inline-flex:hover::after{transform:translateX(4px) rotate(-45deg)}
    .hero :is(button,a.bg-white).inline-flex:hover::after{background:#fff;color:var(--green)}
    .hero a[href^="#"].inline-flex:hover::after{transform:translateY(3px)}
    #categories .grid>div:hover{translate:0 -6px;box-shadow:0 24px 40px -26px rgb(13 58 51/.5)}
  }
}
@media(prefers-reduced-motion:reduce){html.scroll-smooth{scroll-behavior:auto}}
@media print{.bgmark{display:none}}
/* ページごとの背景色：トップ＝緑（標準）、受賞団体＝黄、第2回＝赤 */
body.page-yellow{--base:#FAF4D6;--alt:rgb(150 120 0/.07);--line:#DDD2A6;--head:rgb(253 249 232/.97)}
body.page-red{--base:#FAEAE6;--alt:rgb(175 60 50/.06);--line:#E5C8C2;--head:rgb(253 244 241/.97)}
html body:is(.page-yellow,.page-red)>header.fixed{background:var(--head)}
@media (max-width:1023px){html body:is(.page-yellow,.page-red)>header.fixed>.menupanel:not([hidden]){background:var(--head)}}
body.page-yellow .bgmark:not(.on-dark) i{background-image:url(mark-tint-yellow.png)}
body.page-red .bgmark:not(.on-dark) i{background-image:url(mark-tint-red.png)}
/* 受賞団体ページ：授賞式の動画 */
.movie{position:relative;max-width:100%;background:#000;box-shadow:14px 14px 0 var(--teal)}
.movie video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000}
@media(max-width:639px){.movie{box-shadow:8px 8px 0 var(--teal)}}
