.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.help-modal-content {
    position: relative;
    max-width: 700px;
    max-height: 800px;
    width: 90%;
    height: 80vh; /* 固定の高さを与えることで内部の縮小計算を有効にします */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.help-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.help-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.help-slider-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.help-slider {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.help-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 20px;
}

.help-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* 元の画像比率を守るため auto */
    height: auto; /* 元の画像比率を守るため auto */
    display: block;
    object-fit: contain;
}

.help-dots {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: #fff;
    gap: 10px;
}

.help-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.help-dots .dot.active {
    background: #2e2e2e;
}