/* ====================
   全体
==================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f3ee;
    color: #403a35;
    font-family: sans-serif;
}


/* ====================
   ヘッダー
==================== */

header {
    height: 700px;
    position: relative;
    overflow: hidden;
    background: #222;
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(60px);
}

.header-text {
    position: absolute;
    z-index: 1;
    left: 8%;
    bottom: 7%;
    color: white;
}

.header-text p {
    letter-spacing: 5px;
    font-size: 13px;
}

.header-text h1 {
    margin: 10px 0;
    font-size: 90px;
    letter-spacing: 8px;
}

.header-text span {
    letter-spacing: 4px;
    font-size: 13px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #222;
    padding: 20px 40px;
    z-index: 10;
}

.header-ul {
    display: flex;
    justify-content: right;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-li {
    list-style: none;
}

.header-a {
    text-decoration: none;
    color: white;
}

/* ====================
   メイン
==================== */

main {
    max-width: 1000px;
    margin: auto;
    padding: 100px 20px;
}

section {
    margin-bottom: 120px;
}


/* ====================
   見出し
==================== */

.title {
    margin: 0 0 10px;
    color: #a47c61;
    font-size: 12px;
    letter-spacing: 4px;
}

h2 {
    margin: 0 0 40px;
    font-size: 36px;
}


/* ====================
   プロフィール
==================== */

#profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.profile-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.profile-text {
    padding: 20px;
}

.profile-text h2 {
    margin-bottom: 30px;
}

.info p {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #ddd4ca;
}

.info span {
    display: inline-block;
    width: 100px;
    color: #a47c61;
    font-size: 13px;
}


/* ====================
   ギャラリー
==================== */

#gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

figure {
    margin: 0;
    background: white;
    padding: 8px;
    transition: 0.3s;
}

figure:hover {
    transform: translateY(-5px);
}

figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

figcaption {
    padding: 13px 5px 8px;
    font-size: 13px;
}


/* ====================
   メッセージ
==================== */

#message {
    padding: 80px 20px;
    background: #e8ddd2;
    text-align: center;
}

.message h2 {
    margin-bottom: 25px;
}

.message p {
    line-height: 2;
}


/* ====================
   フッター
==================== */

footer {
    padding: 40px;
    background: #403a35;
    color: white;
    text-align: center;
}

footer p {
    margin: 0 0 8px;
    letter-spacing: 5px;
}

footer small {
    font-size: 10px;
    letter-spacing: 3px;
}


/* ====================
   スマホ
==================== */

@media (max-width: 700px) {

    /* ヘッダー */

    header {
        height: 600px;
    }

    .header-text {
        left: 7%;
        bottom: 10%;
    }

    .header-text h1 {
        font-size: 55px;
        letter-spacing: 4px;
    }


    /* メイン */

    main {
        padding: 70px 15px;
    }

    section {
        margin-bottom: 80px;
    }


    /* 見出し */

    h2 {
        font-size: 28px;
    }


    /* プロフィール */

    .profile {
        display: block;
    }

    .profile-image {
        margin-bottom: 30px;
    }

    .profile-image img {
        height: 400px;
    }

    .profile-text {
        padding: 0;
    }


    /* ギャラリー */

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

    figure {
        padding: 5px;
    }

    figcaption {
        font-size: 11px;
    }


    /* メッセージ */

    .message {
        padding: 50px 15px;
    }

}


/* ====================
   小さいスマホ
==================== */

@media (max-width: 430px) {

    .header-text h1 {
        font-size: 45px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .profile-image img {
        height: 350px;
    }

    nav {
        right: 20px;
    }

    .header-ul {
        gap: 15px;
    }

    .header-a {
        font-size: 12px;
    }
}