/* ウェブサイト制作費用計算シミュレーター スタイルシート */

/* コンテナ */
.wcc-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* セクション */
.wcc-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wcc-section-title {
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
}

/* 必須項目 */
.wcc-required-items {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
}

.wcc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.wcc-item:last-child {
    border-bottom: none;
}

.wcc-item-name {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

.wcc-unit-price {
    font-size: 13px;
    color: #6c757d;
    display: block;
    margin-top: 4px;
}

.wcc-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.wcc-subtotal {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcc-subtotal-label {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}

.wcc-subtotal-price {
    font-size: 20px;
    font-weight: 700;
    color: #3498db;
}

/* 任意項目 */
.wcc-optional-items {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
}

.wcc-input-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
}

.wcc-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcc-number-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.2s;
}

.wcc-number-input:focus {
    outline: none;
    border-color: #3498db;
}

.wcc-unit {
    font-size: 14px;
    color: #6c757d;
}

/* チェックボックス項目 */
.wcc-checkbox-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcc-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.wcc-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* ラジオボタン項目 */
.wcc-radio-item {
    display: block;
}

.wcc-radio-item .wcc-item-name {
    display: block;
    margin-bottom: 12px;
}

.wcc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
}

.wcc-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #495057;
}

.wcc-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

/* お客様情報 */
.wcc-customer-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
}

.wcc-form-group {
    margin-bottom: 20px;
}

.wcc-form-group:last-child {
    margin-bottom: 0;
}

.wcc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.wcc-required {
    color: #e74c3c;
    font-weight: 700;
}

.wcc-text-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wcc-text-input:focus {
    outline: none;
    border-color: #3498db;
}

.wcc-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wcc-textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 見積結果 */
.wcc-result-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.wcc-result-section .wcc-section-title {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.wcc-result {
    background-color: #fff;
    padding: 25px;
    border-radius: 6px;
}

.wcc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.wcc-result-row:last-child {
    border-bottom: none;
}

.wcc-result-label {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

.wcc-result-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.wcc-result-grand-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 3px solid #667eea !important;
}

.wcc-result-grand-total .wcc-result-label {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.wcc-result-grand-total .wcc-result-value {
    font-size: 28px;
    color: #667eea;
}

/* ボタン */
.wcc-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.wcc-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: none;
}

.wcc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.wcc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.wcc-btn-secondary {
    background-color: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.wcc-btn-secondary:hover {
    background-color: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.wcc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* メッセージ */
.wcc-message {
    display: none;
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.wcc-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcc-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .wcc-calculator-container {
        padding: 20px 15px;
    }
    
    .wcc-section {
        padding: 20px 15px;
    }
    
    .wcc-section-title {
        font-size: 19px;
    }
    
    .wcc-input-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wcc-input-group {
        justify-content: flex-start;
    }
    
    .wcc-item-price {
        font-size: 16px;
    }
    
    .wcc-buttons {
        flex-direction: column;
    }
    
    .wcc-btn {
        width: 100%;
    }
    
    .wcc-result-value {
        font-size: 18px;
    }
    
    .wcc-result-grand-total .wcc-result-label {
        font-size: 18px;
    }
    
    .wcc-result-grand-total .wcc-result-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .wcc-calculator-container {
        padding: 15px 10px;
    }
    
    .wcc-section {
        padding: 15px 10px;
    }
    
    .wcc-item-name {
        font-size: 14px;
    }
    
    .wcc-item-price {
        font-size: 15px;
    }
    
    .wcc-number-input {
        width: 70px;
        font-size: 15px;
    }
}
