@charset "utf-8";

/* ============
header - our story
============ */
.section__title--research {
    margin-top: 55px;
    font-weight: 500;
}

.section__title {
    text-align: center;
}

@media (min-width: 768px) {
    .section__title--research {
        font-size: clamp(24px, 3.33vw, 48px);
    }
}

/* header - our story: PC 769px --end-- */


/* ============
section: research/ mission
============ */
.story__research {
    width: 100%;
    height: auto;
}

.research__pic {
    height: 200px;
    width: 100vw;
    aspect-ratio: 375/200;
    object-fit: cover;
    object-position: top;
    margin-top: 32px;
}

.research__topic {
    padding: 0 var(--contentPadding);
    font-size: 2.2rem;
    font-weight: 600;
    margin-top: 40px;
}

.research__txt {
    padding: 0 var(--contentPadding);
    font-size: 1.6rem;
    margin-top: 32px;
    text-align: justify;
}

.research__txt:last-of-type {
    margin-top: 16px;
}


/* section: research/ mission: PC 769px */
@media screen and (min-width:1024px) {
    .story__research {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 80px;
        margin-bottom: 120px;
    }

    .research__pic {
        width: 46vw;
        height: auto;
        margin-right: 63px;
        object-position: center;
    }

    .research__wrap {
        width: 54vw;
        margin-right: 12.5%;
        margin-top: 52px;
    }

    .research__topic {
        padding: 0;
        font-size: 2.8rem;
        font-weight: 600;
        margin-top: 0;
    }


    .research__txt {
        padding: 0;
        font-size: 1.8rem;
        margin-top: 32px;
        text-align: justify;
    }

    .research__txt:last-of-type {
        margin-top: 32px;
    }
}

/* section: research/ mission: PC 769px --end-- */

/* ============
OUR FARMS: contents
============ */
.section__farm {
    width: 100%;
    position: relative;
    margin-top: 80px;
}

.farm__wrap {
    width: var(--contentWidth);
    margin: 0 auto;
    font-size: 1.6rem;
}

.farm__name {
    font-size: 2.2rem;
    font-weight: 600;
}

.farm__place {
    color: var(--primary-brown);
    font-weight: 600;
    margin-top: 20px;
    align-items: center;
    display: flex;
    align-items: center;
}

