@charset "utf-8";
/* CSS Document */

/* ページ全体
---------------------------------------------------------------------------------*/
.t18-products {
  font-family: "Murecho", sans-serif;
}

.kakurenbo-container {
  background-color: #fff4fe;
}

.t18-middle-split-rgt {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.kakurenbo-decor {
  display: block;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  position: relative;
}

.kakurenbo-decor::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 4vw;
  width: 12vw;
  max-width: 140px;
  min-width: 80px;
  height: 10.77vw;
  max-height: 126px;
  min-height: 72px;
  aspect-ratio: 725 / 651;
  background: url('../../assets/img/flower.webp') no-repeat center / contain;
  z-index: 2;
  pointer-events: none;
  animation: flower-pulse 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes flower-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kakurenbo-flower {
    animation: none;
  }
}

.pc-only {
  display: block;
}

@media screen and (max-width: 800px) {
  .pc-only {
    display: none;
  }
}

/* 質問エリア（こどもキャラと文章）
---------------------------------------------------------------------------------*/
.kakurenbo-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 0 110px;
  box-sizing: border-box;
}

.kakurenbo-question::before,
.kakurenbo-question::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  pointer-events: none;
}

.kakurenbo-question::before {
  left: 30px;
  bottom: -100px;
  width: 110px;
  aspect-ratio: 510 / 656;
  background-image: url('../img/kid_left.webp');
}

.kakurenbo-question::after {
  right: 38px;
  bottom: -49px;
  width: 89px;
  aspect-ratio: 440 / 408;
  background-image: url('../img/kid_right.webp');
  z-index: 999;
}

.kakurenbo-question__text {
  display: inline-block;
  font-family: "Murecho", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #000;
  margin: 0;
  text-align: left;
}

/* メイン画像
---------------------------------------------------------------------------------*/
.kakurenbo-image {
  position: relative;
  z-index: 2;
  max-width: 846px;
  margin: 0 auto 30px;
  padding: 18px;
  background: #fff;
  border: 5px solid #ea7629;
  border-radius: 20px;
  box-sizing: border-box;
  transition: max-width 0.3s ease;
}

.kakurenbo-image__inner {
  position: relative;
  display: block;
}

.kakurenbo-image__inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.kakurenbo-image__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 195px;
  padding: 10px 18px;
  background: #10a731;
  color: #fff;
  font-family: "Murecho", sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.08em;
  border: 1px solid #fff;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.kakurenbo-image__zoom:hover {
  opacity: 0.85;
}

.kakurenbo-image__zoom-icon {
  flex: 0 0 auto;
}

/* 拡大時に表示する「とじる」ボタン
---------------------------------------------------------------------------------*/
.kakurenbo-image__shrink {
  position: absolute;
  top: 24px;
  left: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 333px;
  height: 71px;
  padding: 10px 24px;
  background: #cc2225;
  color: #fff;
  font-family: "Murecho", sans-serif;
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: 0.08em;
  border: 1px solid #fff;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.kakurenbo-image__shrink:hover {
  opacity: 0.9;
}

.kakurenbo-image__shrink-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #cc2225;
  border-radius: 50%;
}

/* 拡大状態
---------------------------------------------------------------------------------*/
.kakurenbo-image.is-expanded {
  max-width: 1235px;
}

.kakurenbo-image.is-expanded .kakurenbo-image__zoom {
  display: none;
}

.kakurenbo-image.is-expanded .kakurenbo-image__shrink {
  display: inline-flex;
}

/* 答え表示（答え画像オーバーレイ）
---------------------------------------------------------------------------------*/
.kakurenbo-image__answer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kakurenbo-image__answer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kakurenbo-image__close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
  z-index: 2;
}

.kakurenbo-image__close:hover {
  background: #fff;
}

/* 答え表示状態 */
.kakurenbo-image.is-answer-shown .kakurenbo-image__answer {
  opacity: 1;
}

