/* ==========================================================================
   同人誌の発行部数＆黒字化シミュレーター CSS (style.css)
   Aesthetic Design Optimized for Japanese Modern Web & Mobile App Feel
   ========================================================================== */

/* Variables */
:root {
    --primary: #8b5cf6;
    --primary-light: #c084fc;
    --primary-bg: #f5f3ff;
    --secondary: #ec4899;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(139, 92, 246, 0.08), 0 4px 6px -2px rgba(139, 92, 246, 0.03);
    
    --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-outfit: 'Outfit', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-jp);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
.font-outfit {
    font-family: var(--font-outfit);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--primary-bg);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Title Area */
.tool-title-area {
    text-align: center;
    margin: 40px 0;
}

.category-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.tool-title-area h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid System */
.tool-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

/* ============================================================
   タブナビゲーション
   ============================================================ */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background-color: var(--bg-main);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    font-family: var(--font-jp);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background-color: rgba(139, 92, 246, 0.07);
    color: var(--primary);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.tab-pane {
    animation: fadeInPane 0.25s ease;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   アクションボタンエリア（保存＆画像出力）
   ============================================================ */
.action-btn-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* プライマリボタン（保存ボタン） */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================================
   ダッシュボード：累計サマリー
   ============================================================ */
.dashboard-stats-card {
    margin-bottom: 24px;
}

.dashboard-header-row {
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-item {
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.12);
}

.stats-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stats-value.positive { color: var(--success); }
.stats-value.negative { color: var(--danger); }

/* ============================================================
   ダッシュボード：作品リストカード
   ============================================================ */
.saved-list-card {
    min-height: 200px;
}

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.backup-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-import-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 保存作品グリッド */
.saved-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* 空の場合のプレースホルダー */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    line-height: 1.8;
}

/* 保存された作品カード */
.book-card {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    background-color: var(--bg-card);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.book-card.profit-positive {
    border-top: 4px solid var(--success);
}

.book-card.profit-negative {
    border-top: 4px solid var(--danger);
}

.book-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.book-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.book-card-circle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.book-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.book-card-badge.gain {
    background-color: var(--success-bg);
    color: #065f46;
}

.book-card-badge.loss {
    background-color: var(--danger-bg);
    color: #991b1b;
}

.book-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.book-card-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-card-meta-item strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.book-profit-amount {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    font-weight: 700;
}

.book-profit-amount.gain { color: var(--success); }
.book-profit-amount.loss { color: var(--danger); }

.book-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 2px;
}

.btn-card-action {
    flex: 1;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: var(--bg-main);
    color: var(--text-muted);
    transition: all 0.18s ease;
}

