/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: #000000;
    color: #ffffff;
    padding: 48px 0;
    text-align: center;
    border-bottom: 4px solid #1a1a1a;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.header-icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

.header h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 8px;
}

/* Section */
.section {
    padding: 64px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-icon {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
}

.section-description {
    font-size: 18px;
    color: #4a4a4a;
    margin-bottom: 40px;
    max-width: 900px;
    line-height: 1.7;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Bento Card */
.bento-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #4a4a4a 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card.featured {
    border: 3px solid #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.bento-card.featured::before {
    height: 6px;
    transform: scaleX(1);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rank-badge {
    background-color: #000000;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.card-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2;
    opacity: 0.6;
}

/* Card Title */
.bento-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Card Details */
.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #4a4a4a;
}

.detail-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Card Description */
.card-description {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

/* Note Section */
.note-section {
    padding: 48px 0;
    background-color: #f9f9f9;
}

.note-card {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.note-icon {
    width: 40px;
    height: 40px;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 4px;
}

.note-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.note-content p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 12px;
}

.note-content p:last-child {
    margin-bottom: 0;
}

.note-content strong {
    color: #000000;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 32px 0;
    text-align: center;
    border-top: 4px solid #1a1a1a;
}

.footer p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-note {
    font-size: 13px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-card {
        padding: 24px;
    }

    .bento-card h3 {
        font-size: 20px;
    }

    .note-card {
        flex-direction: column;
        padding: 28px;
    }

    .note-icon {
        width: 32px;
        height: 32px;
    }

    .note-content h3 {
        font-size: 20px;
    }

    .note-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 32px 0;
    }

    .header h1 {
        font-size: 28px;
    }

    .section {
        padding: 40px 0;
    }

    .bento-card {
        padding: 20px;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-icon {
        width: 28px;
        height: 28px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: #ffffff;
    }

    .header {
        background-color: #000000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .bento-card {
        page-break-inside: avoid;
        border: 2px solid #000000;
    }

    .note-section {
        background-color: #f9f9f9;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 0.5in;
    }
}