.kakurenbo-image.is-answer-shown .kakurenbo-image__zoom {
  display: none;
}

.kakurenbo-image.is-answer-shown .kakurenbo-image__close {
  display: inline-flex;
}


/* カウンタ（現在ページ/全ページ）
---------------------------------------------------------------------------------*/
.kakurenbo-counter {
  font-family: "Murecho", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: #514a65;
  text-align: center;
  margin: -40px 0 24px;
}

p.kakurenbo-counter {
  text-align: center;
  margin-top: -24px;
  margin-bottom: 35px;
}


@media screen and (max-width: 750px) {
  .kakurenbo-counter {
    font-size: 1.8rem;
    margin: -20px 0 16px;
  }
}

/* ナビゲーション（前/答え/次）
---------------------------------------------------------------------------------*/
.kakurenbo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 808px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.kakurenbo-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Murecho", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.kakurenbo-nav__link--prev {
  color: #514a65;
}

.kakurenbo-nav__link--next {
  color: #2c02c1;
}

.kakurenbo-nav__link:hover {
  opacity: 0.7;
}

.kakurenbo-nav__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.kakurenbo-nav__answer {
  font-family: "Murecho", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: #ea7629;
  border: 0;
  padding: 12px 36px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.kakurenbo-nav__answer:hover {
  opacity: 0.85;
}

/* 答え表示中はボタンを薄ピンク（押下状態）に */
.kakurenbo-nav__answer.is-active {
  background: #f6bf9b;
  color: #fff;
}

.kakurenbo-nav__answer.is-active:hover {
  opacity: 1;
  background: #f0b07f;
}

/* レスポンシブ
---------------------------------------------------------------------------------*/
@media screen and (max-width: 750px) {
  .kakurenbo-question {
    margin-bottom: 24px;
    padding: 0 70px 80px;
    min-height: 77px;
  }

  .kakurenbo-question::before{
    width: 94px;
    bottom: -66px;
  }

 
  .kakurenbo-question::after {
    width: 78px;
    bottom: -33px;
  }

  .kakurenbo-question__text {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .kakurenbo-image {
    padding: 10px;
    border-width: 4px;
    border-radius: 14px;
    margin-bottom: 30px;
  }

  .kakurenbo-image__zoom {
    right: 10px;
    bottom: 10px;
    min-width: 0;
    padding: 8px 14px;
    font-size: 1.4rem;
  }

  .kakurenbo-image__zoom-icon {
    width: 18px;
    height: 18px;
  }

  .kakurenbo-image__shrink {
    top: 12px;
    left: 12px;
    min-width: 0;
    height: 48px;
    padding: 8px 18px;
    font-size: 2rem;
    gap: 8px;
  }

  .kakurenbo-image__shrink-icon {
    width: 28px;
    height: 28px;
  }

  .kakurenbo-image__shrink-icon svg {
    width: 18px;
    height: 18px;
  }

  .kakurenbo-image.is-expanded {
    max-width: 100%;
  }

  .kakurenbo-nav {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
  }

  .kakurenbo-nav__link,
  .kakurenbo-nav__answer {
    font-size: 1.8rem;
  }

  .kakurenbo-nav__answer {
    width: 100%;
    padding: 14px 20px;
  }

  .kakurenbo-question__char--left {
    transform: translateY(71px);
    width: 90px;
  }
  
  .kakurenbo-question__char--right {
    transform: translateY(31px);
    width: 76px;
  }

  p.kakurenbo-counter {
    margin-bottom: 10px;
}
}

h1.kids-page-title {
  color: #FF3198!important;
  display: flex;
  align-items: center;
  justify-content: center;
    padding-left: 0!important;
}

@media screen and (max-width: 639px) {
  .kakurenbo-question::before {
    width: 70px;
    bottom: -60px;

  }

  .kakurenbo-question::after {
    width: 58px;
    bottom: -30px;
  }
}

.t18-middle-split{
  overflow: visible;
}