@charset "utf-8";

/* =====================================
  common
===================================== */
.bg_illust {
  padding: 24px 20px 336px;
  background: url(/kids/img/bg_illust.webp) no-repeat top center / 100% auto;
}

.hash-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hash-list__item {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background-color: #E8EAEB;
  font-size: 0.875rem;/* 14px */
  line-height: 1.5;
  letter-spacing: 0.42px;
}
.hash-list__item::before {
  content: "＃";
}

@media screen and (max-width: 767px) {
  .bg_illust {
    padding: 12px 20px 0;
    background-image: url(/kids/img/bg_illust_sp.webp);
    background-size: cover;
  }
  .hash-list__item {
    display: inline-block;
    padding: 1.5pxpx 4px;
    font-size: 0.75rem;/* 12px */
    letter-spacing: 0.36px;
  }
}


/* =====================================
  hero
===================================== */
.hero__inner {
  max-width: 1164px;
  margin: 0 auto;
}
.hero__title {
  display: flex;
  justify-content: center;
  margin-top: -16px;
}
.hero__text {
  margin-top: 15px;
  text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1439px) {
  .hero__title-img {
    width: 52vw;
  }
}

@media screen and (max-width: 767px) {
  .hero__inner {
    max-width: 84.533vw;
  }
  .hero__title {
    margin-top: 18px;
  }
  .hero__text {
    text-align: left;
  }
}


