/******************************************************************************************
* MAIN setup
******************************************************************************************/

/*start with the boc model*/
* {
    -webkit-box-sizing: border-box; /*Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

/*project text settings*/
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-y: hidden;
    /*height: 100%;*/
}

body {
    /* background-color: #f5f5f5; */
    /* font-family: 'EB Garamond', 'Vollkorn', 'Open Sans',serif; */
    font-weight: 300;
    font-size: 14px;
    color: #686868;
    line-height: 1.3em;
    overflow-y: hidden;
    box-sizing: border-box;
    /*text-overflow: ellipsis;*/
    font-family: Arial, Helvetica, sans-serif;
}

/******************************************************************************************
* HEADER code here
* This is in this case the project navigation which is removed by headroom after scrolling
******************************************************************************************/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: visible;
    background: #fff;
    z-index: 10;
    transition: top 0.2s ease-in-out;
}

header .header_row {
    padding: 16px 20px;
    position: relative;
}

header nav {
    display: none;
    margin-top: 0px;
    width: 100%;
    clear: both;
    position: relative;
}
/* */
header nav ul {
    position: relative;
    margin: 0;
    padding-bottom: 12px;
}

header nav ul li {
    display: block;
    border-bottom: 1px solid #aaa;
}

header nav ul li a {
    color: #aaa;
    display: block;
    padding: 0 0 12px 0;
}

header nav ul li a.selected {
    color: #000;
}

header nav ul li a:hover {
    color : #B96;
}



header nav ul li ul {
    position: relative;
    display: none;
    width: 100%;
    margin-top: -5px;
}

header nav ul li ul li {
    border-bottom: none;
}

header nav ul li ul li a {
    padding: 0px 0;
}

header nav ul li.lisel ul {
    display: block;
}

header nav#secnavi {
    display: none;
}

header nav#secnavi.active {
    display: block;
}
/* */

header #navicon, header #closeicon {
    color : #000;
    position: absolute;
    top: 0;
    right: 0;
    padding: 22px 22px 22px 22px;
}
header #closeicon {
display: none;
}
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    display: block;
    width : 100%;
    padding: 24px 22px 20px 22px;
    background:#fff;
}

video {
    /* display:block;
    margin: 0 auto;
    overflow: auto; */
    height:100%;
}


.header__logo img{
    height : 30px;
}

#mobile-search-row input {
width: 90%;
border: none;
padding: 15px;
}

#navioverlay {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background: #000;
    opacity: 0.5;
}

/******************************************************************************************/

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
}


@media screen and (max-width: 1024px) {
	.search_bar {
    		display: none;
	}

    .header__logo {
        float:none;
        width:100%;
    }

	header nav ul li ul {
		display: block;
	}

}

@media screen and (min-width:1024px) {
    header.outasight {
        top: 0px;
    }

	header nav {
		display: block;
		margin-top: 0px;
		width: auto;
		float: left;
		position: relative;
		clear: none;
	}

    header nav ul {
    	list-style: none;
    	margin: 0;
    	padding-left: 0;
    }

    header nav li {
        color: #fff;
        display: block;
        float: left;
        position: relative;
        text-decoration: none;
        transition-duration: 0.5s;
    }

    header nav li a {
        color: #aaa;
    }

    header nav li:hover {
    	cursor: pointer;
    }

    header nav li a.selected, li a:hover {
        color:#000
    }
    header ul li {
        margin-right:15px;
        padding-bottom: 1rem;
        border-bottom:none !important;
    }
    header ul li ul li {

    }
    header nav ul li ul {
        visibility: hidden;
        opacity: 0;
        min-width: 5rem;
        position: absolute;
        transition: all 0.5s ease;
        margin-top: 1rem;
        padding-top:5px;
        left: 0;
        background-color:#fff;
        padding-left:5px;
        box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
        width: 180px;
        display: none;
    }

    header nav ul li ul li {
        clear: both;
        width: 180px;
        padding:0 0 5px 0;
    }
    .header__logo {
        float: left;
        width: 50px;
        margin-right: 100px;
    }

    .header__logo img {
        height: 30px;
      display: block;
    }

    header .paa {
        display: block;
        padding: 24px 20px 22px;
        position: relative;
    }

    header nav#secnavi {
        float: left;
        width: auto;
        display: block;
        margin-left: 45px;
    }
    header #navicon, header #closeicon{
        color: #000;
        position: absolute;
        top: 0;
        right: 0;
        padding: 22px 22px 22px 22px;
      display:none;
    }

    .search_bar {
    		display : block;
    		float : right;
    		text-align: right;
    }

    .header__logo {
    		float: left;
    		width: 50px;
    		margin-right: 100px;
    }

    header #navicon, header #closeicon {
        display: none;
    }

    #mobile-search-row input {
    	display: none;
    }

}

