@charset "UTF-8";
/* voice.css */

.voice-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.voice-card__main {
    display: flex;
    padding: 25px;
}

.voice-card__image {
    width: 260px;
    flex-shrink: 0;
    margin-right: 30px;
}

.voice-card__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.voice-card__content {
    flex-grow: 1;
}

.voice-card__attribute {
    font-size: 0.85rem;
    color: #004488;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.voice-card__title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 属性情報のグリッド表示 */
.voice-card__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 20px;
}

.voice-card__info-grid dl {
    display: flex;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.voice-card__info-grid dt {
    width: 80px;
    color: #888;
}

.voice-card__info-grid dd {
    font-weight: 500;
}

/* 詳しくみるボタン */
.more-btn {
    width: 100%;
    background: #003366;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.more-btn::after {
    content: '∨';
    position: absolute;
    right: 20px;
}

.more-btn.is-active::after {
    content: '∧';
}

/* アコーディオン内部 */
.voice-card__details {
    display: none; /* 初期状態は非表示 */
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.details-inner {
    padding: 30px;
}

.qa-item {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 15px;
}

.qa-question {
    width: 30%;
    font-weight: bold;
    color: #004488;
    font-size: 0.95rem;
    line-height: 1.5;
}

.qa-answer {
    width: 70%;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 担当者からのメッセージデザイン */
.staff-reply {
    margin-top: 40px;
    background: #fff;
    border: 2px solid #004488;
    padding: 20px;
    position: relative;
}

.staff-reply__label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #004488;
    color: #fff;
    padding: 2px 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.staff-reply__text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* スマホ対応（メディアクエリ） */
@media screen and (max-width: 768px) {
    .voice-card__main {
        flex-direction: column;
        padding: 15px; /* スマホ用に余白を少し詰める */
    }

    /* 【修正箇所】スマホの時は画像を非表示にする */
    .voice-card__image {
        display: none;
    }

    .voice-card__content {
        width: 100%;
    }

    .voice-card__title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .voice-card__info-grid {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 5px;
    }

    .details-inner {
        padding: 20px 15px;
    }

    .qa-item {
        flex-direction: column;
    }

    .qa-question {
        width: 100%;
        margin-bottom: 5px;
        border-bottom: none; /* 質問下の線は不要 */
    }

    .qa-answer {
        width: 100%;
        padding-left: 0;
        margin-bottom: 10px;
    }
}