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

body {
    font-family: 'Noto Serif', serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 0;
}

nav {
    margin: 20px 0;
}

.nav-links {
    list-style-type: none;
    padding: 0;
}

.nav-links li {
    display: inline;
    margin-right: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007BFF;
}

.container {
    display: flex;
    justify-content: center;
    max-width: 2000px;
    margin: 0 auto;
}

.page {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 80%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.column {
    flex: 1 1 75%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.text-block-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.text-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.inline-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.text-column {
    flex: 1;
    min-width: 250px;
    max-width: 800px;
}

.sentence-1 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1em;
    color: #2c3e50;
    font-style: italic;
    margin-bottom: 5px;
}

.sentence-2 {
    font-size: 1.1em;
    color: #34495e;
    font-weight: bold;
    margin-bottom: 5px;
}

.sentence-3 {
    font-size: 1.1em;
    color: #7f8c8d;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.block-divider {
    border: 0;
    height: 2px;
    background: #aaa;
    margin: 20px 0;
    width: 100%;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.clickable-text {
    display: inline-block;
    padding: 0.2em 0.5em;
    background-color: #e7f7e1;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clickable-text:hover {
    background-color: #d4edda;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }

    .page {
        width: 100%;
        padding: 10px;
    }

    .text-block {
        flex-direction: column;
    }

    .inline-image {
        width: 100%;
        height: auto;
    }

    .text-column {
        width: 100%;
        max-width: 100%;
    }
}
