@charset "UTF-8";
/* CSS Document */

*{
    margin: 0;
    padding: 0;
    line-height: 1.0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Sawarabi Gothic";
	background-repeat: repeat;
    transition: 1s;
}
p { margin: 20px; line-height: 1.8;}
h1,h2,h3,h4 { line-height: 1.8;}
section h1:before {
  display: block;
  height: 6rem;
  margin-top: -6rem;
  content: "";
}

/* -----------------------------header */
header {
    width: 1200px;
    padding: 10px;
    margin: 0 auto;
}
header h1, header h1 a {
    width: 300px;
    height: 50px;
    margin: 0 auto;
}
header h1 a {
    display: block;
    background-image: url("../img/logo.png");
    background-size: contain;
	background-repeat: no-repeat;
}
header h1 a span {
    display: none;
}
header ul {
    list-style: none;
}
header ul li {
    display: inline-block;
}
header ul li a {
    color: #4f5542;
    text-decoration: none;
}
ul#snsicon {
    position: relative;
    right: 0;
    text-align: right;
}
ul#snsicon a {
    text-align: center;
    display: inline-block;
    font-size: 120%;
    width: 25px;
    height: 25px;
    color: #465229;
    border: 2px solid #465229;
    border-radius: 5px;
}
ul#snsicon li#instagram a {
    color: #fff;
    background: #465229;
}
ul#snsicon i {
    font-size: 110%;
    padding: 2px;
}
ul#menu {
    text-align: right;
}
ul#menu li {
    margin-left: 2em;
    letter-spacing: .1em;
}

/* -----------------------------contents */
div#mainimg {
    width: 100%;
    height: 400px;
    margin: 0;
    background: #293249;
	text-align: center;
}
div#mainimg img {
	margin-top: 130px;
}
section {
    width: 1200px;
    margin: 100px auto;
    color: #4f5542;
}
section h1 {
    text-align: center;
    color: #293249;
    font-size: 200%;
    font-weight: normal;
    margin: 40px 0;
    letter-spacing: .2em;
}

section#about div#aboutcon {
    min-height: 400px;
    background: url(../img/aboutbg2.png) no-repeat right center;
}
section#about h2 {
    margin: 20px;
    letter-spacing: .2em;
}
section#about p {
    width: 45%;
}

section#works ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
section#works ul li {
    display: inline-block;
    cursor: pointer;
    width: 395px;
	margin: 2px;
}
section#works img {
    width: 395px;
    height: 395px;
}
section#contact iframe {
    display: block;
    width:640px;
    height:870px;
    margin: 0 auto;
}

/* modalwindow start */
.modalset {
    overflow: hidden;
}
.workmodal {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}
.workmodal-wrap {
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    white-space: nowrap;
}
.workmodal-wrap::-webkit-scrollbar {
    display: none;
}
.workmodal-wrap:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 1px;
    height: 100%;
}
.workmodal-bg {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(51, 51, 51, 0.8);
    width: 100%;
    height: 100%;
}
.workmodal-box {
    width: 100%;
    max-width: 900px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-top: -20px;
}
.workmodal-box .inner {
    background: #fff;
    padding: 10px 20px 20px;
    text-align: left;
}
.workmodal-box .inner > :first-child {
    margin-top: 0;
}
.workmodal-box　.workmodal-close {
    text-align: right;
    font-size: 200%;
}
/* modalwindow end */

div.inner img {
    width: 100%;
}
div.workmodal-close {
    text-align: right;
    font-size: 130%;
    margin-bottom: 10px;
}
.workmodal-box .inner p {
    white-space: normal;
}
div.inner p.appl {
    background-color: #eee;
    font-size: 80%;
    padding: 3px 20px;
    border-radius: 20px;
}

/* -----------------------------footer */
footer {
    background: #293249;
    color: #fff;
    text-align: center;
    padding: 20px 0 60px;
}

/* -----------------------------etc */
body.change-color00 {background-color: #fff; background-image: none !important;}
body.change-color01 {background-color: #293249;background-image: url(../img/bg.png);}
body.change-color02 {background-color: #ccc;}
section#about h1.change-color-h101 {color: #fff;}
section#about h2.change-color-h201 {color: #fff;}
section#about p.change-color-p01 {color: #fff;}
section#works h1.change-color-h101 {color: #666;}
.dnone {display: none;}
.dblock {display: block !important;}
.pcb {display: block;}
.pciln {display: inline;}
.mbb {display: none;}
.mbiln {display: none;}

.pagetop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: none;
}
.pagetop a {
    font-size: 250%;
    color: #eee;
    opacity: .8;
}

.topfadeIn {
    animation-name: topfadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
@keyframes topfadeIn {
    0%{
        opacity: 0;
        transform: translate( 0px,-10px);
    }
    100%{
        opacity: 1;
        transform: translate( 0,0);
    }
}
