/* テスト用画像生成ツール 固有スタイル */

#image-container {
    width: 100%;
    min-height: 300px;
    max-height: 460px; /* プレビューエリアの最大高さを設定 */
    border: 2px dashed #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f9fafb; /* bg-gray-50 */
    padding: 1rem;
}

#generated-image {
    max-width: 100%;
    max-height: 100%; /* コンテナの高さに合わせて画像の高さを制限 */
    height: auto;
    object-fit: contain; /* アスペクト比を維持してコンテナ内に収める */
    border-radius: 0.25rem;
}

.error-message {
    color: #ef4444; /* text-red-500 */
    font-size: 0.875rem; /* text-sm */
    display: block;
    margin-top: 5px;
}

.placeholder-text {
    color: #9ca3af; /* text-gray-400 */
    font-size: 0.875rem; /* text-sm */
}

.color-input-fields {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-fields input[type="color"] {
    min-width: 40px;
    padding: 0;
    height: 40px; /* 高さを40pxに調整 */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.color-input-fields input[type="text"] {
    flex-grow: 1;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem; /* py-2 px-3 と同じパディングに設定 */
}

/* 必須・任意ラベルのスタイル */
.required {
    color: #ef4444; /* text-red-500 */
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}

.optional {
    color: #22c55e; /* text-green-500 */
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}