/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Bootstrap v3.1.1 (http://getbootstrap.com)
/* Copyright 2011-2014 Twitter, Inc.
/* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

/* normalize.css v3.0.0 | MIT License | git.io/normalize
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/


/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
/* iHover_square.css for index.php
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/

.ih-item,
.ih-item * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.ih-item {
    //position: relative;
    
    -webkit-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out;
}
.ih-item a {
    color: #333;
}
.ih-item a:hover {
    text-decoration: none;
}
.ih-item img {
    width: 100%;
    height: 100%;
    opacity: 1.0;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square {
    position: relative;
    width: 240px;
    height: 160px;
    border: 3px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 3px 7px -1px rgba(0, 0, 0, 0.4);
}
.ih-item.square .info {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
/* PC
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6 {
    overflow: hidden;
}
.ih-item.square.effect6 .anchor-img {
    -webkit-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out;
    
    -webkit-transform: scale(1);
    transform: scale(1);
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6 a:hover .anchor-img {
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
}
.ih-item.square.effect6 a:hover .info {
    visibility: visible;
    opacity: 1;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6 .info {
    background: #333333;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}
.ih-item.square.effect6 .info h3 {
    color: #eee;
    text-align: center;
    font-weight: normal;    
    font-size: 16px;
    padding: 10px;
    background: #111111;
    margin: 60px 0 0 0;
    
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}
.ih-item.square.effect6 .info p {
    font-style: italic;
    font-size: 12px;
    position: relative;
    color: #bbb;
    padding: 10px 20px 20px;
    text-align: center;
    
    -webkit-transition: all 0.35s 0.1s linear;
    transition: all 0.35s 0.1s linear;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6.bottom_to_top .info h3 {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}
.ih-item.square.effect6.bottom_to_top .info p {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}
.ih-item.square.effect6.bottom_to_top a:hover .info h3,
.ih-item.square.effect6.bottom_to_top a:hover .info p {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
/* for smart phone
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6-sp {
    overflow: hidden;
}
.ih-item.square.effect6-sp .anchor-img {
    -webkit-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out;
    
    -webkit-transform: scale(1);
    transform: scale(1);
}
.ih-item.square.effect6-sp .info h2 {
    color: #eee;
    text-align: center;
    font-weight: normal;    
    font-size: 14px;
    padding: 10px;
    background: #111111;
    margin: 60px 0 0 0;
    
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
.ih-item.square.effect6-sp .info {
    background: #333333;
    background: rgba(0, 0, 0, 0.3);
    visibility: visible;
    opacity: 1;
    
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}
.ih-item.square.effect6-sp .info h3 {
    color: #eee;
    text-align: center;
    font-weight: normal;    
    font-size: 16px;
    padding: 10px;
    background: #111111;
    margin: 60px 0 0 0;
    
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}
.ih-item.square.effect6-sp .info p {
    font-style: italic;
    font-size: 12px;
    position: relative;
    color: #bbb;
    padding: 10px 20px 20px;
    text-align: center;
    
    -webkit-transition: all 0.35s 0.1s linear;
    transition: all 0.35s 0.1s linear;
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (min-width: 320px) and (max-width: 567px) {
    .ih-item.square {
        width: 140px;
        height: 160px;
    }
}