.social-icon-menu {
    display:inline;
    margin-left : 10px;
}

.social-icon-menu a {
    margin-left : 5px;
}

.social-icon-menu a:hover {
    color : #B96;
}

.pinterest-button {
    background : white;
    border-radius: 50%;
    color : #E60023;
    z-index: 1000;
    position:relative;
    top: 25px;
    left: 10px;
    opacity: 0.0;
    filter: alpha(opacity=0); /* For IE8 and earlier */
}

.pinterest-button:hover {
    cursor:pointer;
}

.article-image:hover .pinterest-button {
    opacity: 1;
    filter: alpha(opacity=100); /* For IE8 and earlier */
}


@media screen and (min-width:1024px) {
}

/******************************************************************************************
* NAVIGATION code here
* in order to be consitent with body, use media screen etc... to set width & padding
******************************************************************************************/

@media screen and (min-width: 1024px) {
}

@media screen and (min-width: 600px) {
    #navicon {
        padding: 16px 20px;
    }
}

/******************************************************************************************
* Project container
******************************************************************************************/



/******************************************************************************************
* Items
******************************************************************************************/
.item {
    width: 100%;
    margin-bottom: 0;
}

@media screen and (min-width: 620px) and (max-width: 919px) {
    .item {
        float: left;
        width: 47.41379%;
        margin-right: 5.17241%;
    }

    .item:nth-child(2n+2) {
        margin-right: 0%;
    }
}

@media screen and (min-width: 920px) and (max-width: 1199px)  {
    .item {
        float: left;
        width: 20.40816%;
        margin-right: 6.12245%;
    }

    .item:nth-child(4n+4) {
        margin-right: 0%;
    }
}

@media screen and (min-width: 1200px) {
    .item {
        float: left;
        width: 16.12903%;
        margin-right: 4.83871%;
    }

    .item:nth-child(5n+5) {
        margin-right: 0%;
    }
}



/******************************************************************************************
* IMAGES code here
******************************************************************************************/


.image_container {
    /*background: orange;*/
    object-fit: cover;
    float: left;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 0px;
}

.img_wrapper {
    width : 100%;
    height : 100%;
}

.img_wrapper a {
    display : block;
    width : 100%;
    height : 100%;
}

.img_wrapper a img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.article_name {
    color: #000;
    display : inline-block;
    width : 100%;
    margin-top : 5px;
    margin-bottom : 20px;
    opacity : 0;
    transition: opacity 0.4s ease;
    left: 0px;
    bottom: 1.5px;
}

.item:hover .article_name{
    opacity : 1;
}


h1 {
    color: #000;
    font-size: 1.8em;
    line-height: 1.2em;
    font-weight: 300;
}

h2 {
    color: #000;
    font-size: 1.2em;
    line-height: 1.0em;
    font-weight: 300;
}

small {
    font-size: 1.4em;
    line-height: 1em;
    font-weight: 300;
}

/******************************************************************************************
* THUMB class
******************************************************************************************/

.thumb {
    width:100%;
    overflow:visible;
}

.thumb img {
    width: 100%;
    margin-bottom:30px;
}

@media all and (max-width:735px) {
  .thumb img {
      margin-bottom:0px;
  }

  .thumb span {
      opacity:1;
      display:block;
      line-height: 18px;
      color:black;
      margin-top: 15px;
      margin-bottom: 40px;
      font-weight: 600;
  }
  .article_name {
    margin-top:0;
    margin-bottom:12px;
  }
}
@media all and (min-width:736px) {
    .thumb {
        float: left;
        position: relative;
        margin-bottom: 60px;
        margin-top: 0px;
        min-height: 250px;
    }

    .thumb .sqr {
        width: 100%;
    }

    .thumb .sqr:after {
        content: "";
        display: block;
        padding-bottom: 100%;
    }

    /* ook */
    .thumb img {
        max-height: 100%;
        max-width: 100%;
        height: auto;
        width: auto;
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        box-sizing: border-box;
        margin: auto;
    }

    .thumb span {
        display : none;
    }

    .thumb:hover span {
        opacity:1;
        position:absolute;
        bottom: 0;
        left: 0;
        display:block;
        line-height: 18px;
        color:black;
    }

    .touch .thumb span {
        opacity: 0;
    }
}

@media all and (min-width: 736px) and (max-width: 979px) {
  .thumb {
      width: 47.41379%;
      margin-right: 5.17241%;
  }

  .thumb:nth-child(2n + 2) {
      margin-right: 0%;
  }

  .thumb:nth-child(2n + 3) {
      clear: both;
  }
}

@media all and (min-width: 980px) and (max-width: 1279px) {
  .thumb {
      width: 28.02198%;
      margin-right: 7.96703%;
  }

  .thumb:nth-child(3n + 3) {
      margin-right: 0%;
  }

  .thumb:nth-child(3n + 4) {
      clear: both;
  }
}

