body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: #004d99;
    color: white;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
}

.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.left-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    display: block;
    margin-right: 0;
    width: 150px;
}

.header-subtitle {
    flex: 1;
    margin: 0;
    font-size: 1em;
    text-align: center;
}

.language-switcher {
    font-size: 1em;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

.logged_in {
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 50px;
}

footer {
    background-color: #004d99;
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer-text {
    font-size: 1em;
}

/*.logo {*/
/*    width: 50px;*/
/*    margin-right: 10px;*/
/*}*/

.grecaptcha-badge {
    visibility: hidden;
/ / reCaptureロゴ非表示
}

/* Responsive adjustments */

@media only screen and (max-width: 768px) {
    .header-title {
        font-size: 1em;
    }

    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .left-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-subtitle {
        order: 2;
        font-size: 1em;
        text-align: center;
        flex: 1;
    }

    .language-switcher {
        order: 3;
        text-align: right;
        flex: 1;
    }

    .logo {
        width: 120px;
    }
}

@media only screen and (max-width: 470px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .left-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
       width: 90px;
    }

    .header-subtitle {
        order: 2;
        font-size: 0.75em;
        text-align: center;
        flex: 1.5;
    }

    .language-switcher {
        order: 3;
        text-align: right;
        flex: 1;
        font-size: 0.65em;
    }
}
