.kenkaku-front-post{
max-width:700px;
margin:40px auto;
padding:30px;
background:#fff;
border-radius:12px;
box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

.kenkaku-front-post input,
.kenkaku-front-post textarea,
.kenkaku-front-post select{
width:100%;
padding:12px;
margin-top:8px;
border:1px solid #ddd;
border-radius:8px;
box-sizing:border-box;
}

.kenkaku-front-post button{
display:inline-flex;
align-items:center;
justify-content:center;
padding:12px 22px;
border:0;
border-radius:999px;
background:#0f5132;
color:#fff;
font-weight:700;
cursor:pointer;
}

.works-meta-box{
background:#fff;
padding:20px;
border-radius:12px;
margin:30px 0;
box-shadow:0 4px 20px rgba(0,0,0,0.06);
}

.works-before-after-wrap,
.works-gallery-section,
.works-history-section{
margin:40px 0;
}

.works-before-after{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.works-ba-box h3,
.works-gallery-section h2,
.works-history-section h2{
margin:0 0 16px;
line-height:1.4;
}

.works-image-frame{
width:100%;
aspect-ratio:4 / 3;
overflow:hidden;
border-radius:12px;
background:#f4f4f4;
box-shadow:0 4px 18px rgba(0,0,0,0.08);
}

.works-image-frame img{
width:100%;
height:100%;
display:block;
object-fit:cover;
object-position:center;
}

.works-gallery-slider{
display:flex;
gap:16px;
overflow-x:auto;
scroll-snap-type:x mandatory;
padding:4px 4px 14px;
-webkit-overflow-scrolling:touch;
}

.works-gallery-item{
flex:0 0 min(78vw, 320px);
aspect-ratio:4 / 3;
scroll-snap-align:start;
overflow:hidden;
border-radius:12px;
background:#f4f4f4;
box-shadow:0 4px 16px rgba(0,0,0,0.08);
}

.works-gallery-item img{
width:100%;
height:100%;
display:block;
object-fit:cover;
object-position:center;
}

.works-history-list{
display:grid;
gap:18px;
}

.works-history-item{
background:#fff;
padding:20px;
border-radius:12px;
box-shadow:0 4px 18px rgba(0,0,0,0.06);
}

.works-history-date{
font-weight:700;
margin-bottom:10px;
color:#0f5132;
}

.works-history-comment{
margin-bottom:14px;
line-height:1.8;
}

.works-history-comment p{
margin:0 0 8px;
}

.works-history-images{
display:flex;
gap:10px;
overflow-x:auto;
padding-bottom:8px;
-webkit-overflow-scrolling:touch;
}

.works-history-image{
flex:0 0 150px;
aspect-ratio:1 / 1;
overflow:hidden;
border-radius:10px;
background:#f4f4f4;
}

.works-history-image img{
width:100%;
height:100%;
display:block;
object-fit:cover;
object-position:center;
}

@media (max-width: 768px){
.kenkaku-front-post{
margin:24px 16px;
padding:20px;
}

.works-before-after{
grid-template-columns:1fr;
}

.works-image-frame{
aspect-ratio:4 / 3;
}

.works-gallery-item{
flex-basis:82vw;
}
}
