/* Banner Maker Pro - Main Stylesheet */

/* ベース設定 */
.banner-maker-pro-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: #333;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

/* ヘッダータブ */
.header-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
}

.header-tab {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.header-tab.active {
    border-bottom-color: #4a90e2;
    color: #4a90e2;
    background: #f8f9fa;
}

.header-tab:hover:not(.active) {
    background: #f1f3f4;
}

/* メインコンテンツ */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 800px;
}

/* 左カラム */
.left-column {
    padding: 24px;
    background: #ffffff;
    border-right: 1px solid #e1e5e9;
    overflow-y: auto;
}

/* 右カラム */
.right-column {
    padding: 24px;
    background: #f8f9fa;
    overflow-y: auto;
}

/* セクションタイトル */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* レイアウトセクション */
.layout-section {
    margin-bottom: 32px;
}

.layout-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.layout-tab {
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.layout-tab.active {
    background: #4a90e2;
    color: white;
}

.layout-tab:hover:not(.active) {
    background: #cbd5e0;
}

/* レイアウトボタン */
.layout-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.layout-button {
    aspect-ratio: 3/2;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2d3748;
    position: relative;
    overflow: hidden;
}

.layout-button:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.layout-button.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.layout-number {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.layout-preview-mini {
    width: 100%;
    height: 100%;
    position: relative;
}

/* プレビュー行 */
.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.preview-container h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #4a5568;
}

.preview-image {
    background: #2d3748;
    border-radius: 6px;
    aspect-ratio: 3/2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    padding: 8px;
}

.completed-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

/* バナーエリア */
.banner-area {
    margin-bottom: 32px;
}

.banner-area-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
}

.banner-canvas {
    background: #2d3748;
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
    border: 2px solid #4a90e2;
    overflow: hidden;
}

/* バナー要素 */
.banner-element {
    position: absolute;
    background: rgba(74, 85, 104, 0.9);
    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
}

.banner-element:hover {
    border-style: solid;
    background: rgba(74, 85, 104, 1);
}

.banner-element.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    z-index: 1000;
}

.banner-element.dragging {
    opacity: 0.8;
    z-index: 1001;
}

.banner-element.cta-button {
    background: #ed8936;
    border-radius: 20px;
}

.banner-element.image {
    background: #4299e1;
}

/* カラーセクション */
.color-section {
    margin-bottom: 32px;
}

.color-section-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

.color-base-section {
    margin-bottom: 20px;
}

