/*
 * カッティングステッカー見積システム プラグイン
 * Version: 2.1.12
 * ファイル名: assets/css/wizard-style.css
 * V2.1.12: モーダルクラス名のプレフィックス追加に対応。
 */

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* * =====================================================
 * 1. CSSリセット (IDスコープ限定)
 * =====================================================
 */
#designComplexityToolApp {
    all: initial; 
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #1f2937;
    width: 100%;
    display: block;
    background-color: #f7f8fa;
    padding: 2rem 1rem;
}

#designComplexityToolApp *, 
#designComplexityToolApp *::before, 
#designComplexityToolApp *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

/* 見出し要素のリセットと基本設定 */
#designComplexityToolApp h1,
#designComplexityToolApp h2,
#designComplexityToolApp h3,
#designComplexityToolApp h4,
#designComplexityToolApp h5,
#designComplexityToolApp h6 {
    margin: 0;
    color: inherit;
    background: transparent;
    font-weight: 700;
    font-size: inherit;
}

/* * =====================================================
 * 2. ユーティリティクラスの再現
 * =====================================================
 */

#designComplexityToolApp .hidden { display: none !important; }
#designComplexityToolApp .block { display: block; }
#designComplexityToolApp .inline-block { display: inline-block; }
#designComplexityToolApp .flex { display: flex; }

#designComplexityToolApp .mt-1 { margin-top: 0.25rem; }
#designComplexityToolApp .mt-2 { margin-top: 0.5rem; }
#designComplexityToolApp .mt-4 { margin-top: 1rem; }
#designComplexityToolApp .mt-6 { margin-top: 1.5rem; }
#designComplexityToolApp .mt-8 { margin-top: 2rem; }
#designComplexityToolApp .mt-10 { margin-top: 2.5rem; }
#designComplexityToolApp .mb-2 { margin-bottom: 0.5rem; }
#designComplexityToolApp .mb-3 { margin-bottom: 0.75rem; }
#designComplexityToolApp .mb-4 { margin-bottom: 1rem; }
#designComplexityToolApp .mb-6 { margin-bottom: 1.5rem; }
#designComplexityToolApp .mb-8 { margin-bottom: 2rem; }
#designComplexityToolApp .p-2 { padding: 0.5rem; }
#designComplexityToolApp .p-3 { padding: 0.75rem; }
#designComplexityToolApp .p-4 { padding: 1rem; }
#designComplexityToolApp .p-8 { padding: 2rem; }

#designComplexityToolApp .space-y-2 > * + * { margin-top: 0.5rem; }
#designComplexityToolApp .space-y-4 > * + * { margin-top: 1rem; }

#designComplexityToolApp .text-center { text-align: center; }
#designComplexityToolApp .text-right { text-align: right; }
#designComplexityToolApp .text-left { text-align: left; }

#designComplexityToolApp .text-xs { font-size: 0.75rem; }
#designComplexityToolApp .text-sm { font-size: 0.875rem; }
#designComplexityToolApp .text-base { font-size: 1rem; }
#designComplexityToolApp .text-lg { font-size: 1.125rem; }
#designComplexityToolApp .text-xl { font-size: 1.25rem; }
#designComplexityToolApp .text-2xl { font-size: 1.5rem; }
#designComplexityToolApp .text-3xl { font-size: 1.875rem; }

#designComplexityToolApp .font-normal { font-weight: 400; }
#designComplexityToolApp .font-medium { font-weight: 500; }
#designComplexityToolApp .font-semibold { font-weight: 600; }
#designComplexityToolApp .font-bold { font-weight: 700; }

#designComplexityToolApp .text-white { color: #ffffff; }
#designComplexityToolApp .text-gray-400 { color: #9ca3af; }
#designComplexityToolApp .text-gray-500 { color: #6b7280; }
#designComplexityToolApp .text-gray-600 { color: #4b5563; }
#designComplexityToolApp .text-gray-700 { color: #374151; }
#designComplexityToolApp .text-red-600 { color: #dc2626; }
#designComplexityToolApp .text-blue-600 { color: #2563eb; }
#designComplexityToolApp .text-green-600 { color: #16a34a; }
#designComplexityToolApp .text-yellow-600 { color: #ca8a04; }
#designComplexityToolApp .text-indigo-600 { color: #4f46e5; }
#designComplexityToolApp .text-blue-800 { color: #1e40af; }