.btn-card-action:hover {
    background-color: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-card-delete:hover {
    background-color: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

/* トーストメッセージ */
.toast-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    animation: toastIn 0.3s ease, toastOut 0.4s ease 2.2s forwards;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-message.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.version-tag {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-left: 8px;
    background-color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Sticky Right Column (Disabled sticky to prevent header-like scrolling artifacts) */
.result-sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Form Styling */
.form-group-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.form-group-wrapper:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.form-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 700;
}

.step-helper-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 15px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

/* Label with badge */
.label-with-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.cost-badge.auto {
    background-color: var(--primary-bg);
    color: #5b21b6; /* Violet 800 for contrast ratio > 5.5:1 */
}

.cost-badge.manual {
    background-color: #fef3c7;
    color: #92400e; /* Amber 800 for contrast ratio > 5:1 */
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-mini {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-mini:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

/* Custom Select & Input */
select, input[type="number"], input[type="text"] {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Input with Unit */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-unit input {
    padding-right: 70px;
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Result Card Styles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}


/* Summary Box */
.summary-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-item {
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
}

.sum-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.sum-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Slider Controls */
.interactive-slider-wrapper {
    margin-bottom: 25px;
}

.slider-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.slider-current-value {
    color: var(--primary);
    font-size: 1rem;
}

.slider-current-value strong {
    font-size: 1.3rem;
}

/* Custom Range Input */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 8px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 4px;
}

/* Profit / Loss status card */
.profit-status-card {
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.profit-status-card.loss {
    background-color: var(--danger-bg);
    border: 1px dashed rgba(239, 68, 68, 0.3);
}

.profit-status-card.gain {
    background-color: var(--success-bg);
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.loss .status-badge {
    background-color: #fee2e2;
    color: #991b1b; /* Red 800 for contrast ratio > 6:1 */
}

.gain .status-badge {
    background-color: #d1fae5;
    color: #065f46; /* Green 800 for contrast ratio > 5.5:1 */
}

.status-amount {
    font-size: 1.4rem;
    font-weight: 800;
}

.loss .status-amount { color: var(--danger); }
.gain .status-amount { color: var(--success); }

/* Progress bar */
.progress-bar-container {
    height: 12px;
    background-color: rgba(226, 232, 240, 0.7);
    border-radius: 6px;
    position: relative;
    margin-bottom: 18px;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s;
}

.loss .progress-bar {
    background: linear-gradient(90deg, #f87171, var(--danger));
}

.gain .progress-bar {
    background: linear-gradient(90deg, #34d399, var(--success));
}

.breakeven-marker {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 20px;
    background-color: #4b5563;
    z-index: 10;
}

.marker-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
}

.status-advice {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
    margin-top: 10px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn:active {
    transform: scale(0.98);
}

/* Modal dialog for mobile image save */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    padding: 24px;
    position: relative;
    z-index: 1010;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.modal-body {
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.modal-footer {
    margin-top: 10px;
}

/* Column Section at Bottom */
.column-section {
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.column-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
}

.column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.column-grid .column-item:last-child {
    grid-column: span 2;
}

.column-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-bg);
    padding-bottom: 6px;
}

.column-item p {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 12px;
    text-align: justify;
}

.column-item ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.column-item li {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 6px;
}

/* Footer */
.main-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 0.8rem;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-note {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .result-sticky-wrapper {
        position: static;
    }
    
    .column-grid {
        grid-template-columns: 1fr;
    }
    
    .column-grid .column-item:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 550px) {
    .tool-title-area h1 {
        font-size: 1.7rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .form-row.col-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-box {
        grid-template-columns: 1fr;
    }
}

/* Support for very small viewports (like iPhone SE/320px) */
@media (max-width: 360px) {
    body {
        padding-bottom: 30px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .tool-title-area {
        margin: 24px 0;
    }
    
    .tool-title-area h1 {
        font-size: 1.45rem;
    }
    
    .card {
        padding: 16px 12px;
    }
    
    .form-step-title {
        font-size: 1.05rem;
    }
    
    select, input[type="number"] {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
}


/* Consignment checkbox */
.checkbox-group-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-top: 25px; /* Align with label height */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Custom Text inputs for Image Export */
.custom-image-text-area {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.custom-text-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

@media (max-width: 550px) {
    .checkbox-group-container {
        padding-top: 0;
    }
}

/* ==========================================================================
   Monetization UI Design (Affiliate, Tipping, and AdSense)
   ========================================================================== */

/* Monetization wrapper */
.support-section {
    margin-top: 35px;
    border-top: 2px dashed var(--border-color);
    padding-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Slightly wider space for affiliate description */
    gap: 25px;
    margin-bottom: 25px;
}

/* Tip / Coffee box */
.support-coffee-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s;
    margin-bottom: 0;
    align-self: start;
    box-shadow: var(--shadow-sm);
}

.support-coffee-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.support-icon {
    font-size: 2rem;
    line-height: 1;
}

.support-text {
    flex: 1;
}

.support-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.support-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-support {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-support:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Dynamic Affiliate Box */
.affiliate-box {
    margin-bottom: 0;
}

.affiliate-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.affiliate-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.affiliate-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Affiliate Product Card Layout */
.affiliate-card {
    display: flex;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.affiliate-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.affiliate-card-img-placeholder {
    width: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary-bg), rgba(139, 92, 246, 0.08));
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}

/* 白いサークルバッジを背景に配して絵文字のチープ感を払拭 */
.affiliate-card-img-placeholder::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.affiliate-card-img-placeholder span {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
}

.affiliate-card-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.affiliate-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.affiliate-card-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e11d48; /* Red price accent */
    margin-bottom: 6px;
    display: block;
}

.affiliate-card-reason {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 8px;
}

.affiliate-card-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    align-self: flex-end;
    transition: color 0.2s;
}

.affiliate-card:hover .affiliate-card-btn {
    color: #7c3aed;
}

/* AdSense Placeholder style */
.adsense-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    margin-top: 15px;
}

.adsense-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.adsense-slot-placeholder {
    height: 90px;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.75rem;
}

/* Responsive adjustment for small screens */
@media (max-width: 850px) {
    .support-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 550px) {
    .support-coffee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-support {
        width: 100%;
        text-align: center;
    }
    
    .affiliate-card {
        flex-direction: column;
    }
    
    .affiliate-card-img-placeholder {
        width: 100%;
        height: 60px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   Usability & Aesthetic Enhancements
   ========================================================================== */

/* Condition form card header layout */
.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}

.form-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
}

.btn-reset-link {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-reset-link:hover {
    color: var(--primary);
}

/* Quick price buttons styling */
.quick-buttons {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.btn-mini-quick {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--bg-main);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Pill style */
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mini-quick:hover {
    background-color: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-mini-quick.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Simulated sales input layout */
.slider-input-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Specificity elevated to avoid !important */
.interactive-slider-wrapper .sales-input-field {
    width: 80px;
    padding: 6px 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    background-color: var(--primary-bg);
}

.interactive-slider-wrapper .sales-input-field:focus {
    border-color: var(--primary);
    background-color: #ffffff;
}

.unit-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   レスポンシブ対応：ダッシュボード・タブ
   ============================================================ */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .tab-button {
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .saved-books-grid {
        grid-template-columns: 1fr;
    }

    .btn-card-action {
        padding: 9px 6px;
    }
}

/* ============================================================
   バリデーション・必須マーク
   ============================================================ */
.required-mark {
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}

.save-validation-msg {
    font-size: 0.82rem;
    color: var(--danger);
    font-weight: 700;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: var(--danger-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--danger);
}

/* date input styling */
input[type="date"] {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ============================================================
   カスタム削除確認ダイアログ
   ============================================================ */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: fadeInPane 0.2s ease;
}

.custom-dialog-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.custom-dialog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.custom-dialog-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.custom-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-dialog-cancel {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
    flex: 1;
}

.btn-dialog-cancel:hover {
    background: #e2e8f0;
}

.btn-dialog-confirm {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: white;
    cursor: pointer;
    transition: all 0.18s;
    flex: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-dialog-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ============================================================
   作品カード：イベント情報行
   ============================================================ */
.book-card-event {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    margin-bottom: 2px;
}

.book-card-event span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============================================================
   SNS予測アコーディオン（折りたたみ）
   ============================================================ */
.details-accordion {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    transition: all 0.25s ease;
    overflow: hidden;
}

.details-accordion[open] {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

.accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none; /* デフォルトの矢印を消す */
    user-select: none;
}

.accordion-summary::-webkit-details-marker {
    display: none; /* Safari用のデフォルト矢印消去 */
}

.accordion-summary .form-step-title {
    margin-bottom: 0; /* マージンを打ち消し */
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin-right: 8px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.details-accordion[open] .accordion-arrow {
    transform: rotate(-135deg);
    border-color: var(--primary);
}

.accordion-content {
    padding: 0 20px 20px 20px;
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   推奨発行部数目安カードのふわっと表示トランジション
   ============================================================ */
#prediction-card-section {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), display 0.3s ease allow-discrete;
}

#prediction-card-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   頒布スタイル切替（チップボタン）
   ============================================================ */
.distribution-style-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.selector-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.chip-group {
    display: flex;
    gap: 8px;
}

.btn-chip {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 1.5px solid var(--primary-light);
    border-radius: 30px;
    background-color: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chip:hover {
    background-color: var(--primary-bg);
}

.btn-chip.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

/* ============================================================
   損益カード内：完売時収支行
   ============================================================ */
.status-sellout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: -6px;
    margin-bottom: 14px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#sellout-profit-label {
    color: var(--text-muted);
}

#sellout-profit-display {
    font-size: 0.95rem;
}

#sellout-profit-display.gain-text {
    color: var(--primary);
}

#sellout-profit-display.loss-text {
    color: var(--danger);
}

/* ============================================================
   3カラム統計枠（.summary-box.three-cols）
   ============================================================ */
.summary-box.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.summary-item.highlight {
    background-color: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
}

.summary-item.highlight #sellout-profit-display.gain-text {
    color: var(--primary);
    font-weight: 800;
}

.summary-item.highlight #sellout-profit-display.loss-text {
    color: var(--danger);
    font-weight: 800;
}

@media (max-width: 640px) {
    .summary-box.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .summary-box.three-cols .summary-item.highlight {
        grid-column: span 2;
        text-align: center;
    }
}

/* ============================================================
   保存用メタデータ アコーディオン
   ============================================================ */
.save-meta-accordion {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    overflow: hidden;
}

.save-meta-summary {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: background-color 0.18s ease;
}

.save-meta-summary:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.save-meta-summary::-webkit-details-marker,
.save-meta-summary::marker {
    display: none;
}

.save-meta-summary::after {
    content: '▾';
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.save-meta-accordion[open] .save-meta-summary::after {
    transform: rotate(-180deg);
}

.save-meta-content {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border-color);
}

/* スライダー説明ヒント */
.slider-interactive-hint {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* Quick fill price buttons */
.quick-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-mini-quick {
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-mini-quick:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.btn-mini-quick.active {
    background-color: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
}


/* ============================================================
   無効化された入力フォーム（過去実績入力時）
   ============================================================ */
.form-group.disabled {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.form-group.disabled input {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}
/* ============================================================
   フォームヘルパーテキスト（各種注記）
   ============================================================ */

/* ページ数倍数警告（赤色） */
.pages-warning-text {
    color: #dc2626 !important;
    font-weight: 700;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 4px;
}

/* 委託手数料注記 */
.consignment-note {
    margin-top: 4px;
    margin-left: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ============================================================
   損益分岐点（トントンライン）巨大ヒーローパネル
   ============================================================ */
.breakeven-hero-panel {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.breakeven-hero-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.breakeven-hero-value {
    font-family: var(--font-outfit);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.hero-unit {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 2px;
}

.breakeven-hero-desc {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   スマホ用フローティングバー (900px以下で固定表示)
   ============================================================ */
.mobile-floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 12px 16px;
}

.floating-bar-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.floating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.floating-item.border-left {
    border-left: 1.5px solid #e2e8f0;
}

.floating-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.floating-value {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.floating-value strong {
    font-size: 1.4rem;
    color: var(--primary);
}

/* スマホ表示時の余白調整 */
@media (max-width: 900px) {
    .mobile-floating-bar {
        display: block;
    }
    
    body {
        padding-bottom: 80px !important;
    }
}

/* 手動印刷費上書き時の自動計算パラメータ無効化表示 */
#auto-cost-fields-container {
    transition: opacity 0.25s ease;
}

#auto-cost-fields-container.disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* 自動見積もり復帰バッジボタン */
.cost-restore-btn {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
}

.cost-restore-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.label-with-badge {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* フォームタイトル横の税込注記 */
.tax-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

/* スライダー現在の完売率パーセンテージ */
.sales-ratio-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
}


