@charset "UTF-8";

/* ==========================================================================
   Yummy Bakery Brand Page Styles
   ========================================================================== */

/* Top Section */
.yb-top {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 390px;
    max-width: none;
    margin: 0;
    padding-left: max(0px, calc((100vw - 1440px) / 2));
    box-sizing: border-box;
    background-color: #fff;
}

.yb-intro {
    flex: 0 0 min(42.7vw, 615px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 77px;
}

.yb-intro__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    text-align: center;
}

.yb-intro__logo {
    position: relative;
    width: 238px;
    height: 80px;
    overflow: hidden;
}

.yb-intro__logo img {
    position: absolute;
    top: -44.37%;
    left: 0;
    display: block;
    width: 100%;
    height: 187.5%;
    object-fit: cover;
}

.yb-intro__text {
    width: 100%;
    margin: 0;
    font-family: "Zen Old Mincho", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #383838;
    letter-spacing: 0;
}

.yb-fv {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    --yb-fv-slide-width: 1059px;
    --yb-fv-scroll-duration: 15s;
}

.yb-fv__inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.yb-fv__track {
    position: absolute;
    inset: 0;
    display: flex;
    width: calc(var(--yb-fv-slide-width) * 3);
    height: 100%;
    animation: yb-fv-scroll var(--yb-fv-scroll-duration) linear infinite;
}

.yb-fv__picture {
    display: block;
    flex: 0 0 var(--yb-fv-slide-width);
    width: var(--yb-fv-slide-width);
    height: 100%;
}

.yb-fv__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1024px) {
    .yb-top {
        flex-direction: column;
        height: auto;
        padding-left: 0;
    }

    .yb-intro {
        flex: none;
    }

    .yb-fv {
        width: 100%;
    }

    .yb-fv__inner {
        aspect-ratio: 1059 / 390;
        height: auto;
    }

    .yb-fv__track,
    .yb-fv__picture {
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    .yb-intro {
        padding: 0 12.5px 30px;
    }

    .yb-intro__inner {
        gap: 24px;
    }

    .yb-intro__logo {
        width: 172px;
        height: 58px;
    }

    .yb-intro__text {
        max-width: 350px;
        font-size: 14px;
    }

    .yb-fv {
        --yb-fv-slide-width: 684px;
    }

    .yb-fv__inner {
        height: 252px;
        aspect-ratio: 684 / 252;
    }
}

@keyframes yb-fv-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(var(--yb-fv-slide-width) * -1));
    }
}

/* Items */
#yb-items {
    padding-top: 60px;
    padding-bottom: 60px;
}

#yb-items .btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 52px;
    margin: 40px auto 0;
    background-color: var(--button-gold01);
    border-radius: 5px;
    color: #fff;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
}

#yb-items .btn-more:hover {
    background-color: var(--greige05);
}

@media screen and (max-width: 768px) {
    #yb-items {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    #yb-items .btn-more {
        width: 100%;
        max-width: 320px;
        height: 48px;
        font-size: 14px;
    }
}

/* Concept */
.yb-concept {
    position: relative;
    overflow: hidden;
    background-color: #ffe96b;
    color: var(--gray01);
}

.yb-concept::before {
    content: "";
    position: absolute;
    top: 150px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 334px;
    background: url("../assets/yummybakery/concept-wave.svg") center top / 100% 100% no-repeat;
    pointer-events: none;
}

.yb-concept__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #fffb80;
}

.yb-concept__brand img {
    display: block;
    width: 238px;
    height: 150px;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.yb-concept__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1440px;
    min-height: 531px;
    margin: 0 auto;
    padding: 60px 120px 80px;
}

.yb-concept__gallery {
    position: absolute;
    top: -89px;
    left: 120px;
    width: 495px;
    height: 569px;
}

.yb-concept__photo {
    position: absolute;
    overflow: hidden;
    border-radius: 18.539px;
}

.yb-concept__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yb-concept__photo--wide {
    top: 0;
    left: 0;
    width: 376.348px;
    height: 257.697px;
}

.yb-concept__photo--round {
    top: 213.202px;
    left: 285.506px;
    width: 209.494px;
    height: 209.494px;
}

.yb-concept__photo--tall {
    top: 289.41px;
    left: 48.202px;
    width: 209.494px;
    height: 279.944px;
}

.yb-concept__content {
    width: 560px;
}

.yb-concept__title {
    margin: 0 0 50px;
    font-family: "Zen Old Mincho", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
}

.yb-concept__text {
    margin: 0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.08em;
}

@media screen and (max-width: 1100px) {
    .yb-concept__inner {
        gap: 48px;
        justify-content: space-between;
        padding-right: 60px;
        padding-left: 60px;
    }

    .yb-concept__gallery {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 42%;
        transform: scale(0.82);
        transform-origin: top left;
    }

    .yb-concept__content {
        width: 52%;
    }
}

@media screen and (max-width: 768px) {
    .yb-concept {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .yb-concept::before {
        top: 103px;
        height: 87px;
        background-size: 100% 100%;
    }

    .yb-concept__brand {
        width: 100%;
        height: 103px;
    }

    .yb-concept__brand img {
        width: 164px;
        height: 103px;
    }

    .yb-concept__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        padding: 0 35px 80px;
    }

    .yb-concept__gallery {
        position: relative;
        top: auto;
        left: auto;
        flex: none;
        width: 281px;
        height: 328px;
        transform: none;
    }

    .yb-concept__photo {
        border-radius: 10.487px;
    }

    .yb-concept__photo--wide {
        top: 0;
        left: 0.5px;
        width: 212.884px;
        height: 145.768px;
    }

    .yb-concept__photo--round {
        top: 120.599px;
        left: 161.998px;
        width: 118.502px;
        height: 118.502px;
    }

    .yb-concept__photo--tall {
        top: 169.363px;
        left: 27.766px;
        width: 118.502px;
        height: 158.352px;
    }

    .yb-concept__content {
        width: 100%;
    }

    .yb-concept__title {
        margin-bottom: 50px;
        font-size: 24px;
        line-height: 1.2833333;
    }

    .yb-concept__text {
        font-size: 13px;
        line-height: 21px;
        letter-spacing: 0.06em;
    }

    .yb-concept__text br {
        display: none;
    }

    .yb-concept__text br + br {
        display: block;
    }
}
