/*インスタグラムページ*/

.instagram {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1160px;
}
.instagram_top{
    padding: 0;
}
.instagram_top .insta_post_list {
    margin: 0 0 60px;
}
.page_description{
    margin: 35px 0 28px;
    text-align: center;
    line-height: 1.9;
    font-size: .15rem;
    color: #3c783b;
}

.insta_category{
    border-top: solid 1px #333;
    border-bottom: solid 1px #333;
}
.insta_category ul{
    margin: 0 auto;
    max-width: 565px;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.insta_category li{
    flex: auto;
    text-align: center;
    line-height: 38px;
    color: #aeaeae;
    font-size: .15rem;
    position: relative;
}
.insta_category .tabactive{
    color: #333;
}
.insta_category .tabactive::after{
    content: "";
    position: absolute;
    display: inline-block;
    width: 73%;
    height: 2px;
    background-color: #333;
    left: 50%;
    bottom: 0;
    transform: translate(-50% , 0);
}
.insta_post_list img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.insta_post_list{
    margin: 36px 0 82px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.insta_post {
    margin-bottom: 13px;
    width: 24%;
    background-color: #b3b3b3;
}
.insta_post_list:before,
.insta_post_list:after{
    content: "";
    display: block;
    width: 24%;  /* .boxに指定したwidthと同じ幅を指定する */
    height: 0;
    order: 1;  /* 疑似要素beforeの順番を必ず指定する*/
}
/*インスタページ・ポップアップ*/
.fancybox-content{
	padding:0;
}
.insta_pop2 {
    margin: 0 auto;
    width: 1080px;
    max-width: 100%;
    height: 540px;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
}
.insta_pop2 a{
    text-decoration: none;
    color: #333;
}
.insta_pop_left {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
}
.insta_pop_left a{
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 2%;
    left: 2%;
    outline: none;
}
.insta_pop_left a:focus{
    outline: none;
}
.insta_pop_left a img{
    flex: auto;
    width: 22px;
    height: auto;
}
.insta_pop_left a{
    margin-left: 7px;
    flex: auto;
    font-size: .13rem;
}
.insta_pop_right{
    max-height: 540px;
    overflow: auto;
    flex: 1;
    text-align: center;
}
.insta_pop_right>p {
    margin-top: 14px;
    text-align: center;
}
.insta_pop_related {
    margin: 13px auto;
    width: calc(100% - 130px);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.insta_pop_related a{
    margin-bottom: 25px;
    flex: 0 1 44%;
}

.insta_pop_related span {
    display: block;
    padding-bottom: 100%;
    height: auto;
    border: 1px solid #f2f2f2;
    position: relative;
}
.insta_pop_related img {
    border: none;
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right: 0;
    margin: auto;
}
.insta_pop_related p {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: .13rem;
    text-align: center;
    line-height: 1.3;
}
.insta_pop_related p:last-child{
    margin-top: 0;
	line-height: 1.3;
}
.fancybox-infobar{
	display:none;
}

/*インスタページ(1170px以上)：ポストのサイズ調整*/
@media(min-width:1170px){
	.insta_post_list img {
    	min-height: 268px;
	}
}

/*インスタページ(880px以下)：ポストのサイズ調整*/
@media(max-width:1169px){
	.insta_post_list img {
    height: calc((100vw - 27px) / 4);
	}
}

/*インスタページ(880px以下)：ポストのサイズ調整*/
@media(max-width:880px){
.instagram{
        width: calc(100% - 0px);
        padding: 0;
}
.insta_post_list {
    margin: 10px 0 0;
    padding: 6px 15px;
}
.insta_category li{
    font-size: .12rem;
}
.insta_post_list img {
    display: block;
    height: calc((100vw - 27px) / 2);
    object-fit: cover;
    width: 100%;
}
.insta_pop_right>p {
    font-size: .16rem;
}
.insta_post {
    width: 49%;
    margin-bottom: 6px;
}
.insta_category a {
    font-size: .12rem;
}
.insta_pop_left {
    flex: 0;
}
.insta_pop_related {
    width: calc(100% - 20px);
}
.insta_pop_related a {
    flex: 0 1 48%;
}
.insta_pop_related span {
    display: block;
    padding-bottom: 100%;
    height: auto;
    border: 1px solid #f2f2f2;
    position: relative;
}
.insta_pop_related img {
    border: none;
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right: 0;
    margin: auto;
}
.insta_pop2 {
    height: auto;
    flex-direction: column;
    overflow-y: scroll;
    padding-top: 44px;
}
.insta_pop_right {
    max-height: none;
    overflow: unset;
}
.fancybox-navigation .fancybox-button {
    bottom: -32px;
    top: auto;
}
.fancybox-slide--html {
    padding: 50px 13px;
}
.fancybox-slide--html .fancybox-close-small {
    padding: 0px;
}
.insta_pop_left a {
    display: flex;
    align-items: center;
    position: absolute;
    top: -36px;
    bottom: auto;
    left: 0px;
}
/*トップページインスタコーナー(880px以下)*/
.instagram_top .insta_post_list {
    margin: 0 0 60px;
    padding: 0;
}
.instagram_top .insta_post {
    width: 24%;
    margin-bottom: 5px;
}
.instagram_top .insta_post_list img {
    height: calc((100vw - 27px) / 4);
}

}