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


/* ============================================
   スマホ追従CTAバナー（アフィリエイトCVR最大化）
   そろてりあ仕様
   ============================================ */
.sp-cta-banner {
    display: none;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    border-top: 2px solid #F0B429;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.sp-cta-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    flex-shrink: 0;
}

.sp-cta-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sp-cta-text {
    font-size: 12px;
    color: #444;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.sp-cta-btn {
    display: inline-block;
    background: #F0B429;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-height: 40px;
    line-height: 1.4;
    flex-shrink: 0;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(240,180,41,0.35);
}

.sp-cta-btn:hover { background: #D9A020; }

@media (min-width: 769px) {
    .sp-cta-banner { display: none !important; }
}

/* ============================================
   E-E-A-T強化：著者情報・信頼性UI
   ============================================ */
.author-info-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #faf8f5;
    border: 1px solid #e0d9d0;
    border-radius: 10px;
    padding: 20px;
    margin: 32px 0;
}

.author-info-box .author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info-box .author-meta h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 4px;
}

.author-info-box .author-meta p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 信頼性バッジ */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f0ea;
    border: 1px solid #e0d9d0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #666;
    margin: 2px;
}

/* ============================================
   記事内CTA 3箇所最適化（冒頭・中間・末尾）
   ============================================ */
.pre-toc-cta {
    background: linear-gradient(135deg, #f5f0ea 0%, #ede8e0 100%);
    border: 1.5px solid #c8a97e;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pre-toc-cta .cta-message {
    flex: 1;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    min-width: 200px;
}

.pre-toc-cta .cta-btn-small {
    display: inline-block;
    background: #F0B429;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-height: 44px;
    transition: background 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240,180,41,0.3);
}

.pre-toc-cta .cta-btn-small:hover { background: #D9A020; }

.article-end-cta {
    background: linear-gradient(135deg, #f5f0ea 0%, #ede8e0 100%);
    border: 2px solid #F0B429;
    border-radius: 12px;
    padding: 32px 28px;
    margin: 48px 0 32px;
    text-align: center;
}

.article-end-cta h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.article-end-cta p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-end-cta .end-cta-btn {
    display: inline-block;
    background: #F0B429;
    color: #fff !important;
    text-decoration: none !important;
    padding: 16px 40px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    min-height: 52px;
    box-shadow: 0 4px 16px rgba(240,180,41,0.4);
    transition: background 0.2s, transform 0.2s;
}

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

/* ============================================
   モバイルUI最適化
   ============================================ */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .navi-in > ul > li > a,
    .navi-in > ul > li > span {
        min-height: 48px;
        padding: 12px 16px;
    }

    .entry-content {
        font-size: 15px !important;
    }

    .entry-content p {
        margin-bottom: 1.4em;
    }

    .entry-content h2 {
        font-size: 18px;
        margin-top: 2em;
        margin-bottom: 0.8em;
    }

    .entry-content h3 {
        font-size: 16px;
        margin-top: 1.6em;
        margin-bottom: 0.6em;
    }

    .aff-btn {
        width: 100%;
        min-width: unset;
        font-size: 14px;
        padding: 14px 20px;
    }

    .entry-card {
        margin-bottom: 20px;
    }

    .entry-content img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   ロゴ・ヘッダー最適化 (#23)
   ============================================ */
@media (max-width: 480px) {
    .header-logo img,
    .site-name-image img {
        max-height: 44px;
        width: auto;
    }
}

#header {
    min-height: 56px;
}


/* ============================================
   見出しスタイル（h2/h3）- そろてりあ
   ============================================ */
.entry-content h2 {
    position: relative;
    padding-bottom: 16px;
    margin: 52px 0 22px;
    font-size: 20px;
    letter-spacing: 0.08em;
    font-weight: 700;
    border: none;
    background: none;
}
.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #F0B429;
}

.entry-content h3 {
    border-left: 2px solid #F0B429;
    padding-left: 14px;
    margin: 38px 0 14px;
    font-size: 17px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .entry-content h2 { font-size: 18px; letter-spacing: 0.05em; }
    .entry-content h3 { font-size: 16px; }
}

/* ============================================
   ホームページヒーローセクション（そろてりあ）
   ============================================ */
.home-hero {
    background: #ffffff;
    border: 1px solid #ede8e2;
    border-radius: 2px;
    padding: 72px 32px 64px;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
}
.home-hero-inner {
    max-width: 440px;
    margin: 0 auto;
}
.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: #bbb;
    margin: 0 0 20px;
    font-style: italic;
    font-family: Georgia, serif;
}
.home-hero .hero-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.08em;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    position: static !important;
}
.home-hero .hero-title::after { display: none !important; }
.hero-title-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #F0B429;
    margin: 18px auto 24px;
}
.hero-sub {
    font-size: 13px;
    color: #aaa;
    line-height: 2;
    margin: 0 0 32px;
}
.home-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F0B429;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 40px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: 0.18em;
    min-height: 46px;
    transition: background 0.3s;
    font-weight: 600;
    border: none;
}
.home-hero .hero-btn:hover { background: #D9A020; }
@media (max-width: 768px) {
    .home-hero { padding: 52px 20px 48px; margin: 0 0 28px; }
    .home-hero .hero-title { font-size: 22px !important; }
    .home-hero .hero-btn { width: 100%; }
}
