/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        YuGothic,
        sans-serif;

    color: #59483F;
    background-color: #F4E9DD;

    /* サイト全体のドット背景 */
    background-image: url("images/dots.png");
    background-repeat: repeat;
    background-size: 400px 400px;

    line-height: 1.7;
}

/* ライトボックス表示中 */
body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}



/* ========================================
   HEADER
======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #5A3B2F;
    color: #FFFDF8;

    box-shadow:
        0 2px 10px rgba(60, 40, 30, .12);
}

.header-inner {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;
    padding: 18px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ロゴ */

.logo {
    font-family: Georgia, serif;

    font-size: 22px;
    font-weight: bold;

    letter-spacing: 1px;
}

.logo span {
    display: block;

    margin-top: -3px;

    font-size: 8px;
    font-weight: normal;

    letter-spacing: 3px;

    text-align: center;

    opacity: .8;
}


/* ナビゲーション */

.nav ul {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav a {
    position: relative;

    font-family: Georgia, serif;

    font-size: 11px;

    letter-spacing: 1.5px;

    transition: .3s;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background-color: #BFE5DE;

    transition: .3s;
}

.nav a:hover::after {
    width: 100%;
}



/* ========================================
   MAIN
======================================== */

main {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    background-color: #E8F5F1;

    box-shadow:
        0 0 30px rgba(60, 40, 30, .08);
}



/* ========================================
   FV
======================================== */

.fv {
    min-height: 650px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-color: #E8F5F1;

    text-align: center;
}


/* 左上のドット */

.fv::before {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    top: 70px;
    left: 50px;

    border-radius: 50%;

    background-image:
        radial-gradient(
            #B98B73 2px,
            transparent 2px
        );

    background-size: 20px 20px;

    opacity: .45;
}


/* 右下のドット */

.fv::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: 60px;
    bottom: 60px;

    border-radius: 50%;

    background-image:
        radial-gradient(
            #6DA99D 2px,
            transparent 2px
        );

    background-size: 18px 18px;

    opacity: .45;
}


.fv-inner {
    position: relative;
    z-index: 1;
}

.fv-small {
    margin-bottom: 15px;

    color: #6DA99D;

    font-family: Georgia, serif;

    font-size: 12px;

    letter-spacing: 4px;
}

.fv h1 {
    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size:
        clamp(55px, 9vw, 100px);

    font-weight: normal;

    line-height: 1;

    letter-spacing: 2px;
}

.fv-copy {
    margin-top: 25px;

    color: #6A554B;

    font-family: Georgia, serif;

    font-size: 18px;

    line-height: 1.8;
}

.fv-button {
    display: inline-block;

    margin-top: 35px;

    padding: 12px 30px;

    border: 1px solid #5A3B2F;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 2px;

    transition: .3s;
}

.fv-button:hover {
    background-color: #5A3B2F;
    color: #FFFDF8;
}



/* ========================================
   SECTION
======================================== */

.section {
    padding: 110px 80px;
}

.section-title {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 60px;
}

.section-title > span {
    padding-top: 7px;

    color: #6DA99D;

    font-family: Georgia, serif;

    font-size: 13px;
    font-weight: bold;
}

.section-title h2 {
    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size: 40px;

    font-weight: normal;

    line-height: 1;

    letter-spacing: 3px;
}

.section-title p {
    margin-top: 8px;

    color: #887870;

    font-size: 11px;
}



/* ========================================
   PROFILE
======================================== */

.profile-section {
    background-color: #E8F5F1;
}


/* プロフィール画像 */

.profile-card-wrap {
    max-width: 850px;

    margin: 0 auto 90px;

    text-align: center;
}

.profile-card-button {
    position: relative;

    display: inline-block;

    width: 100%;

    padding: 0;

    border: none;

    background: transparent;

    cursor: zoom-in;
}

.profile-card-button img {
    display: block;

    width: 100%;
    height: auto;

    border: 1px solid #D8CFC6;

    box-shadow:
        5px 5px 0 #C7DDD8;

    transition: .3s;
}

.profile-card-button:hover img {
    transform:
        translateY(-5px)
        rotate(.3deg);

    box-shadow:
        8px 8px 0 #B9D6D0;
}

