@charset "utf-8";

*,*:before,*:after{ margin: 0 ; padding: 0; box-sizing: border-box; }
img{ max-width: 100%; height: auto; }
a{ text-decoration:none; color: inherit; }

body {
    font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
    font-size: 100%;
    font-weight: 400;
}

.abel {
    font-family: 'Abel', sans-serif;
    font-weight: 400 !important;
    font-style: normal !important;
}
.min {
    font-family: 'Scheherazade', serif;
    font-weight: 400 !important;
    font-style: normal !important;
}

.header {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4vw;
    z-index: 100;
    width: 180px;
    overflow-y: auto;
    color: #FFF;
    text-align: center;
}
.header .navBox {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo h1{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: transparent;
    font: 0/0 aa;   
    width:100%;
    height:100%;
    background-repeat:no-repeat;
    background-size: contain;
    position: relative;
}
.header .logo h1 {
    background-image: url(/common/img/logo-w.svg);
    background-position: center center;
    height: 180px;
}
.header nav ul {
    padding: 30px;
}
.header nav li {
    line-height: 40px;
}

.header-change{
    position: fixed;
    top: -70px;
    z-index: 100;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 20px;
    transition: .5s;
    width: 100%;
}
.header-change .navBox{
    display: flex;
    justify-content: space-between;
}
.header-change.show{
    top: 0;
}
.header-change .logo {
    width: 240px;
    height:30px;
}
.header-change .logo h1 {
    background-image: url(/common/img/logo-small.svg);
    background-position: left center;
}
.header-change nav ul {
    display: flex;
    align-items: center;
}
.header-change nav li {
    line-height: 30px;
}

nav li a {
    display: block;
    letter-spacing: .75pt;
    padding: 0 1.5em;
}

#opening {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    opacity: 1;
    animation:  opening-fadeout 2s ease-in-out 7s 1 forwards;
}
#opening #overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    background-repeat: no-repeat;
    background-position: center -200px;
    background-size: 600px;
    opacity: 1;
    animation:  opening-bg .2s ease-in-out 1s 1 forwards,
                opening-overlay-fadeout 1s ease-in-out 7s 1 forwards;
}
@keyframes opening-bg {
    100% { background-image: url(/common/img/bg.png); }
}
@keyframes opening-fadeout {
    99% { opacity: 0; }
    100% { opacity: 0; z-index: -2; }
}
@keyframes opening-overlay-fadeout {
    100% { opacity: 0; }
}
#star {
    width: 240px;
    height: 240px;
    margin: 20px auto;
    position: relative;
    visibility: visible;
    transform-origin:center center;
    animation:  spin 1s linear 6s 5 forwards;
}
#star img {
    vertical-align: bottom;
    transform-origin: center bottom;
    animation: scale 2.5s linear 6.5s 1 forwards;
}
#star > div {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 30%;
    transform-origin:center bottom;
    opacity: 0;
}
#star > div:nth-of-type(1) {
    bottom: -30%;
    width: 60%;
    transform: translateX(-50%) rotate(0);
    
    animation: opening-fadein 1s ease 1s 1 forwards,
               opening-scale 1s ease 4s 1 forwards;
}
#star > div:nth-of-type(2) {
    transform: translateX(-50%) rotate(72deg);
    
    animation: opening-fadein 1s ease 4.25s 1 forwards;
}
#star > div:nth-of-type(3) {
    transform: translateX(-50%) rotate(144deg);
    
    animation: opening-fadein 1s ease 4.5s 1 forwards;
}
#star > div:nth-of-type(4) {
    transform: translateX(-50%) rotate(216deg);
    
    animation: opening-fadein 1s ease 4.75s 1 forwards;
}
#star > div:nth-of-type(5) {
    transform: translateX(-50%) rotate(288deg);
    
    animation: opening-fadein 1s ease 5s 1 forwards;
}
@keyframes opening-fadein {
    100% { opacity: 1; visibility: visible; }
}
@keyframes opening-scale {
    100% { bottom: 50%; width: 30%; }
}
@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg)}
}
@keyframes scale {
    0% {transform: scale(1);}
    100% {transform: scale(0);}
}

#logo {
    width: 320px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    animation: opening-fadein 1s ease 1s 1 forwards,
             opening-logo-fadeout 1s ease 3.5s 1 forwards;
}
@keyframes opening-logo-fadeout {
    100% { margin: 0 auto -120px; opacity: 0; }
}


#mv {
    width: 100%;
    height: 100vh;
    padding: 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#content {
    background-color: #FFF;
}
.block {
    padding-top: 100px;
    position: relative;
}
.content-title {
    font-size: 8vw;
    padding: 0 5vw;
    position: relative;
}
.content-title::before {
    content: '';
    display: block;
    position: absolute;
    top: .25em;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}
