/* ==============================================
共通
============================================== */
:root{
    --f-size-responsive-h2: clamp(1.125rem, 1.034rem + 0.45vw, 1.375rem);
    --f-size-responsive-h3: clamp(1rem, 0.864rem + 0.68vw, 1.375rem);
    --f-size-responsive-p: clamp(0.813rem, 0.725rem + 0.44vw, 1.25rem);
    --color-gray: #676767;
    --color-gray2: #908C8C;
    --color-gray3: #F2F0F0;
    --color-gray4: #C6C2C2;
    --color-gray5: #8A8584;
    --color-orange: #FCC42A;
}

body{
    font-family: "Montserrat", sans-serif;
    color: var(--color-gray);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.wrapper{
    flex: 1;
    margin-inline: auto;
    width: 100%;
}

.wrapper > .flex{
    align-items: stretch;
}

.flex{
    display: flex;
    align-items: flex-start;
}

.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.sp{
    display: none;
}

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

a:hover{
    color: var(--color-orange) !important;
}

aside{
    padding-left: 4.71vw;
}

main{
    width: 100%;
    max-width: 935px;
    margin-inline: 13.5vw;
    margin-top: 19px;
}

.home main{
    max-width: none;
    padding-inline: 4.71vw;
    margin: 0;
}

h2{
    color: var(--color-gray);
    font-size: var(--f-size-responsive-h2);
    font-weight: 700;
    margin-bottom: 26px;
}

h3{
    color: var(--color-gray);
    font-size:  var(--f-size-responsive-h3);
    font-weight: 600;
    margin-bottom: 18px;
    margin-top: 64px;
}

h3:first-of-type{
    margin-top: 0;
}

p{
    color: #888585;
    font-size: var(--f-size-responsive-p);
    line-height: 1.667;
}

p:empty{
    display: none;
}

.title{
    border-bottom: 6px solid var(--color-orange);
    width: fit-content;
    margin-left: -4.813%;
    margin-bottom: 76px;
    margin-top: 20px;
}

.top-btn{
    position: fixed;
    bottom: 25px;
    right: 6.41vw;
    border-top: 2px solid var(--color-gray5);
    border-right: 2px solid var(--color-gray5);
    width: 20px;
    aspect-ratio: 1;
    transform: rotate(-45deg);
}

/* ヘッダー */
header{
    padding-top: 30px;
    padding-bottom: 50px;
    margin-left: 4.71vw;
}

header h1 a{
    font-size: clamp(2.5rem, 1.75rem + 3.75vw, 6.25rem);
    font-weight: 300;
    text-decoration: none;
    color: var(--color-gray2);
    letter-spacing: -0.05em;
}
/* ヘッダー ここまで */

/* グローバルナビゲーション */
.g-nav{
    position: sticky;
    top: 150px;
    padding-left: 0.5vw;
    white-space: nowrap;
}

#hamburger{
    display: none;
}

/* アコーディオン */
.g-nav > ul{
    display: grid;
    gap: 25px;
}

.g-nav li{
    list-style: none;
}

.g-nav a{
    font-size: clamp(1.125rem, 0.833rem + 0.61vw, 1.563rem);
    font-weight: 200;
    text-decoration: none;
    color: var(--color-gray2);
}

.g-nav a:has(+ ul){
    position: relative;
    padding-right: 0.7em;
}