.profile-card-caption {
    display: block;

    margin-top: 12px;

    color: #887870;

    font-family: Georgia, serif;

    font-size: 9px;

    letter-spacing: 2px;
}



/* ========================================
   DESIGN PHILOSOPHY
======================================== */

.philosophy {
    position: relative;

    max-width: 850px;

    margin: 0 auto;

    padding: 65px 75px;

    background-color: #FDFBF3;

    border: 1px solid #D8E7E3;

    box-shadow:
        6px 6px 0 #C7DDD8;

    text-align: center;
}


/* 上の小見出し */

.philosophy-label {
    position: relative;

    display: inline-block;

    margin-bottom: 25px;

    color: #6DA99D;

    font-family: Georgia, serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 3px;
}


/* 小見出しの左右にライン */

.philosophy-label::before,
.philosophy-label::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 35px;

    height: 1px;

    background-color: #B8DDD5;
}

.philosophy-label::before {
    right: calc(100% + 12px);
}

.philosophy-label::after {
    left: calc(100% + 12px);
}


/* メインコピー */

.philosophy h3 {
    margin-bottom: 40px;

    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size: 30px;

    font-weight: normal;

    line-height: 1.6;

    letter-spacing: 2px;
}


/* 本文 */

.philosophy-text {
    max-width: 650px;

    margin: 0 auto;

    color: #5E514B;

    font-size: 13px;

    line-height: 2.2;

    text-align: left;
}

.philosophy-text p {
    position: relative;

    margin-bottom: 24px;

    padding-left: 18px;
}




/* ========================================
   WORKS
======================================== */

.works-section {
    background-color: #E8F5F1;
}

.works-lead {
    max-width: 700px;

    margin: -25px auto 75px;

    color: #887870;

    font-size: 13px;

    line-height: 2;

    text-align: center;
}


/* 作品カテゴリー */

.works-category {
    margin-top: 100px;
}

.works-category:first-of-type {
    margin-top: 0;
}


/* カテゴリータイトル */

.works-category-title {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 35px;

    padding-bottom: 12px;

    border-bottom:
        1px dashed #B8DDD5;
}

.works-category-title > span {
    color: #6DA99D;

    font-family: Georgia, serif;

    font-size: 12px;

    font-weight: bold;
}

.works-category-title h3 {
    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size: 24px;

    font-weight: normal;

    letter-spacing: 2px;
}

.works-category-title p {
    margin-top: 2px;

    color: #887870;

    font-size: 10px;
}



/* ========================================
   WEBSITE WORK
======================================== */

.website-work-card {
    max-width: 950px;

    margin: 0 auto;

    background-color: #FDFBF3;

    border: 1px solid #D8E7E3;

    box-shadow:
        5px 5px 0 #C7DDD8;
}


/* Webサイトプレビュー */

.website-preview-link {
    display: block;

    padding: 25px 25px 0;

    cursor: pointer;
}

.website-preview {
    position: relative;

    width: 100%;

    /*
       プレビューは16:9。
       元画像そのものの比率は変更しない。
    */

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: #FFF;

    border: 1px solid #D7D0C8;
}

.website-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: top center;
}


/* ホバー時のオーバーレイ */

.preview-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color:
        rgba(90, 59, 47, .72);

    opacity: 0;

    transition: .3s;

    pointer-events: none;
}

.preview-overlay span {
    padding: 13px 25px;

    border: 1px solid #FFF;

    color: #FFF;

    font-family: Georgia, serif;

    font-size: 11px;

    letter-spacing: 2px;
}

.website-preview-link:hover
.preview-overlay {
    opacity: 1;
}


/* Webサイト情報 */

.website-info {
    padding: 30px 35px 35px;
}

.website-info h4 {
    margin-top: 5px;

    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size: 28px;

    font-weight: normal;
}

.website-info .work-description {
    max-width: 700px;

    margin-top: 12px;

    line-height: 2;
}



/* ========================================
   WORK GRID
======================================== */

.works-grid {
    display: grid;

    gap: 35px;
}

.works-grid-3 {
    grid-template-columns:
        repeat(3, 1fr);
}

