:root {
    --bg: #060b14;
    --text: #e8edf5;
    --muted: #8b9cb3;
    --line: rgba(56, 189, 248, 0.22);
    --accent: #5eb8e8;
    --accent-soft: rgba(94, 184, 232, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Exo 2", "Noto Sans JP", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— full-screen home —— */
.hero {
    --page-bg: url("pict-001.png");
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.hero::before,
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(6, 11, 20, 0.88) 0%, rgba(6, 11, 20, 0.55) 45%, rgba(6, 11, 20, 0.92) 100%),
        var(--page-bg, none) center / cover no-repeat;
    z-index: 0;
}

.hero::after,
.page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(94, 184, 232, 0.08), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    animation: fade-up 0.9s ease-out both;
}

.page {
    --page-bg: url("pict-001.png");
    position: relative;
    min-height: 100vh;
    padding: 1.5rem 1.25rem 3rem;
}

.page--projects { --page-bg: url("pict-002.png"); }
.page--lab { --page-bg: url("pict-003.png"); }
.page--about { --page-bg: url("pict-001.png"); }

.page-inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0 auto;
    animation: fade-up 0.7s ease-out both;
}

.kicker {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

h1, .page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #f1f5f9;
}

h1 span, .page-title span {
    color: var(--accent);
    font-weight: 500;
}

.tagline {
    margin: 0 0 2.25rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--muted);
    line-height: 1.6;
}

.content {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8, 14, 26, 0.55);
    backdrop-filter: blur(8px);
    line-height: 1.7;
}

.content p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.content p:last-child { margin-bottom: 0; }

.content ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.content li {
    margin-bottom: 0.65rem;
}

.content li strong {
    color: var(--accent);
    font-weight: 500;
}

.content img {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.top-nav {
    margin-bottom: 1.75rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

nav a {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 14, 26, 0.45);
    backdrop-filter: blur(6px);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

nav a:hover {
    border-color: rgba(94, 184, 232, 0.45);
    background: var(--accent-soft);
    color: #fff;
}

nav a.is-active {
    border-color: rgba(94, 184, 232, 0.5);
    background: var(--accent-soft);
    color: #fff;
}

nav a.is-feature {
    border-color: rgba(94, 184, 232, 0.35);
    color: var(--accent);
}

nav a.is-feature:hover { color: #fff; }

.footer-note {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(139, 156, 179, 0.55);
}

.page .footer-note {
    position: fixed;
}
