@charset "UTF-8";

h3 {
	font-size:28px;
	margin-bottom:20px;
}

section:first-of-type {
	margin-top:20px;
}

section:nth-of-type(2n) {
    background-color:#f6d6e4;
    padding:100px 0 80px;
    position:relative;
    overflow:hidden;
}
section:nth-of-type(2n):before {
	content:"";
    display:inline-block;
    width:100%;
    height:76px;
    position:absolute;
	background:url(../common/img/top.png) repeat-x center;
    top:-21px;
}
section:nth-of-type(2n):after {
    content:"";
    display:inline-block;
    width:100%;
    height:76px;
    position:absolute;
	background:url(../common/img/under.png) repeat-x center;
    bottom:-21px;
}
section:nth-of-type(2n) div::before {
    content:"";
    background:url(../common/img/bg1.png) no-repeat center;
    width:575px;
    height:575px;
    position:absolute;
    top:25%;
    right:-20%;
    transform-origin:left top;
    transform:scale(.8);
}
ul {
    list-style-type:none;
}
p {
    position:relative;
    z-index:1;   
}
#gallery .flexBox {
    margin:20px 0 30px;
    position:relative;
}
.flexBox li {
    text-align:center;
    font-weight:bold;
}
.flexBox li:nth-of-type(n+5) {
    margin-top:20px;
}
.flexBox img {
    width:100%;
}
#gallery .flexBox img {
    height:220px;
    object-position:left top;
    object-fit:cover;
    margin-bottom:10px;
}

/* detail */
#detail .flexBox {
    justify-content:flex-start;
}
#detail li:not(:nth-of-type(4n+1)) {
    margin-left:2.3%;
}
#detail li img {
    height:250px;
    object-position:left top;
    object-fit:cover;
}
#detail li p {
    text-align:center;
}

@media (max-width: 768px){
	section:nth-of-type(2n) div::before {
		right:-90%;
	}
    .flexBox li {
        width:100%;
        margin-bottom:40px;
    }
    #gallery .flexBox img {
        height:400px;
    }

    /* detail */
    #detail li:not(:nth-of-type(4n+1)) {
        margin-left:0;
    }
}
