@charset "utf-8";

/**
 * ブロックエディタで編集したページに適用されるシステムスタイル
 * /css/block_editor/public.css
 */

/* レイアウト */
.gjs-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 10px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .gjs-row {
        flex-wrap: wrap;
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* 列 */
.gjs-cell {
    min-height: 75px;
    flex-grow: 1;
    flex-basis: 100%;
}

/* リスト */
.my-list ul li {
    margin-bottom: 10px;
}

/* ボタン：アニメーション（ズームイン・アウト） */
.my-button[data-animation='zoominout'] {
    animation-name: animation-zoominout;
    animation-duration: 500ms;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes animation-zoominout {
    from {
        transform: scale(0.98, 0.98);
    }
    to {
        transform: scale(1, 1);
    }
}

/* ボタン：アニメーション（シーソー） */
.my-button[data-animation='seesaw'] {
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    animation-name: animation-seesaw;
    animation-duration: 2s !important;
}

@keyframes animation-seesaw {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(1deg);
    }

    75% {
        transform: rotate(-1deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* ボタン：アニメーション（バウンド） */
.my-button[data-animation='bound'] {
    position: relative;
    animation-name: animation-bound;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-delay: 1s;
    animation-iteration-count: infinite;
}

@keyframes animation-bound {
    0% {
        top: 0px;
    }
    10% {
        top: 3px;
    }
    20% {
        top: 0px;
    }
    30% {
        top: 3px;
    }
    40% {
        top: 0px;
    }
}

/* ボタン：エフェクト（光沢） */
.my-button[data-effect='bright'] {
    position: relative;
    overflow: hidden;
}

.my-button[data-effect='bright']::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 50px;
    height: 50px;
    background-image: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 1) 100%,
        rgba(255, 255, 255, 0) 0%
    );
    animation-name: effect-bright;
    animation-duration: 2500ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes effect-bright {
    0% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(25deg);
        opacity: 1;
    }

    100% {
        transform: scale(50) rotate(25deg);
        opacity: 0;
    }
}

/* ボタン：エフェクト（点滅） */
.my-button[data-effect='blink'] {
    position: relative;
    overflow: hidden;
}

.my-button[data-effect='blink']::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: effect-blink 1s linear infinite;
}

@keyframes effect-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }
}
