@charset "utf-8";

/* ========================================
  MAIN
======================================== */
.main {
  padding: 180px 0 80px;
  background: #fffeea;
}

/* ========================================
  TITLE
======================================== */
.main-title__number {
  font-size: var(--font-size-12);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.main-title h2 {
  margin: 20px auto 0;
  font-size: var(--font-size-24);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.main-title__text {
  margin: 20px auto 0;
  font-size: var(--font-size-16);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

/* ========================================
  LEAD
======================================== */
.main-lead {
  margin: 125px auto 0;
}

.main-lead p {
  font-size: var(--font-size-14);
  line-height: 2;
  color: #000000;
  text-align: center;
}

/* ========================================
  CHAPTER TITLE
======================================== */
.chapter-title {
  margin: 80px auto 0;
}

.chapter-title__number {
  background: #A32025;
  font-size: var(--font-size-30);
  line-height: 1;
  color: #C9B55D;
  text-align: center;
}

.chapter-title__image {
  position: relative;
  z-index: 1;
}

.chapter-title__image h3 {
  width: 100%;
  position: absolute;
  top: 76%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%,-50%);
  font-size: var(--font-size-14);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.chapter-title__text {
  width: 100%;
  position: absolute;
  top: 87%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%,-50%);
  font-size: var(--font-size-30);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

/* ========================================
  CHAPTER LINE UP
======================================== */
.chapter-lineup {
  margin: 80px auto;
}

/* TAB */
.chapter-lineup__tabs {
  position: sticky;
  top: 55px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: calc(100% - 20px * 2);
  margin: 0 auto;
}

.chapter-lineup__tab {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0;
  border: 1px solid #A32025;
  border-radius: 50px;
  background: #ffffff;
  font-size: var(--font-size-18);
  line-height: 1;
  color: #A32025;
  text-align: center;
  cursor: pointer;
}

.chapter-lineup__arrow {
  position: relative;
  display: inline-block;
  width: 6.7px;
  height: 3.8px;
}

.chapter-lineup__arrow::before, 
.chapter-lineup__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 5px;
  border-radius: 9999px;
  background-color: #A32025;
  transform-origin: 50% calc(100% - 0.5px);
}

.chapter-lineup__arrow::before {
  transform: rotate(45deg);
}

.chapter-lineup__arrow::after {
  transform: rotate(-45deg);
}

.chapter-lineup__items {
  margin: 80px auto 0;
}

.chapter-lineup__items h4 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.chapter-lineup__items h4 img {
  width: 16px;
}

.chapter-lineup__items h4 span {
  font-size: var(--font-size-30);
  line-height: 1;
  text-align: center;
}

#boy.chapter-lineup__items h4 span {
  color: #003EAA;
}

#girl.chapter-lineup__items h4 span {
  color: #E67C78;
}

#baby.chapter-lineup__items h4 span {
  color: #8BA853;
}

.chapter-lineup__item {
  margin: 60px auto 0;
}

#boy .chapter-lineup__item:nth-of-type(1) {
  padding: 112px 0 0 0;
}

#boy .chapter-lineup__item:nth-of-type(3) {
  padding: 73px 0 0 0;
}

#girl .chapter-lineup__item:nth-of-type(1) {
  padding: 20px 0 0 0;
}

#girl .chapter-lineup__item:nth-of-type(3) {
  padding: 70px 0 0 0;
}

#baby .chapter-lineup__item:nth-of-type(1) {
  padding: 37px 0 0 0;
}

.chapter-lineup__image {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.chapter-lineup__image div {
  position: absolute;
  z-index: 2;
}

#boy .chapter-lineup__item:nth-of-type(1) .chapter-lineup__image div {
  width: 38.37%;
  top: -112px;
  left: 30px;
}

#boy .chapter-lineup__item:nth-of-type(2) .chapter-lineup__image div {
  width: 19.76%;
  bottom: -20px;
  right: 30px;
}

#boy .chapter-lineup__item:nth-of-type(3) .chapter-lineup__image div {
  width: 34.88%;
  top: -73px;
  left: 30px;
}

#girl .chapter-lineup__item:nth-of-type(1) .chapter-lineup__image div:nth-of-type(1) {
  width: 21.62%;
  top: -20px;
  left: 30px;
}

#girl .chapter-lineup__item:nth-of-type(1) .chapter-lineup__image div:nth-of-type(2){
  width: 19.53%;
  bottom: -30px;
  right: 30px;
}

#girl .chapter-lineup__item:nth-of-type(2) .chapter-lineup__image div {
  width: 16.97%;
  bottom: -20px;
  right: 30px;
}

#girl .chapter-lineup__item:nth-of-type(3) .chapter-lineup__image div {
  width: 24.18%;
  top: -70px;
  left: 30px;
}

#baby .chapter-lineup__item:nth-of-type(1) .chapter-lineup__image div:nth-of-type(1) {
  width: 22.79%;
  top: -37px;
  right: 30px;
}

