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


/* ============================================
   スマホ追従CTAバナー（アフィリエイトCVR最大化）
   イチカブAI仕様
   ============================================ */
.sp-cta-banner {
    display: none;
    position: fixed;
    bottom: 64px; /* sp-fixed-footerの上 */
    left: 0;
    right: 0;
    z-index: 9998;
    background: #2b2c48;
    border-top: 1px solid #3d3f6b;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(43,44,72,0.4);
    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: rgba(255,255,255,0.6);
    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: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.sp-cta-btn {
    display: inline-block;
    background: #7086aa;
    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;
}

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

/* PCでは非表示 */
@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: #f0f3f9;
    border: 1px solid #d0d8e8;
    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: #eceef8;
    border: 1px solid #c4cde0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #2b2c48;
    margin: 2px;
}

/* ============================================
   記事内CTA 3箇所最適化（冒頭・中間・末尾）
   ============================================ */

/* 冒頭CTA（目次前） - 既存pre-toc-boxの強化版 */
.pre-toc-cta {
    background: linear-gradient(135deg, #eceef8 0%, #dee5f3 100%);
    border: 1.5px solid #a0b0cc;
    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: #333;
    line-height: 1.7;
    min-width: 200px;
}

.pre-toc-cta .cta-btn-small {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-height: 44px;
    transition: background 0.2s;
    flex-shrink: 0;
}

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

/* 記事末尾CTAボックス強化 */
.article-end-cta {
    background: var(--color-primary);
    border-radius: 12px;
    padding: 32px 28px;
    margin: 48px 0 32px;
    text-align: center;
    color: #fff;
}

.article-end-cta h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-end-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.article-end-cta .end-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ============================================
   モバイルUI最適化（タップ領域・間隔・可読性）
   ============================================ */

/* タップターゲット最小44px確保 */
@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-card-title a {
        line-height: 1.5;
    }

    /* 本文フォントサイズ */
    .entry-content {
        font-size: 15px !important;
    }

    /* 段落間の余白拡張 */
    .entry-content p {
        margin-bottom: 1.4em;
    }

    /* h2・h3の余白調整 */
    .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;
    }

    /* アフィリボタンをフルwidth */
    .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）- イチカブAI
   ============================================ */
.entry-content h2 {
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(90deg, #eceef8 0%, #f6f7fb 100%);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin: 48px 0 20px;
    font-size: 20px;
    letter-spacing: 0.03em;
}

.entry-content h3 {
    border-left: 3px solid var(--color-accent);
    padding-left: 12px;
    margin: 36px 0 14px;
    font-size: 17px;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .entry-content h2 { font-size: 18px; padding: 12px 14px; }
    .entry-content h3 { font-size: 16px; }
}

/* ============================================
   ホームページヒーローセクション（イチカブAI）
   ============================================ */
.home-hero {
    background: linear-gradient(135deg, #1a1b35 0%, #2b2c48 65%, #3d3f6b 100%);
    border-radius: 10px;
    padding: 72px 32px 64px;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(112,134,170,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    border: 1px solid rgba(112,134,170,0.5);
    color: #7086aa;
    font-size: 10px;
    letter-spacing: 0.2em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 22px;
    text-transform: uppercase;
}
.home-hero .hero-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.5 !important;
    letter-spacing: 0.05em;
    margin: 0 0 16px !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 2;
    margin: 0 0 32px;
}
.home-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 36px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    min-height: 46px;
    background: transparent;
}
.home-hero .hero-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}
@media (max-width: 768px) {
    .home-hero { padding: 52px 24px 48px; border-radius: 8px; margin: 0 0 28px; }
    .home-hero .hero-title { font-size: 22px !important; }
    .home-hero .hero-btn { width: 100%; }
}

/* ============================================
   記事カードデザイン（ホバー・シャドウ）- イチカブAI
   ============================================ */
.entry-card-wrap {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(43,44,72,0.07);
    border: 1px solid #e8ecf4 !important;
    text-decoration: none !important;
    display: block;
}
.entry-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(43,44,72,0.14);
    text-decoration: none !important;
}
.entry-card-thumb {
    overflow: hidden;
}
.entry-card-thumb-image {
    transition: transform 0.4s ease;
}
.entry-card-wrap:hover .entry-card-thumb-image {
    transform: scale(1.04);
}
.entry-card-title {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.6 !important;
    color: var(--color-primary) !important;
    margin: 0 0 8px !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
.entry-card-content {
    padding: 14px 16px 16px !important;
}
.entry-card-meta {
    font-size: 11px !important;
    color: #aaa !important;
}


/* ============================================================
   B: 目次デザイン（ichikabuai）
   ============================================================ */
.toc {
    background: #f0f4fa;
    border: 2px solid #1a2a4a;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    margin: 2em 0;
}
.toc-title {
    background: #1a2a4a;
    color: #fff !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 16px;
    margin: 0;
}
.toc-list {
    padding: 12px 16px 12px 32px;
    margin: 0;
}
.toc-list li {
    margin: 6px 0;
    line-height: 1.5;
}
.toc-list a {
    color: #1a2a4a !important;
    text-decoration: none;
    font-size: 0.92rem;
}
.toc-list a:hover {
    color: #f0c040 !important;
    text-decoration: underline;
}
.toc-list .toc-list {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* ============================================================
   D: 引用（blockquote）デザイン（ichikabuai）
   ============================================================ */
.entry-content blockquote,
blockquote {
    background: #f0f4fa;
    border-left: 5px solid #1a2a4a;
    border-radius: 0 6px 6px 0;
    padding: 1em 1.2em;
    margin: 1.5em 0;
    color: #333;
    font-style: normal;
    position: relative;
}
.entry-content blockquote::before {
    content: '\201C';
    font-size: 3em;
    color: #1a2a4a;
    opacity: 0.2;
    position: absolute;
    top: -0.1em;
    left: 0.1em;
    line-height: 1;
}

/* ============================================================
   D: テーブルデザイン（ichikabuai）
   ============================================================ */
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    font-size: 0.93rem;
    box-shadow: 0 2px 8px rgba(26,42,74,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.entry-content table th {
    background: #1a2a4a;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
    border: none;
}
.entry-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid #dde4f0;
    color: #333;
}
.entry-content table tr:nth-child(even) td {
    background: #f5f8ff;
}
.entry-content table tr:hover td {
    background: #e8eef8;
    transition: background 0.15s;
}

/* ============================================================
   E: サイドバーデザイン（ichikabuai）
   ============================================================ */
.widget {
    margin-bottom: 2em;
}
.widget-title,
.widgettitle {
    font-size: 1rem;
    font-weight: bold;
    color: #1a2a4a;
    padding: 8px 12px;
    border-left: 4px solid #1a2a4a;
    background: #f0f4fa;
    border-radius: 0 4px 4px 0;
    margin-bottom: 12px;
}
.sidebar .widget ul li {
    border-bottom: 1px dashed #dde4f0;
    padding: 6px 0;
    font-size: 0.92rem;
}
.sidebar .widget ul li:last-child {
    border-bottom: none;
}
.sidebar .widget ul li a {
    color: #1a2a4a;
    text-decoration: none;
}
.sidebar .widget ul li a:hover {
    color: #f0c040;
}
