@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP&family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --primary-color: #f73878;
    --secondary-color: #5c00dd;

    --primary-color-light: #ff9baa;
    --secondary-color-light: #a36df2;

    --primary-color-dark: #231117;
    --secondary-color-dark: #191928;

    --background-color: #0c080e;
    --background-color-light: #16101a;
    --background-gradient: linear-gradient(145deg, var(--secondary-color-dark) 0%, var(--background-color-light) 50%, var(--primary-color-dark) 100%);

    --text-color: #fff;
    --text-color-light: rgba(255, 255, 255, 0.75);
    --text-color-lighter: rgba(255, 255, 255, 0.5);

    --font-family: "Noto Sans JP", "Roboto", Helvetica, Arial, sans-serif;

    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 2rem;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: rgba(163, 109, 242, 0.75);
    color: white;
    text-shadow: 2px 2px 2px var(--background-color);
}

html,
body {
    scroll-behavior: smooth;

    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    font-size: 1rem;

    @media screen and (max-width: 640px) {
        font-size: 0.95rem;
    }

    @media screen and (max-width: 480px) {
        font-size: 0.9rem;
    }
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    background: var(--background-color);
    overflow-x: hidden;
}

main,
main>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
}

main {
    min-height: 100vh;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-3);
}

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-1);
    border-top: var(--border-divider);

    * {
        margin: 0;
    }
}

section {
    width: 100%;
    max-width: 1200px;

    @media screen and (max-width: 1280px) {
        max-width: 1000px;
    }

    @media screen and (max-width: 1080px) {
        max-width: 720px;
    }

    @media screen and (max-width: 768px) {
        max-width: 100% !important;
        padding: var(--spacing-3) !important;
        border-radius: 0px !important;
    }
}

figure {
    margin: 0;
    padding: 0;
}

figure img,
figure video,
figure iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--spacing-1);
}


/* ===== Text ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    margin: 0;
}

h1 {
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    margin-top: 0.5em;
}

h2 {
    font-weight: 700;
    font-size: 2.5em;
    line-height: 1.25;
    margin-top: 0.4em;
}

h3 {
    font-size: 2em;
    font-weight: 600;
    line-height: 1;
    margin-top: 0.35em;
}

h4 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1;
    margin-top: 0.3em;
}

h6 {
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text-color-lighter);
    margin: 0;
}

a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, border 0.3s ease;
    border-bottom: 2px solid var(--primary-color-dark);
}

a:hover {
    color: white;
    border-bottom: 2px solid var(--primary-color);
}

p {
    color: var(--text-color-light);
    font-size: 1em;
    font-weight: 400;
}

b {
    color: var(--text-color);
}


/* ===== Lists ===== */
ul,
ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-color-light);
    font-size: 1.1em;
    line-height: 1.7;

    li {
        margin: 0;
        margin-bottom: 0.25rem;
    }

    p {
        font-size: 1em;
        margin: 0;
        margin-left: -1.5rem;
    }
}

ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}


/* ===== Buttons ===== */
.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-1);
    gap: var(--spacing-1);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 2px 2px 0px var(--background-color);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 33%, transparent 65%);
    border-radius: var(--spacing-1);
    cursor: pointer;
    background-size: 300% 100%;
    transition: background-position 0.6s cubic-bezier(0.25, 1, 0.75, 1), border-color 0.6s cubic-bezier(0.25, 1, 0.75, 1), color 0.6s cubic-bezier(0.25, 1, 0.75, 1);
    border: 1px solid var(--primary-color);
    background-position: right;
}

.button:hover {
    text-decoration: none;
    background-position: left;
    border: 1px solid transparent;
    color: var(--text-color);
}

.button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.25em;
    color: inherit;
}

.button i.fa-brands {
    font-size: 1.5em;
    margin-right: 0.25rem;
    margin-left: -0.25rem;
}

.button-group {
    display: flex;
    flex-direction: row !important;
    gap: var(--spacing-2);
}

.button-group>* {
    flex: 1;
}


/* ===== Dividers & Spacers ===== */
.bottom {
    margin-top: auto !important;
}

.spacer {
    height: var(--spacing-2);
}

.divider {
    position: relative;
    opacity: 0.75;
    height: 0;
    border-bottom: 2px solid var(--background-color-light);
    margin: var(--spacing-2) 0;
    margin-bottom: var(--spacing-3);
}

.divider>* {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0 var(--spacing-2);
    border-radius: var(--spacing-2);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 1.25em;
    height: 1.5em;
    font-weight: 300;
    white-space: nowrap;
}


/* ===== Animations ===== */
@keyframes backgroundScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(32px, 32px);
    }
}

@keyframes opacityPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.75;
    }
}