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

        body {
            font-family: 'Meiryo', 'MS Gothic', Arial, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.4;
        }

        .report-container {
            max-width: 210mm;
            margin: 20px auto;
            background: white;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            min-height: 297mm;
        }

        .header {
            background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
            color: white;
            padding: 25px 30px;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: rotate(45deg);
        }

        .header-content {
            position: relative;
            z-index: 2;
        }

        .jlpt-logo {
            font-size: 32px;
            font-weight: bold;
            letter-spacing: 3px;
            margin-bottom: 8px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header-subtitle {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 15px;
            letter-spacing: 1px;
        }

        .report-title {
            font-size: 24px;
            font-weight: 300;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            padding-top: 15px;
            letter-spacing: 2px;
        }

        .student-info {
            background: #e8f4fd;
            border-left: 5px solid #2b77ad;
            margin: 30px;
            padding: 20px;
            border-radius: 0 8px 8px 0;
        }

        .student-selector {
            margin-bottom: 20px;
        }

        .student-selector label {
            display: block;
            font-weight: bold;
            margin-bottom: 8px;
            color: #1a365d;
            font-size: 14px;
        }

        .student-selector select {
            width: 100%;
            padding: 12px;
            border: 2px solid #2b77ad;
            border-radius: 4px;
            font-size: 16px;
            background: white;
            color: #333;
        }

        .report-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 15px;
        }

        .meta-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dotted #ccc;
        }

        .meta-label {
            font-weight: bold;
            color: #1a365d;
        }

        .meta-value {
            color: #2b77ad;
            font-weight: 600;
        }

        .main-content {
            padding: 0 30px 30px;
        }

        .section {
            margin-bottom: 40px;
            page-break-inside: avoid;
        }

        .section-title {
            background: #1a365d;
            color: white;
            padding: 12px 20px;
            margin-bottom: 20px;
            font-size: 16px;
            font-weight: bold;
            letter-spacing: 1px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid rgba(255, 255, 255, 0.3);
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .skill-card {
            border: 2px solid #e0e6ed;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            position: relative;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        }

        .skill-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            font-weight: bold;
        }

        .moji-card {
            border-color: #3182ce;
        }

        .moji-card .skill-icon {
            background: #3182ce;
        }

        .goi-card {
            border-color: #805ad5;
        }

        .goi-card .skill-icon {
            background: #805ad5;
        }

        .bunpou-card {
            border-color: #38a169;
        }

        .bunpou-card .skill-icon {
            background: #38a169;
        }

        .skill-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #1a365d;
        }

        .skill-subtitle {
            font-size: 12px;
            color: #666;
            margin-bottom: 15px;
        }

        .score-display {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .performance-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .excellent {
            background: #c6f6d5;
            color: #22543d;
        }

        .good {
            background: #fef5e7;
            color: #744210;
        }

        .needs-improvement {
            background: #fed7d7;
            color: #742a2a;
        }

        .weekly-overview {
            background: #f7fafc;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
        }

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

        .week-tab {
            padding: 12px 20px;
            background: none;
            border: none;
            font-size: 14px;
            font-weight: 600;
            color: #666;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .week-tab.active {
            color: #2b77ad;
            border-bottom-color: #2b77ad;
            background: rgba(43, 119, 173, 0.1);
        }

        .week-content {
            display: none;
        }

        .week-content.active {
            display: block;
        }

        .day-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
            margin-top: 15px;
        }

        .day-item {
            text-align: center;
            padding: 12px 8px;
            border-radius: 6px;
            background: white;
            border: 1px solid #e2e8f0;
            position: relative;
        }

        .day-item.sunday {
            background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
            color: white;
            font-weight: bold;
            border: 2px solid #19547b;
        }

        .day-name {
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .day-scores {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .score-pill {
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
        }

        .moji-pill {
            background: #ebf8ff;
            color: #3182ce;
        }

        .goi-pill {
            background: #faf5ff;
            color: #805ad5;
        }

        .bunpou-pill {
            background: #f0fff4;
            color: #38a169;
        }

        .chart-section {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 25px;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .chart-legend {
            display: flex;
            gap: 20px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
        }

        .legend-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .footer {
            margin-top: 40px;
            padding: 20px 30px;
            background: #f7fafc;
            border-top: 3px solid #2b77ad;
            text-align: center;
        }

        .footer-text {
            font-size: 12px;
            color: #666;
            line-height: 1.6;
        }

        .no-student {
            text-align: center;
            padding: 60px 30px;
            color: #666;
            font-style: italic;
        }

        @media print {
            body {
                background: white;
            }

            .report-container {
                box-shadow: none;
                margin: 0;
                max-width: none;
            }
        }

        @media (max-width: 768px) {
            .report-container {
                margin: 10px;
                max-width: none;
            }

            .skills-grid {
                grid-template-columns: 1fr;
            }

            .day-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .report-meta {
                grid-template-columns: 1fr;
            }
        }