@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** ベース設定（確実に上書き）
************************************/

body {
    font-size: 16px !important;
    line-height: 1.8;

    font-family:
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        "Noto Sans JP",
        sans-serif !important;
}

/* H2 */
h2 {
    font-size: 22px !important;
    line-height: 1.4;
}

/* content */
#toc_container {
    width: 80%;
    margin: 30px auto;
}

/* 吹き出し */
.balloon,
.balloon-box,
.speech-balloon {
    font-size: 14px !important;
    line-height: 1.6;
}

/* 小さい補足 */
.small,
.note,
.caption {
    font-size: 13px;
}

/************************************
** LINE風CTA
************************************/

.custom-cta-banner {
    position: relative;
    margin: 48px 0;
    padding: 34px 24px;
    background: linear-gradient(135deg, #06C755 0%, #00b94f 100%);
    border-radius: 18px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.custom-cta-banner::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.custom-cta-banner::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

.custom-cta-banner p {
    position: relative;
    z-index: 2;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.8;
}

.custom-cta-button {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 10px;
    padding: 16px 34px;
    background: #fff;
    color: #06C755 !important;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: 0.25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.custom-cta-button::before {
    content: "💬";
    margin-right: 8px;
    font-size: 18px;
}

.custom-cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.96;
}

/************************************
** POINTボックス
************************************/

.blank-box {
    position: relative;
    background: #fff;
    border: 3px solid #5bc0c8;
    border-radius: 8px;
    padding: 20px 20px 18px;
    margin: 30px 0;
    font-size: 15px !important;
    line-height: 1.8;
    color: #333;
    box-sizing: border-box;
}

.blank-box p:first-child strong {
    position: absolute;
    top: -13px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    background: #fff;
    color: #5bc0c8;
    white-space: nowrap;
}

/************************************
** 記事下プロフィール
************************************/

.author-box {
    position: relative;
    text-align: left;
    padding: 28px;
    margin-top: 40px;
    background: #fff;
    border: 1px solid #d9e8f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.08),
        0 3px 8px rgba(0,0,0,0.05);
}

/*（中略：あなたの元コードそのまま全部保持）*/

/************************************
** FAQアコーディオン（修正版ここだけ）
************************************/

.faq-item{
    margin:24px 0;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    width:100%;
    display:block;
}

.faq-item summary{
    list-style:none;
    display:block;
    width:100%;
}

.faq-item summary::-webkit-details-marker{
    display:none;
}

.question-box{
    position:relative;
    display:block;
    width:100%;
    box-sizing:border-box;

    cursor:pointer;
    padding:18px 55px 18px 70px;

    font-size:16px;
    font-weight:700;
    line-height:1.8;
    background:#fff;
    transition:.2s;
}

.question-box:hover{
    background:#fafafa;
}

.question-box::before{
    content:"Q";
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);

    width:36px;
    height:36px;
    border-radius:50%;

    background:#e53935;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
    font-weight:700;
}

.question-box::after{
    content:"+";
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    font-size:24px;
    font-weight:700;
    color:#999;
}

.faq-item[open] .question-box::after{
    content:"−";
}

.answer-box{
    position:relative;
    display:block;
    width:100%;
    box-sizing:border-box;

    padding:18px 20px 20px 70px;

    line-height:2;
    color:#444;

    word-break:break-word;
}

.answer-box::before{
    content:"A";
    position:absolute;
    left:18px;
    top:18px;

    width:36px;
    height:36px;
    border-radius:50%;

    background:#2196f3;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
    font-weight:700;
}

/************************************
** スマホ
************************************/

@media screen and (max-width:768px){
    .question-box{
        padding:16px 50px 16px 60px;
        font-size:15px;
    }

    .answer-box{
        padding:16px 16px 16px 60px;
        font-size:14px;
    }
}