.gd {
    font-family: 'Shippori Mincho B1', serif;
    color: #262626;
}

.gd-inner {
    width: calc(100% - 50px);
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
}

.gd svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gd-sp {
    display: none;
}

/* Intro */
.gd-intro {
    display: flex;
    padding-top: 58px;
}

.gd-identity {
    flex: none;
    width: 300px;
    margin-left: -13px;
}

.gd-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 137px;
}

.gd-name {
    margin: 0 0 0 22px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #000;
}

.gd-summary {
    flex: 1;
    min-width: 0;
    margin-left: clamp(24px, 11vw, 142px);
    padding-top: 35px;
}

.gd-description {
    font-size: 15px;
    line-height: 26.25px;
}

.gd-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8.5px;
    margin-top: 14px;
}

.gd-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 116px;
    height: 29px;
    padding: 0 10px 0 7.6px;
    border: 1px solid #666;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    color: #000;
    text-decoration: none;
}

.gd-btn:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.7;
}

.gd-btn svg {
    width: 15px;
    height: 15px;
    color: #666;
}

.gd-btn--dark,
.gd-btn--dark:hover {
    gap: 7.8px;
    background: #1a1a1a;
    color: #fff;
}

.gd-btn--dark svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Sort and filter tabs */
.gd-works {
    margin-top: 102px;
}

.gd-count {
    display: none;
}

.gd-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 864px;
    height: 35px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.gd-tab {
    position: relative;
    border-left: 1px solid #e5e5e5;
}

.gd-tab:last-child {
    border-right: 1px solid #e5e5e5;
}

a.gd-tab,
.gd-tab summary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 6px 0 24px;
    color: #262626;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.gd-tab summary::-webkit-details-marker {
    display: none;
}

a.gd-tab::before,
.gd-tab summary::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 7.5px;
    width: 13px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.gd-tab.is-active,
.gd-tab[open] {
    border-color: #262626;
    background: #262626;
}

a.gd-tab.is-active,
.gd-tab.is-active summary,
.gd-tab[open] summary {
    color: #fff;
}

a.gd-tab.is-active::before,
.gd-tab.is-active summary::before,
.gd-tab[open] summary::before {
    filter: invert(1);
}

.gd-menu {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    z-index: 10;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.gd-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 4px;
    color: #262626;
    text-align: center;
    text-decoration: none;
}

.gd-menu a + a {
    border-top: 1px solid #e5e5e5;
}

.gd-menu a:hover,
.gd-menu a.is-selected {
    background: #f2f2f2;
}

/* Works */
.gd-empty {
    margin: 60px 0;
    text-align: center;
}

.gd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 4.5865%;
    row-gap: 58px;
    margin-top: 23px;
}

.gd-card-image {
    display: block;
    aspect-ratio: 224 / 290;
    background: #e3e3e3;
}

.gd-card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.gd-card-title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 15px;
}

.gd-card-title .favor {
    flex: none;
    font-size: 0;
}

.gd-card-title .icon-favor {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.gd-card-title .icon-favor::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gd-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6.6px;
    font-size: 14px;
    line-height: 1.2;
}

.gd-card-artist {
    color: #3f3f3f;
}

.gd-card-price {
    flex: none;
    color: #959595;
}

.gd-card-price.is-soldout {
    color: #cc4b4b;
}

/* Pagination */
.gd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 83px;
}

.gd-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

.gd-page-btn:hover {
    color: #000;
    opacity: 0.7;
}

.gd-page-btn svg {
    width: 16px;
    height: 16px;
}

.gd-page-btn--next svg {
    transform: scaleX(-1);
}

.gd-page-btn--fill,
.gd-page-btn--fill:hover {
    background: #000;
    color: #fff;
}

.gd-page-btn--fill.is-disabled {
    border-color: #808080;
    background: #808080;
}

.gd-page-numbers {
    display: flex;
    gap: 9px;
    padding: 0 5px;
    font-size: 15px;
    line-height: 1;
}

.gd-page-numbers a,
.gd-page-numbers span {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    color: #262626;
    text-decoration: none;
}

.gd-page-numbers .is-current {
    border-bottom-color: #262626;
}

