/* ========================================
   Gallery Page
======================================== */

body {
    background: #fbfaf7;
    color: #282828;
    font-family: "Zen Old Mincho", serif;
}


/* ========================================
   Gallery Heading
======================================== */

.gallery-heading {
    padding: 60px 24px 60px;
    background: #fff;
}

.gallery-heading__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.section-title__line {
    position: relative;
    display: block;
    width: 190px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #c7a96d 20%,
        #c7a96d 80%,
        transparent
    );
}

.section-title__line::after {
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid #c7a96d;
    background: #fbfaf7;
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.section-title__line:first-child::after {
    right: 0;
}

.section-title__line:last-child::after {
    left: 0;
}

.section-title__text {
    margin: 0;
    color: #303030;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
}

.gallery-heading__lead {
    margin: 28px 0 0;
    color: #5c5851;
    font-size: 17px;
    line-height: 2;
    letter-spacing: 0.1em;
}


/* ========================================
   Gallery List
======================================== */

.gallery-page {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.gallery-page::before,
.gallery-page::after{
    display:none;
}

.gallery-page::before {
    top: 13%;
    left: -120px;
}

.gallery-page::after {
    right: -120px;
    bottom: 12%;
}

.gallery-page__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
}

/* ========================================
   Gallery Groups
======================================== */

.gallery-group {
    position: relative;
    padding:20px 24px 40px;
    border-top: 2px dashed rgba(194, 164, 108, 0.12);
}

.gallery-group:first-child {
    border-top: none;
}

.gallery-group .gallery-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* 01〜06 */

.gallery-group--01 {
    background: rgba(255, 253, 249, 0.82);
}


/* 07〜12 */

.gallery-group--02 {
    background: rgba(250, 246, 239, 0.84);
}


/* 13〜18 */

.gallery-group--03 {
    background: rgba(246, 241, 232, 0.86);
}


/* 19〜24 */

.gallery-group--04 {
    background: rgba(243, 237, 228, 0.88);
}


/* 25〜30 */

.gallery-group--05 {
    background: rgba(247, 242, 234, 0.86);
}


/* 31〜36 */

.gallery-group--06 {
    background: rgba(255, 253, 249, 0.82);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 58px;
    row-gap: 76px;
}


/* ========================================
   Gallery Card
======================================== */

.gallery-card {
    min-width: 0;
    text-align: center;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
}

.gallery-card__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 18px 20px rgba(45, 36, 27, .14));
    transition:
        transform .45s ease,
        filter .45s ease;
}

.gallery-card:hover .gallery-card__visual {
    filter: drop-shadow(0 18px 25px rgba(61, 48, 30, 0.18));
}

/* 額縁の透明窓に合わせた写真位置 */
.gallery-card__photo-box {
    position: absolute;
    top: 8%;
    right: 9%;
    bottom: 8%;
    left: 9%;
    z-index: 1;
    overflow: hidden;
    background: #f7f4ef;
}


.gallery-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform .75s ease,
        filter .75s ease;
}

.gallery-card:hover .gallery-card__photo {
    transform: scale(1.045);
    filter: brightness(1.03);
}

.gallery-card__frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}


/* 額縁を横切る光 */

.gallery-card__visual::after {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: -75%;
    z-index: 3;
    width: 30%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        transparent 100%
    );
    content: "";
    opacity: 0;
    transform: skewX(-18deg);
    pointer-events: none;
}

.gallery-card:hover .gallery-card__visual::after {
    animation: gallery-shine 1.1s ease;
}

@keyframes gallery-shine {
    0% {
        left: -75%;
        opacity: 0;
    }

    25% {
        opacity: 0.65;
    }

    100% {
        left: 145%;
        opacity: 0;
    }
}


/* ========================================
   Product Information
======================================== */

.gallery-card__body {
    padding-top: 5px;
}

.gallery-card__name {
    margin: 4px 0 2px;
    color: #35322e;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.gallery-card__price {
    margin: 7px 0 0;
    color: #81786c;
    font-family: "Zen Old Mincho", serif;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.08em;
}


/* ========================================
   Gallery Contact
======================================== */

.gallery-contact {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
    border-top: 1px solid rgba(194, 164, 108, 0.35);
    background: #fffdfa;
}

.gallery-contact__inner {
    position: relative;
    z-index: 1;
    width: min(850px, 100%);
    margin: 0 auto;
    text-align: center;
}


/* 小さなキラキラ装飾 */

.gallery-contact__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 34px;
}

.gallery-contact__decoration span {
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid #c6a466;
    transform: rotate(45deg);
}

.gallery-contact__decoration span:nth-child(2) {
    width: 11px;
    height: 11px;
    background: rgba(198, 164, 102, 0.08);
}

.gallery-contact__message {
    margin: 0;
    color: #4a4640;
    font-size: 19px;
    line-height: 2.2;
    letter-spacing: 0.09em;
}

.gallery-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 330px;
    margin-top: 42px;
    padding: 17px 38px;
    border: 1px solid #c5a269;
    border-radius: 999px;
    background: transparent;
    color: #7e6845;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.11em;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(102, 78, 40, 0.06);
    transition:
        color 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.gallery-contact__button span {
    transition: transform 0.35s ease;
}

.gallery-contact__button:hover {
    background: #c5a269;
    color: #fff;
    box-shadow: 0 13px 28px rgba(102, 78, 40, 0.17);
    transform: translateY(-3px);
}

.gallery-contact__button:hover span {
    transform: translateX(5px);
}


/* ========================================
   Fade Animation
======================================== */

.gallery-heading__inner,
.gallery-card,
.gallery-contact__inner {
    animation: gallery-fade-up 0.9s ease both;
}

.gallery-card:nth-child(2) {
    animation-delay: 0.08s;
}

.gallery-card:nth-child(3) {
    animation-delay: 0.16s;
}

.gallery-card:nth-child(4) {
    animation-delay: 0.08s;
}

.gallery-card:nth-child(5) {
    animation-delay: 0.16s;
}

.gallery-card:nth-child(6) {
    animation-delay: 0.24s;
}

@keyframes gallery-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-contact {
    position: relative;
    overflow: hidden;
    background: #fffdfa;
}

.gallery-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("../images/asiato.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px auto;

    opacity: 0.5;
    pointer-events: none;
}

.gallery-contact__inner {
    position: relative;
    z-index: 1;
}

/* =================================
   背景を漂う光の粒
================================= */

#sparkle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
}

/* 文字やボタンを粒より前に出す */
header,
main,
footer {
    position: relative;
    z-index: 20;
}