#designComplexityToolApp .bg-white { background-color: #ffffff; }
#designComplexityToolApp .bg-gray-50 { background-color: #f9fafb; }
#designComplexityToolApp .bg-gray-100 { background-color: #f3f4f6; }
#designComplexityToolApp .bg-blue-50 { background-color: #eff6ff; }

#designComplexityToolApp .border { border-width: 1px; }
#designComplexityToolApp .border-b { border-bottom-width: 1px; }
#designComplexityToolApp .border-gray-200 { border-color: #e5e7eb; }
#designComplexityToolApp .border-gray-300 { border-color: #d1d5db; }
#designComplexityToolApp .border-blue-200 { border-color: #bfdbfe; }

#designComplexityToolApp .rounded-md { border-radius: 0.375rem; }
#designComplexityToolApp .rounded-lg { border-radius: 0.5rem; }
#designComplexityToolApp .rounded-full { border-radius: 9999px; }

#designComplexityToolApp .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
#designComplexityToolApp .w-full { width: 100%; }

/* * =====================================================
 * 3. コンポーネントスタイル
 * =====================================================
 */

/* メインコンテナ */
#designComplexityToolApp > div.bg-white {
    max-width: 56rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background-color: #fff;
}

/* ヘッダー */
#designComplexityToolApp header {
    background-image: linear-gradient(to right, #6a3de4, #492394);
    padding: 2rem;
    color: white;
    text-align: center;
}
#designComplexityToolApp header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
@media (min-width: 640px) {
    #designComplexityToolApp header h1 { font-size: 1.875rem; }
}

/* デザイン名ヘッダー */
#designComplexityToolApp .design-name-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
#designComplexityToolApp .design-name-header span {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    display: block;
    margin-bottom: 0.25rem !important;
}

/* h4見出し */
#designComplexityToolApp h4 {
    font-size: 1.125rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: #374151; 
    padding: 0.5em;
    background-color: var(--vk-color-border-hr, #f3f4f6);
    border-radius: var(--vk-size-radius, 0.25rem);
}

/* フォーム要素 */
#designComplexityToolApp input:not([type="radio"]),
#designComplexityToolApp select,
#designComplexityToolApp textarea {
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 100%;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none; /* ブラウザのデフォルトスタイルを解除 */
    -webkit-appearance: none;
}
#designComplexityToolApp input:focus,
#designComplexityToolApp select:focus,
#designComplexityToolApp textarea:focus {
    outline: none;
    border-color: #6a3de4;
    box-shadow: 0 0 0 3px rgba(106, 61, 228, 0.2);
}
#designComplexityToolApp label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer; /* 重要: ラベルをクリック可能に */
}

/* ラジオボタン・グループ */
#designComplexityToolApp .radio-group-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#designComplexityToolApp .radio-group-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s;
    position: relative; /* 重要: z-indexのために */
}
#designComplexityToolApp .radio-group-item:hover {
    background-color: #f9fafb;
}
#designComplexityToolApp .radio-group-item:has(input:checked),
#designComplexityToolApp .radio-group-item.checked {
    background-color: #eff6ff;
    border-color: #6a3de4;
    box-shadow: 0 0 0 1px #6a3de4;
}

/* ★修正: ラジオボタン本体のスタイルを強制 */
#designComplexityToolApp .radio-group-item input[type="radio"] {
    appearance: auto !important; /* テーマによる非表示を解除 */
    -webkit-appearance: auto !important;
    display: inline-block !important;
    opacity: 1 !important;
    position: static !important; /* 絶対配置による重なりを防止 */
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
    accent-color: #6a3de4;
    cursor: pointer;
    border: 1px solid #d1d5db;
    z-index: 10; /* クリックを受け取れるように */
}
#designComplexityToolApp .plan-description, 
#designComplexityToolApp .shipping-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* 横並びラジオグループ */
#designComplexityToolApp .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
#designComplexityToolApp .radio-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}
#designComplexityToolApp .radio-group input[type="radio"] {
    margin-right: 0.5rem;
    width: auto;
    height: auto;
}

/* ファイルアップロードエリア */
#designComplexityToolApp .drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}
#designComplexityToolApp .drop-zone:hover,
#designComplexityToolApp .drop-zone.dragover {
    border-color: #6a3de4;
    background-color: #eff6ff;
}
#designComplexityToolApp .uploadButton {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    display: inline-block;
}
#designComplexityToolApp .uploadButton:hover {
    background-color: #4338ca;
}

