/*設定ファイルの読み込み*/
@import url('hakkoueki-root.css');
@import url('animate.css');


/* ================================
 header ヘッダー
================================ */
.logo_wrapper {
    width: 150px;
    padding: 16px;
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 767px) {
    .logo_wrapper {
        width: 136px;
    }
}

/* ================================
 Top
================================ */
.product_hero{
    position: relative;
    background-image: url("../images/top/banner_header.png");
    background-size: cover;
    background-position: center;
    height: 160px;
}

.product_hero .layer {
    position: absolute;
    background-color: rgba(0,0,0, 0.1);
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero_message {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: bold;
    color: white;
    font-feature-settings: 'palt';
    letter-spacing: 4px;
    text-align: center;
    position: absolute;
    width: 100%;
    margin: auto;
    top: 30%;
    z-index: 2;
    transition: all .3s;
}

@media screen and (max-width: 1023px) {
    .hero_message {
        bottom: 20%;
    }
}

@media screen and (max-width: 767px) {
    .hero_message {
        line-height: 1.4;
        padding: 0 24px;
        bottom: 12px;
    }
}

/* --------------------------------
 top menu
--------------------------------- */
#top .nav-wrapper {
    background-color: var(--primary);
    padding: 12px;
}

#top .nav-wrapper .nav {
    max-width: var(--content-with);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 56px;
}

@media screen and (max-width: 1023px) {
    #top .nav-wrapper .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        text-align: center;
    }
}

#top .nav-wrapper .nav li a {
    color: #fff;
    display: block;
    padding: 4px 16px;
    position: relative;
    overflow: hidden;
}

#top .nav-wrapper .nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 32px);
    margin: 0 16px;
    height: 2px;
    background: #fff;
    transition: all .3s;
    transform: scaleX(0);
    transform-origin: left;
}

#top .nav-wrapper .nav li a:hover::after {
    transform: scaleX(1);
}

/* --------------------------------
　#top common
--------------------------------- */
#top {
    text-align: center;
}
.concept-text {
    font-size: clamp(20px, 2vw, 32px);
    color: var(--primary);
    font-weight: bold;
    line-height: 1.8;
    font-feature-settings: 'palt';
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 20px;
}

/* --------------------------------
 Key visual
--------------------------------- */
#top .key-v {
    width: 98%;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 56px 0 24px;
    margin: 0 auto;
}

#top .key-v .concept-wrapper {
    color: var(--primary);
    line-height: 2;
    padding-left: 64px;
}

#top .key-v .concept-text.first {
    font-size: 18px;
    text-align: left;
    color: var(--neutral);
    transition: 0.3s;
}

#top .key-v .concept-text.second {
    font-size: 40px;
    text-align: left;
    margin-bottom: 0;
    transition: 0.3s;
}

#top .key-v .hakko_logo {
    width: 80%;
    max-width: 680px;
    margin: 0 auto;
}

@media screen and (max-width: 1300px) {
    #top .key-v .concept-wrapper {
        padding-left: 32px;
        line-height: 1.6;
    }

    #top .key-v .concept-text.second {
        font-size: 36px;
        line-height: 1.6;
    }
}

@media screen and (max-width: 1023px) {
    #top .key-v .concept-text.first {
        font-size: 16px;
    }
    #top .key-v .concept-text.second {
        font-size: 28px;
    }
}

@media screen and (max-width: 767px) {
    #top .key-v {
        display: block;
        padding: 32px 0 16px;
    }

    #top .key-v .concept-wrapper {
        padding-left: 0;
        margin-bottom: 24px;
    }

    #top .key-v .concept-text.second {
        font-size: 23px;
    }

    #top .key-v .hakko_logo {
        width: 65%;
        max-width: 680px;
        margin: 0 auto;
    }
}


/* --------------------------------
　吹き出し
--------------------------------- */
#top .highlight_box {
    background-color: var(--primary);
    border: 2px solid #e50012;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0 40px;
    font-size: 20px;
    color: #fff;
    line-height: 1.8;
    font-feature-settings: 'palt';
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

@media screen and (max-width: 767px) {
    #top .highlight_box {
        font-size: 16px;
        text-align: left;
        padding: 16px;
    }
}

/* 枠線部分（外側の三角形） */
#top .highlight_box::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 17px 17px 0;
    border-style: solid;
    border-color: #e50012 transparent transparent;
}

/* 内部の背景部分（内側の三角形） */
#top .highlight_box::after {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--primary) transparent transparent;
}

/* --------------------------------
　商品の特徴
--------------------------------- */
#product-concept .product-features {
    max-width: 95%;
    display: flex;
    gap: 32px;
    margin: 30px auto;
}

#product-concept .product-features .feature-item {
    width: 49%;
}

#product-concept .product-features .dot {
    background-image: url("../images/top/dot.svg");
    background-size: contain;
    background-position: top;
    width: 3px;
}

@media screen and (max-width: 767px) {
    #product-concept .product-features {
        display: block;
    }

    #product-concept .product-features .feature-item {
        width: 100%;
        margin-bottom: 40px;
    }

    #product-concept .product-features .feature-item p {
        text-align: left;
    }

    #product-concept .product-features .dot {
        display: none;
    }
}

#product-concept .feature-item h2 {
    font-size: clamp(20px, 2vw, 22px);
    font-weight: bold;
    color: var(--primary);
    line-height: 1.2;
    padding: 8px;
    border: 2px solid var(--primary);
    border-radius: 36px;
    margin-bottom: 16px;
}

@media screen and (max-width: 767px) {
    #product-concept .feature-item h2 {
        text-align: center;
    }
}

