/*
Theme Name: yStandard Child
Template: ystandard
Description: yStandard子テーマ
Version: 1.0.0
*/


/**********************************
************* Gallery *************
**********************************/

.page-id-888 .site-content {
    margin-top: 0;
}

.post-type-archive-post_gallery .site-content,
.tax-cat_gallery .site-content,
.single-post_gallery .site-content {
    margin-top: 0;
}

.gallery-mv {
    margin-bottom: 70px;
    background: url(http://xs307299.xsrv.jp/test/kaya-inc/wp-content/uploads/2023/06/title-bg-scaled.jpeg) no-repeat center / cover;
}

.gallery-mv__cont {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    text-align: center;
}

.gallery-mv__cont::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, .3);
}

.gallery-mv .ttl {
    position: relative;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.gallery-mv .ttl span {
    font-size: 40px;
    font-family: 'Open Sans', sans-serif;
}

.gallery-cat {
    display: flex;
    flex-wrap: wrap;
}

.gallery-cat > p {
    margin: 0 20px 8px 0;
    font-weight: 500;
}

.gallery-cat ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-cat ul li {
    margin: 0 8px 5px 0;
}

.gallery-cat ul li a {
    display: block;
    padding: 3px 10px;
    font-size: 13px;
    color: #222;
    background-color: #f4f4f4;
    text-decoration: none;
}

.gallery-cat ul li.current a {
    color: #fff;
    background-color: #a6af9f;
}

.gallery-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -10px 60px;
    padding: 30px 0 0;
}

.gallery-list li {
    width: calc(25% - 20px);
    margin: 40px 10px 0;
}

.gallery-list li a {
    display: block;
    text-decoration: none;
    color: #222;
}

.gallery-list__img {
    margin-bottom: 10px;
    line-height: 0;
    overflow: hidden;
}

.gallery-list__img img {
    transition: all .4s ease;
}

.gallery-list li:hover .gallery-list__img img {
    transform: scale(1.15);
}

.gallery-list li a p {
    margin: 0;
}

.gallery-article {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.gallery-article__main {
    width: 52%;
}

.gallery-article__main-cat {
    font-weight: 700;
    color: #55655c;
}

.gallery-article__main-cat span {
    margin-right: 10px;
    font-weight: 500;
    color: #9c9c9c;
}

.gallery-article h1 {
    margin: 30px 0;
    font-size: 30px;
    font-weight: 700;
}

.gallery-article__main-spec {
    margin-bottom: 40px;
}

.gallery-article__main-spec>p {
    margin: 0;
    padding-bottom: 10px;
    color: #55655c;
    font-weight: 700;
    border-bottom: 1px solid #9b9b9a;
}

.gallery-article__main-spec dl {
    display: flex;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #9b9b9a;
}

.gallery-article__main-spec dl dt {
    width: 120px;
    margin: 0;
    text-align: center;
    color: #9c9c9c;
}

.gallery-article__main-spec dl dd {
    flex: 1;
}

.gallery-article__img {
    width: 42%;
}

.gallery-related {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #9b9b9a;
}

.gallery-related__ttl {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.gallery-back {
    margin-top: 50px;
    text-align: center;
}

.gallery-back a {
    color: #55655c;
    font-weight: 700;
    text-decoration: none;
}

.gallery-link {
    margin: 80px 0 60px;
}

.gallery-link__ttl {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    color: #55655c;
}

.gallery-link ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-link ul li {
    position: relative;
    width: 48%;
    margin-top: 50px;
}

.gallery-link ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
}

.gallery-link ul li figure {
    margin: 0;
    line-height: 0;
}

.gallery-link__cont {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #fff;
    transform: translateY(-50%);
}

.gallery-link__cont p {
    margin: 0;
    font-size: 14px;
}

.gallery-link__cont p.en {
    margin: 0 0 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.4;
}

.gallery-link__cont a {
    display: block;
    width: 160px;
    margin: 30px auto 0;
    line-height: 40px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50px;
    text-decoration: none;
}

.gallery-link__cont a:hover {
    color: #222;
    background-color: #fff;
}

@media screen and (max-width: 768px) {
    .gallery-list li {
        width: calc(33.33% - 20px);
    }
    .gallery-article__img {
        width: 100%;
        margin-bottom: 30px;
    }
    .gallery-article__main {
        width: 100%;
    }
}

@media screen and (max-width: 599px) {
    .gallery-list li {
        width: calc(50% - 20px);
    }
    .gallery-article h1 {
        font-size: 24px;
    }
    .gallery-article__main-spec dl {
        font-size: 13px;
    }
    .gallery-article__main-spec dl dt {
        width: 75px;
    }
    .gallery-link ul li {
        width: 100%;
        margin-top: 20px;
    }
    .gallery-link__cont p.en {
        font-size: 24px;
    }
}