#baby .chapter-lineup__item:nth-of-type(1) .chapter-lineup__image div:nth-of-type(2) {
  width: 20%;
  bottom: -5px;
  left: 30px;
}

#baby .chapter-lineup__item:nth-of-type(2) .chapter-lineup__image div {
  width: 24.41%;
  bottom: -20px;
  right: 30px;
}

#baby .chapter-lineup__item:nth-of-type(3) .chapter-lineup__image div:nth-of-type(1) {
  width: 14.65%;
  bottom: -3px;
  left: 30px;
}

#baby .chapter-lineup__item:nth-of-type(3) .chapter-lineup__image div:nth-of-type(2) {
  width: 26.97%;
  bottom: -10px;
  right: 20px;
}

.chapter-lineup__text {
  width: calc(100% - 30px * 2);
  margin: 30px auto 0;
}

.chapter-lineup__text h5 {
  font-size: var(--font-size-18);
  line-height: 1;
  text-align: left;
}

#boy .chapter-lineup__text h5 {
  color: #003EAA;
}

#girl .chapter-lineup__text h5 {
  color: #E67C78;
}

#baby .chapter-lineup__text h5 {
  color: #8BA853;
}

.chapter-lineup__caption {
  margin: 30px auto 0;
  font-size: var(--font-size-14);
  line-height: 2;
  color: #000000;
  text-align: left;
}

.chapter-lineup__credits {
  width: calc(100% - 30px * 2);
  margin: 30px auto 0;
}

.chapter-lineup__credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.chapter-lineup__credit + .chapter-lineup__credit {
  margin: 10px auto 0;
}

.chapter-lineup__credit a {
  font-size: var(--font-size-12);
  line-height: 1;
  color: #000000;
  text-align: left;
  transition: all 0.4s ease;
}

#boy .chapter-lineup__credit a:hover {
  color: #003EAA;
}

#girl .chapter-lineup__credit a:hover {
  color: #E67C78;
}

#baby .chapter-lineup__credit a:hover {
  color: #8BA853;
}

.chapter-lineup__credit a + a {
  padding: 0 8px;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.4s ease;
}

#boy .chapter-lineup__credit a + a {
  background: #003EAA;
  border: 1px solid #003EAA;
}

#girl .chapter-lineup__credit a + a {
  background: #E67C78;
  border: 1px solid #E67C78;
}

#baby .chapter-lineup__credit a + a {
  background: #8BA853;
  border: 1px solid #8BA853;
}

#boy .chapter-lineup__credit a + a:hover, 
#girl .chapter-lineup__credit a + a:hover, 
#baby .chapter-lineup__credit a + a:hover {
  background: none;
}

.chapter-lineup__link {
  margin: 60px auto 0;
}

.chapter-lineup__link a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46.51%;
  max-width: 200px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
  border-radius: 50px;
  font-size: var(--font-size-14);
  line-height: 1;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

#boy .chapter-lineup__link a {
  border: 1px solid #003EAA;
  background: #003EAA;
}

#girl .chapter-lineup__link a {
  border: 1px solid #E67C78;
  background: #E67C78;
}

#baby .chapter-lineup__link a {
  border: 1px solid #8BA853;
  background: #8BA853;
}

#boy .chapter-lineup__link a:hover {
  color: #003EAA;
  background: none;
}

#girl .chapter-lineup__link a:hover {
  color: #E67C78;
  background: none;
}

#baby .chapter-lineup__link a:hover {
  color: #8BA853;
  background: none;
}

