:root {
    --bg: #ffffff;
    --main: #000000;
    --sub: #909090;
    --line: #f0f0f0;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--main);
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
}

/* UI Frame：スマホでは少し細くして画面を広く */
.page-border {
    position: fixed;
    inset: 0;
    border: 20px solid var(--bg);
    outline: 1px solid var(--line);
    pointer-events: none;
    z-index: 2000;
}

/* Header：要素同士の距離を最適化 */
.header {
    position: fixed;
    top: 50px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1500;
}

.nav-logo {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--main);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    opacity: 0.3;
    transition: 0.4s var(--ease);
}

/* Layout */
.section {
    padding: 250px 60px;
    border-top: 1px solid var(--line);
}

.content-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 80px;
}

.index {
    font-size: 1rem;
    color: var(--sub);
    font-weight: 800;
    letter-spacing: 0.2em;
}

/* Hero Typography */
.giant-title {
    font-size: clamp(3.2rem, 10vw, 10rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.04em;
    margin-bottom: 50px;
}

.shift {
    display: block;
    padding-left: 10%;
    margin-top: 10px;
}

.big-text {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 300;
    max-width: 900px;
}

/* VISION：自然な段差への調整 */
.statement-title {
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 100px;
}

.statement-title .line-2 {
    display: block;
    padding-left: 2.3em;
    /* 右へ流れるような自然な配置 */
    font-weight: 300;
    margin-top: 0.1em;
}

/* --- Mobile Logic --- */
@media (max-width: 1024px) {
    .page-border {
        border-width: 12px;
    }

    /* ヘッダーを縦に並べず、ロゴを中央寄せ気味にして余裕を持たせる */
    .header {
        top: 30px;
        left: 25px;
        right: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .nav {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.65rem;
    }

    .section {
        padding: 120px 25px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .giant-title {
        font-size: 3rem;
        line-height: 0.9;
    }

    .shift {
        padding-left: 0;
    }

    .big-text {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .statement-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .statement-title .line-2 {
        padding-left: 1.2em;
    }

    /* モバイルでの視認限界 */

    .handwriting-stage {
        padding-left: 15px;
        margin-bottom: 80px;
    }

    .handwriting-text {
        font-size: 1.15rem;
        line-height: 2;
    }

    .work-item {
        padding: 40px 0;
        flex-direction: column;
    }

    .work-item h3 {
        font-size: 1.6rem;
        margin-top: 10px;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1.5s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-scramble] {
    visibility: hidden;
}