@charset "utf-8";


.demo-block {
    position: relative;
    padding: 2em;
    border: 1px solid var(--color-border-main);
    margin: 2em auto;

    &.is-text-center {
        text-align: center;
    }

    &.is-center {
        display: grid;
        place-content: center;

        &>div {
            width: fit-content;
        }

    }

}

/* P.2694 */
.demo-2694 {
    display: grid;
    place-content: center;
}

.demo-2694::after {
    content: "";
    display: block;
    width: 36px;
    aspect-ratio: 1/.6;
    background: #0A64BE;
    clip-path: polygon(100% 13%, 50% 100%, 0 13%, 8% 0, 50% 73%, 92% 0);
}

.demo-2694-2 {
    display: grid;
    place-content: center;
}

.demo-2694-2::after {
    content: "";
    display: block;
    width: 26px;
    aspect-ratio: 1/1;
    border-right: 4px solid #0A64BE;
    border-bottom: 4px solid #0A64BE;
    transform: rotate(45deg);
}

.demo-7028 {
    width: 100%;

    & th,
    & td {
        font-size: .8em;
        text-align: left;
        padding: .7em 1.2em;
        border: 1px solid #999;
    }

    & th {
        width: 1em;
        white-space: nowrap;
        text-align-last: justify;
        background: #DAE8F5;
    }

}

/* p.1242 */
.sample-1242-block {
    padding: 2.2em;
    margin: 3em auto;
    background-color: #0093E9;
    border-radius: 8px;
}

.sample-1242-title-bad-1 {
    display: inline;
    font-size: min(3.91vw, 24px);
    font-weight: 700;
    padding: .4em 1em;
    background: rgba(255, 255, 255, .8);
    line-height: 2.8;
}

.sample-1242-title {
    display: inline;
    font-size: min(3.91vw, 24px);
    font-weight: 700;
    padding: .4em 1em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: rgba(255, 255, 255, .8);
    line-height: 2.8;
}

/* p.2520 */
.sample-2520-input {
    caret-color: #ff0000;
    box-sizing: border-box;
    width: 100%;
    font-size: 1em;
    font-weight: 700;
    padding: 1.5em;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
}

.sample-2520-title {
    color: transparent;
    font-family: "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        Meiryo,
        sans-serif;
    text-stroke: 2px #0A64BE;
    -webkit-text-stroke: 2px #0A64BE;

    box-sizing: border-box;
    width: 100%;
    font-size: 2.5em;
    font-weight: 700;
    padding: .6em;
    border: 1px solid #ccc;
    margin: 1em 0;
    box-shadow: none;
}

.sample-2520-title.is-caret {
    caret-color: #0A64BE;
}

.demo-8644 {
    box-sizing: border-box;
    width: 25%;
    font-size: 1.1em;
    padding: .5em 1em;
    background: #fff;
    border: 1px solid #666;
    border-radius: 5px;

    &.is-sample {
        -moz-appearance: textfield;

        &::-webkit-inner-spin-button,
        &::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    }
}

.demo-8873 {
    position: relative;
    display: grid;
    place-content: center;
    height: 200px;
    color: #fff;
    font-size: 2em;
    font-weight: 500;

    &.section-1 {
        background-color: #409FDC;
    }

    &.section-2 {
        background-color: #E85B7F;
    }

    &.section-3 {
        background-color: #F8CB00;
    }

    &.mask-image {
        --height: 20px;
        mask-image:
            url(/codepen/img/wave.svg),
            linear-gradient(to bottom, transparent 0%, transparent var(--height), #000 var(--height), #000 100%);
        mask-size: 240px;
        margin-top: calc(-1 * var(--height));
    }
}

.demo-8873-wave {
    width: fit-content;
    background: #333;
    border: 1px solid #333;
    margin: 3em auto;
    line-height: 1;

    &+.wp-element-caption {
        margin: -3em auto 0;
    }

}

.demo-11962-1 {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 320px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: .7em 1.3em;
    margin: 2em auto;
    background: linear-gradient(90deg, #53C1FD, #3274E2);
    border: 0;
    border-radius: 100vmax;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;

    &::before {
        content: "";
        opacity: 0;
        position: absolute;
        inset: 0;
        background: #2759AD;
        transition: opacity .3s;
        z-index: -1;
    }

    &:hover::before {
        opacity: 1;
    }
}


.demo-11962-2 {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em;
    width: 320px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    padding: .7em 1.3em;
    margin: 2em auto;
    background: linear-gradient(90deg, #53C1FD, #3274E2);
    border: 0;
    border-radius: 100vmax;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;

    &::before {
        content: "";
    }

    &::after {
        content: "";
        display: block;
        justify-self: end;
        width: .8em;
        aspect-ratio: 1/1;
        mask: url(/codepen/img/ico_arrow.png) center center / contain no-repeat;
        background-color: #fff;
    }

    &>span::before {
        content: "";
        opacity: 0;
        position: absolute;
        inset: 0;
        background: #2759AD;
        transition: opacity .3s;
        z-index: -1;
    }

    &:hover>span::before {
        opacity: 1;
    }
}


/* カスタムプロパティ */
@property --custom-color-1 {
    syntax: "<color>";
    inherits: false;
    initial-value: #53C1FD;
}

@property --custom-color-2 {
    syntax: "<color>";
    inherits: false;
    initial-value: #3274E2;
}

.demo-11962-3 {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em;
    width: 320px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    padding: .7em 1.3em;
    margin: 2em auto;
    background: linear-gradient(90deg, var(--custom-color-1), var(--custom-color-2));
    border: 0;
    border-radius: 100vmax;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    overflow: hidden;
    transition: --custom-color-1 .3s, --custom-color-2 .3s;

    &::before {
        content: "";
    }

    &::after {
        content: "";
        display: block;
        justify-self: end;
        width: .8em;
        aspect-ratio: 1/1;
        mask: url(/codepen/img/ico_arrow.png) center center / contain no-repeat;
        background-color: #fff;
    }

    &:hover {
        --custom-color-1: #2759AD;
        --custom-color-2: #2759AD;
    }
}

.demo-11962-bad {
    --custom-color-3: #53C1FD;
    --custom-color-4: #3274E2;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em;
    width: 320px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    padding: .7em 1.3em;
    margin: 2em auto;
    background: linear-gradient(90deg, var(--custom-color-3), var(--custom-color-4));
    border: 0;
    border-radius: 100vmax;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    overflow: hidden;
    transition: --custom-color-3 .3s, --custom-color-4 .3s;

    &::before {
        content: "";
    }

    &::after {
        content: "";
        display: block;
        justify-self: end;
        width: .8em;
        aspect-ratio: 1/1;
        mask: url(/codepen/img/ico_arrow.png) center center / contain no-repeat;
        background-color: #fff;
    }

    &:hover {
        --custom-color-3: #2759AD;
        --custom-color-4: #2759AD;
    }
}