.g-nav a:has(+ ul)::after{
    content: "";
    display: block;
    position: absolute;
    top: .5em;
    right: 0;
    width: 0.3em;
    aspect-ratio: 1;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.g-nav ul ul{
    margin: 0;
    padding: 0;
}

.g-nav ul ul li a{
    display: block;
    height: 0;
    transition: all 0.3s;
    overflow-y: hidden;
    font-size: 1.063rem;
}

.g-nav ul li:hover ul a{
    margin-top: 15px;
    height: 1em;
    line-height: 1;
}

.g-nav ul li:hover ul a:first-of-type{
    margin-top: 18px;
    margin-bottom: 3px;
}
/* アコーディオン ここまで */
/* グローバルナビゲーション ここまで */

/* フッター */
footer{
    padding-block: 32px;
    margin-top: 50px;
    border-bottom: 25px solid var(--color-gray3);
    padding-inline: 4.71vw;
}

footer .copy{
    font-size: 0.75rem;
}
/* フッター ここまで */

/* ==============================================
about ページ
============================================== */
.about-bio .about{
    margin-block: 75px;
    padding-block: 75px;
    border-top: 2px solid var(--color-orange);
    border-bottom: 2px solid var(--color-orange);
}

.about-bio main > .wp-block-group:last-of-type{
    border-bottom: none;
}

.about-bio .about-mv{
    gap: 14px 2vw;
    margin-left: min(13vw, 200px);
}

.about-bio .about-img img{
    border-radius: 5px;
    width: clamp(9.438rem, -1.52rem + 54.79vw, 24.813rem);
}

.about-bio .about-text{
    font-size: clamp(1rem, 0.955rem + 0.23vw, 1.125rem);
}

.about-bio .about-instagram{
    gap: 0.99vw;
}

.about-bio .about-instagram > *{
    min-width: 0;
}

.about-bio .about-instagram img{
    max-width: none !important;
    width: clamp(1.438rem, 1.05rem + 1.94vw, 3.375rem);
}

.about-bio .about-instagram a{
    text-decoration: none;
    font-size: clamp(0.875rem, 0.8rem + 0.38vw, 1.25rem);
}

/* ==============================================
contact ページ
============================================== */
.contact label{
    color: var(--color-gray);
}

.contact label span{
    margin-bottom: 30px;
    display: block;
}

.contact input, .contact textarea{
    border: 1px solid var(--color-orange);
    border-radius: 10px;
    padding: 0.75em 1em;
    color: var(--color-gray);
    font-size: var(--f-size-responsive-p);
    margin-top: 10px;
    width: 100%;
    font-weight: 500;
}

.contact textarea{
    height: 300px;
}

.contact input[type="submit"]{
    background-color: #DDDDDD;
    color: var(--color-gray);
    font-size:  var(--f-size-responsive-h3);
    width: fit-content;
    padding: 6px 52px;
    margin: 0 auto;
    border: none;
    display: block;
}

.contact input[type="submit"].active{
    background-color: var(--color-orange);
    color: #ffffff;
}

.contact p:not(:has(*)){
    margin-bottom: 49px;
}

/* ==============================================
news ページ
============================================== */
.news .category{
    font-weight: 500;
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: 10px;
    margin-top: 58px;
    font-size: var(--f-size-responsive-h2);
}

.news p{
    font-size: var(--f-size-responsive-p);
    padding-inline: 4.813%;
}

.news .line{
    background-image: repeating-linear-gradient(90deg, #d8d7d6, #d8d7d6 5px, transparent 5px, transparent 7px);
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 100% 1px;
    margin-bottom: 29px;
    padding-bottom: 29px;
}

.news p a{
    font-weight: 600;
    color: #888585;
}

/* ==============================================
artworks ページ（一覧）
============================================== */
.artworks .year-list{
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 29px 5.32%;
}

.artworks .year-list a{
    text-decoration: none;
    color: #888585;
}

.artworks .year-list img{
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid var(--color-gray4);
}

.artworks .year-list div{
    line-height: 1;
    font-size: clamp(1rem, 0.818rem + 0.91vw, 1.25rem);
    font-weight: 200;
    text-align: center;
    margin-top: 7px;
}

/* ==============================================
artworks ページ（年ごと）
============================================== */
.artworks h2{
    position: relative;
    font-weight: 400;
    margin-bottom: 60px;
    display: inline-block;
}

.artworks h2::after{
    content: "";
    display: block;
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-orange);
}

.artworks .item-list{
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 29px 5.32%;
}

.artworks .item-list img{
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

/* modal */
.modal-area{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: none;
    z-index: 11;
    overflow-y: auto;
    padding: 8.33dvh clamp(39px + 3.02vw + 10px, 3vw + 3.02vw + 10px, 50px + 3.02vw + 10px);
}

.modal-area.active{
    display: block;
}

.modal-area .modal-box{
    position: relative;
    width: fit-content;
    height: 100%;
    margin-inline: auto;
}

.modal-area .modal-box *{
    line-height: 1.25;
}

.modal-area .modal-box .text{
    font-style: italic;
    font-weight: 500;
}

.modal-area .modal-box .year{
    margin-block: 1em;
}

.modal-area .modal-box img{
    max-width: 100%;
    height: 100%;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.modal-area .close{
    content: "";
    display: block;
    position: absolute;
    top: clamp(69px, 3vw, 80px);
    right: 6vw;
    transform: translate(100%, -100%);
    width: clamp(30px, 1.25vw, 50px);
    aspect-ratio: 1;
    background-image: url(../img/close-btn.svg);
    background-position: center;
    background-size: 99%;
    cursor: pointer;
    padding: 2px;
}

.modal-area .modal-box .description-box{
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    padding: 2dvh 2vw;
    background-color: rgba(255, 255, 255, 0.81);
    transition: opacity 0.3s ease-out;
    opacity: 0;
}

.modal-area .modal-box .description-box p{
    font-size: 1rem;
    max-width: calc(100vw - (6.41vw * 2));
    word-break: break-all;
}

.modal-area .modal-box img:hover ~ .description-box,
.modal-area .modal-box .description-box:hover{
    opacity: 1;
}

.prev, .next{
    background-image: url(../img/arrow.svg);
    background-size: contain;
    width: 3.02vw;
    width: clamp(30px, 1.25vw, 50px);
    aspect-ratio: 29 / 40;
    position: absolute;
    top: 50%;
    left: 6vw;
    transform: translate(-100%, -50%) rotate(180deg);
    cursor: pointer;
}

.prev:hover, .next:hover{
    background-image: url(../img/arrow-hover.svg);
}

.next{
    left: auto;
    right: 6vw;
    transform: translate(100%, -50%);
}

/* ==============================================
共通
============================================== */
.wpcf7-form-control-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

@media(max-width: 768px){
    /* ==============================================
    共通
    ============================================== */
    .wrapper{
        padding-inline: 7.95%;
    }

    .sp{
        display: initial;
    }

    aside, main{
        padding: 0;
        margin: 0;
    }

    .home main{
        padding-inline: 0;
    }

    .title{
        border-width: 3px;
        margin-bottom: 32px;
        margin-left: 0;
    }

    /* ヘッダー */
    header{
        padding-top: 16px;
        padding-bottom: 30px;
        margin-left: 0;
    }

    header h1 a{
        font-size: 10.26vw;
    }
    /* ヘッダー ここまで */

    /* フッター */
    footer{
        padding-block: 16px;
        padding-inline: 0;
        margin-top: 30px;
        border-bottom: 25px solid var(--color-gray3);
    }
    /* フッター ここまで */

    /* グローバルナビゲーション */
    .g-nav{
        position: fixed;
        top: -100dvh;
        left: 100vw;
        transition: all 0.3s ease-out;
        background-color: var(--color-gray2);
        width: 100vw;
        height: 100dvh;
        transform: scale(0);
        z-index: 9;
        opacity: 0;
    }

    .g-nav ul{
        height: 100%;
        justify-content: center;
        align-content: center;
    }

    .g-nav a{
        color: #ffffff;
        font-size: 1.563rem;
    }
    /* グローバルナビゲーション ここまで */

    /* ハンバーガーメニュー */
    .hamburger-btn{
        display: block;
        width: 39px;
        aspect-ratio: 1;
        background-image: url(../img/menu-open-btn.svg);
        background-size: cover;
        position: fixed;
        top: 20px;
        right: 5.9%;
        z-index: 10;
    }

    #hamburger:checked ~ .hamburger-btn{
        background-image: url(../img/menu-close-btn.svg);
    }

    #hamburger:checked ~ .g-nav{
        top: 0;
        left: 0;
        transform: none;
        opacity: 1;
    }
    /* ハンバーガーメニュー ここまで */

    /* ==============================================
    トップ ページ
    ============================================== */
    .home header{
        padding-top: 70px;
        text-align: center;
    }

    .home header a{
        font-size: 12.038vw;
    }

    .home footer .wrapper{
        padding-inline: 14.038vw;
    }

    /* ==============================================
    about ページ
    ============================================== */
    .about-bio main > .wp-block-group{
        margin-left: 0;
    }

    .about-bio .about-mv{
        flex-direction: column;
        align-items: center;
    }

    .about-bio .about{
        margin-block: 25px;
        padding-block: 15px;
    }

    .about-bio h2{
        margin-bottom: 5px;
    }

    .about-bio h3{
        margin-bottom: 5px;
        margin-top: 14px;
    }

    /* ==============================================
    contact ページ
    ============================================== */
    .contact p:not(:has(*)){
        margin-bottom: 30px;
    }

    .modal-area .img-box img{
        height: auto;
    }

    .contact input, .contact textarea{
        border-radius: 5px;
    }

    /* ==============================================
    artworks ページ
    ============================================== */
    .artworks .year-list{
        grid-template-columns: repeat(auto-fill, 195px);
        justify-content: center;
    }

    .artworks .item-list{
        grid-template-columns: repeat(3, 1fr);
    }

    /* modal */
    .modal-area{
        align-items: start;
        padding: 70px 6.41vw 100px;
    }

    .modal-area.active{
        display: flex;
        flex-direction: column;
    }

    .modal-area .close{
        right: 6.41vw;
        transform: translateY(calc(-100% - 15px));
    }

    .modal-area .modal-box{
        height: auto;
        flex: 1;
    }

    .modal-area .modal-box img{
        width: 100%;
        height: auto;
    }

    .modal-area .modal-box .description-box{
        position: static;
        opacity: 1;
        background-color: transparent;
        transform: none;
        padding-block: 1dvh;
        margin-top: 10px;
    }

    .modal-area .triangle-box{
        position: relative;
        width: clamp(30px + 11vw* 2, 1.25vw + 11vw* 2, 50px + 11vw* 2);
        margin-inline: auto;
    }

    .prev, .next{
        position: absolute;
        top: 0;
        left: 0;
        transform: rotate(180deg);
    }

    .next{
        left: auto;
        right: 0;
        transform: none;
    }
}