@charset "utf-8";
@import url(css/reset.css);

* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", HGS明朝E, メイリオ, Meiryo, serif;
}

a {
    color: #000;
    text-decoration: none;
}

a,
a img {
    -webkit-transition: .3s;
    transition: .3s;
}

img {
    width: 100%;
    height: auto;
}

.pc {
    display: none !important;
}

.sp {
    display: block !important;
}

.nw {
    display: inline-block;
}

html,
body,
#page,
.home #content,
.home #content .inner,
.home #content .inner .bg-img,
.inquiry #content.thanks,
.inquiry #content.thanks .inner {
    height: 100%;
}

#content,
#content .inner {
    min-height: 100%;
}

#page {
    position: relative;
    z-index: 1;
}

#header-logo {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 15px 0;
    background: #000;
    z-index: 1000;
}

#header-logo h1 {
    margin-left: 10px;
}

#header-logo h1,
#header-logo h1 a {
    width: 168px;
    height: 30px;
}

#header-logo h1 img {
    margin: 0 auto;
    width: auto;
    height: 30px;
    -webkit-transition: .3s;
    -webkit-transition: .3s;
    transition: .3s;
}

#header-logo h1 img:hover {
    opacity: .6;
}


.home #header-logo {
    padding: 0;
    background: transparent;
}

.home #header-logo h1 {
    display: none;
}


.gNav {
    display: none;
}

.home #content {
    margin-top: 0;
}

#content {
    position: relative;
    z-index: -1;
}

#content .bg-img {
    position: relative;
    z-index: -1;
}

#content .bg-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

#content .inner .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 600px;
}

#content .inner {
    padding: 60px 5%;
    background: #f6f6f6;
}

.home #content .inner {
    padding: 0;
    background: transparent;
}

#content .page-header {
    font-size: 3rem;
    letter-spacing: .7rem;
    text-align: center;
    line-height: 1.5;
}

article + .page-header {
    margin-top: 60px;
}

/**********************************************************************
サービス・取り組み
*/

.service .service {
    width: 100%;
    margin: 50px auto 0;
    padding: 4% 3%;
    background: #fff;
}

.service article .service-title {
    font-size: 1.8rem;
    font-family: sans-serif;
}

.service article p {
    font-size: 1.6rem;
    line-height: 1.6;
}

.service article .service-title + p {
    margin-top: 10px;
}

.service .service + .service {
    margin-top: 30px;
}

.service .infection-control nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.service .infection-control li {
    width: 47%;
}

.service .infection-control li:nth-of-type(n+3) {
    margin-top: 5%;
}

.service .infection-control p {
    margin-top: 60px;
}

.service .infection-control p + nav {
    margin-top: 30px;
}

/**********************************************************************
施工例
*/

.case article {
    margin-top: 60px;
    padding: 4%;
    background: #fff;
}

.case article h3 {
    padding: 2% 3%;
    font-size: 1.8rem;
    font-family: sans-serif;
    background: #000;
    color: #fff;
}

.case article .case-title {
    padding: 10px;
    text-align: center;
}

.case article .case-detail {
    margin-top: 4%;
}

.case article + article {
    margin-top: 60px;
}

.case article .arrow {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 30px 0 30px;
    border-color: #c0c0c0 transparent transparent transparent;
    margin: 15px auto 10px;
}


.case article img {
    width: 100%;
    height: auto;
}

/**********************************************************************
会社概要
*/

.about table,
.about tbody,
.about table tr,
.about table th,
.about table td {
    display: block;
}

.about table {
    margin: 60px auto 0;
    max-width: 750px;
}

.about table th {
    color: #fff;
    font-size: 1.4rem;
    text-align: left;
    border-top: 1px solid #aaa;
    font-family: sans-serif;
    font-weight: 400;
    letter-spacing: .15rem;
}

.about table tr span {
    display: inline-block;
    background: #aaa;
    padding: 3px 10px;
}

.about table tr:nth-of-type(n+2) {
    margin-top: 30px;
}

.about table td {
    margin-top: 5px;
    padding: 0 3%;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: .1rem;
}

