/* 共通カラー設定 */
:root {
    --col-bg: rgb(249, 246, 244);
    --col-black: rgb(100, 100, 100);
    --col-white: rgb(255, 255, 255);
    --col-blue: rgb(220, 245, 253);
    --col-orange: rgb(255, 231, 221);
    --col-green: rgb(233, 246, 191);
    --col-border: rgb(200, 200, 200);
    --col-btn-red: rgb(210, 0, 17);
    --col-btn-darkred: rgb(159, 0, 13);
    --col-btn-lightred: rgb(255, 35, 53);
    --col-loader-blue: rgb(100, 206, 255);
    --col-loader-green: rgb(165, 211, 73);

    --col-gray: rgb(150, 150, 150);

    --col-darkblue: rgb(23, 109, 230);
    --col-lightblue: rgb(0, 166, 255);
}

/* リセット */
body,
h1,
h2,
h3,
h4,
h5,
p,
button {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
    font-family: "Noto Sans JP", "Noto Serif JP";

    /* ザラつき背景 */
    .background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -100; /* 背景として扱う */
    }
}

ul {
    margin: 0;
    list-style: none;
}

/* ローディング画面 */
#LOADING,
#LOADING-PERSONAL {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--col-white);
    z-index: 100;
    transition: opacity 1s ease;
    opacity: 1;
}

#LOADING.fadeout {
    opacity: 0;
}

#LOADING.hidden {
    display: none;
}

#LOADING-PERSONAL.fadeout {
    opacity: 0;
}

#LOADING-PERSONAL.hidden {
    display: none;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 40px;
    height: 30px;
    --c: no-repeat linear-gradient(var(--col-loader-green) 0 0);
    background: var(--c) 0 100%/8px 30px, var(--c) 50% 100%/8px 20px,
        var(--c) 100% 100%/8px 10px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: inset(-100% 0);
}
.loader:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--col-loader-blue);
    left: -16px;
    top: 0;
    animation: l5-1 2s linear infinite,
        l5-2 0.5s cubic-bezier(0, 200, 0.8, 200) infinite;
}
@keyframes l5-1 {
    0% {
        left: -16px;
        transform: translateY(-8px);
    }
    100% {
        left: calc(100% + 8px);
        transform: translateY(22px);
    }
}
@keyframes l5-2 {
    100% {
        top: -0.1px;
    }
}

/* HTML: <div class="loader"></div> */
.loader-personal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat
        radial-gradient(circle closest-side, var(--col-black) 90%, #0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100% / 3) 100%;
    animation: l7 1s infinite linear;
}
@keyframes l7 {
    33% {
        background-size: calc(100% / 3) 0%, calc(100% / 3) 100%,
            calc(100% / 3) 100%;
    }
    50% {
        background-size: calc(100% / 3) 100%, calc(100% / 3) 0%,
            calc(100% / 3) 100%;
    }
    66% {
        background-size: calc(100% / 3) 100%, calc(100% / 3) 100%,
            calc(100% / 3) 0%;
    }
}

/* リンク */
a {
    color: var(--col-black);
    text-decoration: none;
}

a:visited {
    color: var(--col-black);
}

/* ボタン */

/* 丸ボタンリンク */
.link-circle {
    display: flex;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: var(--col-white);
    border-radius: 50%;
    box-shadow: 2px 2px 4px 0 var(--col-border);
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s ease;

    & .link-box {
        width: 100%;

        & p {
            margin-top: 5px;
            font-size: 14px;
        }
    }
}

.link-circle:hover {
    transform: scale(1.2);
}

.link-circle:active {
    transform: scale(1);
}

@media (hover: none) {
    .link-circle:hover {
        transform: scale(1);
    }

    .link-circle:active {
        transform: scale(1.2);
    }
}

/* 見出し */
.heading {
    width: 345px;
    margin: 50px auto;
    text-align: center;
    letter-spacing: 5px;

    & h2 {
        font-size: 28px;
        font-weight: 600;
    }

    & p {
        color: var(--col-white);
        background-color: var(--col-black);
    }
}

/* 改行用 */
span {
    display: inline-block;
}

/* フッター */
footer {
    width: 100%;
    padding: 20px 0;
    background-color: var(--col-white);
    text-align: center;

    & img {
        width: 120px;
    }

    & p {
        font-size: 12px;
    }
}
