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



/* -------------------- 
   テーマカラー設定（ここを変更するだけでOK！）
   -------------------- */
:root {
    /* ========== 文字色 ========== */
    --text-main: #333333;           /* 本文・通常テキスト */
    --text-heading: #333333;        /* 見出しの文字色 */
    --text-light: #555555;          /* 引用など薄めのテキスト */
    
    /* ========== あしらいの色（濃い色・太線など） ========== */
    --accent-strong: #333333;       /* 見出しの下線・左ボーダーなど */
    --accent-button: #ff6b35;       /* ボタンの背景色 */
    --accent-button-hover: #e55a2b; /* ボタンホバー時 */
    
    /* ========== 薄い色（背景・テーブルなど） ========== */
    --bg-light: #f5f5f5;            /* テーブル左カラム背景 */
    --bg-lighter: #f9f9f9;          /* ボックス背景 */
    --bg-lightest: #fafafa;         /* 縞模様など */
    --bg-table-head: #e8e8e8;       /* テーブルヘッダー背景 */
    
    /* ========== ボーダー・罫線 ========== */
    --border-main: #e0e0e0;         /* 通常の罫線 */
    --border-light: #cccccc;        /* 引用などの罫線 */
}

/* -------------------- 
   カラープリセット（コメントアウトを外すだけで使える！）
   -------------------- */

/* ブルー系（信頼感・金融系）
:root {
    --text-heading: #1e40af;
    --accent-strong: #2563eb;
    --accent-button: #3b82f6;
    --accent-button-hover: #2563eb;
    --bg-light: #eff6ff;
    --bg-lighter: #f0f9ff;
    --bg-table-head: #dbeafe;
}
*/

/* グリーン系（健康・エコ系）
:root {
    --text-heading: #047857;
    --accent-strong: #059669;
    --accent-button: #10b981;
    --accent-button-hover: #059669;
    --bg-light: #ecfdf5;
    --bg-lighter: #f0fdf4;
    --bg-table-head: #d1fae5;
}
*/

/* パープル系（美容・高級感）
:root {
    --text-heading: #6d28d9;
    --accent-strong: #7c3aed;
    --accent-button: #8b5cf6;
    --accent-button-hover: #7c3aed;
    --bg-light: #f5f3ff;
    --bg-lighter: #faf5ff;
    --bg-table-head: #e9d5ff;
}
*/

/* レッド系（インパクト・セール系）
:root {
    --text-heading: #b91c1c;
    --accent-strong: #dc2626;
    --accent-button: #ef4444;
    --accent-button-hover: #dc2626;
    --bg-light: #fef2f2;
    --bg-lighter: #fef2f2;
    --bg-table-head: #fecaca;
}
*/

/* -------------------- 
   ベース設定 
   -------------------- */
.article body,
body {
    color: var(--text-main);

}

/* -------------------- 
   見出しデザイン
   -------------------- */

/* H1 - メインタイトル */
.article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 0 0 1.5rem 0;
    margin: 0 0 2.5rem 0;
    position: relative;
    letter-spacing: 0.08em;
    line-height: 1.6;
    border-bottom: 3px solid var(--accent-strong);
    background: none;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
}

/* H2 - セクション見出し */
.article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 0 0 0.8rem 0;
    margin: 3.5rem 0 2rem 0;
    border-bottom: 2px solid var(--border-main);
    position: relative;
    letter-spacing: 0.08em;
    line-height: 1.6;
    background: none;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
}

.article h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-strong);
}

/* H3 - サブセクション見出し */
.article h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 0.6rem 0 0.6rem 1rem;
    margin: 3rem 0 1.5rem 0;
    border-left: 4px solid var(--accent-strong);
    letter-spacing: 0.08em;
    line-height: 1.6;
    background: none;
    border-bottom: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
}

/* H4 - 小見出し */
.article h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 0;
    margin: 2.5rem 0 1.2rem 0;
    letter-spacing: 0.08em;
    line-height: 1.6;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* -------------------- 
   ボックス・引用 
   -------------------- */

/* 引用ブロック */
.article blockquote {
    background: var(--bg-lighter);
    border-left: 3px solid var(--border-light);
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* アイコンボックス・案内ボックス */
.article .information-box,
.article .blank-box,
.article .icon-box {
    background: var(--bg-lighter);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    margin: 2rem 0;
}

.article .information-box {
    background: #f0f7ff;
    border-color: #b3d9ff;
}

/* -------------------- 
   吹き出し 
   -------------------- */
.article .speech-balloon {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-lighter);
    border: 1px solid var(--border-main);
    border-radius: 4px;
}

/* -------------------- 
   テーブル 
   -------------------- */

/* テーブルをラップするコンテナが必要な場合のスタイル */
.article .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    position: relative;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid var(--border-main);
    min-width: 600px;
}

