@charset "utf-8";
/* CSS Document */

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ページ全体
---------------------------------------------------------------------------------*/
.t18-products {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.kakurenbo-container {
  background-color: #fff4fe;
}

.t18-middle-split-rgt {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* あしらい（PCのみ・画面両端）
---------------------------------------------------------------------------------*/
.asobi-body {
  display: flow-root;
  position: relative;
  overflow: visible;
}

.asobi-decor {
  display: none;
}

.kakurenbo-decor {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.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;
  pointer-events: none;
  animation: flower-pulse 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@media screen and (min-width: 1470px) {
  .asobi-decor {
    display: block;
    position: absolute;
    top: 280px;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
  }

  .asobi-decor__item {
    position: absolute;
    width: clamp(160px, 14vw, 220px);
    height: auto;
    display: block;
  }

  .asobi-decor__item:nth-child(odd) {
    left: 0;
    right: auto;
  }

  .asobi-decor__item:nth-child(even) {
    left: auto;
    right: 0;
  }

  .asobi-body .t18-middle-split,
  .asobi-body .asobi-slider,
  .asobi-body .kids-page-title,
  .asobi-body .kakurenbo-question {
    position: relative;
    z-index: 1;
  }
}

@keyframes flower-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kakurenbo-decor::before {
    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: 1040px;
  margin: 0 auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

.kakurenbo-question__text ruby,
.asobi-section__lead ruby {
  ruby-position: over;
}

.kakurenbo-question__text {
  display: inline-block;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #000;
  margin: 0;
  text-align: left;
}

/* あそびセクション（見出し・リード文）
---------------------------------------------------------------------------------*/
.asobi-section {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.asobi-section + .asobi-section {
  margin-top: 100px;
}

.asobi-section__title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-size: 4rem;
  line-height: 1.45;
  color: #1b2197;
  margin: 0 0 16px;
}

.asobi-section__leadrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 28px;
  padding: 0;
  box-sizing: border-box;
  flex-direction: column;
}

.asobi-section__lead {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: #333;
  max-width: none;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  text-align: left;
}

.asobi-section__lead.machigai{
  margin-top: 40px;
}

.asobi-section__lead-img {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 16px;
  box-sizing: border-box;
}

/* メイン画像
---------------------------------------------------------------------------------*/
.kakurenbo-image {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 110px auto 30px;
  padding: 18px;
  background: #fff;
  border: 5px solid #ea7629;
  border-radius: 20px;
  box-sizing: border-box;
}

.kakurenbo-image::before,
.kakurenbo-image::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  pointer-events: none;
}

.kakurenbo-image::before {
  left: 30px;
  bottom: 100.4%;
  width: 110px;
  height: 92px;
  background-image: url('../img/kid_left.webp');
  background-size: 110px auto;
  background-position: top;
}

.kakurenbo-image::after {
  right: 38px;
  bottom: 99.5%;
  width: 89px;
  aspect-ratio: 440 / 408;
  background-image: url('../img/kid_right.webp');
}

.kakurenbo-image__inner {
  position: relative;
  display: block;
}

.kakurenbo-image__inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ステップ表示（★バッジ・スライド）
---------------------------------------------------------------------------------*/
.kakurenbo-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  min-height: 1.2em;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #1b2197;
}

.kakurenbo-badge__level {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.kakurenbo-badge__level.is-hidden {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.kakurenbo-badge__label {
  font-size: 0.72em;
  letter-spacing: 0.06em;
}

.kakurenbo-badge__stars {
  color: #f5a623;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.kakurenbo-viewer {
  position: relative;
  width: min(100%, calc(62vh * 4 / 5));
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f3e8f3;
  cursor: pointer;
  touch-action: pan-y;
}

.kakurenbo-viewer__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.kakurenbo-frame {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.kakurenbo-viewer .kakurenbo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.kakurenbo-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto 40px;
}

.kakurenbo-steps__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kakurenbo-steps__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e3d3e3;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kakurenbo-steps__dot.is-current {
  background: #ea7629;
  transform: scale(1.3);
}

.kakurenbo-steps__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 14px 28px;
  background: #ea7629;
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  border: 1px solid #fff;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.kakurenbo-steps__next:hover {
  opacity: 0.88;
}

.kakurenbo-steps__next.is-restart {
  background: #10a731;
}

.kakurenbo-steps__arrow {
  flex: 0 0 auto;
}

.kakurenbo-steps__next.is-restart .kakurenbo-steps__arrow {
  display: none;
}

/* ナビゲーション（前/答え/次）
---------------------------------------------------------------------------------*/
.kakurenbo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 120px;
  padding: 0 20px;
}

.kakurenbo-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "M PLUS Rounded 1c", 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;
}

