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

/* ============================================
   アフィリエイトボックス・ボタン（そろてりあ）
   ============================================ */

/* アフィリエイトボックス */
.aff-box {
    background: #fafaf8;
    border: 1.5px solid #e0d9d0;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.aff-box-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.aff-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* メインアフィボタン（楽天・Amazon誘導用） */
.aff-btn {
    display: inline-block;
    background: #F0B429;
    color: #fff !important;
    text-decoration: none !important;
    padding: 16px 36px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    min-height: 52px;
    min-width: 220px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 12px rgba(240,180,41,0.35);
}

.aff-btn:hover {
    background: #D9A020;
    transform: translateY(-2px);
}

/* 目次前ボックス（さりげなく誘導） */
.pre-toc-box {
    background: linear-gradient(135deg, #f5f0ea 0%, #ede8e0 100%);
    border-left: 3px solid #c8a97e;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.pre-toc-box strong {
    color: #c8a97e;
}

/* ============================================
   404ページ（そろてりあ）
   ============================================ */

.not-found-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 680px;
    margin: 0 auto;
}

.not-found-title {
    font-size: 96px;
    font-weight: 200;
    color: #e0d9d0;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 8px;
}

.not-found-message {
    font-size: 22px;
    color: #444;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.not-found-sub {
    font-size: 14px;
    color: #999;
    margin-bottom: 36px;
    line-height: 1.8;
}

.not-found-search {
    margin-bottom: 32px;
}

.not-found-search .search-field {
    width: 100%;
    max-width: 400px;
    padding: 12px 18px;
    border: 1.5px solid #e0d9d0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.not-found-home-btn {
    display: inline-block;
    background: transparent;
    color: #c8a97e !important;
    text-decoration: none !important;
    border: 1.5px solid #c8a97e;
    padding: 13px 32px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.not-found-home-btn:hover {
    background: #F0B429;
    color: #fff !important;
}

.not-found-posts h2 {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: none;
}

.not-found-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.not-found-post-item {
    text-decoration: none !important;
    color: #444 !important;
}

.not-found-post-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.not-found-post-title {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .not-found-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .not-found-title {
        font-size: 64px;
    }
    .aff-btn {
        width: 100%;
        min-width: unset;
    }
}


/* ============================================
   基本デザイン：フォント・行間・配色統一
   そろてりあ 3色：白 #ffffff / ベージュ #c8a97e / チャコール #333333
   ============================================ */

:root {
    --color-primary: #c8a97e;
    --color-text: #333333;
    --color-bg: #ffffff;
}

body, .entry-content {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.5;
    color: var(--color-text);
}

a { color: var(--color-primary); }
a:hover { color: #b5936a; }

/* ============================================
   スマホ固定フッターメニュー（そろてりあ）
   ============================================ */

.sp-fixed-footer {
    display: none;
}

@media (max-width: 768px) {
    .sp-fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #ffffff;
        border-top: 1px solid #e8e0d6;
        height: 56px;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }

    .sp-fixed-footer a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #999 !important;
        font-size: 10px;
        letter-spacing: 0.05em;
        gap: 3px;
        transition: color 0.2s;
    }

    .sp-fixed-footer a:hover,
    .sp-fixed-footer a.active {
        color: var(--color-primary) !important;
    }

    .sp-fixed-footer svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    /* フッターメニュー分のスペースを下に確保 */
    body {
        padding-bottom: 56px !important;
    }
}


/* ============================================
   PR・広告表記ボックス
   ============================================ */
.pr-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-left: 3px solid #999;
    padding: 8px 12px;
    margin-bottom: 20px;
    font-size: 0.8em;
    color: #666;
    border-radius: 0 4px 4px 0;
}
.pr-notice__icon {
    background: #999;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

