*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic UI",
    "Yu Gothic",
    Meiryo,
    sans-serif;

    color:#333;
    background:#f8f9fa;
    line-height:1.8;
}

.container{

    width:min(1100px,90%);
    margin:auto;
}

header{

    background:#222;
    color:#fff;

    padding:70px 0;
    text-align:center;
}

header h1{

    font-size:3rem;
}

header p{

    margin-top:15px;
    color:#bbb;
}

section{

    padding:70px 0;
}

h2{

    margin-bottom:30px;
    font-size:2rem;
}

.about p{

    max-width:800px;
    margin-bottom:1.5rem;
}

.about p:last-child{

    margin-bottom:0;
}

.skill-list{

    display:flex;
    flex-wrap:wrap;
    gap:15px;

    list-style:none;
}

.skill-list li{

    background:#fff;

    padding:10px 20px;

    border-radius:30px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

.card-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

.card{

    display:flex;
    flex-direction:column;

    background:#fff;

    border-radius:10px;

    overflow:hidden;

    box-shadow:
        0 5px 15px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.card:hover{

    transform:translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);
}

.card img{

    width:100%;
    height:auto;
    display:block;
}

.card-body{

    display:flex;
    flex-direction:column;
    flex:1;

    padding:25px;
}

.card h3{

    margin-bottom:15px;
}

.tech-list{

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    list-style:none;

    margin:20px 0;
}

.tech-list li{

    background:#eee;

    padding:5px 12px;

    border-radius:20px;

    font-size:.85rem;
}

.project-links{

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin-top:auto;
}

.button{

    display:inline-block;

    padding:12px 22px;

    background:#222;

    color:#fff;

    text-decoration:none;

    border-radius:5px;

    transition:
        background .2s ease;
}

.button:hover{

    background:#444;
}

.button:focus-visible{

    outline:3px solid #60A5FA;
    outline-offset:3px;
}

footer{

    background:#222;

    color:#fff;

    text-align:center;

    padding:30px;
}

footer a{

    color:#fff;

    text-decoration:underline;
}

footer a:hover{

    color:#DBEAFE;
}

footer a:focus-visible{

    outline:3px solid #60A5FA;
    outline-offset:3px;
}

@media (max-width:768px){

    header{

        padding:50px 0;
    }

    header h1{

        font-size:2.2rem;
    }

    h2{

        font-size:1.7rem;
    }

    section{

        padding:50px 0;
    }

    .card-grid{

        grid-template-columns:1fr;
    }
}