/* SP
---------------------------------------------------------------------------------*/
@media screen and (max-width: 750px) {
  .kakurenbo-question {
    margin-bottom: 24px;
    padding: 0 20px;
    min-height: 77px;
  }

  .kakurenbo-question__text {
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .asobi-section + .asobi-section {
    margin-top: 40px;
  }

  .asobi-section {
    padding: 0 20px;
  }

  .asobi-section__title {
    font-size: 2.8rem;
    margin-bottom: 12px;
  }

  .asobi-section__leadrow {
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
  }

  .asobi-section__lead {
    font-size: 1.6rem;
    padding: 0;
  }

  .asobi-section__lead-img {
    width: 100px;
    height: 100px;
    padding: 10px;
  }

  .kakurenbo-image {
    padding: 10px;
    border-width: 4px;
    border-radius: 14px;
    margin-top: 90px;
    margin-bottom: 30px;
  }

  .kakurenbo-image::before {
    left: 10px;
    width: 94px;
    height: 81px;
    background-size: 94px auto;
  }

  .kakurenbo-image::after {
    right: 14px;
    width: 78px;
  }

  .kakurenbo-badge {
    gap: 6px;
    margin-bottom: 10px;
    font-size: 1.6rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: calc(1.6rem * 1.2);
  }

  .kakurenbo-viewer {
    width: min(100%, calc(56vh * 4 / 5));
    border-radius: 6px;
  }

  .kakurenbo-steps {
    gap: 12px;
    margin-bottom: 24px;
  }

  .kakurenbo-steps__dot {
    width: 10px;
    height: 10px;
  }

  .kakurenbo-steps__next {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 1.8rem;
  }

  .kakurenbo-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 80px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kakurenbo-nav__link {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    gap: 4px;
    min-width: 0;
  }

  .kakurenbo-nav__arrow {
    width: 20px;
    height: 20px;
  }

  .kakurenbo-question__char--left {
    transform: translateY(71px);
    width: 90px;
  }
  
  .kakurenbo-question__char--right {
    transform: translateY(31px);
    width: 76px;
  }
}

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-image {
    margin-top: 70px;
  }

  .kakurenbo-image::before {
    left: 6px;
    width: 70px;
    height: 60px;
    background-size: 70px auto;
  }

  .kakurenbo-image::after {
    right: 8px;
    width: 58px;
  }

  .kakurenbo-nav {
    margin-bottom: 60px;
  }
}

.t18-middle-split{
  overflow: visible;
}

/* まちがいさがし
---------------------------------------------------------------------------------*/
.machigai-section {
  margin-top: 20px;
}

.machigai-lead__sp {
  display: none;
}

.machigai-lead__pc {
  display: inline;
}

.machigai-image {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto 30px;
  box-sizing: border-box;
}

.machigai-image__inner {
  position: relative;
  display: block;
}

.machigai-pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.machigai-pair__item {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 5px solid #ea7629;
  border-radius: 20px;
  box-sizing: border-box;
  cursor: pointer;
}

.machigai-pair__item:focus-visible {
  outline: 3px solid #2c02c1;
  outline-offset: 2px;
}

.machigai-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.machigai-pair__item[hidden],
.machigai-image[hidden] {
  display: none;
}

.machigai-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 80px;
}

.machigai-section.is-multi .machigai-steps {
  margin-bottom: 30px;
}

.machigai-nav[hidden] {
  display: none;
}

.machigai-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.machigai-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "M PLUS Rounded 1c", 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;
}

.machigai-nav__link--prev {
  color: #514a65;
}

.machigai-nav__link--next {
  color: #2c02c1;
}

.machigai-nav__link:hover {
  opacity: 0.7;
}

.machigai-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;
}

.machigai-steps__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 14px 28px;
  background: #ea7629;
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  border: 1px solid #fff;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.machigai-steps__next:hover {
  opacity: 0.88;
}

.machigai-steps__next.is-restart {
  background: #10a731;
}