/* プレビューエリア */
.previewArea {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    text-align: center;
}
#designComplexityToolApp .preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%, #e5e7eb),
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%, #e5e7eb);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #fff;
}

/* 単位付き入力 */
#designComplexityToolApp .input-with-unit-container {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #fff;
    overflow: hidden;
}
#designComplexityToolApp .input-with-unit-container:focus-within {
    border-color: #6a3de4;
    box-shadow: 0 0 0 3px rgba(106, 61, 228, 0.2);
}
#designComplexityToolApp .input-with-unit-container input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    text-align: right;
}
#designComplexityToolApp .input-with-unit-container input:focus {
    box-shadow: none;
}
#designComplexityToolApp .unit-label {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: #f3f4f6;
    border-left: 1px solid #d1d5db;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}
/* 枚数入力欄の幅調整 */
#designComplexityToolApp .quantity-input-container {
    width: 40%;
    min-width: 150px;
}

#designComplexityToolApp .step2-size-inputs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    #designComplexityToolApp .step2-size-inputs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* カラー選択 */
#designComplexityToolApp .colorDropdownContainer .input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* カラー選択ラベルのスタイル (改行防止) */
#designComplexityToolApp .colorDropdownContainer .input-group label {
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap; 
    width: auto; 
    margin-right: 0.5rem;
}

#designComplexityToolApp .color-preview-box {
    width: 3rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #fff;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* ナビゲーションボタン */
#designComplexityToolApp .wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    background-color: rgba(255,255,255,0.95);
    padding: 1rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid #e5e7eb;
    z-index: 10;
}
#designComplexityToolApp .wizard-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
#designComplexityToolApp .wizard-btn.prev {
    background-color: #e5e7eb;
    color: #374151;
}
#designComplexityToolApp .wizard-btn.prev:hover {
    background-color: #d1d5db;
}
#designComplexityToolApp .wizard-btn.next {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3), 0 2px 4px -1px rgba(220, 38, 38, 0.1);
    animation: pulseNext 2s infinite;
}
#designComplexityToolApp .wizard-btn.next:hover {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
}
@keyframes pulseNext {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
#designComplexityToolApp .wizard-btn:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
    background: #d1d5db;
}

/* 「見積もりを作成」ボタン */
#designComplexityToolApp #createQuoteButton {
    display: inline-block;
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    color: white;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
    line-height: 1.5;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.5), 0 2px 4px -1px rgba(220, 38, 38, 0.3);
}
#designComplexityToolApp #createQuoteButton:hover {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(220, 38, 38, 0.6), 0 4px 6px -1px rgba(220, 38, 38, 0.4);
}
#designComplexityToolApp #createQuoteButton.pulsing-button {
    animation: pulse-shadow 2s infinite;
}
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* 見積もり結果テーブル (Step 11) */
#designComplexityToolApp .quote-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
#designComplexityToolApp .quote-table-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #6b7280;
    display: none;
}

/* スマホ用スタイル: Flexboxで折り返し、幅を制御 */
#designComplexityToolApp .quote-table-row {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    padding: 1rem;
    align-items: center;
}
#designComplexityToolApp .quote-table-row:last-child { border-bottom: none; }

/* PC用スタイル */
@media (min-width: 640px) {
    #designComplexityToolApp .quote-table-header,
    #designComplexityToolApp .quote-table-row {
        display: grid;
        grid-template-columns: 3fr 1fr 1fr 1.2fr;
        align-items: center;
        padding: 0;
    }
    #designComplexityToolApp .quote-table-header .quote-cell,
    #designComplexityToolApp .quote-table-row .quote-cell {
        padding: 0.75rem 1rem;
    }
    /* PCではFlexプロパティをリセット */
    #designComplexityToolApp .quote-table-row {
        display: grid;
        flex-wrap: nowrap;
    }
}

/* 各セルのスタイル (スマホ向け) */
#designComplexityToolApp .cell-item {
    font-weight: 600;
    color: #111827;
    width: 100%; /* 1行目: 全幅 */
    margin-bottom: 0.25rem;
}

#designComplexityToolApp .item-details { 
    font-weight: 400; 
    color: #6b7280; 
    font-size: 0.85em; 
    margin-top: 0.25rem; 
    display: flex; 
    justify-content: flex-start; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
}
#designComplexityToolApp .item-details span {
    white-space: nowrap; 
}