/* Gallery information */
.gd-about {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 65px;
    padding: 85px 7px 92px 0;
    border-top: 3px solid #e3e3e3;
    /* Keeps the fixed header from covering the section when 画廊概要 jumps here. */
    scroll-margin-top: 200px;
}

.gd-info {
    flex: 1;
    min-width: 0;
    margin-top: 6px;
    font-size: 16px;
    line-height: 24px;
}

.gd-info dl {
    display: grid;
    grid-template-columns: 153.5px minmax(0, 1fr);
    row-gap: 20px;
    margin: 0;
}

.gd-info dt {
    font-weight: 400;
}

.gd-info dd {
    margin: 0;
    color: #4c4c4c;
}

.gd-info-note {
    margin: 28px 0 0;
    color: #4c4c4c;
}

.gd-map {
    flex: none;
    width: 420px;
    height: 420px;
    max-width: 45%;
}

@media (max-width: 767px) {
    .gd-pc {
        display: none;
    }

    .gd-sp {
        display: inline;
    }

    .gd-intro {
        display: block;
        padding-top: 17px;
    }

    .gd-identity {
        width: auto;
        margin: 0;
        text-align: center;
    }

    .gd-logo {
        width: 210px;
        height: 96px;
        margin: 0 auto;
    }

    .gd-name {
        margin: 0;
        font-size: 11.22px;
    }

    .gd-summary {
        margin: 0;
        padding-top: 20px;
    }

    .gd-description {
        font-size: 11.84px;
        line-height: 20.72px;
    }

    .gd-buttons {
        justify-content: center;
        gap: 6.5px;
        margin-top: 20px;
    }

    .gd-btn,
    .gd-btn--dark {
        gap: 7px;
        min-width: 90px;
        height: 22.5px;
        padding: 0 8px 0 6.5px;
        font-size: 10.8px;
    }

    .gd-btn svg,
    .gd-btn--dark svg {
        width: 11px;
        height: 11px;
    }

    .gd-works {
        margin-top: 36px;
    }

    .gd-count {
        display: block;
        margin: 0 0 16px 4px;
        font-size: 12.8px;
        font-weight: 500;
        line-height: 1;
        color: #000;
    }

    .gd-tabs {
        max-width: 287px;
        height: 29.64px;
        font-size: 9.21px;
    }

    a.gd-tab,
    .gd-tab summary {
        height: 29.64px;
        padding: 0 2px;
    }

    /* English and French labels are longer than the Japanese ones the 287px bar was drawn for. */
    html:not([lang='ja']) .gd-tabs {
        max-width: none;
    }

    a.gd-tab::before,
    .gd-tab summary::before {
        content: none;
    }

    .gd-menu a {
        min-height: 24.72px;
        padding: 2px;
    }

    .gd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 15.79px;
        row-gap: 19.6px;
        margin-top: 24.6px;
    }

    .gd-card-image {
        aspect-ratio: 1;
    }

    .gd-card-title {
        gap: 3.7px;
        margin-top: 7.5px;
        font-size: 9.87px;
        line-height: 10.2px;
    }

    .gd-card-title .icon-favor {
        width: 10.2px;
        height: 10.2px;
    }

    .gd-card-meta {
        display: block;
        margin-top: 4.13px;
        font-size: 9.87px;
        line-height: 1;
    }

    .gd-card-artist,
    .gd-card-price {
        display: block;
    }

    .gd-card-price {
        margin-top: 7.93px;
    }

    .gd-pagination {
        gap: 9.9px;
        margin-top: 43.5px;
    }

    .gd-page-btn {
        width: 24.31px;
        height: 24.31px;
    }

    .gd-page-btn svg {
        width: 12.5px;
        height: 12.5px;
    }

    .gd-page-numbers {
        gap: 7px;
        padding: 0 4px;
        font-size: 11.41px;
    }

    .gd-about {
        display: block;
        margin-top: 48px;
        padding: 40px 0 48px;
    }

    .gd-info {
        margin-top: 0;
        font-size: 12px;
        line-height: 20px;
    }

    .gd-info dl {
        grid-template-columns: 96px minmax(0, 1fr);
        row-gap: 14px;
    }

    .gd-map {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 1;
        margin-top: 32px;
    }
}
