@page {
    size: A4;
    margin: 15mm;
}

:root {
    /* Primary Brand Colors - 統一されたプロ仕様パレット */
    --primary-blue: #0f172a;
    --primary-light: #1e293b;
    --secondary-blue: #334155;
    --accent-primary: #2563eb;  /* メインアクセント：ブルー */
    --accent-secondary: #64748b; /* サブアクセント：グレーブルー */
    --accent-warning: #f97316;   /* 警告用：視認性の高いオレンジ */
    
    /* Text Colors - WCAG 2.2 AA Compliant */
    --text-dark: #0f172a;
    --text-medium: #374151;
    --text-light: #4b5563;  /* Improved from #6b7280 for better contrast */
    
    /* Background Colors - 統一感のあるニュートラル */
    --bg-light: #f8fafc;
    --bg-primary: #f1f5f9;      /* プライマリ背景 */
    --bg-accent: #eff6ff;       /* アクセント背景 */
    --bg-subtle: #f9fafb;       /* サブトル背景 */
    
    /* Border & Effects */
    --border-color: #e2e8f0;
    --border-accent: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --noise-opacity: 0.03;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 40px;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

/* Modern noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle, rgba(0,0,0,var(--noise-opacity)) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: -1;
}

/* Cover Page - Ultra Modern 2025 Design */
.cover-page {
    background: 
        linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 50%, var(--accent-primary) 100%);
    color: white;
    padding: 80px 60px;
    border-radius: 32px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 
        0 32px 64px rgba(15, 23, 42, 0.25),
        0 16px 32px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(255,255,255,0.1)" fill-opacity="0.1"><circle cx="30" cy="30" r="1"/></g></svg>');
    background-size: 600px 600px, 600px 600px, 60px 60px;
    opacity: 0.7;
}

.cover-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 8px 32px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cover-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.6em;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.cover-date {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.cover-branding {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 1em;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 400;
}

/* Typography - Bold & Modern */
h1 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-blue);
    font-size: 2.8em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5em;
    page-break-after: avoid;
    text-shadow: 0 4px 8px rgba(30, 64, 175, 0.15);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-blue);
    font-size: 2.2em;
    font-weight: 800;
    margin-top: 3em;
    margin-bottom: 1.5em;
    padding: 20px 0;
    border-bottom: 4px solid var(--accent-primary);
    page-break-after: avoid;
    position: relative;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
}

h3 {
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
    page-break-after: avoid;
    letter-spacing: -0.01em;
}

/* Content Boxes */
.intro-box {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
}

.data-box {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-subtle) 100%);
    border-left: 6px solid var(--accent-primary);
    border-radius: 0 15px 15px 0;
    padding: 25px 30px;
    margin: 25px 0;
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.15),
        0 20px 40px rgba(37, 99, 235, 0.08);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-box:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(37, 99, 235, 0.2),
        0 30px 60px rgba(37, 99, 235, 0.15);
}

.data-box::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%232563eb" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

.data-box strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 6px solid var(--accent-warning);
    border-radius: 0 15px 15px 0;
    padding: 25px 30px;
    margin: 25px 0;
    box-shadow: 
        0 6px 20px rgba(249, 115, 22, 0.15),
        0 20px 40px rgba(249, 115, 22, 0.08);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warning-box:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(249, 115, 22, 0.2),
        0 30px 60px rgba(249, 115, 22, 0.15);
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23f97316" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.464 0L4.732 18.5c-.77.833.192 2.5 1.732 2.5z"></path></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

.warning-box strong {
    color: var(--accent-warning);
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.success-box {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    border-left: 6px solid var(--accent-secondary);
    border-radius: 0 15px 15px 0;
    padding: 25px 30px;
    margin: 25px 0;
    box-shadow: 
        0 6px 20px rgba(100, 116, 139, 0.15),
        0 20px 40px rgba(100, 116, 139, 0.08);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-box:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(100, 116, 139, 0.2),
        0 30px 60px rgba(100, 116, 139, 0.15);
}

.success-box::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

.success-box strong {
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

/* Process Steps */
.process-step {
    background: 
        linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%),
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(30,64,175,0.03)" fill-opacity="0.1"><circle cx="30" cy="30" r="1"/></g></svg>');
    background-size: 100%, 60px 60px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 35px 30px 30px 85px;
    margin: 35px 0;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(30, 64, 175, 0.08),
        0 25px 50px rgba(30, 64, 175, 0.05);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: perspective(1000px) rotateX(1deg) translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(30, 64, 175, 0.12),
        0 35px 70px rgba(30, 64, 175, 0.08);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-primary) 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.8em;
    position: absolute;
    top: 20px;
    left: -25px;
    box-shadow: 
        0 12px 25px rgba(30, 64, 175, 0.4),
        0 4px 8px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.process-step h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* Lists */
ul {
    margin: 1.2em 0;
    padding-left: 0;
}

li {
    margin: 0.8em 0;
    padding-left: 30px;
    position: relative;
    list-style: none;
}

li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

ol {
    counter-reset: item;
    padding-left: 0;
}

ol li {
    counter-increment: item;
    padding-left: 40px;
}

ol li::before {
    content: counter(item);
    background: var(--accent-primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Highlights */
.highlight {
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent-primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    border: 3px solid var(--accent-primary);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--primary-blue) 50%, var(--accent-secondary) 100%);
    border-radius: 20px 20px 0 0;
}

.cta-section h3 {
    color: var(--accent-primary);
    margin-top: 0;
    font-size: 1.6em;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-accent);
    font-size: 0.9em;
    color: var(--text-light);
    background: var(--bg-subtle);
    border-radius: 15px;
    padding: 30px;
}

.footer h3 {
    color: var(--text-medium);
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Page breaks */
.page-break {
    page-break-after: always;
}

/* Print styles - Optimized for toner saving */
@media print {
    body {
        font-size: 10pt;
        background: white !important;
        padding: 0;
        font-weight: 400;
    }
    
    /* Remove gradients and heavy backgrounds for print */
    .cover-page {
        background: var(--primary-blue) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .data-box, .warning-box, .success-box, .intro-box, .process-step {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #666 !important;
    }
    
    /* Remove decorative elements */
    *::before, *::after {
        background: none !important;
        text-shadow: none !important;
    }
    
    /* Simplify fonts */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 400;
    }
    
    .page-break {
        page-break-after: always;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .process-step,
    .data-box,
    .warning-box,
    .success-box {
        page-break-inside: avoid;
    }
}

/* Footnote styles for better accessibility */
sup a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(37, 99, 235, 0.1);
}

sup a:hover {
    background: var(--accent-primary);
    color: white;
}

/* Improved link contrast */
a {
    color: var(--accent-primary);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-blue);
}

/* Footer link improvements for contrast */
.footer a {
    color: var(--text-medium);
    font-weight: 500;
}

.footer a:hover {
    color: var(--accent-primary);
}