@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

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

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

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

/* ========================================
   家電レシピ集アプリ紹介
======================================== */

/* 紹介ボックス全体 */
.nakashi-recipe-app-promo {
    box-sizing: border-box;
    margin: 28px 0;
    padding: 24px 22px;
    border: 1px solid #efdce8;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #fff3f8,
        #f1f8ff
    );
    text-align: center;
}

/* ボックス内の段落 */
.nakashi-recipe-app-promo p {
    margin: 0;
}

/* アイコンと文章の配置 */
.nakashi-recipe-app-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* アイコン */
.nakashi-recipe-app-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

/* アイコン画像 */
.nakashi-recipe-app-icon img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
}

/* 文章エリア */
.nakashi-recipe-app-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* タイトル */
.nakashi-recipe-app-title {
    color: #805e79;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

/* 説明文 */
.nakashi-recipe-app-description {
    margin-top: 12px !important;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}

/* 注意書き */
.nakashi-recipe-app-note {
    margin-top: 14px !important;
    color: #777;
    font-size: 12px;
    line-height: 1.7;
}

/* ========================================
   公式ダウンロードバッジ
======================================== */

/* バッジの配置 */
.nakashi-recipe-app-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
}

/* リンク */
.nakashi-recipe-app-badges a {
    display: inline-block;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 公式バッジ画像 */
.nakashi-recipe-app-badges img {
    display: block;
    width: auto;
    height: 50px;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* マウス操作時 */
.nakashi-recipe-app-badges a:hover {
    opacity: 0.85;
}

/* キーボード操作時 */
.nakashi-recipe-app-badges a:focus-visible {
    outline: 3px solid #805e79;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========================================
   冒頭用：コンパクト表示
======================================== */

.nakashi-recipe-app-top {
    padding: 18px 20px;
}

.nakashi-recipe-app-top .nakashi-recipe-app-title {
    font-size: 15px;
}

.nakashi-recipe-app-top .nakashi-recipe-app-description {
    margin-top: 7px !important;
    font-size: 13px;
}

.nakashi-recipe-app-top .nakashi-recipe-app-badges {
    margin-top: 14px;
}

/* ========================================
   スマートフォン
======================================== */

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

    .nakashi-recipe-app-promo {
        padding: 20px 14px;
        border-radius: 14px;
    }

    /* アイコンを上に配置 */
    .nakashi-recipe-app-layout {
        flex-direction: column;
        gap: 12px;
    }

    .nakashi-recipe-app-icon {
        flex: 0 0 auto;
        width: 72px;
        height: 72px;
    }

    /* 文章を中央揃え */
    .nakashi-recipe-app-content {
        width: 100%;
        text-align: center;
    }

    .nakashi-recipe-app-title {
        font-size: 16px;
        line-height: 1.6;
    }

    .nakashi-recipe-app-description {
        font-size: 13px;
        line-height: 1.8;
    }

    /* 公式バッジ */
    .nakashi-recipe-app-badges {
        gap: 10px;
        margin-top: 16px;
    }

    .nakashi-recipe-app-badges img {
        height: 40px;
    }

    .nakashi-recipe-app-note {
        font-size: 11px;
    }

    /* 冒頭用 */
    .nakashi-recipe-app-top {
        padding: 16px 12px;
    }

    .nakashi-recipe-app-top .nakashi-recipe-app-title {
        font-size: 14px;
    }

    .nakashi-recipe-app-top .nakashi-recipe-app-description {
        font-size: 12px;
    }

    .nakashi-recipe-app-top .nakashi-recipe-app-badges {
        margin-top: 12px;
    }
}

/* ========================================
   動きを減らす設定への対応
======================================== */

@media (prefers-reduced-motion: reduce) {

    .nakashi-recipe-app-badges a:hover {
        opacity: 1;
    }

}