/* =========================
  DESIGN TOKENS
========================= */
:root {
    --bg: #0b0d10;
    --panel: #141820;
    --panel2: #10131a;

    --text: #eaeaea;
    --sub: #a8b0bd;

    --accent: #4cc9f0;
    --accent2: #1e90ff;

    --border: rgba(255,255,255,0.08);
}

/* =========================
  RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

/* =========================
  TYPOGRAPHY
========================= */
h1, h2, h3 {
    letter-spacing: 1px;
}

h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--accent);
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
}

p {
    color: var(--text);
    opacity: 0.9;
    line-height: 1.8;
}

/* =========================
  HEADER / NAV
========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11,13,16,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.logo {
    font-weight: bold;
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.2s;
}

.nav a:hover {
    opacity: 1;
    color: var(--accent);
}

/* =========================
  HERO
========================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        transparent 0%,
        rgba(0,0,0,0.85) 80%);
}

.hero h1 {
    font-size: 52px;
    z-index: 2;
}

.hero p {
    margin-top: 10px;
    color: var(--sub);
    z-index: 2;
}

/* =========================
  SECTION LAYOUT
========================= */
section {
    padding: 110px 20px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        rgba(0,0,0,0)
    );
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* =========================
  CARD SYSTEM
========================= */
.card,
.card-ui,
.contact-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(76,201,240,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* WORK GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card .content {
    padding: 16px;
}

/* =========================
  SKILL BAR
========================= */
.skill {
    margin-bottom: 22px;
}

.bar {
    width: 100%;
    height: 10px;
    background: var(--panel2);
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    box-shadow: 0 0 10px rgba(76,201,240,0.4);
}

/* =========================
  CONTACT
========================= */
.contact-box {
    padding: 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
  HERO DETAILS
========================= */
.hero-name {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-profile {
    margin-bottom: 20px;
}

.hero-profile img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(76,201,240,0.6);
    box-shadow: 0 0 20px rgba(76,201,240,0.3);
}

.hero-meta {
    font-size: 14px;
    color: var(--sub);
    margin-bottom: 15px;
}

/* =========================
FADE INIT
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}





/* =========================
スマホ対応
========================= */
@media (max-width: 768px) {

    /* =========================
    BASE
    ========================= */
    body {
        font-size: 14px;
        padding-top: 80px;
    }

    section {
        padding: 80px 16px;
    }

    .container {
        padding: 0 16px;
    }

    /* =========================
    HEADER
    ========================= */
    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav a {
        font-size: 12px;
    }

    /* =========================
    HERO
    ========================= */
    .hero {
        padding: 0 16px;
        height: auto;
        padding: 100px 16px 60px;
    }

    .hero-name {
        font-size: 28px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-sub,
    .hero-meta {
        font-size: 12px;
    }

    .hero-profile img {
        width: 80px;
        height: 80px;
    }

    /* =========================
    GRID
    ========================= */
    .grid {
        grid-template-columns: 1fr;
    }

    /* =========================
    CARD
    ========================= */
    .card img {
        height: 150px;
    }

    .card:active,
    .card-ui:active {
        transform: scale(0.98);
    }

    /* =========================
    TYPOGRAPHY
    ========================= */
    h2 {
        font-size: 24px;
    }
}