#product-concept .product-features .feature-underline {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: bold;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 5px solid var(--primary);
    margin-bottom: 16px;
}

#product-concept .product-features .feature-item p,
#product-concept .chart-item {
    margin-bottom: 16px;
}

#product-concept .product-features .text_n_bg_gray {
    background-color: #898989;
    padding: 8px 16px;
    font-size: 12px;
    color: #FFF;
    border-radius: 8px;
    margin-bottom: 8px;
}
@media screen and (max-width: 767px) {
    #product-concept .product-features .text_n_bg_gray {
        font-size: 14px;
        text-align: center;
    }
}

#product-concept .product-features .arrow {
    width: 40px;
    margin: 4px auto 8px;
}

#product-concept .how-to {
    background-color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    padding: 8px 24px;
    border-radius: 8px;
    margin-bottom: 12px;
}

#product-concept .how-to .text {
    text-align: left;
    font-size: var(--font-size-m);
    line-height: 1.4;
}

#product-concept .how-to .icon_wrapper {
    display: flex;
    gap: 16px;
    max-height: 64px;
}

@media screen and (max-width: 767px) {
    #product-concept .how-to {
        display: block;
        padding: 16px;
    }
    #product-concept .how-to .text {
        text-align: center;
        margin-bottom: 16px;
    }
    #product-concept .how-to .icon_wrapper img {
        width: auto;
    }
    #product-concept .how-to .icon_wrapper {
        justify-content: center;
        gap: 16px;
    }
}

/*パッケージ内容*/
#product-concept .item-detail {
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    padding: 24px 48px;
    background-color: #eee;
    border: 1px solid;
    border-radius: 16px;
    margin: 0 auto 40px;
}

#product-concept .item-detail .text {
    text-align: left;
    margin-bottom: 0;
}

#product-concept .item-detail .items {
    display: flex;
    gap: 12px;
}

#product-concept .item-detail .items img {
    max-width: 36px;
}

#product-concept .item-detail .items img.box {
    max-width: 80px;
}

@media screen and (max-width: 767px) {
    #product-concept .item-detail {
        display: block;
        padding: 24px 28px;
        font-feature-settings: 'palt';
    }

    #product-concept .item-detail .text {
        margin-bottom: 24px;
    }
}

/* --------------------------------
 「乳酸菌発酵液」の特徴：詳細　#product-info
--------------------------------- */
#product-info {
    text-align: center;
}

#product-info .banner_wrapper {
    position: relative;
    background-image: url("../images/top/banner_middle.png");
    background-size: cover;
    background-position: center;
    height: 180px;
    margin-bottom: 24px;
}

#product-info .banner_wrapper .hakko-logo {
    width: 160px;
    height: auto;
    position: absolute;
    right: 16px;
    bottom: -24px
}

@media screen and (max-width: 767px) {
    #product-info .concept-text {
        font-size: 28px;
    }
}

#product-info .concept-text .add {
    font-size: 10px;
    color: var(--neutral);
    text-align: right;
}

@media screen and (max-width: 767px) {
    #product-info .banner_wrapper {
        height: 120px;
        margin-bottom: 40px;
    }
    #product-info .banner_wrapper .hakko-logo {
        width: 120px;
    }
}

#product-info .benefits {
    max-width: 95%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 0 auto 40px;
}

@media screen and (max-width: 767px) {
    #product-info .benefits {
        display: block;
    }

    #product-info .benefits .feature-item {
        margin-bottom: 24px;
    }
}

#product-info .benefits .feature-item h3 {
    font-size: clamp(20px, 2vw, 22px);
    font-weight: bold;
    color: var(--primary);
    line-height: 1.2;
    padding: 4px 8px 10px;
    border: 2px solid var(--primary);
    border-radius: 36px;
    margin-bottom: 16px;
}

#product-info .benefits .feature-number {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--primary);
    font-weight: bold;
    font-style: italic;
    display: inline-block;
    position: relative;
    top: 1px;
}

#product-info .benefits p {
    font-weight: bold;
}

/* デフォルトはPC用を表示、SP用を非表示 */
.production-steps_pc {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.production-steps_pc img {
    max-width: 20%;
    height: auto;
    display: block;
}

.production-steps_sp {
    display: none;
}

@media screen and (max-width: 767px) {
    .production-steps_pc {
        display: none;
    }

    .production-steps_sp {
        display: block;
        margin-bottom: 40px;
    }

    .production-steps_sp img {
        width: 72%;
        margin: 0 auto;
    }
}

/* --------------------------------
 レシピページへの動線
--------------------------------- */
#cta-section .intro-recipe {
    max-width: 95%;
    display: grid;
    gap: 16px;
    grid-template-columns: 1.2fr 2fr;
    margin: 0 auto 40px;
}

@media screen and (max-width: 767px) {
    #cta-section .intro-recipe {
        grid-template-columns: 1fr;
    }
}

#cta-section .intro-recipe .text_wrapper {
    text-align: left;
}

#cta-section .intro-recipe .title {
    font-size: clamp(18px, 4vw, 20px);
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 5px solid var(--primary);
    margin-bottom: 16px;
}

#cta-section .intro-recipe .recipe_image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#cta-section .btn_wrapper .add {
    font-size: 12px;
    text-align: center;
    margin-bottom: 8px;
}

#cta-section .cta-button {
    width: 100%;
    max-width: 320px;
    padding: 15px 40px;
    display: block;
    background: var(--primary);
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 auto;
}

#cta-section .cta-button::after {
    content: '▶';
    position: absolute;
    right: 16px;
    transition: 0.3s;
}

#cta-section .cta-button:hover::after {
    right: 8px;
}