.machigai-steps__arrow {
  flex: 0 0 auto;
}

.machigai-steps__next.is-restart .machigai-steps__arrow {
  display: none;
}

/* まちがいさがし ライトボックス
---------------------------------------------------------------------------------*/
body.is-machigai-lightbox-open {
  overflow: hidden;
}

.machigai-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}

.machigai-lightbox[hidden] {
  display: none;
}

.machigai-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 1200px);
  max-height: calc(100vh - 48px);
}

.machigai-lightbox__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  cursor: pointer;
}

.machigai-lightbox__item {
  flex: 1 1 0;
  min-width: 0;
  max-height: calc(100vh - 140px);
  padding: 12px;
  background: #fff;
  border: 5px solid #ea7629;
  border-radius: 16px;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
}

.machigai-lightbox__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 8px;
}

.machigai-lightbox__close {
  flex: 0 0 auto;
  z-index: 2;
  min-width: 220px;
  height: 56px;
  padding: 0 28px;
  border: 2px solid #fff;
  border-radius: 50px;
  background: #ea7629;
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.machigai-lightbox__close:hover {
  opacity: 0.88;
}

@media screen and (max-width: 750px) {
  .machigai-lead__pc {
    display: none;
  }

  .machigai-lead__sp {
    display: inline;
  }

  .machigai-image {
    margin-bottom: 20px;
  }

  .machigai-pair {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .machigai-pair__item {
    flex: none;
    width: 100%;
    padding: 8px;
    border-width: 4px;
    border-radius: 14px;
    cursor: default;
  }

  .machigai-steps {
    margin-bottom: 50px;
  }

  .machigai-section.is-multi .machigai-steps {
    margin-bottom: 20px;
  }

  .machigai-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 50px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .machigai-nav__link {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    gap: 4px;
    min-width: 0;
  }

  .machigai-nav__arrow {
    width: 20px;
    height: 20px;
  }

  .machigai-steps__next {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 1.8rem;
  }

  .machigai-lightbox {
    padding: 12px;
    align-items: center;
    overflow-y: auto;
  }

  .machigai-lightbox__content {
    gap: 16px;
    max-height: none;
    width: 100%;
  }

  .machigai-lightbox__pair {
    flex-direction: column;
    gap: 10px;
    flex: none;
  }

  .machigai-lightbox__item {
    flex: none;
    width: 100%;
    max-height: none;
    padding: 8px;
    border-width: 4px;
    border-radius: 14px;
  }

  .machigai-lightbox__item img {
    max-height: none;
  }

  .machigai-lightbox__close {
    display: none;
  }
}

/* インスタグラム
---------------------------------------------------------------------------------*/
.asobi-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.asobi-instagram img {
  max-width: 60px;
  height: auto;
}

.asobi-instagram__text {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
}

.asobi-instagram__text::before,
.asobi-instagram__text::after {
  font-weight: bold;
}

.asobi-instagram__text::before {
  content: "\\";
  margin-right: 0.35em;
}

.asobi-instagram__text::after {
  content: "/";
  margin-left: 0.35em;
}

.asobi-instagram__text ruby {
  ruby-position: over;
}

@media screen and (max-width: 750px) {
  .asobi-instagram__text {
    font-size: 15px;
  }
}

/* フォトスライダー（マーキー上・1列）
---------------------------------------------------------------------------------*/
.asobi-slider {
  display: block;
  margin: 0;
  padding-top: 30px;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.asobi-slider .slider-wrapper {
  display: flex;
  overflow: hidden;
}

.asobi-slider .slider {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: asobi-scroll 40s linear infinite;
  animation-play-state: paused;
}

.asobi-slider.is-ready .slider {
  animation-play-state: running;
}

.asobi-slider .slide {
  flex-shrink: 0;
  width: 100px;
  height: 125px;
  padding: 0;
  box-sizing: border-box;
  background-color: #f3e8f3;
}

.asobi-slider .slide img {
  display: block;
  width: 100px;
  max-width: none;
  height: 125px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.asobi-slider .slide img.is-loaded {
  opacity: 1;
}

@keyframes asobi-scroll {
  from {
    transform: translate3d(-100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (max-width: 767px) {
  .asobi-slider {
    padding-top: 30px;
  }

  .asobi-slider .slider {
    animation-duration: 70s;
  }
}