.about .greeting {
    margin: 60px auto 0;
    padding: 5%;
    background: #fff;
    max-width: 750px;
}

.about .greeting h3 {
    font-size: 2rem;
    letter-spacing: .15rem;
}

.about .greeting p {
    margin-top: 30px;
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: .1rem
}

.map {
    margin-top: 60px;
    height: 0;
    overflow: hidden;
    padding-bottom: 100%;
    position: relative;
}

.map iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

/**********************************************************************
お問い合わせ
*/

#mfp_hidden {
    display: none;
}

.mfp_err {
    display: none;
    margin-top: 5px;
    color: #e00;
    font-size: 1.2rem;
    font-family: sans-serif;
}

.must {
    display: inline-block;
    margin-right: 5px;
    padding: 3px 5px;
    background: #c00;
    border-radius: 3px;
    color: #fff;
    font-family: sans-serif;
    font-size: 1.2rem;
}

.inquiry article {
    margin: 60px auto 0;
    width: 100%;
}

.mailform {}

.mailform dt {
    border-top: 1px solid #ddd;
    font-size: 1.6rem;
    padding: 3% 5% 0 5%;
}

.mailform dd {
    padding: 2% 5% 3% 0;
}

.mailform dt:nth-of-type(odd),
.mailform dd:nth-of-type(odd) {
    background: #fff;
}

.mailform dt:nth-of-type(even),
.mailform dd:nth-of-type(even) {
    background: #f5f5f5;
}

.mailform .mfp_rows {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
}

.mailform .mfp_col10 {
    width: 100%;
}

.mailform .mfp_col5 + .mfp_col5 {
    margin-left: 30px;
}


.mailform input[type="radio"] {
    vertical-align: baseline;
}

.mailform input[type="text"],
.mailform input[type="email"],
.mailform input[type="tel"],
.mailform textarea {
    padding: 5px;
    font-family: sans-serif;
    font-size: 1.6rem;
    width: 100% !important;
    display: block !important;
}

.mailform label {
    font-size: 1.6rem;
}

.mfp_buttons {
    margin-top: 30px;
    text-align: center;
}

.mfp_buttons button[type="submit"] {
    font-size: 1.6rem;
    padding: 5px 20px;
}

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;
    -webkit-box-shadow: 0px 0px 10px #000;
    box-shadow: 0px 0px 10px #000;
    width: 90%;
    max-width: 800px;
}

div#mfp_overlay_inner h4 {
    font-size: 1.8rem;
    text-align: center;
    font-family: sans-serif;
}

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);
}

table#mfp_confirm_table {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
    margin-top: 30px;
}

table#mfp_confirm_table tr.mfp_colored {
    background-color: #F6F7F9;
}

table#mfp_confirm_table tr.mfp_achroma {
    background-color: #FFF;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
    text-align: left;
    font-size: 1.6rem;
    border-top: solid 1px #CCC;
    padding: 5px 10px;
}

table#mfp_confirm_table tr th {
    white-space: nowrap;
    width: 150px;
}

table#mfp_confirm_table tr td {
    line-height: 1.8;
    word-break: break-all;
}

.inquiry p {
    font-size: 1.6rem;
    line-height: 1.6;
}

.inquiry p + p {
    margin-top: 30px;
}

/**********************************************************************
スマホナビゲーション
*/

#menu {
    list-style-type: none;
    width: 100%;
    background: #000;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 990;
    display: none;
}

.home #menu {
    top: 0;
}

#menu li {
    text-align: center;
    font-size: 1.6rem;
}

#menu li a {
    text-decoration: none;
    display: block;
    padding: 22px 0;
    color: #fff;
}

#menu li a:hover {
    background: #a9a9a9;
}




/**********************************************************************
ハンバーガーボタン
*/

#sp-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 999;
    -webkit-transition: .3s;
    transition: .3s;
}

#sp-icon:hover {
    cursor: pointer;
}

#sp-icon span,
#sp-icon span:before,
#sp-icon span:after {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: #fff;
    position: absolute;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

