@charset "utf-8";

/*==================================================
contents
===================================*/

/* contents__magazine */
.main {
    padding-top: 40px;
}

.books__carousel__area {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    gap: 0.8px;
    margin: 0 auto;
}

.books__carousel__list {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.books__carousel__list img {
    height: 250px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: 0;
}

.books__carousel__list a img:hover {
    top: 15px;
    transition: 0.3s;
}

/* contents__magazine__pc */
@media screen and (min-width:768px) {
    .main {
        padding-top: 80px;
    }

    .books__carousel__list img {
        height: 510px;
    }
}

/* about__magazine */
.about {
    padding: 40px 0 0;
    margin: 0 auto;
}

.topic {
    font-family: "roc-grotesk-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.4rem;
}

.topic span {
    margin-left: 7px;
}

.rice__logo {
    padding-top: 15px;
    width: clamp(100px, 25%, 150px);
    height: auto;
}

.description {
    padding-top: 20px;
    text-align: left;
    max-width: 600px;
    line-height: 1.8rem;
}

.about .btn {
    padding: 20px 0;
}

.btn span {
    font-size: clamp(8px, 3.4vw, 10px);
    font-family: sans-serif;
    display: inline-block;
    transform: rotate(-45deg);
    vertical-align: baseline;
    white-space: nowrap;
}

.about .btn a {
    float: left;
    text-align: center;
    /* max-width: 30%; */
    border: solid 1px var(--primary-black);
    border-radius: 50px;
    padding: 0.5em 1em;
    font-family: "roc-grotesk-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.2rem;
    transition: 0.5s;
}

.about .btn a:hover {
    background-color: #000000;
    color: #ffffff;
    transition: 0.5s;
}

/* about__magazine__pc */
@media screen and (min-width:768px) {
    .about {
        max-width: 1440px;
        padding: 120px 7% 0;
        /* display: flex;
        gap: 0 5%; */
    }

    .about__flex__ttl {
        width: 30%;
    }

    .topic {
        font-size: 1.5rem;
    }

    .about__flex__des {
        display: flex;
        gap: 0 8%;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .rice__logo {
        padding-top: 25px;
        width: clamp(200px, 25%, 300px);
    }

    .description {
        padding-top: 25px;
        text-align: left;
        max-width: 600px;
    }

    .btn span {
        font-size: clamp(8px, 3.4vw, 12px);
    }
}

/* Tie-Up--magazine */
.carousel__topic {
    padding-top: 50px;
    text-align: center;
    font-family: "roc-grotesk-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.carousel__topic--des {
    margin: 10px auto 0;
    text-align: center;
    font-size: 1rem;
    max-width: 68px;
    border: solid 1px var(--primary-black);
    border-radius: 50px;
    padding: 0.3em 1em;
}

.carousel__magazine__list {
    padding-top: 20px;
    max-width: 500px;
    height: auto;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    gap: 0 5px;

    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.carousel__item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.carousel__des {
    padding-top: 10px;
    font-size: 0.7rem;
    line-height: 1.2rem;
}

.carousel__magazine__list::scroll-button(*) {
    border: 0;
    font-size: 2rem;
    background: none;
    color: rgb(0 0 0 / 0.7);
    cursor: pointer;
}

.carousel__magazine__list::scroll-button(*):hover,
.carousel__magazine__list::scroll-button(*):focus {
    color: rgb(0 0 0 / 1);
}

.carousel__magazine__list::scroll-button(*):active {
    translate: 1px 1px;
}

.carousel__magazine__list::scroll-button(*):disabled {
    color: rgb(0 0 0 / 0.2);
    cursor: unset;
}

.carousel__magazine__list::scroll-button(left) {
    content: "◄";
}

.carousel__magazine__list::scroll-button(right) {
    content: "►";
}

.carousel__magazine__list {
    anchor-name: --magazineCarousel;
}

.carousel__magazine__list::scroll-button(*) {
    position: absolute;
    position-anchor: --magazineCarousel;
}

.carousel__magazine__list::scroll-button(left) {
    right: calc(anchor(left) - 70px);
    bottom: calc(anchor(top) + 13px);
}

.carousel__magazine__list::scroll-button(right) {
    left: calc(anchor(right) - 70px);
    bottom: calc(anchor(top) + 13px);
}

/* Tie-Up--magazine__pc */
@media screen and (min-width:769px) {
    .carousel__topic {
        padding-top: 100px;
    }

    .carousel__topic--des {
        margin: 12px auto 0;
        max-width: 8%;
    }

    .carousel__magazine__list {
        padding-top: 26px;
    }

    .carousel__des {
        font-size: 0.8rem;
        line-height: 1.2rem;
    }
}

/* magazine__img__slide */
.magazine__wrap {
    margin-top: 50px;
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 200px;
}

.slideshow {
    display: flex;
}

.magazine__slideshow__item {
    width: 150px;
    height: 200px;
}

.magazine__slideshow__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slideshow {
    display: flex;
    animation: loop-slide 120s infinite linear 0.5s both;
    -webkit-animation: loop-slide 120s infinite linear 0.5s both;
}

@keyframes loop-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* magazine__img__slide__pc */
@media screen and (min-width:768px) {
    .magazine__wrap {
        margin-top: 100px;
        height: 300px;
    }

    .magazine__slideshow__item {
        width: 250px;
        height: 300px;
    }

    .magazine__slideshow__item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

/* contents__web */
/* about__web */
.ricepress__logo {
    padding-top: 15px;
    width: clamp(130px, 30%, 200px);
    height: auto;
}

@media screen and (min-width:768px) {
    .ricepress__logo {
        padding-top: 25px;
        width: clamp(200px, 25%, 300px);
        height: auto;
    }
}

/* Tie-Up--web */
.carousel__topic {
    padding-top: 50px;
    text-align: center;
    font-family: "roc-grotesk-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.carousel__topic--des {
    text-align: center;
    /* max-width: 30%; */
    border: solid 1px var(--primary-black);
    border-radius: 50px;
    padding: 0.3em 1em;
    font-family: "roc-grotesk-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem;
}

.carousel__web__list {
    padding-top: 20px;
    max-width: 500px;
    height: auto;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    gap: 0 5px;

    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.carousel__item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.carousel__img a img:hover {
    opacity: 0.5;
    transition: 0.3s;
}

.carousel__des {
    padding-top: 10px;
    font-size: 0.7rem;
}

.carousel__web__list::scroll-button(*) {
    border: 0;
    font-size: 2rem;
    background: none;
    color: rgb(0 0 0 / 0.7);
    cursor: pointer;
}

.carousel__web__list::scroll-button(*):hover,
.carousel__web__list::scroll-button(*):focus {
    color: rgb(0 0 0 / 1);
}

.carousel__web__list::scroll-button(*):active {
    translate: 1px 1px;
}

.carousel__web__list::scroll-button(*):disabled {
    color: rgb(0 0 0 / 0.2);
    cursor: unset;
}

.carousel__web__list::scroll-button(left) {
    content: "◄";
}

.carousel__web__list::scroll-button(right) {
    content: "►";
}

.carousel__web__list {
    anchor-name: --webCarousel;
}

.carousel__web__list::scroll-button(*) {
    position: absolute;
    position-anchor: --webCarousel;
}

.carousel__web__list::scroll-button(left) {
    right: calc(anchor(left) - 70px);
    bottom: calc(anchor(top) + 13px);
}

.carousel__web__list::scroll-button(right) {
    left: calc(anchor(right) - 70px);
    bottom: calc(anchor(top) + 13px);
}

/* Tie-Up--web__pc */
@media screen and (min-width:769px) {
    .carousel__topic {
        padding-top: 100px;
    }

    .carousel__topic--des {
        margin: 12px auto 0;
        max-width: 8%;
    }

    .carousel__web__list {
        padding-top: 26px;
    }

    .carousel__des {
        font-size: 0.8rem;
        line-height: 1.2rem;
    }
}

/* web__img__slide */
.web__wrap {
    margin-top: 50px;
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 200px;
}

.slideshow {
    display: flex;
}

.web__slideshow__item {
    width: 150px;
    height: 200px;
}

.web__slideshow__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slideshow {
    display: flex;
    animation: loop-slide 40s infinite linear 0.5s both;
    -webkit-animation: loop-slide 40s infinite linear 0.5s both;
}

@keyframes loop-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* web__img__slide__pc */
@media screen and (min-width:768px) {
    .web__wrap {
        margin-top: 100px;
        height: 300px;
    }

    .web__slideshow__item {
        width: 250px;
        height: 300px;
    }

    .web__slideshow__item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}