@media all and (min-width: 1280px) and (max-width: 1689px) {
  .thumb {
      width: 20.40816%;
      margin-right: 6.12245%;
  }

  .thumb:nth-child(4n + 4) {
      margin-right: 0%;
  }

  .thumb:nth-child(4n + 5) {
      clear: both;
  }
}

@media all and (min-width: 1690px) {
  .thumb {
      width: 16.12903%;
      margin-right: 4.83871%;
  }

  .thumb:nth-child(5n + 5) {
      margin-right: 0%;
  }

  .thumb:nth-child(5n + 6) {
      clear: both;
  }
}



.intro {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 50;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
}

.intro p {
    opacity: 1;
    width: 80%;
}

@media all and (max-width: 599px) {
    .intro p {
        width: 80%;
    }
}

.intro p span {
    opacity: 0;
}

.intro {
    font-family: "KT Aldus Beta 100", serif;
    letter-spacing: .018em;
}

@media all and (min-width: 1401px) {
    .intro {
        font-size: 40px;
        font-size: 2.08333vw;
    }
}

@media all and (min-width: 961px) and (max-width: 1400px) {
    .intro {
        font-size: 40px;
        font-size: 2.7027vw;
    }
}

@media all and (min-width: 600px) and (max-width: 960px) {
    .intro {
        font-size: 40px;
        font-size: 3.90625vw;
    }
}

@media all and (max-width: 599px) {
    .intro {
        font-size: 36px;
        font-size: 6vw;
    }
}

#topText {
    margin-bottom: 2.8em;
}

@media all and (min-width: 1401px) {
    #topText {
        padding: 0 4% 0 51%;
    }
}

@media all and (min-width: 961px) and (max-width: 1400px) {
    #topText {
        padding: 0 4% 0 51%;
    }
}

@media all and (min-width: 600px) and (max-width: 960px) {
    #topText {
        padding: 0 4% 0 32%;
    }
}

@media all and (max-width: 599px) {
    #topText {
        /* padding: 0 4% 0 4%; */
    }
}

#topText {
    font-family: "Punctuation Sans", "K&Co 200", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-weight: normal;
}

@media all and (min-width: 1401px) {
    #topText {
        font-size: 17px;
        font-size: 0.88542vw;
        line-height: 30px;
        line-height: 1.5625vw;
    }
}

@media all and (min-width: 961px) and (max-width: 1400px) {
    #topText {
        font-size: 17px;
        font-size: 1.14865vw;
        line-height: 28px;
        line-height: 1.89189vw;
    }
}

@media all and (min-width: 600px) and (max-width: 960px) {
    #topText {
        font-size: 17px;
        font-size: 1.66016vw;
        line-height: 30px;
        line-height: 2.92969vw;
    }
}

@media all and (max-width: 599px) {
    #topText {
        font-size: 19.5px;
        font-size: 3.25vw;
        line-height: 30px;
        line-height: 5vw;
    }
}

#topText h2 {
    font-family: "K&Co 200", sans-serif;
    font-weight: normal;
    letter-spacing: .016em;
    margin-bottom: 0.64em;
}

@media all and (max-width: 599px) {
    #topText h2 {
        margin-bottom: 0.6em;
    }
}

#topText p {
    margin: 0;
}

#topText h2 {
font-family: "K&Co 200", sans-serif;
font-weight: normal;
letter-spacing: .016em;
margin-bottom: 0.64em;
}

@media all and (min-width: 1401px) {
    h2 {
        font-size: 30px;
        font-size: 1.5625vw;
        line-height: 35px;
        line-height: 1.82292vw;
    }
}

@media all and (min-width: 961px) and (max-width: 1400px) {
    h2 {
        font-size: 30px;
        font-size: 2.02703vw;
        line-height: 35px;
        line-height: 2.36486vw;
    }
}

@media all and (min-width: 600px) and (max-width: 960px) {
    h2 {
        font-size: 30px;
        font-size: 2.92969vw;
        line-height: 35px;
        line-height: 3.41797vw;
    }
}

@media all and (max-width: 599px) {
    h2 {
        font-family: "K&Co 150", sans-serif;
        font-size: 34.3px;
        font-size: 5.71667vw;
        line-height: 38px;
        line-height: 6.33333vw;
        letter-spacing: -.03em;
    }
}

.swiper-container {
    width: 100%;
}

.swiper-slide {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    background-size: cover;
    background-position: 50% 50%;
}


* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

.front-container {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 1fr;
    /*overflow: auto;*/
    padding: 65px 20px 20px;
    height: 100%;
    width:100%;
}

.main_container {
    overflow: auto;
    padding: 65px 20px 20px;
    height: 100%;
    width:100%;
}

.image-caption {
    padding-top: 10px;
    color : #b96;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.image-copy {
    /*color : #b96;*/
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}









