@charset "UTF-8";

.sub_container_wrap_m .h2ttl{
    text-align: center;
}
.sub_container_wrap_m .h1ttl
{font-family: erbaum, sans-serif;
font-weight: 900;
font-style: normal;
text-align: center;
}
.h1ttl2,.h1ttl{
line-height: 0em;
}
.sub_container_wrap_m .h1ttl img{
    object-fit: contain;
}
.works-place, .gallery{
    width: 95%;
    margin: 0 auto;
    text-align: center;
}
.works-place__caption{
    text-align: center;
    margin-bottom: 50px;
    font-size: 16px;
}
.works-place__wrp{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 930px;
    margin: 0 auto;
}
@media (max-width: 950px) {
.works-place__wrp{
        grid-template-columns: 1fr;gap: 0;
    }
}

.works-place__wrp--contents-line p{
    padding-left: 10px;
    align-items: center;
    display: flex;
}
.works-place__wrp--contents-line p.works-place-info{
    padding-top: .5em;
    line-height: 1.8;
}
.works-place__wrp--contents{
max-width: 500px;
margin: 0 auto;
text-align: left;
}

.works-place__wrp--contents-line{
    border-left: 6px solid #000;
    margin-bottom: 20px;
    margin-top: 10px;
}
.works-place__wrp--contents-line img{
    width: auto;
    height: 28px;
}
.works-place__wrp--contents-line span{
     font-size: 23px;
    font-weight: 800;
    padding-left: 5px;
}
.h1ttl2 img{
    max-width: 394px;
    margin: 0 auto;
}

@media only screen and (max-width: 950px) {
.h1ttl2 img{
    max-width: 280px;
    margin: 0 auto;
}
}

.gallery {
     text-align: center;
     max-width: 880px;
       margin: 90px auto 0 auto;
}

.gallery__wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC時4カラム */
    gap: 20px; /* 上下左右すべて同じ間隔 */
    margin: 40px auto;
}
.gallery__wrap--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* タブレット（3カラム） */
@media (max-width: 1024px) {
    .gallery__wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* スマホ（2カラム） */
@media (max-width: 768px) {
    .gallery__wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery h2.h2ttlja{
    font-weight: 900;
    font-size: 36px;
    line-height: 1.1;
    padding-top: .2em;
}
@media (max-width: 768px) {
.gallery h2.h2ttlja{
    font-size: 20px;
}
}
.gallery__title--mascot img{
width: 166px;
}
.gallery__title{
    position: relative;
}
 .gallery__title--mascot{
    position: absolute;
    right: 0;
    top: -75px;
}
section .sp-only{
    display: none;
}
.sub_container_wrap_ttl{
    text-align: center;
}
.sub_container_wrap_ttl .h1ttlja{
    padding: .3em 0;
}

@media only screen and (max-width: 950px) {
.works-place__wrp{
  justify-content: center;
}
.gallery__title--mascot img {
    max-width: 140px;
}
.gallery__title--mascot {
    position: absolute;
    right: 0;
    top: -55px;
}
}
@media only screen and (max-width: 768px) {
.gallery {
     text-align: center;
     max-width: 880px;
    margin: 90px auto 0 auto;
}
}

@media only screen and (max-width: 600px) {
    .works-place__wrp--contents-line p {
    font-size: 14px;
}
    .works-place__wrp--contents-line {
    margin-bottom: 40px;
}
    .gallery__wrap {
    flex-wrap: wrap;
}
    .gallery__title--mascot img {
    max-width: 85px;
    margin-top: 10px;
}
section .sp-only{
 display: flex;
}
section .pc-only{
    display:none;
}
.sub_container_wrap_m .h2ttl {
    font-size: 18px;
}
.works-place__caption {
    text-align: left;
    font-size: 14px;
}
.works-place__wrp--contents-line span {
    font-size: 20px;
}
    .gallery__title--mascot {
        position: absolute;
         right: 8%;
        top: -20px;
    }
    .h1ttl2 img {
max-width: 50%;
}
.sub_container_wrap_m .h1ttl img {
    margin: 0 auto;
}
}

@media only screen and (max-width: 420px) {
.works-place__wrp--contents-line p{
    display:flex;
}
.works-place__wrp--contents-line span{
    display: block;
    padding-left: 0px;
    margin-left: 10px;
}
    .gallery__title--mascot {
        position: absolute;
         right: 0;
        top: -20px;
                padding-left: 10px;
    }
       
    .h1ttl2 img {
   max-width: 150px; 
}
.works-place__wrp--contents-line img {
    max-height: 22px;
}
}