﻿/* ===========================
   不動産Ｑ＆Ａ（完全版）
   =========================== */

/* ⭐ これ超重要（はみ出し防止） */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 全体 */
.main_contents {
    width: 100%;
    margin: 0;
    padding: 0 12px;
    overflow-x: hidden; /* 念のため */
}

/* 見出し */
.menubox1 {
    margin: 30px 0;
}

.hero_img {
    width: 100%;
    max-width: 700px;
    margin: 5px auto 0 auto;
}

    .hero_img img {
        width: 100%;
        border-radius: 12px;
    }


/* ---------------------------
   カード本体
--------------------------- */
.qa-7 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 14px auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}

    /* 開いたとき */
    .qa-7[open] {
        background: #f9fbff;
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }

    /* ---------------------------
   質問（summary）
--------------------------- */
    .qa-7 summary {
        display: flex;
        align-items: center;
        padding: 16px 16px 16px 50px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        position: relative;
        list-style: none;
        transition: background 0.2s ease;
    }

        /* hover */
        .qa-7 summary:hover {
            background: #f2f6ff;
        }

        /* デフォルト矢印消す */
        .qa-7 summary::-webkit-details-marker {
            display: none;
        }

        /* Qマーク */
        .qa-7 summary::before {
            content: "Q";
            position: absolute;
            left: 16px;
            font-size: 14px;
            font-weight: bold;
            color: #4da3ff;
        }

        /* ＋ / － */
        .qa-7 summary::after {
            content: "+";
            margin-left: auto;
            font-size: 20px;
            color: #666;
            transition: transform 0.3s ease;
        }

    /* 開いたとき */
    .qa-7[open] summary::after {
        content: "−";
        transform: rotate(180deg);
    }

    /* ---------------------------
   回答（p）
--------------------------- */
    .qa-7 p {
        position: relative;
        margin: 0;
        padding: 0 16px 0 50px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        color: #444;
        line-height: 1.7;
        font-size: 14px;
        transition: all 0.35s ease;
    }

    /* 開いたとき */
    .qa-7[open] p {
        max-height: 1000px;
        opacity: 1;
        padding: 10px 16px 18px 50px;
    }

    /* Aマーク */
    .qa-7 p::before {
        content: "A";
        position: absolute;
        left: 16px;
        top: 10px;
        font-size: 14px;
        font-weight: bold;
        color: #ff6b6b;
    }

/* ---------------------------
   スマホ微調整
--------------------------- */
@media screen and (min-width: 600px) {

    .qa-7 summary {
        font-size: 16px;
    }

    .qa-7 p {
        font-size: 15px;
    }
}
