/* Setae Tutorial Styles */

#setae-tutorial-spotlight {
    position: absolute;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.3s ease-out;
}

#setae-tutorial-tooltip {
    position: absolute;
    width: 280px;
    /* デフォルト幅 */
    max-width: 95vw;
    /* 安全策 */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* 矢印位置のデフォルト変数 */
    --st-arrow-left: 50%;
}

#setae-tutorial-tooltip h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

#setae-tutorial-tooltip p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.st-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#st-counter {
    font-size: 12px;
    color: #999;
}

.st-actions {
    display: flex;
    gap: 10px;
}

#st-btn-skip {
    background: transparent;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
}

#st-btn-next {
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#st-btn-next:hover {
    background: #27ae60;
}

/* --- Dynamic Arrows --- */

/* 下向きの矢印（本体は上にある） */
#setae-tutorial-tooltip.arrow-bottom::after {
    content: "";
    position: absolute;
    top: 100%;
    /* JSで計算された位置を使用 */
    left: var(--st-arrow-left, 50%);
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    pointer-events: none;
}

/* 上向きの矢印（本体は下にある） */
#setae-tutorial-tooltip.arrow-top::before {
    content: "";
    position: absolute;
    bottom: 100%;
    /* JSで計算された位置を使用 */
    left: var(--st-arrow-left, 50%);
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    pointer-events: none;
}

/* モバイル調整 */
@media (max-width: 480px) {
    #setae-tutorial-tooltip {
        width: 85vw;
        /* 画面幅に合わせて少し狭く */
    }
}