/* 2026-2027 冬ページ: 区切り・英字の見出し・アーチのカード・羊が歩く進み具合バー
   css/2026-winter.css・2026-winter-sheephero.css の後に読み込む。
   ・グループごとに背景の色を変え、境目を丘・雪山の形にする(.wk-zone)。
   ・ぷくっとしたレトロな英字の見出し(.wk-retro、文字ごとに少し傾ける)。
   ・もくじ・グッズのカードを、上が丸いパステルの台紙に。
   ・画面の下に、スクロールすると羊が歩く「進み具合バー」(.wk-trail)。旗を押すとそのグループへ。 */

/* ---- 区切り ---- */
.wk-zone.z-eto { --zbg: #d6efc2; --zedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 46 C120 10 220 10 330 40 C430 66 520 20 640 22 C760 24 820 62 930 52 C1030 44 1100 14 1200 30 L1200 80 Z' fill='%23d6efc2'/%3E%3C/svg%3E"); }
.wk-zone.z-photo { --zbg: #d7ecf7; --zedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpolygon points='0,80 0,58 150,14 250,46 380,4 520,50 640,20 780,56 900,10 1040,48 1130,26 1200,40 1200,80' fill='%23d7ecf7'/%3E%3Cpath d='M98,29 L150,14 L185,25 L168,21 L150,28 L124,25 Z' fill='%23ffffff'/%3E%3Cpath d='M334,19 L380,4 L429,20 L404,16 L380,23 L357,15 Z' fill='%23ffffff'/%3E%3Cpath d='M598,30 L640,20 L689,33 L664,29 L640,36 L619,26 Z' fill='%23ffffff'/%3E%3Cpath d='M858,26 L900,10 L949,23 L924,19 L900,26 L879,22 Z' fill='%23ffffff'/%3E%3Cpath d='M1098,34 L1130,26 L1154,31 L1142,27 L1130,34 L1114,30 Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.wk-zone.z-xmas { --zbg: #fde1e7; --zedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpolygon points='0,80 0,58 150,14 250,46 380,4 520,50 640,20 780,56 900,10 1040,48 1130,26 1200,40 1200,80' fill='%23fde1e7'/%3E%3Cpath d='M98,29 L150,14 L185,25 L168,21 L150,28 L124,25 Z' fill='%23ffffff'/%3E%3Cpath d='M334,19 L380,4 L429,20 L404,16 L380,23 L357,15 Z' fill='%23ffffff'/%3E%3Cpath d='M598,30 L640,20 L689,33 L664,29 L640,36 L619,26 Z' fill='%23ffffff'/%3E%3Cpath d='M858,26 L900,10 L949,23 L924,19 L900,26 L879,22 Z' fill='%23ffffff'/%3E%3Cpath d='M1098,34 L1130,26 L1154,31 L1142,27 L1130,34 L1114,30 Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.wk-zone.z-animal { --zbg: #ffeed6; --zedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 46 C120 10 220 10 330 40 C430 66 520 20 640 22 C760 24 820 62 930 52 C1030 44 1100 14 1200 30 L1200 80 Z' fill='%23ffeed6'/%3E%3C/svg%3E"); }
.wk-zone.z-goods { --zbg: #ebe2fb; --zedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 46 C120 10 220 10 330 40 C430 66 520 20 640 22 C760 24 820 62 930 52 C1030 44 1100 14 1200 30 L1200 80 Z' fill='%23ebe2fb'/%3E%3C/svg%3E"); }
.wk-zone {
  position: relative;
  margin: 120px -20px 0;
  padding: 0 20px 56px;
  background: var(--zbg);
}
.wk-zone::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -79px;
  height: 80px;
  background: var(--zedge) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.wk-zone .wk-group-head { margin-top: 18px; }
.wk-zone + .wk-closing { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---- レトロな英字の見出し ---- */
.wk-retro {
  margin: 0;
  text-align: center;
  font-family: "Bagel Fat One", "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--c, #f26b3a);
  -webkit-text-stroke: 9px #fff8e8;
  paint-order: stroke fill;
  filter: drop-shadow(4px 5px 0 var(--navy));
}
.wk-retro span { display: inline-block; }
.wk-retro span:nth-child(odd)  { transform: rotate(-5deg) translateY(3px); }
.wk-retro span:nth-child(even) { transform: rotate(4deg) translateY(-3px); }
.wk-retro .sp { width: .3em; }
.wk-retro.is-toc { color: #f26b3a; margin-bottom: 4px; }
.wk-index > .wk-sec-title { font-size: 22px; }

/* ---- アーチのカード(もくじ・グッズ) ---- */
.wk-card a,
.wk-goods-item {
  padding: 10px 10px 0;
  border: 3px solid var(--navy);
  border-radius: 140px 140px 22px 22px / 110px 110px 22px 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 46 C120 10 220 10 330 40 C430 66 520 20 640 22 C760 24 820 62 930 52 C1030 44 1100 14 1200 30 L1200 80 Z' fill='%23ffffff'/%3E%3C/svg%3E") center 62% / 100% 46px no-repeat,
    color-mix(in srgb, var(--c, var(--sky)) 26%, #fff);
  box-shadow: 5px 5px 0 var(--navy);
}
.wk-card img,
.wk-goods-item img {
  border: 3px solid var(--navy);
  border-radius: 130px 130px 14px 14px / 100px 100px 14px 14px;
}
.wk-goods-item figure { border-bottom: none; }
/* 番号は写真にかぶらないよう、カードの左上の角に外へ少し出して付ける */
.wk-card a { overflow: visible; }
.wk-card-num { top: -16px; left: -14px; }
.wk-card-body, .wk-goods-name { background: transparent; }

/* ---- 羊が歩く進み具合バー ---- */
.wk-trail {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 12px;
  width: min(760px, calc(100% - 160px));
  height: 34px;
  transform: translateX(-50%);
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: 3px 3px 0 var(--navy);
  transition: opacity .3s, transform .3s;
}
html.wk-intro-lock .wk-trail { opacity: 0; }
.wk-trail-track {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 0;
  border-top: 3px dashed #c9b48c;
}
.wk-trail-fill {
  position: absolute;
  left: 0;
  top: -3px;
  height: 3px;
  width: 0;
  background: var(--green);
  border-radius: 3px;
}
.wk-trail-flag {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--c, var(--sky));
  text-decoration: none;
}
.wk-trail-flag span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 1px 8px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--c, var(--sky));
  color: #fff;
  font: 800 11px/1.4 "M PLUS Rounded 1c", sans-serif;
  white-space: nowrap;
  text-shadow: 1px 1px 0 var(--navy), -1px -1px 0 var(--navy), 1px -1px 0 var(--navy), -1px 1px 0 var(--navy);
}
.wk-trail-flag.is-passed { background: #fff; }
.wk-trail-sheep {
  position: absolute;
  left: 18px;
  top: -16px;
  width: 50px;
  height: 38px;
  margin-left: -25px;
  background: var(--sheep) center / contain no-repeat;
  filter: drop-shadow(2px 2px 0 rgba(29, 43, 79, .35));
  cursor: grab;
  touch-action: none;
}
/* 羊をつかんで左右に動かすと、ページもその位置へ動く(script が .is-dragging を付ける) */
.wk-trail.is-dragging, .wk-trail.is-dragging .wk-trail-sheep { cursor: grabbing; }
.wk-trail.is-dragging .wk-trail-sheep { scale: 1.12; }
.wk-trail.is-dragging .wk-trail-sheep.is-back { scale: -1.12 1.12; }
html.wk-trail-drag, html.wk-trail-drag body { user-select: none; -webkit-user-select: none; }
.wk-trail-sheep.is-back { scale: -1 1; }
.wk-trail-sheep.is-walking { animation: wk-walk .32s ease-in-out infinite; }
@keyframes wk-walk { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5px; rotate: -6deg; } }


/* ===== スクロールして画面に入ったものから、順に出てくる =====
   script が対象に .wk-rv(ふわっと下から)/.wk-rv-pop(弾んで)/.wk-rv-letters(英字が1文字ずつ)を付け、
   画面に入ったら .is-in を付ける。script が動かないときは、何も付かないので最初から全部見える。
   transform を使っている要素とぶつからないよう、translate / scale で動かす。 */
.wk-rv {
  opacity: 0;
  translate: 0 46px;
  transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.wk-rv.is-in { opacity: 1; translate: 0 0; }
.wk-rv-pop {
  opacity: 0;
  scale: .55;
  transition: opacity .35s ease, scale .65s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: var(--d, 0s);
}
.wk-rv-pop.is-in { opacity: 1; scale: 1; }
/* 英字の見出し: 1文字ずつ上から落ちてくる */
.wk-rv-letters span {
  opacity: 0;
  translate: 0 -40px;
  transition: opacity .3s ease, translate .55s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: calc(var(--i, 0) * .05s);
}
.wk-rv-letters.is-in span { opacity: 1; translate: 0 0; }
/* 各イベントの写真: 少し寄りから引いていく */
.wk-event.wk-rv figure img { scale: 1.08; transition: scale 1.2s cubic-bezier(.2, .8, .2, 1) .15s; }
.wk-event.wk-rv.is-in figure img { scale: 1; }
/* もくじのグループを開いたとき、カードが順に出てくる */
.wk-group[open] .wk-card { animation: wk-card-in .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i, 0) * .07s); }
@keyframes wk-card-in { from { opacity: 0; translate: 0 24px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wk-rv, .wk-rv-pop, .wk-rv-letters span { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
  .wk-group[open] .wk-card { animation: none; }
}

/* ===== アグロドームのショー: 羊が主役の見どころ欄と、写真の角からのぞく羊 ===== */
.wk-points {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}
.wk-points li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 7px 12px 7px 56px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: color-mix(in srgb, var(--c, var(--orange)) 12%, #fff);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--c, var(--orange)) 60%, var(--navy));
  font-size: 13px;
  line-height: 1.5;
  font-weight: bold;
}
.wk-points li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 40px;
  height: 30px;
  margin-top: -15px;
  background: var(--sheep) center / contain no-repeat;
}
.wk-points li:nth-child(even)::before { scale: -1 1; }
.wk-points b {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--c, var(--orange));
  color: #fff;
  font: 800 14px/1.4 "M PLUS Rounded 1c", sans-serif;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(29, 43, 79, .35);
}
.wk-event p.wk-points-note { margin: -4px 0 12px; font-size: 12px; color: #667; }
/* 写真の角からのぞく羊 */
.wk-peek-fig { position: relative; }
.wk-peek {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  width: 92px;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(4px 5px 0 rgba(29, 43, 79, .4));
  animation: wk2-bob 3s ease-in-out infinite;
}
.wk-peek img { display: block; width: 100%; height: auto; border: none !important; border-radius: 0 !important; box-shadow: none !important; scale: none !important; }
.wk-peek.peek-r { right: -14px; }
.wk-peek.peek-l { left: -12px; width: 70px; }
@media screen and (max-width: 768px) {
  .wk-points li { padding: 6px 10px 6px 48px; font-size: 12px; grid-template-columns: 1fr; }
  .wk-points li::before { width: 34px; height: 26px; margin-top: -13px; left: 7px; }
  .wk-points b { justify-self: start; font-size: 13px; }
  .wk-peek { width: 70px; bottom: -14px; }
  .wk-peek.peek-l { width: 54px; }
}


/* シープショー: 30周年の特別版で開催中のお知らせ(羊が主役の説明は崩さず、添える程度に) */
.wk-event p.wk-30th {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff6d6;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.6;
}
.wk-30th span {
  display: inline-block;
  margin-right: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 800 12px/1.6 "M PLUS Rounded 1c", sans-serif;
}
.wk-event .wk-30th a.wk-30th-link {
  display: block;
  width: fit-content;
  margin-top: 2px;
  color: #1d5fb8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wk-event .wk-30th a.wk-30th-link::after { content: " ›"; }

@media screen and (max-width: 768px) {
  .wk-zone { margin: 90px -12px 0; padding: 0 12px 44px; }
  .wk-card-num { top: -12px; left: -10px; }
  .wk-zone::before { top: -49px; height: 50px; }
  .wk-retro { font-size: 40px; -webkit-text-stroke: 7px #fff8e8; filter: drop-shadow(3px 3px 0 var(--navy)); }
  .wk-index > .wk-sec-title { font-size: 18px; }
  .wk-card a, .wk-goods-item { padding: 7px 7px 0; border-radius: 90px 90px 16px 16px / 70px 70px 16px 16px; box-shadow: 4px 4px 0 var(--navy); }
  .wk-card img, .wk-goods-item img { border-radius: 84px 84px 10px 10px / 64px 64px 10px 10px; }
  .wk-trail { left: 10px; right: 74px; width: auto; transform: none; height: 30px; bottom: 10px; }
  .wk-trail-flag span { display: none; }
  .wk-trail-sheep { width: 42px; height: 32px; margin-left: -21px; top: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-trail-sheep.is-walking { animation: none; }
}
