/* IRIAMサムネイル生成用スタイル */
.upload-section {
    margin: 20px 0;
    text-align: center;
}

#previewCanvas {
    border: 2px dashed #ccc;
    margin: 10px auto;
    max-width: 1125px;
    width: 100%;
    display: block;
}

.text-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.text-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.text-options label:hover {
    background: #e9ecef;
}

/* IRIAM画像生成用スタイル */
.image-type-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.type-btn {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn:hover {
    background: #e9ecef;
}

.type-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.canvas-container {
    position: relative;
    margin: 10px auto;
    max-width: 1125px;
}

.option-section {
    margin: 20px 0;
}

.option-section h3 {
    text-align: center;
    margin-bottom: 15px;
}

.preview-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.control-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.control-btn i {
    font-size: 16px;
}

.control-btn input[type="checkbox"] {
    margin-right: 5px;
}

/* IRIAM画像チェッカー用スタイル */
.drag-drop-area {
    width: 100%;
    padding-bottom: 100%; /* アスペクト比を1:1に */
    position: relative;
    border: 3px dashed #ccc;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.drag-drop-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
}

.drag-drop-content i {
    font-size: 48px;
    margin-bottom: 15px;
}

.drag-drop-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.file-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-upload-btn:hover {
    background: #0056b3;
}

.reset-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* 画像タイプごとのサイズ設定 */
.upload-section.type-thumb .drag-drop-area,
.upload-section.type-icon .drag-drop-area {
    padding-bottom: 100%; /* 正方形 */
}

.upload-section.type-header .drag-drop-area {
    padding-bottom: 42.67%; /* 1125:480のアスペクト比 */
}

.upload-section {
    margin: 20px auto;
    text-align: center;
    transition: max-width 0.3s ease;
}

.upload-section.type-thumb,
.upload-section.type-icon {
    max-width: 400px;
}

.upload-section.type-header {
    max-width: 1125px;
}

.drag-drop-area.dragover {
    background: #e9ecef;
    border-color: #007bff;
}
