@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){
  /*必要ならばここにコードを書く*/
}

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

/* 紹介ボックス全体 */
.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-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* ボタン共通 */
.nakashi-recipe-app-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 18px;

    border-radius: 12px;

    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;

    text-decoration: none !important;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* マウス操作時 */
.nakashi-recipe-app-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

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

/* App Store */
.nakashi-recipe-app-ios {
    background: #b982a4;
}

/* Google Play */
.nakashi-recipe-app-android {
    background: #78a99a;
}

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

.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-buttons {
    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-buttons {
        gap: 8px;
        margin-top: 16px;
    }

    .nakashi-recipe-app-button {
        flex: 1 1 130px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .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;
    }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .nakashi-recipe-app-button {
        transition: none;
    }

    .nakashi-recipe-app-button:hover {
        transform: none;
    }
}