#stc-comparison-tool {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* テキスト入力欄 */
#stc-comparison-tool .text-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#stc-comparison-tool .text-inputs textarea {
    width: 45%;
    max-width: 600px;
    min-width: 280px;
    height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    white-space: pre-wrap;
}

/* カスタマイズオプション */
#stc-comparison-tool .customization-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

#stc-comparison-tool .customization-options label {
    margin-right: 10px;
}

#stc-comparison-tool .customization-options div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 比較ボタン */
#stc-comparison-tool button {
    display: block;
    margin: 0 auto 20px auto;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#stc-comparison-tool button:hover {
    background-color: #218838;
}

/* 結果サマリー */
.results-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    gap: 10px;
}

.highlight-summary {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
    background-color: #f8d7da;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 出力欄 */
#stc-comparison-tool .output-texts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

#stc-comparison-tool .output-texts div {
    width: 45%;
    max-width: 600px;
    min-width: 280px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    min-height: 200px;
    white-space: pre-wrap;
}

/* 差分アニメーション */
.diff-block {
    display: inline-block;
    position: relative;
}

.diff-arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    top: -25px;
    left: 0;
    animation: bounce 1s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* スマホ対応 */
@media (max-width: 768px) {
    #stc-comparison-tool .text-inputs textarea,
    #stc-comparison-tool .output-texts div {
        width: 100%;
    }

    .results-summary {
        align-items: flex-start;
    }

    .highlight-summary {
        width: 100%;
    }
}
