@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==================================================
   NDR｜レシピ個別ページ
   ================================================== */


body.single-recipe .sidebar {
    display: none;
}

body.single-recipe .content {
    width: 100%;
}

body.single-recipe .main {
    width: 100%;
}

/* ==================================================
   NDR｜レシピ個別ページ
   ================================================== */

/* レシピページ全体 */
body.single-recipe .recipe-single {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* コンテンツ */
body.single-recipe .recipe-content {
    width: 100%;
}


/* ----------------------------------
   タイトル
   ---------------------------------- */

body.single-recipe .recipe-header {
    margin-bottom: 30px;
}

body.single-recipe .recipe-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.5;
    font-weight: 700;
}

body.single-recipe .recipe-id {
    margin: 0;
    font-size: 13px;
    color: #777;
}


/* ----------------------------------
   カテゴリ
   ---------------------------------- */

body.single-recipe .recipe-category {
    margin-bottom: 35px;
}

body.single-recipe .recipe-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.single-recipe .recipe-category-item {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
}


/* ----------------------------------
   写真
   ---------------------------------- */

body.single-recipe .recipe-images {
    margin-bottom: 55px;
}

body.single-recipe .recipe-main-image {
    margin-bottom: 12px;
    text-align: center;
}

body.single-recipe .recipe-main-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

body.single-recipe .recipe-sub-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

body.single-recipe .recipe-sub-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}


/* ----------------------------------
   セクション共通
   ---------------------------------- */

body.single-recipe .recipe-material,
body.single-recipe .recipe-info,
body.single-recipe .recipe-body {
    margin-bottom: 50px;
}

body.single-recipe .recipe-content h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 20px;
    line-height: 1.5;
}


/* ----------------------------------
   必要材料
   ---------------------------------- */

body.single-recipe .recipe-material-text {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    line-height: 1.8;
}


/* ----------------------------------
   難易度・所要時間
   ---------------------------------- */

body.single-recipe .recipe-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

body.single-recipe .recipe-info-item {
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
}

body.single-recipe .recipe-info-item h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 600;
}

body.single-recipe .recipe-info-item p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}


/* ----------------------------------
   投稿本文
   ---------------------------------- */

body.single-recipe .recipe-body-text {
    line-height: 2;
}

body.single-recipe .recipe-body-text p {
    margin-bottom: 1.5em;
}


/* ----------------------------------
   スマホ
   ---------------------------------- */

@media screen and (max-width: 767px) {

    body.single-recipe .recipe-single {
        padding: 25px 15px 60px;
    }

    body.single-recipe .recipe-title {
        font-size: 25px;
    }

    body.single-recipe .recipe-sub-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    body.single-recipe .recipe-info {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.single-recipe .recipe-info-item {
        padding: 15px 10px;
    }

}