/* /assets/css/base.css */

/* ===== Vars ===== */
:root {
    --bg: #ffffff;
    --ink: #0b0b0b;
    --muted: #6b6b6b;
    --muted2: #8a8a8a;
    --line: #e8e8e8;
    --panel: #f3f3f3;

    --orange: #ff2e2e;
    --orange2: #ff5a5a;

    --radius: 22px;
    --radius2: 34px;
    --max: 1180px;

    --shadow: 0 16px 50px rgba(0, 0, 0, .10);
    --shadow2: 0 10px 26px rgba(0, 0, 0, .07);

    --ease: cubic-bezier(.2, .9, .2, 1);
    --ring: 0 0 0 4px rgba(255, 46, 46, .14);

    --tilt: 10deg;
    --shine: rgba(255, 255, 255, .55);
}

/* ===== Reset ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(255, 46, 46, .10), transparent 55%),
        radial-gradient(900px 520px at 90% 10%, rgba(255, 90, 90, .10), transparent 55%),
        var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Main ===== */
main {
    padding-top: 112px;
    position: relative;
    z-index: 1;
}

/* ===== Utilities ===== */
.dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 20px rgba(255, 46, 46, .45);
    flex: none;
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ripple */
.ripple {
    position: absolute;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 46, 46, .35), rgba(255, 46, 46, 0) 70%);
    pointer-events: none;
    width: 14px;
    height: 14px;
    opacity: .9;
    animation: ripple .7s var(--ease) forwards;
}

@keyframes ripple {
    to {
        width: 360px;
        height: 360px;
        opacity: 0;
    }
}

/* Noise overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
    }
}