/**
 * SiteOrigin カスタムコンテンツウィジェット用スタイル
 */


/* Gifアニメーション全体 */
.sow-tours-anime-wrapper {
    margin: -40px 0 0 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100px;
    padding: 6px 0;
}

.sow-tours-anime-unit {
    position: absolute;
    display: flex;
    align-items: center;
    cursor: pointer;
    left: -250px;
    bottom: 10px;
    /* 横移動アニメーション */
    animation: walkRight 100s linear infinite;
}

/* バウンス用クラス */
.animate-bounce-custom {
    animation: walkRight 100s linear infinite, bounce 0.6s ease-in-out !important;
}

/* バウンス：translateYを動かす */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* スマホ用速度調整 */
@media (max-width: 480px) {
    .sow-tours-anime-unit,
    .animate-bounce-custom {
        animation-duration: 30s, 0.6s;
    }
    .animate-bounce-custom {
        animation: walkRight 30s linear infinite, bounce 0.6s ease-in-out !important;
    }
}

@keyframes walkRight {
    from { left: -250px; }
    to { left: 100%; }
}

/* 画像 */
.sow-tours-anime-unit img {
    width: 95px;
    height: auto;
}

/* 吹き出し */
.sow-tours-anime-balloon {
    position: relative;
    background: #fff;
    border: 2px solid #66ccff;
    border-radius: 12px;
    padding: 6px 12px;
    margin-left: 15px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* 吹き出しのしっぽ（左） */
.sow-tours-anime-balloon::after,
.sow-tours-anime-balloon::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
}
.sow-tours-anime-balloon::after {
    left: -8px;
    border-width: 5px 8px 5px 0;
    border-color: transparent #fff transparent transparent;
}
.sow-tours-anime-balloon::before {
    left: -11px;
    border-width: 6px 9px 6px 0;
    border-color: transparent #66ccff transparent transparent;
}

/* モーダル */
/* 初期状態は非表示 */
.js-sow-modal,
.sow-tours-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* クラスがついたら表示 */
.js-sow-modal.is-active,
.sow-tours-overlay.is-active {
    display: block;
    opacity: 1;
}

.sow-tours-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 360px;
    overflow: hidden;

    position: fixed;
    top: 30%;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 2;
}
.sow-tours-modal-header {
    position: relative;
    background: #ccc;
    color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 1em 3em;
}
.sow-tours-close-icon {
    font-style: normal;
    font-size: 16px;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 1.6em;
    height: 1.6em;
    background: #fff;
    border-radius: 999px;
    color: #ccc;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.sow-tours-modal-text {
    text-align: center;
    margin: 1em 0;
    line-height: 1.8;
    word-break: break-all;
}
.sow-tours-btn {
    display: block;
    border: solid 1px #ccc;
    border-radius: 3px;
    padding: .2em 1em;
    text-align: center;
    color: #ccc;
}
.sow-tours-close-btn {
    display: block;
    border: solid 1px #777;
    border-radius: 3px;
    padding: .2em 1em;
    text-align: center;
    color: #777;
    margin-top: 10px;
    cursor: pointer;
}
.sow-tours-modal-body {
    padding: 0 2em 2em 2em;
}
.sow-tours-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(0 0 0 / 60%);
    z-index: 1;
}