* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.company-logo {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    color: #7f8c8d;
    font-size: 16px;
}

.discount-code-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.discount-code-section input {
    padding: 8px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    margin-left: 10px;
}

.main-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #3498db;
    color: white;
}

.step.completed {
    background-color: #27ae60;
    color: white;
}

.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card.selected {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.category-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-card p {
    color: #7f8c8d;
    font-size: 14px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

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

.form-group {
    margin-bottom: 25px;
}

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    background-color: #fff;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.radio-option:hover {
    border-color: #3498db;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-option.selected {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.recommendation-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.explanation-box {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.estimate-result {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.estimate-header {
    text-align: center;
    margin-bottom: 30px;
}

.estimate-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.price-breakdown {
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #2c3e50;
    margin-top: 10px;
}

.discount-applied {
    color: #27ae60;
    font-size: 14px;
    margin-top: 10px;
}

.terms-section {
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.terms-section h3 {
    color: #721c24;
    margin-bottom: 10px;
}

.terms-section p {
    color: #721c24;
    font-size: 14px;
    line-height: 1.8;
}

.download-section {
    text-align: center;
    margin-top: 30px;
}

.btn-download {
    background-color: #27ae60;
    color: white;
    font-size: 18px;
    padding: 15px 40px;
}

.btn-download:hover {
    background-color: #229954;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

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

/* PDF用のスタイル */
.pdf-content {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.pdf-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.pdf-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pdf-company-info {
    text-align: right;
    margin-bottom: 20px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.pdf-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.pdf-table .total-row {
    font-weight: bold;
    font-size: 18px;
    background-color: #f9f9f9;
}

/* 印鑑のセキュリティスタイル */
.seal-watermark {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@media print {
    body {
        margin: 0;
        background: white;
    }
    
    .container {
        display: none;
    }
    
    .pdf-content {
        box-shadow: none;
        margin: 0;
        page-break-after: always;
    }
}