@media only screen and (min-width: 768px) {
  .chapter-title__image h3 {
    position: static;
    transform: none;
    margin: 30px auto 0;
  }

  .chapter-title__text {
    position: static;
    transform: none;
    margin: 5px auto 0;
  }

  .chapter-lineup__tabs {
    width: 100%;
    max-width: 500px;
  }

  .chapter-lineup__inner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========================================
  DEER ANIMATION
======================================== */
.deer-animation {
  animation: deerHeadMove 3s ease-in-out infinite;
}

/* 首を傾けるような動き */
@keyframes deerHeadMove {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  20% {
    transform: translateY(-3px) rotate(-3deg);
  }

  40% {
    transform: translateY(0) rotate(2deg);
  }

  60% {
    transform: translateY(-4px) rotate(3deg);
  }

  80% {
    transform: translateY(0) rotate(-2deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .deer-animation img {
    animation: none;
  }
}

/* ========================================
  DEER JUMP ANIMATION
======================================== */
.deer-jump__character {
  animation: deerJump 1.8s ease-in-out infinite;
}

.deer-jump__character img {
  animation: deerSquash 1.8s ease-in-out infinite;
}

/* ジャンプ */
@keyframes deerJump {
  0% {
    transform: translateY(0);
  }

  12% {
    transform: translateY(3px);
  }

  38% {
    transform: translateY(-30px);
  }

  55% {
    transform: translateY(-32px);
  }

  78% {
    transform: translateY(0);
  }

  85% {
    transform: translateY(-4px);
  }

  92% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

/* 着地時のぽよん */
@keyframes deerSquash {
  0%,
  100% {
    transform: scale(1, 1);
  }

  12% {
    transform: scale(1.03, 0.97);
  }

  38%,
  55% {
    transform: scale(0.98, 1.02);
  }

  78% {
    transform: scale(1.04, 0.95);
  }

  85% {
    transform: scale(0.98, 1.03);
  }

  92% {
    transform: scale(1, 1);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .deer-jump__character,
  .deer-jump__character img {
    animation: none;
  }
}

/* ========================================
  RABBIT JUMP ANIMATION
======================================== */
.rabbit-jump__character {
  animation: rabbitJump 1.5s ease-in-out infinite;
}

.rabbit-jump__character img {
  animation: rabbitSquash 1.5s ease-in-out infinite;
}

/* ジャンプ */
@keyframes rabbitJump {
  0%,
  100% {
    transform: translateY(0);
  }

  12% {
    transform: translateY(3px);
  }

  40% {
    transform: translateY(-38px);
  }

  55% {
    transform: translateY(-40px);
  }

  80% {
    transform: translateY(0);
  }

  88% {
    transform: translateY(-3px);
  }

  94% {
    transform: translateY(0);
  }
}

/* 着地時のぽよん */
@keyframes rabbitSquash {
  0%,
  100% {
    transform: scale(1, 1);
  }

  12% {
    transform: scale(1.03, 0.97);
  }

  40%,
  55% {
    transform: scale(0.98, 1.02);
  }

  80% {
    transform: scale(1.04, 0.95);
  }

  88% {
    transform: scale(0.99, 1.02);
  }

  94% {
    transform: scale(1, 1);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .rabbit-jump__character,
  .rabbit-jump__character img {
    animation: none;
  }
}

/* ========================================
  RABBIT RUSTLE ANIMATION
======================================== */
.rabbit-rustle img {
  animation: rabbitRustle 2.2s ease-in-out infinite;
}

/* がさごそ動く */
@keyframes rabbitRustle {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-3px, 1px) rotate(-2deg);
  }

  20% {
    transform: translate(4px, -2px) rotate(2deg);
  }

  30% {
    transform: translate(-2px, 3px) rotate(-1deg);
  }

  38% {
    transform: translate(3px, -1px) rotate(2deg);
  }

  46% {
    transform: translate(-3px, 1px) rotate(-2deg);
  }

  60% {
    transform: translate(1px, 0) rotate(1deg);
  }

  70% {
    transform: translate(-2px, 2px) rotate(-1deg);
  }

  80% {
    transform: translate(3px, -1px) rotate(2deg);
  }

  90% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .rabbit-rustle img {
    animation: none;
  }
}

/* ========================================
  BIRD FLOAT ANIMATION
======================================== */
.bird-float img {
  animation: birdFloat 3.5s ease-in-out infinite;
}

/* ふわふわ飛ぶ */
@keyframes birdFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(3px, -15px) rotate(2deg);
  }

  50% {
    transform: translate(7px, -5px) rotate(-1deg);
  }

  75% {
    transform: translate(-3px, -12px) rotate(-2deg);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .bird-float img {
    animation: none;
  }
}

/* ========================================
  SQUIRREL PICKUP ANIMATION
======================================== */
.squirrel-pickup__squirrel img {
  animation: squirrelAction 5s ease-in-out infinite;
}

/* どんぐり拾い */
@keyframes squirrelAction {

  0%,
  8% {
    transform: translateX(0) rotate(0);
  }

  20% {
    transform: translateX(10px) rotate(0);
  }

  32% {
    transform: translateX(10px) rotate(12deg);
  }

  45% {
    transform: translateX(10px) rotate(8deg);
  }

  60% {
    transform: translateX(10px) rotate(-3deg);
  }

  70%,
  88% {
    transform: translateX(10px) translateY(-3px) rotate(0);
  }

  93% {
    transform: translateX(10px) rotate(3deg);
  }

  100% {
    transform: translateX(0) rotate(0);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .squirrel-pickup__squirrel img {
    animation: none;
  }
}

/* ========================================
  OWL WALK ANIMATION
======================================== */
.owl-walk img {
  animation: owlWalk 2.2s ease-in-out infinite;
}

/* 歩く */
@keyframes owlWalk {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  12% {
    transform: translate(-3px, -2px) rotate(-4deg);
  }

  25% {
    transform: translate(0, 1px) rotate(2deg);
  }

  37% {
    transform: translate(3px, -2px) rotate(4deg);
  }

  50% {
    transform: translate(0, 1px) rotate(-2deg);
  }

  62% {
    transform: translate(-3px, -2px) rotate(-4deg);
  }

  75% {
    transform: translate(0, 1px) rotate(2deg);
  }

  87% {
    transform: translate(3px, -2px) rotate(4deg);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .owl-walk img {
    animation: none;
  }
}