/* =====================================
  notes
===================================== */
.notes {
  margin-top: 71px;
}
.notes__inner {
  max-width: 1164px;
  margin: 0 auto;
}
.notes__list {
  display: flex;
  justify-content: space-between;
}
.notes__item {
  width: 31.529%;
  min-height: 246px;
  position: relative;
  z-index: 1;
}
.notes__link {
  display: block;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
  color: var(--color-blue950);
  text-decoration: none;
}
.notes__link::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, #ebe8e4, #ebe8e4 4px, var(--color-mono50) 5px 100%);
  border-radius: 12px;
  transition: .2s;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.notes__link--library::before {
  background-image: linear-gradient(90deg, #ebe8e4, #ebe8e4 4px, #FFEDED 5px 100%);
}
.notes__link--study::before {
  background-image: linear-gradient(90deg, #ebe8e4, #ebe8e4 4px, #E9F4FF 5px 100%);
}
.notes__link-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 20px 0 20px 22px;
}
.notes__link-inner::before {
  content: "";
  width: 31px;
  height: calc(100% - 28px);
  background-image: url(/common/img/img_note_deco.svg);
  background-repeat: no-repeat round;
  background-size: 31px 38px;
  background-position: 0 0;
  position: absolute;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.notes__item-title {
  padding-left: 18px;
  font-size: 0;
}
.notes__item-subtitle {
  min-width: 162px;
  height: 65px;
  padding: 5px;
  border: 3px solid var(--color-mono50);
  border-radius: 6px;
  color: var(--color-mono0);
  font-size: 1.125rem;/* 18px */
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.54px;
  text-align: center;
  position: absolute;
  top: -36px;
  left: 22px;
  z-index: -2;
  transform: rotate(-3deg);
}
.mizuiku-contents:not(.ruby-off) .notes__item-subtitle:has(ruby) {
  top: -44px;
}
.notes__item--library .notes__item-subtitle {
  background-color: var(--color-note-find);
}
.notes__item--creature .notes__item-subtitle {
  background-color: var(--color-note-look);
}
.notes__item--study .notes__item-subtitle {
  background-color: var(--color-note-try);
}
.notes__item:nth-of-type(2n + 2) .notes__item-subtitle {
  transform: rotate(2deg);
}
.notes__item-subtitle-text {
  display: inline-block;
  transform: rotate(3deg) translateX(6px);
}
.notes__item:nth-of-type(2n + 2) .notes__item-subtitle-text {
  transform: rotate(-2deg) translateX(4px);
}
.notes__text {
  flex-grow: 1;
  padding: 0 24px 0 18px;
  font-size: 1rem;/* 16px */
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.48px;
}
.notes__text-link {
  padding: 0 24px 0 18px;
  text-align: right;
}
.contents-link--library::after {
  background-color: var(--color-note-find);
}
.contents-link--study::after {
  background-color: var(--color-note-try);
}

@media (hover: hover) {
  .notes__link:hover::before {
    background-image: linear-gradient(90deg, #ebe8e4, #ebe8e4 4px, #FFFBE6 5px 100%);
  }
  .notes__link:hover .contents-link {
    color: var(--color-blue700);
    text-decoration: underline;
  }
  .notes__link:hover .contents-link::after {
    transform: translateY(-50%) scale(1.333);
  }

}

@media screen and (max-width: 767px) {
  .notes {
    margin-top: 48px;
    padding: 0  0 58px;
    border-radius: 10.667vw;
  }
  .notes__list {
    flex-direction: column;
    gap: 64px;
  }
  .notes__item {
    width: 100%;
    min-height: auto;
  }
  .notes__link-inner {
    padding: 16px 20px 16px 32px;
  }
  .notes__link-inner::before {
    left: -11px;
    width: 29px;
    height: calc(100% - 8px);
    background-size: 29px 38px;
  }
  .notes__link-inner::after {
    height: calc(100% - 25px);
    top: 12.5px;
    left: -12px;
  }
  .notes__item-subtitle {
    width: 158px;
    height: 63px;
    font-size: 1rem;/* 16px */
    letter-spacing: 0.48px;
    top: -38px;
    left: 32px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
  }
  .notes__item-title {
    padding-left: 0;
  }
  .notes__text {
    padding: 0;
    font-size: 1rem;/* 16px */
    letter-spacing: 0.48px;
  }
  .notes__text-link {
    padding: 0;
  }
}


/* coming soon */
.notes__item--comingsoon .notes__link::before {
  background-image: linear-gradient(90deg, #ebe8e4, #ebe8e4 4px, #B7C5D1 5px 100%);
}
.notes__item--comingsoon .notes__link::after {
  content: none;
}
.notes__item--comingsoon .notes__item-subtitle {
  background-color: #72A87F;
}
.notes__item--comingsoon .notes__item-title {
  opacity: 0.5;
}
.notes__item--comingsoon .notes__text {
  flex-grow: 0;
  margin-top: 52px;
  padding-left: 2px;
  font-size: 0;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .notes__item--comingsoon .notes__item-title {
    max-height: 36.9px;
  }
  .notes__item--comingsoon .notes__text {
    margin-top: 8px;
    padding-left: 0;
    text-align: center;
  }
  .notes__item--comingsoon .notes__text svg {
    max-width: 156px;
  }

}



/* =====================================
  reading
===================================== */
.reading {
  padding-top: 1px;
  background-color: var(--color-blue400);
  background-image: linear-gradient(90deg, #7CCAF9 1px, transparent 1px), linear-gradient(#7CCAF9 1px, transparent 1px);
  background-position: 0 100%;
  background-size: 32px 32px;
  position: relative;
}
.reading::before {
  content: "";
  position: absolute;
  top: -86px;
  left: 0;
  width: 100%;
  height: 86px;
  background-color: var(--color-blue400);
  background-image: linear-gradient(90deg, #7CCAF9 1px, transparent 1px), linear-gradient(#7CCAF9 1px, transparent 1px);
  background-position: 0 22px;
  background-size: 32px 32px;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 86" preserveAspectRatio="none"><path d="M0 85.9999L1440 86L1440 28.007C1440 28.007 1211.87 84.7837 1063.62 85.9387C837.603 87.6998 688.243 6.65876 462.282 0.300452C267.998 -5.16651 0 65.7884 0 65.7884L0 85.9999Z" fill="black"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 86" preserveAspectRatio="none"><path d="M0 85.9999L1440 86L1440 28.007C1440 28.007 1211.87 84.7837 1063.62 85.9387C837.603 87.6998 688.243 6.65876 462.282 0.300452C267.998 -5.16651 0 65.7884 0 65.7884L0 85.9999Z" fill="black"/></svg>');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.reading__inner {
  margin-top: -236px;
}

@media screen and (max-width: 767px) {
  .reading::before {
      top: -21.576px;
      height: 21.576px;
  }
  .reading__inner {
    margin-top: 0;
  }

}

/* =====================================
  recommend
===================================== */
.recommend {
  padding: 0 20px 60px;
  position: relative;
  z-index: 1;
}
.recommend__list {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 87px;
  position: relative;
}
.recommend__item {
  max-width: 324px;
}
.recommend__item:first-of-type {
  position: relative;
}
.recommend__item:first-of-type::before {
  content: "";
  width: 374px;
  height: 152px;
  background: url(/kids/img/img_recommend_bird.svg) no-repeat center / contain;
  position: absolute;
  top: -138px;
  left: -71px;
  z-index: 1;
}
.recommend__item:nth-of-type(2) {
  margin-top: -87px;
}
.recommend__link {
  display: block;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background-color: var(--color-mono100);
  position: relative;
  transition: 0.2s;
}
.recommend__link--library {
  --color-key: var(--color-note-find);
}
.recommend__link--study {
  --color-key: var(--color-note-try);
}
.recommend__link::before {
  content: "";
  width: 44px;
  height: 56px;
  background: url(/kids/img/icon_kira.svg) no-repeat center / contain;
  position: absolute;
  right: -5.137px;
  top: -8px;
  transition: 0.2s;
}
.recommend__link::after {
  content: "";
  width: 45px;
  height: 45px;
  border-radius: 12px 0 0 0;
  background: linear-gradient(135deg, var(--color-key)50%, var(--color-blue400) 50%);
  position: absolute;
  right: -1px;
  bottom: -1px;
  transition: 0.2s;
  transform-origin: right bottom;
}
.recommend__image {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-mono200);
}
.recommend__img {
  width: 100%;
  transition: 0.2s;
}
.recommend__detail {
  margin-top: 20px;
  padding: 0 25px 0 4px;
}
.recommend__label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  color: var(--color-mono0);
  font-size: 1rem;/* 16px */
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.48px;
}
.recommend__label--library {
  background-color: var(--color-key);
}
.recommend__label--study {
  background-color: var(--color-key);
}
.recommend__title {
  margin-top: 9px;
  font-size: 1.375rem;/* 22px */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.66px;
  transition: 0.2s;
}
.recommend__hash-list {
  margin-top: 12px;
}

@media (hover: hover) {
  .recommend__link:hover {
    background-color: var(--color-hover-bg);
  }
  .recommend__link:hover::before {
    transform: scale(1.159);
  }
  .recommend__link:hover .recommend__img {
    transform: scale(1.1);
  }
  .recommend__link:hover .recommend__title {
    color: var(--color-blue700);
    text-decoration: underline;
  }
  .recommend__link:hover::after {
    transform: scale(1.2);
  }
}

@media screen and (max-width: 767px) {
  .recommend {
    padding: 44px 20px 48px;
  }
  .recommend__list {
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
  }
  .recommend__item {
    max-width: none;
  }
  .recommend__item:first-of-type::before {
    content: "";
    width: 337px;
    height: 90px;
    background-image: url(/kids/img/img_recommend_bird_sp.svg);
    top: -81px;
    left: -3px;
  }
  .recommend__item:nth-of-type(2) {
    margin-top: 0;
  }
  .recommend__link {
    padding: 20px 20px 18px;
    border-radius: 16px;
  }
  .recommend__link::before {
    content: none;
  }
  .recommend__image {
    border-radius: 8px;
  }
  .recommend__detail {
    margin-top: 16px;
    padding: 0 25px 0 4px;
  }
  .recommend__label {
    font-size: 0.875rem;/* 14px */
    letter-spacing: 0.42px;
  }
  .recommend__title {
    margin-top: 4px;
    font-size: 1.25rem;/* 20px */
    line-height: 1.5;
    letter-spacing: 0.6px;
  }
  .recommend__hash-list {
    margin-top: 10px;
  }

}


/* =====================================
  hash-toggle
===================================== */
.reading__menu {
  max-width: 1164px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 60px;
  background-color: var(--color-mono100);
  text-align: center;
}

.reading__menu-text {
  display: inline-block;
  font-size: 1.75rem;/* 28px */
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.84px;
  text-align: center;
  position: relative;
}
.reading__menu-text::after {
  content: "";
  width: 111px;
  height: 109px;
  background: url(/kids/img/img_reading_bird.svg) no-repeat center / contain;
  position: absolute;
  top: -56px;
  right: -117px;
  z-index: 1;
}
.reading__menu-text-inner {
  display: block;
  padding: 0 0 4px 56px;
  position: relative;
  z-index: 1;
}
.reading__menu-text-inner::before {
  content: "";
  width: 40px;
  height: 40px;
  background: url(/common/img/icon_tap.svg) no-repeat center /contain;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(calc(-50% + 2px));

}
.reading__menu-text-inner::after {
  content: "";
  width: 100%;
  height: 12px;
  background-color: var(--color-orange200);
  border-radius: 9999px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: -1;
}

.reading__menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1004px;
  margin: 32px auto 0;
}
.reading__menu-button {
  display: flex;
  align-items: center;
  min-height: 64px;
  min-width: 240px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--color-mono200);
  background: var(--color-mono50);
  font-size: 1.125rem;/* 18px */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.54px;
  text-align: left;
  transition: 0.2s;
}
.reading__menu-button--active {
  border-color: var(--color-blue600);
  background-color: var(--color-blue600);
  color: var(--color-mono0);
}
.reading__menu-button-inner {
  padding-left: 1em;
  text-indent: -1em;
}
.reading__menu-button-inner::before {
  content: "＃";
}

.reading__title {
  margin-top: 48px;
}
.reading__title-img {
  display: none;
}
.reading__title-img--active {
  display: block;
}

.reading__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.reading__list-item {
  display: none;
  width: calc((100% - 32px) / 3);
  min-height: 170px;
}
.reading__list-item--active {
  display: block;
}
.reading__link {
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 13px 13px 9px 0;
  border-radius: 12px;
  border: 3px solid var(--color-key);
  background: var(--color-mono50);
  transition: 0.2s;
}
.reading__link--library {
  --color-key: var(--color-note-find);
}
.reading__link--study {
  --color-key: var(--color-note-try);
}
.reading__image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.reading__img {
  transition: 0.2s;
}
.reading__detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.reading__label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  color: var(--color-mono0);
  font-size: 1rem;/* 16px */
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.48px;
}
.reading__label--library {
  background-color: var(--color-key);
}
.reading__label--study {
  background-color: var(--color-key);
}
.reading__list-title {
  flex-grow: 1;
  margin-top: 4px;
  font-size: 1.125rem;/* 18px */
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.54px;
  transition: 0.2s;
}
.reading__hash-list {
  margin-top: 4px;
}

@media (hover: hover) {
  .reading__link:hover {
    background-color: var(--color-hover-bg);
  }
  .reading__link:hover .reading__img {
    transform: scale(1.1);
    opacity: 0.7;
  }
  .reading__link:hover .reading__list-title {
    color: var(--color-blue700);
    text-decoration: underline;
  }

}

@media screen and (max-width: 767px) {
  .reading__menu {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .reading__menu-text {
    font-size: 1rem;/* 16px */
    letter-spacing: 0.48px;
  }
  .reading__menu-text::after {
    content: "";
    width: 52px;
    height: 54px;
    top: -4px;
    right: -18px;
  }
  .reading__menu-text-inner {
    padding: 0 40px 4px 40px;
  }

  .reading__menu-nav {
    gap: 4px;
    margin-top: 16px;
  }
  .reading__menu-button {
    width: calc(50% - 2px);
    min-height: 56px;
    min-width: auto;
    border-radius: 8px;
    font-size: 0.875rem;/* 14px */
    letter-spacing: 0.42px;
  }

  .reading__title {
    margin-top: 32px;
  }
  .reading__title-img {
    zoom: 0.5078125;
  }

  .reading__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .reading__list-item {
    width: 100%;
    min-height: auto;
  }
  .reading__link {
    padding: 10px 14px 10px 0;
    border-radius: 8px;
    border-width: 2px;
  }
  .reading__img {
    width: 100px;
  }
  .reading__label {
    display: inline-block;
    font-size: 0.875rem;/* 14px */
    letter-spacing: 0.42px;
  }
  .reading__list-title {
    font-size: 1rem;/* 16px */
    letter-spacing: 0.48px;
  }
  .reading__hash-list {
    margin-top: 16px;
  }

}