@charset "utf-8";
/* base setting */
body {
  /*overflow: hidden;*/
  color: #333;
}
a, a:link, a:visited {
  color: #333;
  text-decoration: none;
}
a:hover, a:active {
  color: #aaa;
}

.inner {
    position: relative;
  padding-right: 10px;
  padding-left: 10px;
}

@media screen and (min-width: 961px){
    .inner{
        width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
}

.skew{
        transform: skewY(-3deg);
}

@media screen and (min-width: 961px){
    .skew{
        transform: skewY(-1.5deg);
    }
}

.skew_rev{
        transform: skewY(3deg);
}

@media screen and (min-width: 961px){
    .skew_rev{
        transform: skewY(1.5deg);
}
}

.center_middle{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.hide{
    opacity: 0;
    height: 0;
}

.hide a{
    cursor: default;
}

.hide_block{
	display: none;
}
/* page setting */

.container {
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
}

.container::before{
        content: "";
        position: absolute;
        top: -3px;
        bottom: -3px;
        left: -3px;
        right: -3px;
        z-index: -10;
        background: url(../img/bg.jpg) center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        /*filter: blur(3px);*/
}

.header, .footer {
  background: rgba(255, 255, 255, 0.7);
}

.header{
    position: relative;
    top: -30px;
    padding-top: 70px;
  padding-bottom: 30px;
}

@media screen and (min-width: 961px){
    .header{
      padding-top: 50px;
        padding-bottom: 40px;
    }
}
h1 {
  font-size: 1.5rem;
  margin-left: calc(80px + 2rem);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.8;
}

@media screen and (min-width: 961px){
    h1 {
      font-size: 2rem;
      position: relative;
     top: 10px;
}
}

#home_logo {
    display: block;
  position: absolute;
  top: 10px;
  left: 20px;
}
.icon-home::before {
  font-size: 3.6rem;
}

@media screen and (min-width: 961px){
    #home_logo {
  		top: -15px;
}
}

main{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 0px;
    }

@media screen and (min-width: 961px){
    .main{
        
    }
}

.main div.banner,
.main div:nth-of-type(1){
    width: 600px;
  max-width: 80%;
   /*height: 200px;
    max-height: 33.3333%;*/
    margin: 0 auto 40px;
    position: relative;
        overflow: hidden;
}

@media screen and (min-width: 961px){
    .main div.banner,
   .main div:nth-of-type(1){
    width: 300px;
        height: 100px;
        margin-bottom: 50px;
    }
}

.main div.banner:first-of-type{
    /*margin-top: calc(40px + 2rem + 40px + 40px);*/
	margin-top: 30px;
}

.main div.banner:last-of-type{
    margin-bottom: calc(40px + 2rem + 40px + 40px);
}

@media screen and (min-width: 961px){
    .main div.banner:first-of-type{
    margin-top: 0;
}
    .main div.banner:last-of-type{
    margin-bottom: 0;
}

}
.banner a {
  display: block;
    width: 100%;
   height: 100%;
  font-size: 3.6rem;
    line-height: 1;
    background: #ddd;
    position: relative;
    transition: 0.3s;
}

.banner:hover a,.banner:active a{
    transform: scale(1.2)
}

.banner p{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    color: #fff;
 font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    transform: scale(0);
    transition: 0.3s;
}

@media screen and (min-width: 961px){
    .banner p{
        font-size: 1.6rem;;
    }
}

.banner:hover p,.banner:active p{
    opacity: 1;
    transform: scale(1);
}

.banner a img{
    border: 0;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.footer {
  text-align: center;
position: relative;
    bottom: -30px;
    padding-top: 40px;
  padding-bottom: 100px;
}

.footer small{
    display: block;
    position: relative;
    top: 20px;
    font-size: 1.2rem;
}

@media screen and (min-width: 961px){
    .footer{
    padding-top: 30px;
  padding-bottom: 50px;
}
.footer small{
    font-size: 1rem;
    position: relative;
    top: -2px;
}
}
/* page_top */
#back-top{
    position: fixed;
    right: 10px;
    bottom: calc(40px + 100px + 30px);
    width: 50px;
    height: 50px;
}

@media screen and (min-width: 961px){
        #back-top{
        right: max(5px,3%);
    }
}

#back-top a{
    display: inline-block;  
    width: 60px;
    height: 60px;
    border-radius:60px;
    background: rgba(255,255,255,0.7);
    font-size: 2.6rem;
    text-align: center;
    vertical-align:middle;
    color: #333;
}

.icon-arrow-up2:before{
    position: relative;
    top: 3px;
}

/* IconFont */
@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?dgtctl');
  src:  url('fonts/icomoon.eot?dgtctl#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?dgtctl') format('truetype'),
    url('fonts/icomoon.woff?dgtctl') format('woff'),
    url('fonts/icomoon.svg?dgtctl#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-home:before {
  content: "\e900";
}
.icon-arrow-up2:before {
  content: "\ea3a";
}