.farm__place::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 28px;
    background-image: url(../images/bean.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.farm__altitude {
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 10px;
    align-items: center;
    display: flex;
    align-items: center;
}

.farm__altitude::before {
    content: '';
    display: inline-block;
    width: 45px;
    height: 30px;
    background-image: url(../images/altitude.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

.farm__txt {
    margin-top: 16px;
    text-align: justify;
}

.farm__picWrap {
    width: 100%;
    margin-top: 30px;
}

.farms__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 375 / 206;
    height: auto;
}

.farms__slider li {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: farmSlide 12s infinite;
}

.farms__slider li:nth-child(1) {
    animation-delay: 0s;
}

.farms__slider li:nth-child(2) {
    animation-delay: 4s;
}

.farms__slider li:nth-child(3) {
    animation-delay: 8s;
}


@keyframes farmSlide {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.farm__pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.section__farm--miel {
    margin-bottom: 80px;
}

/* farms__lead: PC 1024px */
@media screen and (min-width:1024px) {
    .section__farm {
        margin-top: 120px;
        position: relative;
        display: flex;
        justify-content: center;
    }

    .section__farm--cereza {
        margin: 60px 0 0 0;
    }

    .farm__wrap {
        width: 100%;
        margin: 0;
        font-size: 1.8rem;
    }

    .section__farm--cereza .farm__wrap {
        padding-left: 12.5%;
        padding-right: 4.9%;
    }

    .farm__name {
        font-size: 3.2rem;
    }

    /* 
    .farm__introduction {
        font-size: 2.4rem;
        margin-top: 30px;
    } */

    .farm__info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .farm__place {
        font-weight: 600;
        margin-top: 0px;
        align-items: center;
        display: flex;
        align-items: center;
    }

    .farm__altitude {
        font-weight: 600;
        margin-top: 0px;
        align-items: center;
        display: flex;
        align-items: center;
    }

    .farm__txt {
        margin-top: 20px;
    }

    .farm__txt:first-of-type {
        margin-top: 30px;
    }

    .farm__picWrap {
        width: 100%;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* farms__lead: PC 1024px */

/* slide animation */
.farms__slider li:nth-child(1) {
    animation-delay: 0s;
}

.farms__slider li:nth-child(2) {
    animation-delay: 4s;
}

.farms__slider li:nth-child(3) {
    animation-delay: 8s;
}


@keyframes farmSlide {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.farm__pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============
section: MICROBES / EXPORT
============ */
.microbes__topic,
.export__topic {
    margin-top: 60px;
    font-size: 2.4rem;
    font-weight: 600;
    text-align: center;
}

.microbes--pic,
.export--pic {
    display: grid;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 var(--contentPadding);
    max-width: 600px;
    aspect-ratio: 1/1;
    margin: 40px auto;
    overflow: hidden;
}

.microbes--pic img:nth-child(1),
.export--pic img:nth-child(2) {
    justify-self: start;
    width: 90%;
}

/* 右寄せ */
.microbes--pic img:nth-child(2) {
    justify-self: end;
    width: 90%;
}

.microbes--description,
.export--description {
    padding: 0 var(--contentPadding);
    margin: 40px auto;
}

.microbes--txt,
.export--txt {
    margin-top: 16px;
    text-align: justify;
}

.description__lower {
    margin-top: 40px;
}

.export__area {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
}

.export--memo {
    margin-top: 24px;
    font-size: 1.5rem;
}

.export--memo li {
    display: flex;
    justify-content: flex-start;
    /* margin-left: 20px; */
}

.export--memo li:before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--text-black);
    flex-shrink: 0;
    margin-top: .8rem;
    margin-right: .8rem;
}

@media screen and (min-width:1024px) {

    .microbes__topic,
    .export__topic {
        font-size: 3.2rem;
        font-weight: 600;
        margin-top: 120px;
    }

    .microbes--wrap,
    .export--wrap {
        display: flex;
        max-width: 1400px;
        margin: 0 auto;
        gap: 4%;
        justify-content: center;
        padding: 0 6%;
        align-items: flex-start;
    }

    .export--wrap {
        flex-direction: row-reverse;

    }

    .microbes--pic {
        width: 100%;
        max-width: 400px;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        padding: 0;
    }

    /* 画像を箱いっぱいにしてトリミング */
    .microbes--pic img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: top right;
    }

    .export--pic {
        max-width: 400px;
        aspect-ratio: 5/3;
        padding: 0;
        align-content: center;
    }

    .export--pic img {
        height: 100%;
        object-position: top right;
    }


    .microbes--description {
        padding: 0;
    }

    .export--memo {
        font-size: 1.6rem;
    }

    .export--memo li:before {
        margin-top: 1rem;
        margin-right: 1rem;
    }
}

/* section: Microbes: PC 769px --end-- */


/* ============
section: Processing
============ */
.processing__topic {
    margin-top: 80px;
    font-size: 2.4rem;
    font-weight: 600;
    padding: 0 var(--contentPadding);
}

.processing__txt {
    margin-top: 16px;
    padding: 0 var(--contentPadding);
}

.beanFeature {
    position: relative;
    padding: 56px 16px;
}

/* ====== SPレイアウト ====== */
.beanFeature__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 480px;
    margin: 40px auto;
}

/* 豆：左にはみ出して“見切れ” */
.beanFeature__bean {
    position: absolute;
    left: -24%;
    top: 50%;
    transform: translateY(-50%);
    width: min(60vw, 320px);
    margin: 0;
    pointer-events: none;
    z-index: 0;
}

.beanFeature__bean img {
    width: 100%;
    object-fit: contain;
    height: auto;
    display: block;
    max-height: 360px;
}

/* 右側（実際はSPでは全幅だけど、豆が見切れて左に居る） */
.beanFeature__items {
    position: relative;
    z-index: 1;
    width: 64%;
    margin-left: auto;
    margin-right: var(--contentPadding);
}

/* ====== アコーディオン部品 ====== */
.beanAcc {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--gray-high);
    padding: 14px 16px;
    margin-bottom: 14px;
    overflow: hidden;
}

.beanAcc__toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.beanAcc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.beanAcc__title {
    margin: 0;
    font-size: 1.74rem;
    font-weight: 600;
}

.beanAcc__btn {
    width: 36px;
    height: 36px;
    display: inline-block;
    cursor: pointer;
    border-radius: 999px;
    position: relative;
}

.beanAcc__btn::before,
.beanAcc__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.beanAcc__btn::before {
    transform: translate(-50%, -50%);
}

.beanAcc__btn::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.beanAcc__toggle:checked~.beanAcc__head .beanAcc__btn::after {
    opacity: 0;
}

/* 閉じる用（×）を出したいなら */
.beanAcc__btn--close {
    display: none;
}

/* 本文は普段閉じる */
.beanAcc__body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
}

