/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background-color: #fafafa;
}

html {
    overflow-x: clip;
}


/* Progress bar */
.progress-section {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.875rem;
    color: #666;
}

.progress-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: #1a1a1a;
}

.progress-bar {
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-fill.complete {
    background: #059669;
}

/* Navigation links */
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    gap: 0.5rem;
}

.nav-link {
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-link .nav-count {
    font-size: 0.7rem;
    color: #999;
    margin-left: 0.25rem;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Category section */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a1a1a;
    gap: 0.5rem;
    text-align: center;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 600;
    gap: 0.5rem;
    text-align: center;
}

/* studio.css の見出し下線・大きな下マージを打ち消し、ブロック中央寄せと統一 */
.category-title::after {
    display: none;
}

.category-icon {
    font-size: 1.25rem;
}

.category-progress {
    font-size: 0.875rem;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
}

/* Checklist */
.checklist {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checklist-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checklist-item.checked {
    background-color: #f0fdf4;
    border-color: #86efac;
}

.checklist-item.checked .item-title {
    color: #166534;
}

.checklist-item.checked .item-description {
    color: #4ade80;
}

/* Checkbox */
.checkbox-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: #fff;
}

.checkbox-custom::after {
    content: '✓';
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox:checked + .checkbox-custom {
    background-color: #10b981;
    border-color: #10b981;
}

.checkbox:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checklist-item:hover .checkbox-custom {
    border-color: #999;
}

/* Item content */
.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.item-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* Priority badge */
.priority-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.critical {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-badge.important {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.priority-badge.recommended {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Actions */
.actions-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #1a1a1a;
}

.action-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.action-btn.primary {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.action-btn.primary:hover {
    background-color: #333;
}

.action-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}

.action-btn.danger:hover {
    background-color: #fef2f2;
}

/* Complete message */
.complete-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f0fdf4;
    border-radius: 16px;
    margin-top: 2rem;
    display: none;
}

.complete-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.complete-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.5rem;
}

.complete-text {
    color: #4ade80;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About section */
.about-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.about-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
}

.about-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.about-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.about-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    border-radius: 50%;
}

.highlight-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    color: #92400e;
    margin-bottom: 0;
    font-weight: 500;
}

.highlight-box a {
    color: #92400e;
    text-decoration: underline;
    font-weight: 600;
}

.highlight-box a:hover {
    color: #78350f;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .checklist-item {
        padding: 0.875rem;
    }
    
    .priority-badge {
        display: none;
    }
    
    .actions-section {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-title {
        font-size: 1.25rem;
    }
}

