@font-face {
    font-family: "OCRA";
    src: url("OCRA.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "MPlus";
    src: url("rounded-mplus-1m-regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 10px;
    font-family: "OCRA", monospace, sans-serif;
    font-size: 12px;
}

body {
    background-color: white;
    color: black;
}

a {
    color: deepskyblue;
}

div.logo-with-background {
    text-align: center;
    position: relative;
    width: 30%;
    height: 30%;
    max-width: 240px;
    max-height: 240px;
    margin: 0 auto 10px auto;
}

div.grey-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: lightgrey;
    border-radius: 50%;
    z-index: 1;
}

img.logo {
    display: block;
    max-width: 100%;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

img.icon {
    display: inline;
    width: 24px;
    height: 24px;
    margin: 2px;
    filter: invert(0);
}

a.icon-link {
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
        color: white;
    }

    a {
        color: lightskyblue;
    }

    div.grey-circle {
        background-color: darkgrey;
    }

    img.icon {
        filter: invert(1);
    }
}

h1 {
    text-align: center;
    margin-bottom: 0;
}

/* Language-based font selection */
:lang(en) {
    font-family: "OCRA", monospace;
}

:lang(ja) {
    font-family: "MPlus", monospace;
}

/* Header size adjustments */
h1:lang(en) {
    font-size: 1.75rem;
}

h1:lang(ja) {
    font-size: 2rem;
}

/* Specific size adjustments for paragraphs */
p:lang(en) {
    font-size: 1rem;
}

p:lang(ja) {
    font-size: 1.125rem;
}

div.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

div.column-flex {
    text-align: left;
    box-sizing: border-box;
    flex-basis: 480px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.spacer {
    flex-grow: 1;
}

/* Service list styling */
.service-list {
    margin: 20px 0;
}

.service-item {
    margin-bottom: 20px;
}

.service-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.service-item div:last-child {
    line-height: 1.5;
}

/* Smaller bullet points */
ul {
    list-style-type: disc;
}

ul li::marker {
    font-size: 0.7em;
}

@media (min-width: 768px) {
    html,
    body {
        margin: 0;
        padding: 20px;
        font-family: "OCRA", monospace, sans-serif;
        font-size: 16px;
    }

    div.container-flex {
        gap: 40px;
    }
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-button {
    background: none;
    border: 1px solid;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    font-family: "OCRA", monospace;
    font-size: 0.8rem;
}

.lang-button.active {
    background-color: #333;
    color: white;
}

@media (prefers-color-scheme: dark) {
    .lang-button {
        color: white;
        border-color: #666;
    }

    .lang-button.active {
        background-color: #666;
    }
}

/* Language content visibility */
.lang-content {
    display: none;
}

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

/* Hide print spacer on screen */
.print-spacer {
    display: none;
}

/* Print styles */
@media print {
    .lang-switcher {
        display: none;
    }

    /* Show both language contents when printing */
    .lang-content {
        display: block !important;
    }

    /* Add page break after Japanese content */
    #ja-content {
        page-break-after: always;
    }

    /* Show spacer in English section to match Japanese spacing */
    .print-spacer {
        display: block !important;
        height: 40px; /* Adjust this value to match the spacing */
    }
}
