body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: white;
    margin: 0 auto; /* 中央揃えのためにautoを設定 */
    padding: 20px;
    width: 90%; /* 幅を90%に設定 */
    /* max-width: 1200px; は削除またはコメントアウト */
    border: none;
    border-radius: 0;
}

header {
    background-color: #f0f0f0;
    padding: 20px;
}

header h1 {
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 32px;
    color: blue;
    line-height: 1.2;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

nav li {
    display: inline;
    margin-right: 20px;
}

main {
    padding: 20px;
}

.timeline-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 5px;
}

footer {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
}

section {
    margin-bottom: 30px;
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    background-color: royalblue;
    color: white;
    white-space: nowrap;
}

ol {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    background: #fff0f2;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

pre {
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

h1 {
    text-align: center;
    width: 100%;
    font-size: 32px;
    color: blue;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    width: 100%;
    background-color: royalblue;
    color: white;
    white-space: nowrap;
    margin-bottom: 20px;
}

h3 {
    text-align: center;
    width: 100%;
    font-size: 32px;
    color: blue;
    line-height: 1.2;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    color: navy;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

a:hover {
    text-decoration: underline;
    color: blue;
}

img {
    width: 192px;
    height: 108px;
}

.qr-code-image {
    width: auto;
    height: auto;
}

p {
    margin: 0;
    color: black;
}

span {
    display: block;
    margin-top: 10px;
    color: royalblue;
    height: 80%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.highlight {
    background-color: royalblue;
    color: white;
    padding: 2px 4px;
    font-size: 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.subject-navigation-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.subject-navigation {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.subject-navigation a {
    color: white;
    padding: 2px 4px;
    font-size: 16px;
    display: block;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .subject-navigation a {
        font-size: 10px;
        margin-left: 5px;
    }
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content img {
    max-width: 100%;
    height: auto;
}

#section0, #section1, #section2, #section3, #section4, #section6, #section7 {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    border-bottom: 1px solid #ccc;
}

.center {
    text-align: center;
}

.mgr-10 {
    margin-right: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

table td {
    padding: 10px;
    vertical-align: top;
}

.image-cell {
    width: 350px;
    text-align: center;
}

.text-cell {
    padding-left: 20px;
}

.text-cell h2 {
    margin-top: 0;
}

.br {
    margin-bottom: 15px;
}

.lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox {
    border-radius: 4px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.image-cell img {
    width: 320px;
    height: 180px;
    object-fit: contain;
}

#qr-code-link {
    font-size: 16px;
    display: inline;
    vertical-align: middle;
}