/* Employee Voice セクション用の展開機能CSS */

/* full-messageの初期状態（非表示） */
.employee-message .full-message {
    display: none;
    margin-top: 1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.5s ease;
}

/* expanded状態でfull-messageを表示 */
.employee-message.expanded .full-message {
    display: block;
    opacity: 1;
    max-height: 500px; /* 十分な高さを設定 */
}

/* expand-buttonのスタイル */
.voice-card .expand-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #2196f3;
    border-radius: 20px;
    color: #2196f3;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-card .expand-button:hover {
    background: #2196f3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.voice-card .expand-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* expanded状態でアイコンを回転 */
.employee-message.expanded ~ .expand-button svg {
    transform: rotate(180deg);
}

/* voice-cardのトランジション */
.voice-card {
    transition: box-shadow 0.3s ease;
}

.voice-card:has(.employee-message.expanded) {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}