@page {
    size: A4;
    margin: 0; 
}
body {
    margin: 0;
    padding: 0;
    font-family: 
      "Hiragino Maru Gothic ProN",   
      "Yu Gothic",                   
      "Meiryo",                      
      "Noto Sans JP",                
      sans-serif;                    
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.page {
    width: 210mm;
    min-height: 297mm;
    background: #F4F0E8;
    padding: 20mm;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
h1 {
    text-align: center;
    font-size: 22pt;
    margin-top: 10mm; 
    margin-bottom: 1.5rem;
    color: #0B5369;
}
h2 {
    font-size: 14pt;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #999;
    padding-bottom: 0.3rem;
    color: #0B5369;
}
.vocabulary {
    column-count: 2;
    column-gap: 30px;
    font-size: 12pt;
    line-height: 1.8;
    color: #0B5369;
}
.vocabulary p {
    margin: 0 0 0.8rem 0;
    break-inside: avoid;
}
rt {
    font-size: 0.6em;
    color: #555;
}
.print-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    background: #222;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.print-button:hover {
    background: #444;
}
.license {
    margin-top: auto; 
    padding-top: 2rem;
    text-align: center;
}
.license img {
    height: 24px;   
    width: auto;
    margin: 0 5px;
    opacity: 0.8;
}
@media print {
    body {
        background: white;
    }
    .page {
        margin: 0;
        box-shadow: none;
        width: 100%;
        height: 100%;
    }
    .print-button {
        display: none; 
    }
}