.works-grid-2 {
    grid-template-columns:
        repeat(2, 1fr);
}



/* ========================================
   WORK CARD
======================================== */

.work-card {
    transition:
        transform .3s;
}

.work-card:hover {
    transform:
        translateY(-5px);
}


/* ========================================
   WORK IMAGE BUTTON
======================================== */

.work-image-button {
    display: block;

    width: 100%;

    padding: 0;

    border: none;

    background: transparent;

    cursor: zoom-in;

    text-align: left;
}


/* 作品画像 */

.work-image {
    position: relative;

    overflow: hidden;

    background-color: #DDEFEA;

    border:
        1px solid #D7D0C8;
}


/*
   ここでは width / height / aspect-ratio を
   強制していません。

   → 元画像の縦横比をそのまま表示します。
*/

.work-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    transition:
        transform .5s;
}


/* ホバー */

.work-card:hover
.work-image img {
    transform:
        scale(1.03);
}


/* 拡大アイコン */

.zoom-icon {
    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color:
        rgba(90, 59, 47, .85);

    color: #FFFDF8;

    font-family: Georgia, serif;

    font-size: 18px;

    font-weight: normal;

    line-height: 1;

    opacity: .9;

    transition: .3s;

    pointer-events: none;
}

.work-image-button:hover .zoom-icon,
.profile-card-button:hover .zoom-icon {
    transform: scale(1.08);

    background-color: #6DA99D;
}



/* ========================================
   WORK INFORMATION
======================================== */

.work-info {
    padding-top: 18px;
}

.work-category {
    color: #6DA99D;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1.5px;
}

.work-info h4 {
    margin-top: 3px;

    color: #5A3B2F;

    font-family: Georgia, serif;

    font-size: 20px;

    font-weight: normal;

    line-height: 1.5;
}

.work-description {
    margin-top: 7px;

    color: #887870;

    font-size: 12px;

    line-height: 1.8;
}



/* ========================================
   WORK META
======================================== */

.work-meta {
    margin-top: 18px;

    padding-top: 12px;

    border-top:
        1px dashed #C8B5A8;
}

.work-meta div {
    display: flex;

    align-items: baseline;

    padding: 4px 0;
}

.work-meta dt {
    flex: 0 0 75px;

    color: #6DA99D;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;
}

.work-meta dd {
    margin: 0;

    color: #554841;

    font-size: 10px;

    line-height: 1.5;
}



/* ========================================
   WEBSITE BUTTON
======================================== */

.site-button {
    display: inline-block;

    margin-top: 25px;

    padding: 12px 28px;

    background-color: #5A3B2F;

    color: #FFFDF8;

    font-family: Georgia, serif;

    font-size: 10px;

    letter-spacing: 1.5px;

    transition: .3s;
}

.site-button:hover {
    background-color: #6DA99D;

    transform:
        translateY(-2px);
}



/* ========================================
   CONTACT
======================================== */

.contact-section {
    background-color: #E8F5F1;

    text-align: center;
}

.contact-inner {
    padding: 70px 30px;

    background-color: #FDFBF3;

    border:
        1px solid #D8E7E3;
}

.contact-title {
    justify-content: center;

    text-align: left;
}

.contact-inner > p {
    color: #887870;

    font-size: 13px;

    line-height: 2;
}

.contact-button {
    display: inline-block;

    margin-top: 30px;

    padding: 13px 35px;

    background-color: #5A3B2F;

    color: #FFFDF8;

    font-family: Georgia, serif;

    font-size: 10px;

    letter-spacing: 2px;

    transition: .3s;
}

.contact-button:hover {
    background-color: #6DA99D;
}



/* ========================================
   FOOTER
======================================== */

.footer {
    background-color: #5A3B2F;

    color: #FFFDF8;
}

.footer-inner {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    padding: 35px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: Georgia, serif;

    font-size: 17px;
}

.copyright {
    font-size: 9px;

    letter-spacing: 1px;

    opacity: .7;
}



/* ========================================
   LIGHTBOX
======================================== */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background-color:
        rgba(50, 35, 30, .88);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s,
        visibility .3s;
}

.lightbox.is-open {
    opacity: 1;

    visibility: visible;
}

