/*
Theme Name: Arkhe Child
Template: arkhe
*/

.drawer-panda-img{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:70px auto 30px !important;
  padding:0 !important;
  clear:both !important;
}

.drawer-panda-img img{
  width:70px !important;
  max-width:70px !important;
  height:auto !important;
  display:block !important;
  margin:0 auto !important;
}
/* フッターコピーライト横にGIF追加 */
footer small::after,
footer .copyright::after,
footer [class*="copy"]::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  vertical-align: middle;
  background-image: url("https://sendainopanda.com/wp-content/uploads/2026/04/dancepanda.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* 既存CSS */

/* ▼ここに追加 */
body.is-search-open .p-searchModal__inner::before,
body.is-search-open .c-searchModal__inner::before {
  content: "";
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  background-image: url("https://sendainopanda.com/wp-content/uploads/2026/04/panda_genesis.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.search-panda-img{
  text-align:center;
  margin:0 auto 14px;
}

.search-panda-img img{
  width:110px;
  height:auto;
  display:inline-block;
}
/* 検索画面だけ雪エフェクト */
.search-snow-effect{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:999999;
  overflow:hidden;
}

.search-snow-effect span{
  position:absolute;
  top:-10px;
  width:6px;
  height:6px;
  background:#fff;
  border-radius:50%;
  opacity:.85;
  animation:searchSnowFall 6s linear infinite;
  box-shadow:0 0 8px rgba(255,255,255,.9);
}

.search-snow-effect span:nth-child(1){left:5%;animation-delay:0s;animation-duration:6s;}
.search-snow-effect span:nth-child(2){left:12%;animation-delay:1s;animation-duration:8s;}
.search-snow-effect span:nth-child(3){left:18%;animation-delay:.5s;animation-duration:7s;}
.search-snow-effect span:nth-child(4){left:25%;animation-delay:2s;animation-duration:9s;}
.search-snow-effect span:nth-child(5){left:32%;animation-delay:1.5s;animation-duration:6.5s;}
.search-snow-effect span:nth-child(6){left:40%;animation-delay:.2s;animation-duration:8.5s;}
.search-snow-effect span:nth-child(7){left:48%;animation-delay:2.5s;animation-duration:7.5s;}
.search-snow-effect span:nth-child(8){left:55%;animation-delay:1.2s;animation-duration:9.5s;}
.search-snow-effect span:nth-child(9){left:63%;animation-delay:.8s;animation-duration:6.8s;}
.search-snow-effect span:nth-child(10){left:70%;animation-delay:2.2s;animation-duration:8.8s;}
.search-snow-effect span:nth-child(11){left:76%;animation-delay:.4s;animation-duration:7.2s;}
.search-snow-effect span:nth-child(12){left:82%;animation-delay:1.8s;animation-duration:9.2s;}
.search-snow-effect span:nth-child(13){left:88%;animation-delay:.9s;animation-duration:6.4s;}
.search-snow-effect span:nth-child(14){left:94%;animation-delay:2.8s;animation-duration:8.4s;}
.search-snow-effect span:nth-child(15){left:98%;animation-delay:1.4s;animation-duration:7.8s;}

@keyframes searchSnowFall{
  0%{
    transform:translateY(-20px) translateX(0);
    opacity:0;
  }
  10%{
    opacity:.9;
  }
  100%{
    transform:translateY(110vh) translateX(30px);
    opacity:0;
  }
}
/* スコア表示 */
.panda-score {
  position: fixed;
  top: 86px;
  right: 16px;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  padding: 8px 14px;
  font-size: 20px;
  font-weight: 900;
  z-index: 10000;
  border-radius: 16px;
  box-shadow: 3px 3px 0 #000;
  text-align: center;
  line-height: 1.1;
}

.panda-score span {
  display: block;
}

.panda-score small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

/* Xシェアボタン */
.panda-share {
  position: fixed;
  top: 150px;
  right: 16px;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 900;
  z-index: 10000;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
}

/* 通常の擬音 */
.panda-sound-effect {
  position: absolute;
  top: 45%;
  left: 18%;
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 3px #000;
  text-shadow: 3px 3px 0 #000;
  z-index: 9999;
  pointer-events: none;
  animation: pandaSoundEffect 1.2s ease-out forwards;
  white-space: nowrap;
}

/* ホームラン系 */
.panda-big-text {
  top: 32%;
  left: 7%;
  font-size: clamp(36px, 8vw, 96px);
}

/* 神演出テキスト */
.panda-god-text {
  top: 24%;
  left: 8%;
  font-size: clamp(44px, 10vw, 120px);
}

/* フラッシュ */
.panda-screen-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9998;
  pointer-events: none;
  animation: pandaFlash 0.7s ease-out forwards;
}

/* 巨大パンダ */
.panda-giant {
  position: fixed;
  bottom: -5vh;
  left: 50%;
  transform: translateX(-50%) scale(0.3);
  width: min(85vw, 520px);
  z-index: 9999;
  pointer-events: none;
  animation: pandaGiant 1.6s ease-out forwards;
}

/* 100回以降の増殖パンダ */
.panda-mini {
  position: fixed;
  width: 90px;
  z-index: 9999;
  pointer-events: none;
  animation: pandaMini 2.4s ease-in-out forwards;
}

/* 画面揺れ */
.panda-shake {
  animation: pandaShake 0.35s infinite;
}

/* カオス時 */
.panda-chaos {
  filter: hue-rotate(180deg) saturate(1.8);
}

/* パンダ飛ぶ */
.panda-fly {
  animation: pandaFly 1.2s ease-in-out;
}

@media (max-width: 767px) {
  .panda-score {
    top: 104px;
    right: 10px;
    font-size: 16px;
    padding: 6px 12px;
  }

  .panda-score small {
    font-size: 10px;
  }

  .panda-share {
    top: 160px;
    right: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

@keyframes pandaSoundEffect {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: rotate(-10deg) scale(1.2);
  }
  65% {
    opacity: 1;
    transform: rotate(-7deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-5deg) scale(1.35) translateY(-25px);
  }
}

@keyframes pandaFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes pandaGiant {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.2) rotate(-8deg);
  }
  35% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15) rotate(4deg);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(-2deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25) translateY(-40px) rotate(0deg);
  }
}

@keyframes pandaMini {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
  70% {
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(-120px) rotate(720deg);
  }
}

@keyframes pandaShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 3px); }
  50% { transform: translate(4px, -3px); }
  75% { transform: translate(-3px, -4px); }
  100% { transform: translate(3px, 4px); }
}

@keyframes pandaFly {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(80px, -80px) rotate(20deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}
.panda-weird {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.panda-weird:hover {
  transform: rotate(8deg) scale(1.08);
}