.article table thead {
    background: var(--bg-light);
}

.article table th {
    padding: 1rem 1.2rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border-main);
    color: var(--text-heading);
    background: var(--bg-light);
}

/* 一番左の項目列のヘッダー */
.article table th:first-child {
    text-align: left;
    background: var(--bg-table-head);
}

.article table td {
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-main);
    background: #ffffff;
    text-align: center;
}

/* 一番左の項目列 */
.article table td:first-child {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-heading);
    text-align: left;
}

/* レスポンシブ対応：左カラム固定 + 横スクロール */
@media (max-width: 768px) {
    .article .table-wrapper {
        position: relative;
        overflow-x: auto;
        margin: 2rem 0;
    }
    
    .article table {
        margin: 0;
        min-width: auto;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    /* 一番左の列を固定 */
    .article table th:first-child,
    .article table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: var(--bg-light);
        min-width: 120px;
        max-width: 120px;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }
    
    .article table th:first-child {
        background: var(--bg-table-head);
        z-index: 11;
    }
    
    /* 2列目以降のサイズ調整 */
    .article table th:not(:first-child),
    .article table td:not(:first-child) {
        min-width: 140px;
    }
    
    .article table th,
    .article table td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* -------------------- 
   リスト 
   -------------------- */
.article ul {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.article ul li {
    padding: 0.4rem 0;
    line-height: 1.8;
    list-style: disc;
}



/* -------------------- 
   カード・コンテナ 
   -------------------- */

/* -------------------- 
   画像 
   -------------------- */
.article img {
    max-width: 100%;
    height: auto;
}

/* -------------------- 
   段落 
   -------------------- */
.article p {
 
}

/* -------------------- 
   レスポンシブ 
   -------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 0.8rem;
    }
    
    .btn,
    .button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}



/* -------------------- 
ランキング 
   -------------------- */
.ranking-comparison-wrapper {
            all: initial;
            display: block;
            font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
            background: #f5f5f5;
            padding: 2rem 1rem;
            margin: 0;
            box-sizing: border-box;
        }

        .ranking-comparison-wrapper * {
            box-sizing: border-box;
        }

        .ranking-comparison-wrapper .table-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            overflow-x: visible;
        }

        .ranking-comparison-wrapper .ranking-table {
            width: 100%;
            border-collapse: collapse;
            background: #ffffff;
        }

        .ranking-comparison-wrapper .ranking-table th,
        .ranking-comparison-wrapper .ranking-table td {
            text-align: center;
            vertical-align: middle;
            padding: 1rem;
            border: none;
			width: 33.333%;
        }

        /* ヘッダー（王冠） */
        .ranking-comparison-wrapper .ranking-table thead tr {
            background: #ffffff;
        }

        .ranking-comparison-wrapper .ranking-table thead th {
            padding: 1.5rem 1rem;
            font-size: 3rem;
        }

        /* 列ごとの背景色 */
        .ranking-comparison-wrapper .ranking-table .rank-1-col {
            background: #fffdf0;
            border-left: 3px solid #d4a017;
            border-right: 3px solid #d4a017;
			text-align:center;
        }

        .ranking-comparison-wrapper .ranking-table .rank-2-col {
            background: #f8f9fa;
            border-left: 3px solid #c0c0c0;
            border-right: 3px solid #c0c0c0;
        }

        .ranking-comparison-wrapper .ranking-table .rank-3-col {
            background: #fff9f5;
            border-left: 3px solid #cd7f32;
            border-right: 3px solid #cd7f32;
        }

        /* 一番上と一番下のボーダー */
        .ranking-comparison-wrapper .ranking-table thead th.rank-1-col {
            border-top: 3px solid #d4a017;
        }

        .ranking-comparison-wrapper .ranking-table thead th.rank-2-col {
            border-top: 3px solid #c0c0c0;
        }

        .ranking-comparison-wrapper .ranking-table thead th.rank-3-col {
            border-top: 3px solid #cd7f32;
        }

        .ranking-comparison-wrapper .ranking-table tbody tr:last-child td.rank-1-col {
            border-bottom: 3px solid #d4a017;
        }

        .ranking-comparison-wrapper .ranking-table tbody tr:last-child td.rank-2-col {
            border-bottom: 3px solid #c0c0c0;
        }

        .ranking-comparison-wrapper .ranking-table tbody tr:last-child td.rank-3-col {
            border-bottom: 3px solid #cd7f32;
        }

        /* 交互配色（白抜き行） */
        .ranking-comparison-wrapper .ranking-table .white-row td {
            background: #ffffff !important;
        }

        /* ロゴエリア */
        .ranking-comparison-wrapper .logo-cell {
            padding: 1.5rem 1rem !important;
        }

        .ranking-comparison-wrapper .logo-box {
            background: #ffffff;
            border: 2px solid #ddd;
            border-radius: 4px;
            padding: 1.5rem 1rem;
            min-height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .ranking-comparison-wrapper .company-category {
            font-size: 0.7rem;
            color: #666;
            margin: 0 0 0.3rem;
        }

        .ranking-comparison-wrapper .service-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #0066cc;
            margin: 0;
            padding: 0;
            border: none;
            background: none;
            text-align: center;
        }

        /* 評価 */
        .ranking-comparison-wrapper .stars {
            font-size: 1.5rem;
            color: #ffa500;
            letter-spacing: 0.05rem;
            margin-bottom: 0.3rem;
        }

        .ranking-comparison-wrapper .rating-score {
            font-size: 1.5rem;
            font-weight: 700;
            color: #ff0000;
            margin: 0;
        }

        /* 項目ラベル */
        .ranking-comparison-wrapper .info-label {
            display: inline-block;
            background: #00a99d;
            color: #ffffff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.3rem 0.8rem;
            border-radius: 3px;
            margin-bottom: 0.5rem;
        }

        .ranking-comparison-wrapper .info-content {
            font-size: 0.9rem;
            font-weight: 700;
            color: #333;
            line-height: 1.6;
            margin: 0;
        }

        .ranking-comparison-wrapper .info-note {
            font-size: 0.65rem;
            color: #999;
            margin-top: 0.2rem;
        }

        /* 〇×アイコン（SVG画像） */
        .ranking-comparison-wrapper .status-icon {
            display: inline-block;
            width: 50px;
            height: 50px;
            margin: 0.3rem 0;
        }

        .ranking-comparison-wrapper .status-icon img {
            width: 100%;
            height: 100%;
            display: block;
        }

        .ranking-comparison-wrapper .status-text {
            display: block;
            font-size: 0.8rem;
            font-weight: 700;
            color: #333;
            line-height: 1.4;
            margin-top: 0.3rem;
        }

        .ranking-comparison-wrapper .status-text.red {
            color: #ff0000;
        }

        /* フッター（サービス名） */
        .ranking-comparison-wrapper .footer-cell {
            font-weight: 700;
            font-size: 1rem;
            color: #333;
            padding: 1rem !important;
        }

        /* ボタン */
        .ranking-comparison-wrapper .official-button {
            display: inline-block;
            background: #00a99d;
            color: #ffffff;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 700;
            padding: 1rem 2rem;
            border-radius: 8px;
            transition: all 0.3s;
            margin: 0.5rem 0;
        }

        .ranking-comparison-wrapper .official-button:hover {
            background: #008c82;
            transform: translateY(-2px);
        }

        .ranking-comparison-wrapper .button-note {
            display: block;
            font-size: 0.75rem;
            color: #ffffff;
            margin-top: 0.3rem;
            font-weight: 700;
        }

        /* レスポンシブ */
        @media (max-width: 768px) {
            .ranking-comparison-wrapper {
                padding: 1rem 0.5rem;
            }

            .ranking-comparison-wrapper .ranking-table {
                font-size: 0.75rem;
            }

            .ranking-comparison-wrapper .ranking-table th,
            .ranking-comparison-wrapper .ranking-table td {
                padding: 0.6rem 0.3rem;
            }

            .ranking-comparison-wrapper .ranking-table thead th {
                font-size: 2rem;
                padding: 1rem 0.5rem;
            }

            .ranking-comparison-wrapper .logo-box {
                padding: 1rem 0.5rem;
                min-height: 60px;
            }

            .ranking-comparison-wrapper .company-category {
                font-size: 0.55rem;
            }

            .ranking-comparison-wrapper .service-name {
                font-size: 0.85rem;
            }

            .ranking-comparison-wrapper .stars {
                font-size: 1rem;
            }

            .ranking-comparison-wrapper .rating-score {
                font-size: 1rem;
            }

            .ranking-comparison-wrapper .info-label {
                font-size: 0.6rem;
                padding: 0.2rem 0.5rem;
            }

            .ranking-comparison-wrapper .info-content {
                font-size: 0.75rem;
            }

            .ranking-comparison-wrapper .info-note {
                font-size: 0.55rem;
            }

            .ranking-comparison-wrapper .status-icon {
                width: 35px;
                height: 35px;
            }

            .ranking-comparison-wrapper .status-text {
                font-size: 0.65rem;
            }

            .ranking-comparison-wrapper .footer-cell {
                font-size: 0.8rem;
            }

            .ranking-comparison-wrapper .official-button {
                font-size: 0.85rem;
                padding: 0.6rem 1rem;
            }

            .ranking-comparison-wrapper .button-note {
                font-size: 0.6rem;
            }
        }