.color-base-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.color-base-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-base {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.color-base:hover {
    transform: scale(1.1);
}

.color-base.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* カラーグループ */
.color-details-section {
    margin-bottom: 20px;
}

.color-details-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.color-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.color-group:hover {
    background: rgba(74, 144, 226, 0.05);
}

.color-group.disabled {
    opacity: 0.5;
}

.color-checkbox {
    width: 16px;
    height: 16px;
}

.color-label {
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.color-input {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.color-circles {
    display: flex;
    gap: 4px;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* メッセージ */
.blue-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* ボタン */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.action-buttons .btn {
    flex: 1;
}

/* プロンプトセクション */
.prompt-section {
    margin-bottom: 32px;
}

.yaml-badge {
    background: #ffc107;
    color: #333;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.prompt-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

/* プロンプトタブ続き */
.prompt-tab {
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.prompt-tab.active {
    background: #4a90e2;
    color: white;
}

.prompt-tab:hover:not(.active) {
    background: #cbd5e0;
}

.prompt-textarea {
    width: 100%;
    min-height: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 0 6px 6px 6px;
    padding: 16px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background: white;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.prompt-textarea.edit-mode {
    background: #fff3cd;
    border-color: #ffc107;
}

.prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 右カラム - 入力セクション */
.input-section {
    margin-bottom: 24px;
}

.input-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.input-tab {
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.input-tab.active {
    background: #4a90e2;
    color: white;
}

.input-tab:hover:not(.active) {
    background: #cbd5e0;
}

/* フォームグループ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}

.placeholder-text {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    line-height: 1.4;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.text-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

/* 入力セクションタイトル */
.input-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.note {
    font-size: 12px;
    font-weight: normal;
    color: #718096;
}

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-weight: 500;
    margin: 0;
    flex: 1;
}

/* スタイルボタン */
.style-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.style-button {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
    color: #718096;
}

.style-button.edit {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    cursor: pointer;
}

.style-button.edit:hover {
    background: #357abd;
}

.style-button.styled {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* アコーディオン */
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.accordion-toggle:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.accordion-toggle.open {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.accordion-toggle::after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.2s ease;
}

.accordion-toggle.open::after {
    transform: rotate(180deg);
}

.accordion-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

/* チェックボックスグリッド */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #f7fafc;
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.checkbox-item label {
    font-size: 13px;
    margin: 0;
    cursor: pointer;
}

/* オプション説明 */
.options-description {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 適用ボタン */
.apply-options {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
}

/* エラー表示 */
.field-error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
}

/* ローディング */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* メッセージ */
.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    max-width: 400px;
}

.banner-maker-message {
    background: #4a90e2;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-maker-message.success {
    background: #48bb78;
}

.banner-maker-message.error {
    background: #e53e3e;
}

.banner-maker-message.warning {
    background: #ed8936;
}

.banner-maker-message.info {
    background: #4299e1;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #718096;
}

.modal-body {
    padding: 24px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .left-column,
    .right-column {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .preview-row {
        grid-template-columns: 1fr;
    }
    
    .banner-canvas {
        transform: scale(0.8);
        transform-origin: top left;
    }
}

@media (max-width: 768px) {
    .banner-maker-pro-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .left-column,
    .right-column {
        padding: 16px;
    }
    
    .layout-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-base-selector {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-canvas {
        transform: scale(0.6);
    }
    
    .messages-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .header-tabs {
        flex-direction: column;
    }
    
    .layout-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .prompt-tabs {
        flex-direction: column;
        gap: 2px;
    }
    
    .input-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .banner-canvas {
        transform: scale(0.5);
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .banner-maker-pro-container[data-theme="auto"] {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .banner-maker-pro-container[data-theme="auto"] .left-column {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .banner-maker-pro-container[data-theme="auto"] .right-column {
        background: #1a202c;
    }
    
    .banner-maker-pro-container[data-theme="auto"] .text-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .banner-maker-pro-container[data-theme="auto"] .accordion-toggle {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}

/* アニメーション */
.banner-element {
    animation: elementFadeIn 0.3s ease-out;
}

@keyframes elementFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ガイドライン */
.guide-line {
    position: absolute;
    pointer-events: none;
    z-index: 999;
}

.guide-line.guide-vertical {
    background: rgba(74, 144, 226, 0.6);
    width: 1px;
}

.guide-line.guide-horizontal {
    background: rgba(74, 144, 226, 0.6);
    height: 1px;
}

.guide-line.guide-dynamic {
    background: rgba(255, 107, 53, 0.8);
}

/* リサイズハンドル */
.handle {
    position: absolute;
    background: #4a90e2;
    border: 2px solid white;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    z-index: 1001;
}

.handle-nw {
    cursor: nw-resize;
    left: -4px;
    top: -4px;
}

.handle-ne {
    cursor: ne-resize;
    right: -4px;
    top: -4px;
}

.handle-sw {
    cursor: sw-resize;
    left: -4px;
    bottom: -4px;
}

.handle-se {
    cursor: se-resize;
    right: -4px;
    bottom: -4px;
}

/* ツールチップ */
.banner-maker-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 2003;
    pointer-events: none;
}

.banner-maker-tooltip.top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* スクロールバー */
.left-column::-webkit-scrollbar,
.right-column::-webkit-scrollbar,
.prompt-textarea::-webkit-scrollbar {
    width: 6px;
}

.left-column::-webkit-scrollbar-track,
.right-column::-webkit-scrollbar-track,
.prompt-textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.left-column::-webkit-scrollbar-thumb,
.right-column::-webkit-scrollbar-thumb,
.prompt-textarea::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.left-column::-webkit-scrollbar-thumb:hover,
.right-column::-webkit-scrollbar-thumb:hover,
.prompt-textarea::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* フォーカスリング */
.banner-maker-pro-container *:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.banner-maker-pro-container .btn:focus,
.banner-maker-pro-container .text-input:focus,
.banner-maker-pro-container .prompt-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* プリント対応 */
@media print {
    .banner-maker-pro-container {
        box-shadow: none;
        background: white;
    }
    
    .action-buttons,
    .prompt-actions,
    .messages-container,
    .modal {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        display: none;
    }
}    

/* YAML入力モーダル修正 */
.yaml-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.yaml-textarea {
    width: 100%;
    min-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background: #f8f9fa;
}

.yaml-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.yaml-help {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #4a90e2;
}

.yaml-help h4 {
    margin-top: 0;
    color: #333;
}

.yaml-help pre {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    overflow-x: auto;
}

/* チェックボックスグループの修正 */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* center から flex-start に変更 */
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0; /* チェックボックスサイズ固定 */
}

.checkbox-group label {
    font-weight: 500;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.style-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* プレースホルダーテキストの配置 */
.placeholder-text {
    font-size: 12px;
    color: #718096;
    margin: 4px 0 8px 24px; /* 左マージンでチェックボックス位置に合わせる */
    line-height: 1.4;
}

/* 入力フィールドも同様に調整 */
.text-input {
    width: 100%;
    margin-left: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* アコーディオントグルボタンの修正 */
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin: 12px 0 8px 0;
    transition: all 0.2s ease;
    width: 100%;
}

.accordion-toggle:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.accordion-toggle.open {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.accordion-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

/* レスポンシブ修正 */
@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .style-buttons {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .placeholder-text {
        margin-left: 0;
    }
}

/* フォームグループ全体の調整 */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}