/* 開いたとき */
.beanAcc__toggle:checked~.beanAcc__head+.beanAcc__body {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
}

/* ====== PC（769px〜）：左右2×2 + 中央に豆 ====== */
@media (min-width: 769px) {
    .processing {
        max-width: 1400px;
        padding: 0 6%;
        margin: 120px auto;
    }

    .processing__lead {
        display: flex;
    }

    .processing__topic {
        width: 46%;
        width: fit-content;
        white-space: nowrap;
        font-size: 2.4rem;
        margin-top: 0;
    }

    .processing__txt {
        width: 70%;
        font-size: 1.8rem;
        margin-top: 0;
    }

    .beanFeature {
        padding: 80px 24px;
    }

    .beanFeature__layout {
        margin-top: 60px;
        display: grid;
        max-width: none;
        grid-template-columns: 1fr minmax(240px, 280px) 1fr;
        column-gap: 48px;
        row-gap: 28px;
        align-items: center;
        /* 縦中央寄せのキモ */
    }

    /* 豆：中央列に固定、縦も中央 */
    .beanFeature__bean {
        position: static;
        transform: none;
        width: 220px;
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: center;
        align-self: center;
    }

    /* 4項目：PCは2列2行に配置 */
    .beanFeature__items {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 120px;
        margin: 0;
        grid-column: 1 / 4;
        grid-row: 1 / 3;
    }

    /* PCでは “最初から開いてていい” → 強制表示 */
    .beanAcc {
        padding: 16px 24px;
        margin: 0;
    }

    .beanAcc__btn {
        display: none;
    }

    .beanAcc__title {
        font-size: 2rem;
    }

    .beanAcc__body {
        max-height: none;
        opacity: 1;
        margin-top: 10px;
    }
}

/* @media (min-width: 1400px) {
    .processing {
        padding: 0;
    }
} */
/* section: Processing: PC 769px --end-- */


/* ============
section: LEAD
============ */
.lead {
    margin: 80px auto;
    width: var(--contentWidth);
}

.lead__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.section__lead__lead {
    text-align: start;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
}

.section__txt__lead {
    margin-top: 32px;
}

.lead__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lead__list li:nth-of-type(2) {
    flex-direction: row-reverse;
}

.lead__wrap {
    height: 50%;
    width: 50%;
    object-fit: cover;
    transition: 1s all;
    overflow: hidden;
}

.lead__wrap img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* .lead__wrap img:hover,
.lead__wrap img:active {
    transform: scale(1.1, 1.1);
    transition: 1s all;
} */

.lead__page {
    width: 40%;
    font-family: "Zen Kaku Gothic New", "Noto Sans", sans-serif;
    font-size: 1.6rem;
    margin-left: 8px;
}

/* section: top__ceoMessage: PC 1024px-*/
@media screen and (min-width: 1024px) {
    .lead {
        margin: 100px auto;
        max-width: 1400px;
    }

    .lead__header {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section__lead__lead {
        width: 46%;
        width: fit-content;
        white-space: nowrap;
        font-size: 2.4rem;
        margin-top: 0;
    }

    .section__txt__lead {
        width: 64%;
        font-size: 2rem;
        margin-top: 0;
    }

    .lead__list {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 900px;
        width: 100%;
        margin: 40px auto;
    }

    .lead__content {
        flex-direction: column;
        gap: 10px;
        flex: 1;
        min-width: 0;
        max-width: 410px;
    }

    .lead__list li:nth-of-type(2) {
        flex-direction: column;
    }

    .lead__wrap {
        width: 80%;
        height: auto;
    }

    .lead__page {
        width: 96%;
        text-align: left;
        font-family: "Zen Kaku Gothic New", "Noto Sans", sans-serif;
        font-size: 1.8rem;
        font-weight: 500;
    }

}

/* === Lead  END === */