/* =========================
   全体設定
========================= */

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

html {
    scroll-behavior: smooth;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background:#fff;
    color:#111;

    padding-top:80px;
}

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

ul {
    list-style: none;
}

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

/* =========================
   Header
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 60px;

    background-color: #111;
    color: white;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #bdbdbd;
}

/* =========================
   Hero
========================= */

.hero {
    height: 100vh;
    min-height: 400px;
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    color: white;
    font-size: 80px;
    text-align: center;
    line-height: 1.1;
}

/* =========================
   About
========================= */

#about{
    padding:100px 80px;
    background:#000;
    color:white;
}

#about h2{
    text-align:center;
    font-size:60px;
    margin-bottom:70px;
}

.about-content{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:80px;
}

.profile{
    text-align:center;
}

.profile img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid white;
}

.profile h3{
    margin-top:20px;
    font-size:42px;
}

.about-text{
    max-width:725px;
}

.about-text p{
    margin-bottom:30px;
    font-size:22px;
    line-height:1.8;
}

/* =========================
   Works
========================= */

#works{
    padding:100px 80px;
    background:#111;
    color:white;
    text-align:center;
}

#works h2{
    font-size:60px;
    margin-bottom:60px;
}

.works-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    max-width:1000px;

    margin:0 auto 60px;

}

.works-grid img{

    width:100%;

    border-radius:0%;

    transition:0.3s;

}

.works-grid img{

    transition:.4s;

}

.works-grid img:hover{

    transform:scale(1.05);

    filter:brightness(70%);

}

.view-all{

    display:inline-block;

    font-size:18px;

    font-weight:bold;

    border:2px solid white;

    padding:15px 30px;

    transition:0.3s;

}

.view-all:hover{

    background:white;

    color:black;

}

/* =========================
   Contact
========================= */

#contact{
    padding:100px 80px;
    background:#000;
    color:white;
    text-align:center;
}

#contact h2{
    font-size:60px;
    margin-bottom:50px;
}

.instagram-icon{
    width:70px;
    margin:0 auto 20px;
    transition:.3s;
}

.instagram-icon:hover{
    transform:scale(1.1);
}

/* =========================
   Footer
========================= */

footer{

    background:#111;

    color:white;

    text-align:center;

    padding:30px;

}

/* =========================
   All Works
========================= */

#all-works{

    padding:100px 80px;

    background:#111;

    color:white;

    text-align:center;

}

#all-works h1{

    font-size:60px;

    margin-bottom:20px;

}

.works-subtitle{

    font-size:18px;

    color:#cfcfcf;

    margin-bottom:60px;

}

.all-works-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

    max-width:1200px;

    margin:0 auto;

}

.all-works-grid img{

    width:100%;

    transition:.3s;

    cursor:pointer;

}

.all-works-grid img{

    transition:.4s;

    cursor:pointer;

}

.all-works-grid img:hover{

    transform:scale(1.05);

    filter:brightness(70%);

}

/* =========================
   Lightbox
========================= */

#lightbox{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.9);

    justify-content:center;
    align-items:center;

    z-index:9999;

}

#lightbox img{

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

}

#close{

    position:absolute;

    top:30px;
    right:50px;

    font-size:50px;

    color:white;

    cursor:pointer;

}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =========================
   Mobile Menu Toggle
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   Responsive
========================= */

@media screen and (max-width: 1024px) {

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .all-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    #about,
    #works,
    #contact,
    #all-works {
        padding: 80px 40px;
    }

    #about h2,
    #works h2,
    #contact h2,
    #all-works h1 {
        font-size: 48px;
    }

    .about-content {
        gap: 50px;
    }

    .about-text p {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    header {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .logo {
        font-size: 22px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    header nav {
        display: none;
        width: 100%;
        padding-top: 16px;
    }

    header nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-top: 1px solid #333;
    }

    nav a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
    }

    .hero {
        height: 55vh;
        min-height: 280px;
    }

    #about,
    #works,
    #contact,
    #all-works {
        padding: 60px 20px;
    }

    #about h2,
    #works h2,
    #contact h2,
    #all-works h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    #all-works h1 {
        margin-bottom: 12px;
    }

    .works-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .profile img {
        width: 140px;
        height: 140px;
    }

    .profile h3 {
        font-size: 28px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-text p {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    .works-grid,
    .all-works-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .works-grid {
        margin-bottom: 40px;
    }

    .works-grid img:hover,
    .all-works-grid img:hover {
        transform: none;
        filter: none;
    }

    .view-all {
        font-size: 15px;
        padding: 12px 24px;
    }

    #contact h2 {
        margin-bottom: 30px;
    }

    .instagram-icon {
        width: 56px;
    }

    footer {
        padding: 24px 20px;
        font-size: 14px;
    }

    #close {
        top: 16px;
        right: 20px;
        font-size: 36px;
    }

    #lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }
}

@media screen and (max-width: 480px) {

    .hero {
        height: 45vh;
        min-height: 220px;
    }

    #about h2,
    #works h2,
    #contact h2,
    #all-works h1 {
        font-size: 28px;
    }

    .profile h3 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 14px;
    }
}