@charset "UTF-8";
/*
Theme Name: LOUPE
Description: LOUPE template
version: 1.0
Author: M.Sasaki
*/


/*幅と高さの計算を簡略化*/
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    --main-color: rgba(5,5,5,1.00);
    --sub-color: rgba(160,160,160,1.00);
    --link-color: rgba(70,70,70,1.00);
}



/* /// All /// */

body {
    margin: 0;
    color: var(--main-color);
    font-family: univers-next-pro, yu-gothic-pr6n, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0em;
    text-align: left;
    scrollbar-width: thin;
}
body {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    grid-template-rows: auto auto auto;
    grid-gap: 0;
}
a:hover, a:active, a:focus {
    color: var(--link-color);
}
a:link , a:visited {
    color: var(--link-color);
}
a {
    text-decoration: underline;
}
.link-whtlt {
    color: #fff;
}
.link-noul {
    text-decoration: none;
}

h1 {
    font-size: 1.5em;
    font-weight: 200;
    line-height: 1.5;
}
h2  {
    font-size: 1.3em;
    font-weight: 200;
}
h3  {
    font-size: 1.1em;
    font-weight: 200;
}
.border-top-darkgray {
    border-top: solid 2px var(--link-color);
    margin-top: 20px;
    padding-top: 40px;
}



/* /// header /// */

header {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    display: grid;
}
.top__logo {
    text-align: center;
    margin: 10px 0 30px 0;
}
.top__logo img {
    max-width: 350px;
    width: 50%;
    height: auto;
}


/*== Button */

.openbtn {
	position: fixed;
	top: 7px;
	right: 10px;
	z-index: 999;
	cursor: pointer;
	width: 50px;
	height: 50px;
}
.openbtn span {
	display: inline-block;
	transition: all.4s;
	position: absolute;
	left: 14px;
	height: 1px;
	border-radius: 3px;
	background: rgb(39,39,39);
	width: 45%;
}
.openbtn span:nth-of-type(1){
	top: 15px
}
.openbtn span:nth-of-type(2){
	top: 28px
}

.openbtn.active span:nth-of-type(1){
	top: 18px;
	left: 18px;
	transform: translateY(6px) rotate(-45deg);
	width: 30%
}
.openbtn.active span:nth-of-type(2){
	top: 30px;
	left: 18px;
	transform: translateY(-6px)	rotate(45deg);
	width: 30%;
} 
    

/*== navigation */


#navlinks-sp {
    word-spacing: 1em;
    position: fixed;
    z-index: -1;
    opacity: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: var(--main-color);
    transition: all 0.3s;
}
#navlinks-sp.panelactive {
    opacity: 1;
    z-index: 999;
}
#navlinks-sp.panelactive #navlinks-sp-list {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#navlinks-sp ul {
    display: none;
    position: absolute;
    z-index: 999;
    top: 45%;
    left: 48%;
    transform: translate(-50%,-50%);
    font-size: 1.3em;
    font-weight: 400;
    text-align: center;
    line-height: 2.5em;
}
#navlinks-sp ul li{
    display: block;
}
#navlinks-sp.panelactive ul{
    display: block;
}
.hamburger-nav {
    height: 40px;
    width: auto;
}

/*== Page top */

#page-top img {
    width: 40px;
    height: auto;
}
#page-top {
    position: fixed;
    right: 20px; 
    bottom: 20px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
}
#page-top.UpMove {
    animation: UpAnime 0.6s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#page-top.DownMove {
     animation: DownAnime 0.6s forwards;           
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(150px);
    }
}



/* /// main /// */

main {
    display: grid;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin: 0;
    
}
.top {
    display: flex;
    flex-direction: column-reverse;
    margin-inline: auto;
    max-width: 1200px;
}
.top__body {
    padding: 0;
    margin: 0;
}
.top__ttl {
    text-align: justify;
    margin: 5px 0 0 0;
}
.top__txt {
    margin: 10px 0 30px 0;
}
.top__img img {
    max-width: 100%;
    height: auto;
}
.top__img {
    padding: 0;
}


/* /// footer /// */

footer {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
    font-size: 0.75em;
    font-weight: 200;
    text-align: right;
    color: var(--sub-color);
    padding: 30px 20px 10px 0px;
}




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

 
/* /// All /// */
    
body {
    font-size: 0.9em;
    line-height: 1.7;
}

/* /// header /// */

.top__logo {
    margin: 20px 0 50px 0;
}
.top__logo img {
    max-width: 200px;
}

/* /// main /// */

.top {
    flex-direction: row-reverse;
}
.top._reverse {
    flex-direction: row;    
}
.top__body {
    width: cal(50% + 15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 70px 10px -15px;
    padding-left: 30px;
}
.top__body._reverse {
    width: cal(50% + 15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    margin: 0 -15px 10px 70px;
    padding-right: 30px;
}
.top__ttl,
.top__txt {
    max-width: 500px;
}
.top__ttl._reverse,
.top__txt._reverse {
    max-width: 500px;
}
.top__img {
    width: 50%;
    text-align: center;
    padding: 0;
    margin: -10px 0 -10px 0;
}


/* /// footer /// */

footer {
    grid-column: 2 / 3;
    padding: 60px 0px 40px 0px;
}
}


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


/* /// All /// */
    

body {
    font-size: 0.9em;
    line-height: 1.8;
}
body {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
}
    
    
/*== slick arrow */
.slick-next {
    border-top: 0px;
    border-right: 0px;
}


/*== Page top */

#page-top {
    position: fixed;
    right: 40px; 
    bottom: 50px;
    transform: translateY(150px);
}
.top__body {
    margin: 0 70px 20px -15px;
    padding-left: 30px;
}
.top__body._reverse {
    margin: 20px -15px 0 70px;
    padding-right: 30px;
}
.top__img {
    margin: -25px 0 -25px 0;
}
.top__img img {
    max-width: 80%;
    height: auto;
}

    
/* /// header /// */

.top__logo {
    margin: 20px 0 80px 0;
}

/*== Button */

.btnline {
    position: relative;
    color: rgbrgb(202,202,202);
    padding: 0px 1px 1px 1px;
    text-decoration: none;
    outline: none;
}
.btnline::before, .btnline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgb(202,202,202);
    width: 0px;
    height: 2px;
    transition:all 0.3s ease-in-out;
}

.btnline:hover::before, .btnline:hover::after {
    width: 100%
}

    
/* /// main /// */


.top__ttl,
.top__txt {
    margin: 0 200px 10px -30px;
}
.top__ttl._reverse,
.top__txt._reverse {
    margin: 0 -30px 10px 200px;
}
.top__img {
    margin: -30px 0 -60px 0;
}

    
/* /// navigation /// */

#navlinks-sp ul {
    font-size: 1.4em;
    line-height: 3em;
    font-weight: 300;
    top: 50%;
}
.hamburger-nav {
    height: 45px;
}
}