.lightbox-image {
    display: block;

    /*
       元画像の縦横比を維持
    */

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .3);
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;

    background: transparent;

    color: #FFF;

    font-size: 40px;

    font-weight: 200;

    line-height: 1;

    cursor: pointer;
}



/* ========================================
   TABLET
======================================== */

@media screen and (max-width: 900px) {

    .section {
        padding: 80px 50px;
    }

    .works-grid-3 {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .philosophy {
        padding: 55px 50px;
    }

}



/* ========================================
   MOBILE
======================================== */

@media screen and (max-width: 768px) {

    /* BODY */

    body {
        background-size:
            250px 250px;
    }



    /* HEADER */

    .header-inner {
        width: calc(100% - 30px);

        padding: 12px 0;

        flex-direction: column;

        gap: 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav {
        width: 100%;
    }

    .nav ul {
        justify-content: center;

        gap: 18px;
    }

    .nav a {
        font-size: 9px;
    }



    /* MAIN */

    main {
        width: calc(100% - 20px);
    }



    /* FV */

    .fv {
        min-height: 500px;

        padding: 60px 20px;
    }

    .fv h1 {
        font-size:
            clamp(45px, 14vw, 75px);
    }

    .fv-copy {
        font-size: 15px;
    }

    .fv::before {
        width: 90px;
        height: 90px;

        top: 40px;
        left: 20px;
    }

    .fv::after {
        width: 80px;
        height: 80px;

        right: 20px;
        bottom: 40px;
    }



    /* SECTION */

    .section {
        padding: 70px 25px;
    }

    .section-title {
        margin-bottom: 40px;

        gap: 12px;
    }

    .section-title h2 {
        font-size: 30px;
    }



    /* PROFILE */

    .profile-card-wrap {
        margin-bottom: 60px;
    }



    /* PHILOSOPHY */

    .philosophy {
        padding: 45px 25px;

        box-shadow:
            4px 4px 0 #C7DDD8;
    }

    .philosophy-label {
        font-size: 9px;

        letter-spacing: 2px;
    }

    .philosophy-label::before,
    .philosophy-label::after {
        width: 20px;
    }

    .philosophy-label::before {
        right: calc(100% + 8px);
    }

    .philosophy-label::after {
        left: calc(100% + 8px);
    }

    .philosophy h3 {
        margin-bottom: 30px;

        font-size: 23px;

        line-height: 1.7;

        letter-spacing: 1px;
    }

    .philosophy-text {
        font-size: 12px;

        line-height: 2;
    }

    .philosophy-text p {
        margin-bottom: 20px;

        padding-left: 15px;
    }

    .philosophy-text p::before {
        width: 5px;
        height: 5px;
    }



    /* WORKS */

    .works-lead {
        margin-bottom: 50px;
    }

    .works-category {
        margin-top: 70px;
    }

    .works-category-title h3 {
        font-size: 20px;
    }

    .works-grid-3,
    .works-grid-2 {
        grid-template-columns: 1fr;

        gap: 45px;
    }



    /* WEBSITE */

    .website-preview-link {
        padding: 12px 12px 0;
    }

    .website-preview {
        aspect-ratio: 16 / 9;
    }

    .website-info {
        padding: 25px 20px 25px;
    }

    .website-info h4 {
        font-size: 24px;
    }



    /* WORK IMAGE */

    /*
       画像の比率を変更しない
    */

    .work-image img {
        width: 100%;
        height: auto;

        aspect-ratio: auto;

        object-fit: contain;
    }

    .zoom-icon {
        right: 10px;
        bottom: 10px;

        width: 30px;
        height: 30px;

        font-size: 16px;
    }



    /* WORK META */

    .work-meta dt {
        flex-basis: 70px;
    }



    /* CONTACT */

    .contact-inner {
        padding: 50px 20px;
    }

    .contact-title {
        justify-content: flex-start;
    }



    /* FOOTER */

    .footer-inner {
        width: calc(100% - 30px);

        padding: 25px 0;

        flex-direction: column;

        gap: 10px;
    }



    /* LIGHTBOX */

    .lightbox {
        padding: 20px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 85vh;

        width: auto;
        height: auto;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;

        font-size: 35px;
    }

}