.content {
    margin: 0 auto;
    padding: 5vw 10vw;
    line-height: 2;
}

#about {
    text-align: center;
}

#service dl {
    text-align: center;
}
#service dl:not(:last-of-type) {
    margin-bottom: 4em;
}
#service dl dt {
    font-weight: 600;
    margin-bottom: .5em;
}
#service dl dt em {
    font-size: 3em;
    display: block;
    color: #DBDBDB;
    line-height: 1;
}
#service dl dt span {
    font-size: .75em;
    display: block;
    line-height: 1.5;
    letter-spacing: 1.5pt;
    color: #424242;
}

#company {
    font-size: 83%;
}
#company table {
    margin: 0 auto;
}
#company table th,
#company table td {
    padding: .25em;
}
#company table th {
    text-align: left;
    padding-right: 1.5em;
    white-space: nowrap;
    letter-spacing: .5pt;
}
#company table td img {
    vertical-align: bottom
}

#map_canvas {
    width: 100%;
    height: 480px;
}


#contact {
    background: #000;
    color: #FFF;
}
#contact .content-title::before {
    background: #FFF;
}

footer .copy {
        font-size: 10px;
        display: inline-block;
        top: 50%;
        right: 4vw;
        position: fixed;
        transform: translateX(50%) rotate(-90deg);
        transform-origin: center center;
}

form {
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}
form .must {
    display: inline-block;
    font-size: .75em;
    padding: .25em .75em;
    margin-right: .5em;
    background: #3c6382;
    border-radius: 3px;
}
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea, select {
    font-family: "Noto Sans JP", sans-serif;
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 16px;
    padding: 6px 11px;
    width: 100% !important;
    -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
      outline: 0;
      border-color: transparent;
}
textarea {
    min-height: 120px !important;
}
button {
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 16px;
    padding: 6px 11px;
    margin: 10px 0;
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
}
button[type="submit"],
#mfp_button_send {
    background: #3c6382;
    color: #FFF;
}
button[type="reset"],
#mfp_button_cancel {
    border: 2px solid #3c6382;
    color: #3c6382;
}
form dt {
    margin-bottom: .25em;
}
form dd {
    margin-bottom: 1.5em;
}
.mfp_buttons {
    display: flex;
}
.mfp_err {
    font-size: .75em;
    color: #e55039;
}
table#mfp_confirm_table {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
}
table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
    text-align: left;
    font-size: 12px;
    border-top: solid 1px #DBDBDB;
    padding: 5px 10px;
}
table#mfp_confirm_table tr:last-of-type th,
table#mfp_confirm_table tr:last-of-type td {
    border-bottom: solid 1px #DBDBDB;
}
table#mfp_confirm_table tr th {
    white-space: nowrap;
    width: 200px;
}
table#mfp_confirm_table tr td {
    line-height: 1.5em;
    word-break: break-all;
}

div#mfp_overlay {
    position: absolute;
    display: none;
    z-index: 10001;
}
div#mfp_overlay_inner {
    background-color: #FFF;
    padding: 15px;
    margin: 0px auto;
    border-radius: 5px;
    box-shadow: 0px 0px 10px #000;
    width: 480px;
    max-width: 90%;
}
div#mfp_overlay_inner h4 {
    padding: 10px 0px 20px;
    text-align: center;
}
div#mfp_overlay_background {
    background-color: #000;
    position: absolute;
    display: none;
    z-index: 10000;
}
div#mfp_loading_screen {
    z-index: 20000;
    opacity: 0.8;
    display: none;
    background-color: #000;
    position: absolute;
}
div#mfp_loading {
    z-index: 20001;
    position: absolute;
    display: none;
    width: 40px;
    height: 40px;
    background-image: url(_images/mfp_loading.gif);
}

#thanks .content {
    text-align: center;
}
#thanks .content p {
    margin-bottom: 2em;
}
#thanks .content a {
    border-bottom: 1px solid #000;
}

@media screen and (max-width: 599px) {
    .header {
        top: 10vw;
        bottom: 10vw;
        left: 50%;
        margin-left: -90px;
    }
    .header .navBox {
        justify-content: space-between;
    }
    .header .navBox ul {
        padding: 0 30px;
    }
    .header-change {
        top: -50px;
        padding: 10px 20px;
    }
    .header-change nav ul li:not(:last-of-type) {
        display: none;
    }
    .header-change nav ul li a {
        padding: 0 0 0 1.5em;
    }

    .block {
        min-height: inherit;
        padding-top: 80px;
    }
    .content {
        padding: 10vw;
    }
    .content-title {
        font-size: 16vw;
        padding-left: 10vw;
    }
    #service dl:not(:last-of-type) {
        margin-bottom: 2em;
    }

}