#sp-icon span {
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#sp-icon span:before {
    content: "";
    -webkit-transform: translateY(-7px) rotate(0deg);
    transform: translateY(-7px) rotate(0deg);
}

#sp-icon span:after {
    content: "";
    -webkit-transform: translateY(7px) rotate(0deg);
    transform: translateY(7px) rotate(0deg);
}


div.sp-open span {
    background: transparent !important;
}

div.sp-open span:before {
    -webkit-transform: rotate(45deg) !important;
    transform: rotate(45deg) !important;
}

div.sp-open span:after {
    -webkit-transform: rotate(-45deg) !important;
    transform: rotate(-45deg) !important;
}


#fakeLoader img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 240px;
    height: auto;
    opacity: 0;
    -webkit-animation: loadingLogo 3s ease 0s 1 forwards;
    animation: loadingLogo 3s ease 0s 1 forwards;
}

@-webkit-keyframes loadingLogo {
    25% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes loadingLogo {
    25% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

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

    #sp-icon,
    .sp {
        display: none !important;
    }

    .pc {
        display: block !important;
    }

    #header-logo {
        position: fixed;
        top: 0;
        left: 0;
        width: 10%;
        height: 100%;
        padding: 0;
        background: #fff;
    }

    #header-logo h1 {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: 50%;
        height: auto;
        margin-left: 0;
    }

    #header-logo h1 a {
        width: 100%;
        height: 100%;

    }

    #header-logo h1 img {
        margin: 0;
        width: auto;
        height: auto;
    }

    .home #header-logo {
        display: inherit;
    }

    .home #header-logo h1 {
        display: inherit;
    }

    .gNav {
        display: inherit;
        position: absolute;
        top: 0;
        left: 10%;
        width: 90%;
        background: #f6f6f6;
    }

    .gNav ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        padding: 30px 50px;
    }

    .gNav ul li {
        margin-right: 30px;
        font-size: 1.6rem;
    }

    .gNav ul li:last-child {
        margin-right: 0;
    }

    .gNav ul li a {
        color: #000;
        text-decoration: none;
    }

    .home .gNav {
        background: transparent;
    }

    .home .gNav ul li a {
        color: #fff;
    }


    .gNav ul li a:hover {
        opacity: .7;
    }

    #content {
        margin-left: 10%;
        padding-top: 76px;
    }

    .home #content {
        padding-top: 0;
    }

    /**********************************************************************
サービス・取り組み
*/
    .service article {
        width: 100%;
        max-width: 750px;
        margin: 60px auto 0;
    }

    .service .service {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: 30px;
    }

    .service article .service-title {
        font-size: 2rem;
        font-family: sans-serif;
    }

    .service article p {
        font-size: 1.6rem;
        line-height: 1.6;
        width: 80%;
    }

    .service article .service-title + p {
        margin-top: 0;
    }

    .service .infection-control li {
        width: 30%;
    }

    .service .infection-control li:nth-of-type(n+3) {
        margin-top: 0;
    }

    .service .infection-control li:nth-of-type(n+4) {
        margin-top: 25px;
    }

    .service .infection-control p {
        margin-top: 60px;
    }

    /**********************************************************************
施工例
*/
    .case article {
        width: 100%;
        max-width: 1000px;
        margin: 90px auto 0;
        padding: 30px;
    }

    .case article .case-title {
        padding: 15px 20px;
    }

    .case .case-detail {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-top: 30px;
    }

    .case article .arrow {
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 45px 0 45px 30px;
        border-color: transparent transparent transparent #c0c0c0;
        margin: 0 30px 0 35px;
    }

    /**********************************************************************
会社概要
*/

    .map {
        padding-bottom: 56.25%;
    }

    .about .greeting {
        padding: 30px;
    }

    /**********************************************************************
お問い合わせ
*/


    .inquiry article {
        max-width: 900px;
    }

    .mailform {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .mailform dt {
        width: 30%;
        padding: 30px 30px 0 30px;
    }

    .mailform dd {
        width: 70%;
        padding: 30px;
        border-top: 1px solid #ddd;
    }
}
