body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

body.no-scroll {
    overflow: hidden;
}

.main-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.help-button {
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.help-button:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.help-button img {
    width: 90%;
    height: 90%;
}

/* ヘルプポップアップのスタイル */
.help-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 背景を少し濃く */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.help-popup-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.help-popup-content {
    background-color: #fff;
    padding: 25px 35px; /* パディングを調整 */
    border-radius: 10px; /* 角を丸く */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 650px; /* 最大幅を少し広げる */
    width: 90%;
    position: relative;
    max-height: 85vh; /* 高さを少し増やす */
    overflow-y: auto; /* コンテンツが多い場合にスクロール */
    line-height: 1.7; /* 行間を広げる */
}

.help-popup-content h2 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

.help-popup-content h3 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.help-popup-content p,
.help-popup-content ol,
.help-popup-content ul {
    color: #333;
    margin-bottom: 15px;
}

.help-popup-content ol,
.help-popup-content ul {
    padding-left: 25px;
}

.help-popup-content li {
    margin-bottom: 8px;
}

.help-popup-content strong {
    color: #0056b3;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #333;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        margin: 10px;
    }
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links a {
    margin: 0 5px; /* リンク間のスペースを調整 */
}

.footer-links a:first-child {
    margin-left: 0;
}

.footer-links a:last-child {
    margin-right: 0;
}

.copyright {
    margin-top: 10px; /* リンクと著作権表示の間のスペース */
    font-size: 0.8em; /* 著作権表示を少し小さく */
}

.copyright a {
    color: #555; /* 著作権表示内のリンクの色を調整 */
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}