body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}


header h1 {
    font-size: 1.8em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #1c1c1c;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border: none;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.2em;
    }
}

.item-list {
    margin: 20px 0;
}

.item-list h2 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: #444;
    background-color: #d3d3d3;
    border-left: 5px solid #ffca28;
    padding: 10px 15px;
    margin: 0 0 10px 0;
}

.item-list h3 {
    font-size: 1em;
    cursor: pointer;
    color: #007BFF;
    text-decoration: underline;
    margin: 10px 0;
    transition: all 0.3s ease;
    outline: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.item-list h3:hover {
    text-decoration: none;
    color: #0056b3;
}

.flow-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #6ca0dc;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.flow-item:hover {
    background-color: #3b82cc;
    transform: scale(1.05);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup p strong,
.sub-popup ul li strong {
    font-weight: bold;
    color: #333333;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup h2 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #f44336;
    padding-bottom: 5px;
}

.popup p {
    font-size: 0.9em; /* 現在より小さいサイズに調整 */
    line-height: 1.4; /* 行間を少し狭める */
    color: #555; /* 色はそのまま */
}

.popup button {
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #f44336;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #d32f2f;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sub-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    z-index: 1001;
}

.sub-popup h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f44336;
    padding-bottom: 5px;
}

.sub-popup p,
.sub-popup ul {
    font-size: 0.9em; /* サイズを小さく調整 */
    line-height: 1.4; /* 行間を調整 */
    color: #555; /* テキスト色 */
}

/* サブポップアップ内リストの項目 */
.sub-popup ul li {
    font-size: 0.9em; /* リストの文字サイズも小さく */
    line-height: 1.4;
    color: #555;
}

/* ポップアップ全体の閉じるボタン */
.popup-close-button {
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #f44336;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-close-button:hover {
    background-color: #d32f2f;
}


.popup .popup-option-button {
    display: inline-block;
    margin: 5px 0;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #6ca0dc;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.popup .popup-option-button:hover {
    background-color: #3b82cc;
    transform: scale(1.05);
}

/* サブポップアップ閉じるボタン */
.sub-popup-close {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #6ca0dc; /* オプションボタンと同じ青色 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.sub-popup-close:hover {
    background-color: #3b82cc;
    transform: scale(1.05);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
