@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.2.0
*/

/************************************
** なんでも比較.com アフィサイト化 CSS（2026-04-19〜）
************************************/

/* --- フロントページ・カテゴリページを全幅化（サイドバー非表示） --- */
body.home #main,
body.home .main,
body.category #main,
body.category .main {
    float: none !important;
    width: 100% !important;
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.home #sidebar,
body.home .sidebar,
body.category #sidebar,
body.category .sidebar {
    display: none !important;
}
body.home .content,
body.category .content {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- PR/広告表記 --- */
.nandemo-pr-label {
    background: #f5f5f5;
    border-left: 3px solid #b0b0b0;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
    padding: 8px 12px;
    margin: 0 0 20px;
    border-radius: 3px;
}

/* --- 著者ボックス --- */
.nandemo-author-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    margin: 40px 0 20px;
    display: flex;
    gap: 16px;
}
.nandemo-author-body {
    flex: 1;
}
.nandemo-author-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2c3e50;
}
.nandemo-author-bio {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 10px;
}
.nandemo-author-links {
    font-size: 12px;
    margin: 0;
}
.nandemo-author-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 4px;
}
.nandemo-author-links a:hover {
    text-decoration: underline;
}

/* --- 比較表（hikaku-table） --- */
.hikaku-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}
.hikaku-table thead {
    background: #2c3e50;
    color: #fff;
}
.hikaku-table th,
.hikaku-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.hikaku-table th {
    font-weight: 600;
}
.hikaku-table tr:nth-child(even) td {
    background: #f9f9f9;
}
.hikaku-table tr:hover td {
    background: #f1f8ff;
}
@media screen and (min-width: 835px) {
    .hikaku-table {
        display: table;
    }
}

/* --- 関連クラスター内部リンク --- */
.nandemo-related-cluster {
    background: #f8fafc;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 20px;
    margin: 40px 0 20px;
}
.nandemo-related-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}
.nandemo-related-cluster ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nandemo-related-cluster li {
    padding: 8px 0;
    border-bottom: 1px dashed #e1e8ed;
}
.nandemo-related-cluster li:last-child {
    border-bottom: none;
}
.nandemo-related-cluster a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
}
.nandemo-related-cluster a:hover {
    color: #3498db;
    text-decoration: underline;
}
.nandemo-pillar-link a,
.nandemo-guide-link a {
    font-weight: 700;
    color: #e74c3c !important;
}

/* --- フロントページ --- */
.nandemo-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 32px;
}
.nandemo-hero h1 {
    font-size: 28px;
    margin: 0 0 12px;
    color: #fff;
}
.nandemo-hero p {
    font-size: 16px;
    margin: 0 0 24px;
    line-height: 1.7;
}
.nandemo-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.nandemo-hero-ctas a {
    background: #fff;
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s;
}
.nandemo-hero-ctas a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nandemo-section {
    margin: 40px 0;
}
.nandemo-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    color: #2c3e50;
}

.nandemo-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.nandemo-category-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s;
    display: block;
}
.nandemo-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #3498db;
}
.nandemo-category-card-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2c3e50;
}
.nandemo-category-card-count {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
}
.nandemo-category-card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.nandemo-top3-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.nandemo-top3-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #2c3e50;
    position: relative;
}
.nandemo-top3-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}
.nandemo-top3-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.nandemo-top3-item-body {
    padding: 14px;
}
.nandemo-top3-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.nandemo-recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.nandemo-recent-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #2c3e50;
    display: block;
}
.nandemo-recent-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.nandemo-recent-item-body {
    padding: 12px;
}
.nandemo-recent-item-cat {
    font-size: 11px;
    color: #3498db;
    font-weight: 700;
    margin: 0 0 4px;
}
.nandemo-recent-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* --- カテゴリピラー --- */
.nandemo-pillar-header {
    background: #f8fafc;
    border-left: 5px solid #3498db;
    padding: 20px;
    margin: 0 0 32px;
    border-radius: 0 6px 6px 0;
}
.nandemo-pillar-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
}
.nandemo-pillar-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}
.nandemo-criteria-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 18px;
}
.nandemo-criteria-title {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 8px;
}
.nandemo-criteria-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}
.nandemo-pillar-faq {
    background: #fafafa;
    border-radius: 6px;
    padding: 24px;
    margin: 32px 0;
}
.nandemo-pillar-faq dt {
    font-weight: 700;
    color: #2c3e50;
    margin: 16px 0 6px;
    padding-left: 24px;
    position: relative;
}
.nandemo-pillar-faq dt::before {
    content: "Q.";
    position: absolute;
    left: 0;
    color: #3498db;
}
.nandemo-pillar-faq dd {
    margin: 0 0 12px 24px;
    color: #555;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}
.nandemo-pillar-faq dd::before {
    content: "A.";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* --- フッター5リンク --- */
.nandemo-footer-links {
    text-align: center;
    padding: 24px 16px;
    background: #2c3e50;
    color: #fff;
}
.nandemo-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.nandemo-footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 13px;
}
.nandemo-footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 834px) {
    .nandemo-hero h1 {
        font-size: 22px;
    }
    .nandemo-hero {
        padding: 40px 16px;
    }
    .nandemo-author-box {
        flex-direction: column;
        padding: 16px;
    }
    .nandemo-section-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .nandemo-hero-ctas a {
        font-size: 13px;
        padding: 8px 14px;
    }
    .hikaku-table th,
    .hikaku-table td {
        padding: 8px;
        font-size: 12px;
    }
}
