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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    color: #7f8c8d;
    font-weight: 300;
}

.main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-container {
    min-height: 500px;
    position: relative;
}

.step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

.step.active {
    display: block;
}

.step h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background-color: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.result-container {
    margin-top: 20px;
}

.result-tabs {
    display: flex;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.result-content {
    position: relative;
}

.result-tab {
    display: none;
}

.result-tab.active {
    display: block;
}

.result-tab textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.copy-btn,
.edit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.copy-btn:hover,
.edit-btn:hover {
    background: #2980b9;
}

.edit-btn {
    background: #95a5a6;
}

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

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

.nav-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #2980b9;
}

.nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.step-indicator {
    display: flex;
    gap: 12px;
    align-items: center;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

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

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

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

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .step {
        padding: 30px 20px;
    }
    
    .navigation {
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .result-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .tab-btn.active,
    .tab-btn:hover {
        border-right-color: #3498db;
        border-bottom-color: transparent;
    }
}

