@charset "utf-8";

main > section {
    padding: 96px 2rem 64px;
    background-image: url(/images/spring/newFiscalYears/index/img/back-hero_sp.png);
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
    main > section {
        display: block;
        position: relative;
        margin: 0 auto;
        padding: 130px 0 0;
        max-width: 1040px;
        background-image: url(/images/spring/newFiscalYears/index/img/back-hero_pc.png);
        background-size: contain;
        background-position: bottom;
        background-repeat: no-repeat;
    }
}

main > section > div {
    position: relative;
}

@media screen and (min-width: 768px) {
    main > section > div {
        margin: 0 auto;
        width: 760px;
    }
}

main > section h1 {
    padding: 0 1rem;
}

@media screen and (min-width: 768px) {
    main > section h1 {
        margin: 48px auto 0;
        padding: 0;
        width: 480px;
    }
}

main > section p {
    margin: 16px auto 40px;
    text-align: center;
    line-height: 2;
}

main > section p > span {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #786955;
}

main > section p > span.small {
    font-size: 13px;
    font-weight: normal;
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    main > section p > span {
        line-height: 2.5;
        letter-spacing: 3px;
    }
}

main > section figure {
    position: absolute;
    animation: fuwafuwa 3s infinite ease-in-out 0s alternate;
}

main > section figure.bird {
    right: -16px;
    top: 0px;
    width: 42px;
    height: 37px;
}

@media screen and (min-width: 768px) {
    main > section figure.bird {
        right: 88px;
        top: 32px;
        width: 42px;
        height: 37px;
    }
}

main > section figure.squirrel {
    right: -16px;
    bottom: -96px;
    width: 93px;
    height: 83px;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    main > section figure.squirrel {
        right: 620px;
        bottom: 0px;
        width: 124px;
        height: 111px;
    }
}

/* 各誌の紹介 */
main > .products {
    display: flex;
    margin: 0 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media screen and (min-width: 768px) {
    main > .products {
        position: relative;
        margin: 0 auto;
        padding-bottom: 370px;
        width: 760px;
        background-image: url(/images/spring/newFiscalYears/index/img/back-bottom.png);
        background-repeat: no-repeat;
        background-position: bottom 25px right;
    }
}

main > .products > div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

main > .products > div > h2 {
    margin: 32px auto 16px;
    padding: 4px 0;
    width: 100%;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    border-radius: 24px;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li > a {
        margin: 32px auto;
    }
}

main > .products > div > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 8px;
    width: 100%
}

@media screen and (min-width: 768px) {
    main > .products > div > ul {
        display: flex;
        justify-content: space-around;
        margin: 0 8px;
    }
}

main > .products > div > ul > li {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-basis: 45%;
    margin-bottom: 30px;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li {
        flex-basis: auto;
        margin-bottom: 0;
    }
}

main > .products > div > ul > li > a {
    display: flex;
    justify-content: center;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li > a {
        margin: 32px auto 0;
        max-width: 170px;
    }
}

main > .products > div > ul > li .kb1,
main > .products > div > ul > li .kb2,
main > .products > div > ul > li .kb3 {
    width: 92%;
}

main > .products > div > ul > li .mk {
    width: 96%;
}

main > .products > div > ul > li .kk,
main > .products > div > ul > li .ks {
    width: 85%;
}

main > .products > div > ul > li figure > img {
    box-shadow: 0 3px 4px hsl(0deg 0% 50% / 33%);
    border: 1px solid #CCCCCC;
}

main > .products > div > ul > li .kj > img,
main > .products > div > ul > li .kb1 > img,
main > .products > div > ul > li .kb2 > img {
    border-radius: 10px 0 0 10px;
}

main > .products > div > ul > li .kk > img,
main > .products > div > ul > li .km > img {
    border-radius: 0 10px 10px 0;
}

main > .products > div > ul > li p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    height: 32px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    line-height: 1.0em;
    color: #7a6a56;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li p {
        height: 40px;
    }
}

main > .products > div > ul > li p.age {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto;
    padding: 4px;
    width: 100%;
    background-color: #fff;
    color: #7a6a56;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0;
    border: 1px solid #7a6a56;
    border-radius: 6px;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li p.age {
        padding: 0;
        height: 30px;
        font-size: 12px;
        border-width: 2px;
        border-radius: 15px;
    }
}

main > .products > div > ul > li p.age > span {
    font-size: 13px;
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    main > .products > div > ul > li p.age > span {
        font-size: 16px;
    }
}

/* 各誌の紹介：総合絵本 */
main > .products > div.general > h2 {
    background-color: #fab400;
}

/* 各誌の紹介：学習絵本 */
@media screen and (min-width: 768px) {
    main > .products > div.study {
        width: 64%;
    }
}

main > .products > div.study > h2 {
    background-color: #50c8fd;
}

/* 各誌の紹介：科学絵本 */
@media screen and (min-width: 768px) {
    main > .products > div.science {
        width: 31%;
    }
}

main > .products > div.science > h2 {
    background-color: #8dc760;
}

/* 各誌の紹介：おはなし絵本 */
main > .products > div.tale > h2 {
    background-color: #ff9698;
}

/* 動画コンテンツ */
.c-products-iframe {
    width: 100%;
    height: auto;
}

.iframe_container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    padding-top: 56.25%;
}

.iframe_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

 /* 動画無し */
.no-iframe {
    height: 22.5vw;
}

@media screen and (min-width: 768px) {
    .iframe_container {
        position: relative;
        margin: 0 auto;
        height: 96px;
    }

    .iframe_container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* 動画なし（学びキッズ） */
    .no-iframe {
        height: 96px;
    }

    /* 動画非公開中 */
    .c-youtube-fig {
        height: 96px;
    }

    .c-youtube-fig > img {
        max-height: 100%;
    }
}

/* 下のにぎやか誌 */
.c-product-bird02 {
    display: none;
    cursor: pointer;
}

.c-product-bird03 {
    display: none;
    cursor: pointer;
}

.c-product-rabbit {
    display: none;
    cursor: pointer;
}

.c-product-bird02:hover,
.c-product-bird03:hover,
.c-product-rabbit:hover {
    animation: fuwafuwa 3s infinite ease-in-out 0s alternate;
}

/* TAB */
@media screen and (min-width: 768px) {
    .c-product-bird02 {
        display: block;
        position: absolute;
        bottom: 281px;
        right: 360px;
    }

    .c-product-bird03 {
        display: block;
        position: absolute;
        bottom: 225px;
        right: 136px;
    }

    .c-product-rabbit {
        display: block;
        position: absolute;
        bottom: 33px;
        right: 176px;
    }
}

/* お知らせ */
.p-notes {
    margin: 30px 16px 0;
    padding: 24px 24px 0;
    border: 2px solid #7a6a56;
    border-radius: 16px;
    color: #7a6a56;
}

.c-notes-title {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.c-notes-text {
    margin: 4px 0 24px;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 2;
}

.c-notes-link {
    color: #cb722a;
    text-decoration: underline;
}

.c-notes-link:hover {
    color: #7a6a56;
}

/* TAB */
@media screen and (min-width: 768px) {
    .p-notes {
        margin: 30px auto 0;
        width: 760px;
    }
}
