

/* スクロールバー */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-lt-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--c-dk-gray);
}


/* 基礎デザイン */

h2 {
    margin-top: 1em;
    padding: 0.3em 0.5em;
    border-bottom: 2px solid var(--c-border);
}

h3 {
    display: flex;
    align-items: center;
    margin: 1.5em 0.5em 0.2em;
}

    h3::after {
        content: "";
        flex: 1;
        height: 1px;
        margin: 0 0.8em;
        background: var(--c-border);
    }

h4 {
    padding: 0.2em 0.8em;
    border-left: 3px solid var(--c-link);
}

section, article {
    margin: 1em;
}

main > * {
    max-width: 900px;
    margin: auto;
}


/* 独自タグ */

.link a,
.link_o a {
    display: block;
    margin: 0.2em;
    padding: 0.4em 1.2em;
    line-height: 1.5em;
    text-decoration: none;
    font-weight: 600;
    border: 3px solid var(--c-link);
    background: rgba(255,255,255,0.8);
}

    .link a:hover,
    .link_o a:hover {
        color: #fff;
        background: var(--c-link);
    }

.link_o a {
    border-radius: 0.5em;
}

.tmb {
    position: relative;
    margin: 0;
    padding: 0;
}

.tmb_pc,
.tmb_sp {
    position: relative;
    display: inline-block;
    border: 1px solid var(--c-border);
    background-size: 100%;
}

    .tmb_pc::after,
    .tmb_sp::after {
        position: absolute;
        left: 0;
        bottom: 5px;
        padding: 3px 8px;
        color: #fff;
        font-size: 0.85em;
        font-weight: 700;
        background: rgba(64,64,64,0.5);
    }

    .tmb_pc::after {
        content: "PC･Pad";
    }

    .tmb_sp::after {
        content: "SP";
    }

    .tmb_pc:hover::after,
    .tmb_sp:hover::after {
        opacity: 0.5;
    }

    .tmb_pc:hover,
    .tmb_sp:hover {
        border-color: var(--c-link);
        outline: 2px solid var(--c-link);
    }

        .tmb_pc:hover::before, .tmb_sp:hover::before {
            content: "";
            display: block;
            width: 1.9em;
            height: 1.9em;
            background-image: url("img/icon_search.png");
            background-size: 1.3em;
            background-position: 3px;
            background-repeat: no-repeat;
            background-color: var(--c-link);
        }

        .tmb_pc:hover::before {
            border-radius: 4px 0 8px 0;
        }

        .tmb_sp:hover::before {
            border-radius: 6px 0 8px 0;
        }

.tmb_pc {
    width: 80%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
}

.tmb_sp {
    height: 256px;
    aspect-ratio: 9 / 20;
    border-radius: 5px;
    position: absolute;
    bottom: 1em;
    right: 0;
    border-radius: 10px;
    box-shadow: 0 0 5px var(--c-base);
    z-index: 2;
}

.tmb_pc:hover {
    aspect-ratio: 16 / 12;
}

.tmb_sp:hover {
}
