.gallery-frame .result-text {
    text-align: center !important;
}

.gallery01 {
    padding: 15.6rem 0 16rem;
}

.gallery-frame {
    max-width: 152rem;
    width: 100%;
    margin: 0 auto;
}

.gallery-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-img {
    width: 100%;
    padding-top:100%;
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.gallery-img>img {
    max-height: 100%;
    height: 100%;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all .5s;
}

.gallery-img:hover>img {
    transform: scale(1.1);
    transition: all .5s;
}

.gallery-box {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    display: grid;
}

/* --- モーダル --- */

/* モーダルラッパー（背景オーバーレイ） */
.galleryModalWr {
  display: flex; /* 初期状態は非表示 */
  position: fixed; /* 画面全体に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒い背景 */
  z-index: 1000; /* 他
  の要素より手前に表示 */
  
  /* 内容を中央揃えにするためのFlexbox設定 */
  align-items: center;
  justify-content: center;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s 
ease, visibility 0.3s 
ease;
}

/* モーダル表示時のスタイル */
.galleryModalWr.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-hide-box {
    background-color: #FAFAF9;
    padding: 5rem;
    max-width: 132rem;
    width: 96%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 96%;
    overflow-y: scroll;
    position: relative;
}

.gallery-hide-row {
    max-width: 122rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: self-start;
}

.gallery-img-modal {
    width: 45.9%;
}

.gallery-title-modal {
    width: 50%;
}

.galleryModalClose {
    filter: brightness(0.5);
    position: absolute;
    max-width: 2.7rem;
    width: 100%;
    top: 3rem;
    right: 3rem;
    cursor: pointer;
    transition: all .5s;
}

.galleryModalClose:hover {
    opacity: .8;
    transition: all .5s;
}

.gallery-cate-set {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-cate-set>a {
    pointer-events: none;
    padding: 0.1rem 1.3rem;
    background-color: #605C4B;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-block;
}

.gallery-modal-title {
    margin-top: 3rem;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.5em;
    border-bottom: 1px solid #D9D9D8;
    padding-bottom: 1.5rem;
}

.gallery-cate-Wr {
    max-width: 84.5rem;
    width: 100%;
    margin: 0 auto 16rem;
}

.gallery-cat-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    display: grid;
}

.all-category {
    width: 100%;
}

.parent-wrap {
    width: 100%;
}

.gallery-cat-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #605C4B;
    border-radius: 3px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.3em;
    padding: 1rem;
    transition: all .5s;
}

.all-category.active a {
    background-color: #605C4B;
    color: #fff;
}

.gallery-cat-list a:hover {
    background-color: #605C4B;
    color: #fff;
}

.result-text {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.parent-category.active a {
    background-color: #605C4B;
    color: #fff;
}

/*---共通---*/

.gallery-box-com {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 1920px) {



}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 1550px) {



}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 1024px) {

.gallery-modal-title {
    margin-top: 1.5rem;
    font-size: 2rem;
    padding-bottom: 1rem;
}

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 768px) {

.gallery01 {
    padding: 6rem 0 8rem;
}

.gallery-box {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-cat-list {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-cat-list a {
    font-size: 1.6rem;
}

.gallery-cate-Wr {
    margin: 0 auto 6rem;
}

.gallery-hide-box {
    padding: 3rem;
}

.gallery-hide-row {
    align-items: center;
    flex-direction: column;
}

.gallery-img-modal {
    width: 100%;
    text-align: center;
}

.gallery-title-modal {
    width: 100%;
    margin-top: 2rem;
}

.galleryModalClose {
    position: relative;
    max-width: 2.7rem;
    width: 100%;
    top: auto;
    right: auto;
    margin: 0 0 1.5rem auto;
}

.gallery-cate-set>a {
    padding: 0.1rem 1.3rem;
    font-size: 1.6rem;
}

.gallery-box-com {
    gap: 1rem;
}

.result-text {
    text-align: center;
}

.gallery-block .result-text {
    text-align: center;
}

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 576px) {

.gallery-box {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-cat-list {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-cat-list a {
    font-size: 1.4rem;
}

.gallery-hide-box {
    padding: 2rem;
}

.gallery-cate-set>a {
    padding: 0.1rem 1.2rem;
    font-size: 1.4rem;
}

.gallery-box-com {
    grid-template-columns: repeat(2, 1fr);
}

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <= 414px) {



}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */