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

/* ============================================
   アフィリエイトボックス・ボタン（イチカブAI）
   ============================================ */

.aff-box {
    background: #f8f9fc;
    border: 1.5px solid #d0d8e8;
    border-radius: 10px;
    padding: 28px 24px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(43,44,72,0.06);
}

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

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

.aff-btn {
    display: inline-block;
    background: #2b2c48;
    color: #fff !important;
    text-decoration: none !important;
    padding: 16px 36px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    min-height: 52px;
    min-width: 220px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(43,44,72,0.3);
}

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

.pre-toc-box {
    background: linear-gradient(135deg, #eceef8 0%, #dee5f3 100%);
    border-left: 3px solid #7086aa;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

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

/* ============================================
   404ページ（イチカブAI）
   ============================================ */

.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: #dee5f3;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 8px;
}

.not-found-message {
    font-size: 22px;
    color: #2b2c48;
    font-weight: 600;
    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 #d0d8e8;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

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

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

.not-found-posts h2 {
    font-size: 13px;
    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: #333 !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; }
}


/* ============================================
   基本デザイン：フォント・行間・配色統一
   イチカブAI 3色：ホワイト #fafafa / ネイビー #2b2c48 / ブルーグレー #7086aa
   ============================================ */

:root {
    --color-primary: #2b2c48;
    --color-accent: #7086aa;
    --color-text: #333333;
    --color-bg: #fafafa;
}

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-primary);
}

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

/* ============================================
   スマホ固定フッターメニュー（イチカブAI）
   ============================================ */

.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 #d0d8e8;
        height: 56px;
        box-shadow: 0 -2px 12px rgba(43,44,72,0.1);
    }

    .sp-fixed-footer a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #aaa !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;
}

