@charset "utf-8";

/* ==================================================================
	company.css
	
=================================================================== */

/* ==================================================================
	top
=================================================================== */

/* --------------------------------
   □ #fairInfo
-------------------------------- */ 
#fairInfo{
	background:var(--bg-color-lightgray, #F3F3F3);
    position: relative;
    padding-bottom: 70px;
    margin-bottom: 0;
}
#fairInfo:before{
    content: "";
    height: 245px;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
#fairInfo p.mainimg{
    position: relative;
    z-index: 2;
}

/* --------------------------------
   □ .fairList
-------------------------------- */ 
.contents section.fairList.chapter{
	/*background:url(../../images/company/thanksfair/bg_star.png) 50% 0 no-repeat;*/
    position: relative;
    z-index: 3;
    margin-top: -28px;
}
section.fairList h3 {
    text-align: center;
}
section.fairList p.txt {
    text-align: center;
    font-size: 112%;
    font-weight: bold;
    margin-top: 60px;
    line-height: 2;
}
section.fairList .movie {
	text-align: center;
    margin-top: 60px;
    @media only screen and (max-width : 767px) {
        margin-top: 40px;
    }
    iframe {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: 100%;
    }
}
	
section.fairList ul.list{
    margin-top: 60px;
}	
	
section.fairList ul.list li{
    overflow:hidden;
    box-sizing:border-box;
    float:left;
    width:49.5%;
    margin-right: 1%;
    margin-bottom: 1%;
}	
section.fairList ul.list li:nth-child(2n){
    margin-right: 0;
}
section.fairList ul.list li a{
    display: table;
    width:100%;
    height:100%;
    color:#fff;
    transition: all 500ms 0s ease;
    text-decoration:none;
    background:50% 50% no-repeat;
    background-size:cover;
}

section.fairList ul.list li a:hover{
    transform: scale(1.1);
}
section.fairList ul.list li span{
    display: table-cell;
    text-align:center;
    vertical-align:middle;
    position:relative;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.3);
    transition: all 300ms 0s ease;
}

section.fairList ul.list li a:hover span{
    background:rgba(0,0,0,0.4);
}
section.fairList ul.list li em{
    display:block;
    text-align:center;
    letter-spacing:0.1em;
    font-size:237%;
    line-height:1;
    font-weight: 500;
    margin-bottom:13px;
}
section.fairList ul.list li small{
    display:block;
    text-align:center;
    letter-spacing:0.05em;
    font-size:118%;
    line-height:1;
}

section.fairList ul.list li{
    height:499px;
}

section.fairList ul.list li.fair2024 a{
    background-image:url(../../images/company/thanksfair/thumb2024.jpg);
}

section.fairList ul.list li.fair2022 a{
    background-image:url(../../images/company/thanksfair/thumb2022.jpg);
}

section.fairList ul.list li.fair2019 a{
    background-image:url(../../images/company/thanksfair/thumb2019.jpg);
}

section.fairList ul.list li.fair2018 a{
    background-image:url(../../images/company/thanksfair/thumb2018.jpg);
}

section.fairList ul.list li.fair2016 a{
    background-image:url(../../images/company/thanksfair/thumb2016.jpg);
}

section.fairList ul.list li.fair2015 a{
    background-image:url(../../images/company/thanksfair/thumb2015.jpg);
}


/* --------------------------------
   □ #list
-------------------------------- */ 
#list ul {
    font-size: 0;
    letter-spacing: 0;
    overflow: hidden;
}
#list ul li {
    float: left;
    width: 20%;
    box-sizing: border-box;
}
#list ul li.bigFirst {
    width: 40%;
}
#list ul li.bigEnd {
    float: right;
    width: 40%;
}
#list ul li img {
    width: 100%;
}

#list p.buttonStyle {
    text-align: center;
    margin: 70px 0 0 0;
}
#list p.buttonStyle a {
    width: 30%;
}



@media only screen and
(max-width : 767px) {

    /* --------------------------------
       □ #fairInfo
    -------------------------------- */ 
    #fairInfo{
        padding-bottom: 15%;
    }
    #fairInfo:before{
        height: 5%;
    }

    /* --------------------------------
       □ .fairList
    -------------------------------- */ 
    .contents section.fairList.chapter{
        position: relative;
        z-index: 3;
        margin-top: 40px;
    }
    section.fairList h3 {
        width: 92%;
        margin: 0 auto;
    }
    section.fairList h3 img {
        width: 100%;
    }
    section.fairList p.txt {
        text-align: left;
        font-size: 100%;
        font-weight: normal;
        margin-top: 28px;
    }
    section.fairList p.txt br {
        display: none;
    }

    section.fairList ul.list{
        margin-top: 10%;
    }	

    section.fairList ul.list li{
        float:none;
        width:auto;
        margin-right: 0;
        margin-bottom: 2%;
    }	
    section.fairList ul.list li em{
        font-size:200%;
    }
    section.fairList ul.list li small{
        font-size:100%;
    }

    section.fairList ul.list li{
        height:300px;
    }
    
    /* --------------------------------
       □ #list
    -------------------------------- */ 
    #list ul {
        font-size: 0;
        letter-spacing: 0;
        overflow: hidden;
    }
    #list ul li {
        float: left;
        width: 50%;
        box-sizing: border-box;
    }
    #list ul li.bigFirst {
        width: 50%;
    }
    #list ul li.bigEnd {
        float: left;
        width: 50%;
    }

    #list p.buttonStyle {
        text-align: center;
        margin: 13% 0 0 0;
    }
    #list p.buttonStyle a {
        width: 80%;
    }

}

	
