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

/* ================================
　body
================================ */
#recipe-page {
    position: relative;
    background-color: #EEEEEE;
    background-image: url("../images/recipe/bg-image.jpg");
    background-size: contain;
}

#recipe-page .layer {
    position: absolute;
    background: rgba(250, 250, 250, 0.65);
    width: 100%;
    height: calc(100% - 100px);
    z-index: -1;
}

#recipe-page .container {
    padding-top: 48px;
    padding-bottom: 64px;
    margin-bottom: 0;
}

/* ================================
　Common
================================ */
.c-title {
    font-size: clamp(22px, 4vw, 40px);
    font-weight: bold;
    transition: 0.3s;
}

.title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: bold;
    margin-bottom: clamp(24px, 4vw, 40px);
    transition: 0.3s;
}

@media screen and (max-width: 1023px) {
    .c-title,.title {
        letter-spacing: 1px;
        font-feature-settings: 'palt';
    }
}

.title.border {
    padding-bottom: 4px;
    border-bottom: 2px solid;
    margin-bottom: 24px;
}

/* ================================
 Recipe ヘッダー
================================ */
#recipe-page .product-hero-header {
    margin-top: 0;
    position: relative;
    padding: 80px 40px 0;
}

#recipe-page .product-hero-header .logo_wrapper {
    width: calc(150px - 32px);
    margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
    #recipe-page .product-hero-header {
        margin-top: 0;
        position: relative;
        padding: 40px 32px 0;
    }

    #recipe-page .product-hero-header .logo_wrapper {
        width: calc(100% - 100px);
    }
}

#recipe-page .product-hero-header .c-subtitle {
    font-size: 12px;
}

#recipe-page .product-hero-header .c-title {
    width: calc(100% - 220px);
    padding-bottom: 4px;
    border-bottom: 2px solid;
    transition: 0.3s;
    position: relative;
}

@media screen and (max-width: 767px) {
    #recipe-page .product-hero-header .c-title {
        width: calc(100% - 80px);
    }
}

#recipe-page .product-hero-header .c-title span.c-title__border {
    display: block;
    padding-bottom: 4px;
    border-bottom: 1px solid;
}

#recipe-page .product-hero-header .c-logo {
    position: absolute;
    max-width: 200px;
    right: -220px;
    bottom: -80px;
    z-index: 1;
    transition: 0.3s;
}

@media screen and (max-width: 767px) {
    #recipe-page .product-hero-header .c-logo {
        max-width: 100px;
        right: -80px;
        bottom: -48px;
    }
}

/* --------------------------------
    レシピ一覧
--------------------------------- */
.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-item-title {
    font-size: 12px;
    text-align: center;
    padding: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .recipe-gallery {
        grid-template-columns: repeat(2, 1fr);
        margin: 16px 0;
    }
    .gallery-item-title {
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 10px 0;
        height: 72px;
    }
}

/* --------------------------------
 レシピ詳細ページ
--------------------------------- */
#recipe-page {
    font-size: 15px;
}

#recipe-page .recipe-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    font-size: clamp(14px, 2vw, 16px);
}

#recipe-page .recipe-description p {
    line-height: 1.8;
}

#recipe-page .recipe-description img {
    border-radius: 10px;
}

@media screen and (max-width: 767px) {
    #recipe-page .recipe-description {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 32px;
    }
}

#recipe-page .recipe-block {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 56px;
}

@media screen and (max-width: 767px) {
    #recipe-page .recipe-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

#recipe-page .recipe-container h3 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

#recipe-page .recipe-container h3 span {
    font-size: clamp(14px, 4vw, 16px);
    font-weight: normal;
    letter-spacing: 0;
    margin-left: 4px;
}

/*材料*/
#recipe-page .ingredient-list,
#recipe-page .recipe-container p {
    padding-left: 4px;
    margin-bottom: 0;
}

#recipe-page .ingredient-list dt {
    font-weight: bold;
}

#recipe-page .ingredient-list dd {
    margin-bottom: 16px;
}
#recipe-page .ingredient-list dd:last-child {
    margin-bottom: 0;
}

#recipe-page .ingredient-block .col2-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 16px 16px;
    margin-bottom: 16px;
}

#recipe-page .ingredient-block .border-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border: 1px dashed #888;
    padding: 16px 20px 20px;
    margin: 20px 0 30px;
}

#recipe-page .ingredient-list .group {
    border-left: 2px solid var(--border-gray);
    padding-left: 12px;
    margin: 12px 0;
}


@media screen and (max-width: 767px) {
    #recipe-page .ingredient-block .col2-box {
        grid-template-columns: 1fr;
        padding: 0;
    }
    #recipe-page .ingredient-block .border-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    #recipe-page .ingredient-block .border-box dl {
        margin-bottom: 16px;
    }
}

#recipe-page .ingredient-block {
    border-bottom: 1px solid;
    margin-bottom: 24px;
}

/*作り方*/
#recipe-page .instructions-block {
    padding-bottom: 16px;
}

#recipe-page .cooking-steps {
    list-style-position: outside;
    margin-left: 24px;
}

#recipe-page .cooking-steps li {
    font-size: 15px;
    padding-left: 8px;
    margin-bottom: 15px;
}

#recipe-page .instructions-block h4 {
    font-weight: bold;
    margin-bottom: 8px;
}

/*シェフ情報*/
#recipe-page .chef-info {
    font-size: 14px;
    margin-bottom: 24px;
}
#recipe-page .chef-info .profile-block {
    background: var(--bg-gray);
    padding: 24px;
}

@media screen and (max-width: 767px) {
    #recipe-page .chef-info .profile-block {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 15px;
        padding: 15px;
        font-feature-settings: 'palt';
        letter-spacing: 1px;
    }
}

#recipe-page .chef-photo {
    margin: 0 0 20px;
}

#recipe-page .profile-location {
    font-weight: bold;
    letter-spacing: 1px;
}

#recipe-page p.chef-name {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

#recipe-page .chef-name span {
    font-weight: bold;
    font-size: 20px;
    margin-right: 8px;
}


/*レシピ一覧へ戻る*/
.link-block {
    font-size: 15px;
    text-align: right;
}

.link-block a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: calc(100% - 20px);
    height: 2px;
    background: var(--neutral);
    transition: all .3s;
    transform: scaleX(0);
    transform-origin: left;
}

.link-block a:hover::after {
    transform: scaleX(1);
}