#designComplexityToolApp .cell-unitprice,
#designComplexityToolApp .cell-quantity {
    display: inline-block;
    padding: 0;
    font-size: 0.875rem;
    color: #6b7280;
    /* 2行目: 幅は成り行き */
}
#designComplexityToolApp .cell-unitprice {
    margin-right: 1rem; /* 単価と数量の間隔 */
}

/* 単価・数量のラベルを :before で表示 */
#designComplexityToolApp .cell-unitprice:before {
    content: "単価: ";
}
#designComplexityToolApp .cell-quantity:before {
    content: "数量: ";
}

/* PCではラベルを非表示 */
@media (min-width: 640px) {
    #designComplexityToolApp .cell-unitprice:before,
    #designComplexityToolApp .cell-quantity:before {
        content: "";
    }
}

/* 空のセルは非表示 (割引行などでレイアウト崩れを防ぐ) */
#designComplexityToolApp .cell-unitprice:empty,
#designComplexityToolApp .cell-quantity:empty {
    display: none;
}

#designComplexityToolApp .cell-price {
    font-weight: 700;
    color: #1f2937;
    width: 100%; /* 3行目: 全幅 */
    text-align: right;
    padding-top: 0.25rem;
    font-size: 1.125rem;
}

#designComplexityToolApp .quote-table-row-design-header {
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: #374151;
    grid-column: 1 / -1;
}
#designComplexityToolApp .discount-row .cell-price { color: #dc2626; }

/* 合計金額サマリー */
#designComplexityToolApp .price-summary-list {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    overflow: hidden;
}
#designComplexityToolApp .price-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
#designComplexityToolApp .price-summary-row dt { color: #6b7280; }
#designComplexityToolApp .price-summary-row dd { font-weight: 600; color: #111827; }
#designComplexityToolApp .price-summary-row.total-row {
    background-color: #f9fafb;
    border-top: 2px solid #6a3de4;
    padding: 1rem;
}
#designComplexityToolApp .price-summary-row.total-row dt {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4f46e5;
}
#designComplexityToolApp .price-summary-row.total-row dd {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

/* PDF・製作依頼ボタン */
#designComplexityToolApp #actionButtonContainer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 640px) {
    #designComplexityToolApp #actionButtonContainer {
        flex-direction: row;
    }
}
#designComplexityToolApp #downloadPdfButton,
#designComplexityToolApp #requestProductionButton {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
}
@media (min-width: 640px) {
    #designComplexityToolApp #downloadPdfButton,
    #designComplexityToolApp #requestProductionButton { width: auto; min-width: 200px; }
}
#designComplexityToolApp #downloadPdfButton { background-color: #4f46e5; }
#designComplexityToolApp #downloadPdfButton:hover { background-color: #4338ca; }
#designComplexityToolApp #requestProductionButton { background-color: #16a34a; }
#designComplexityToolApp #requestProductionButton:hover { background-color: #15803d; }

/* モーダル */
/* ★修正: クラス名にプレフィックスを付与 */
.cs-wizard-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.cs-wizard-modal-overlay.show { opacity: 1; visibility: visible; }
.cs-wizard-modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
}
.cs-wizard-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.cs-wizard-modal-button-primary { background-color: #4f46e5; color: white; padding: 0.75rem; border-radius: 0.375rem; font-weight: 600; border: none; }
.cs-wizard-modal-button-secondary { background-color: #e5e7eb; color: #374151; padding: 0.75rem; border-radius: 0.375rem; font-weight: 600; border: none; }
.error-message { color: #dc2626; font-size: 0.875rem; margin-top: 0.25rem; display: none; }

/* デザイン追加ボタン */
#designComplexityToolApp .add-design-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
@media (min-width: 640px) {
    #designComplexityToolApp .add-design-buttons { flex-direction: row; }
}
#designComplexityToolApp #addDesignYes { 
    background-color: #22c55e; 
    color: white; 
    transition: background-color 0.2s;
}
#designComplexityToolApp #addDesignYes:hover { 
    background-color: #16a34a; 
}
#designComplexityToolApp #addDesignNo { 
    background-color: #f97316; 
    color: white; 
    transition: background-color 0.2s;
}
#designComplexityToolApp #addDesignNo:hover {
    background-color: #ea580c;
}

/* ローダー */
#designComplexityToolApp .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6a3de4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }