html {
    font-size: 62.5%;
    /*scroll-behavior: smooth;*/
}

body {
    font-family: "游ゴシック Medium", "Yu Goshic Medium", "游ゴシック体", YuGoshic, sans-serif;
    /*font-family: 'Noto Sans JP', sans-serif;*/
    margin: 0 auto;
    font-size: 1.4rem;
    text-align: center;
    line-height: 2.8rem;
    overflow-x: hidden;
}

.sp {
    display: none;
}

p {
    margin: 0;
    text-align: left;
}

a {
    color: black; 
}

body > div >img:nth-of-type(1) {
    width: 100%;
}


/*first*/

.first {
    position: relative;
}

.first > img:nth-child(1) {
    /*width: 100%;*/
    
    max-width: 100%;
    object-fit: cover;
    height: 100vh;
}

.logo-img {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 35%;
    left: 50%;
    width: 30%;
    max-width: 481px;
}

.logo-img img {
    /*width: 481px;*/
    width: 100%;
}


/*div.first-fadein*/

.fade-in-bottom {
   opacity: 0;
   animation-name: fadein-bottom;
   animation-duration: 1.5s;
   animation-timing-function: ease-out;
   animation-fill-mode: forwards;
   animation-delay: 0.3s;
}
@keyframes fadein-bottom {
   0% {
      opacity: 0;
      transform: translateY(20px);
   }
   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

.fade-in {
    opacity: 0;
    animation-name: fadein-2;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}
@keyframes fadein-2 {
    0% {
        opacity: 0;
        transform: scale(1.1);
   }
   100% {
    opacity: 1;
    transform: scale(1);
   }
}


/*first以下fadein*/

.fadein.to-left {
    opacity: 0;
    transform : translate(50px, 0);
    transition : all 1.2s;
}

.fadein.to-top {
    opacity: 0;
    transform : translate(0, 70px);
    transition : all 1s;
}

.fadein.to-top:nth-of-type(2) {
    -moz-transition-delay: 200ms;
    -webkit-transition-delay: 200ms;
    -o-transition-delay: 200ms;
    -ms-transition-delay: 200ms;	
}

.fadein.scrollin {
    opacity : 1;
    transform : translate(0, 0);
}


/*philosophy and business flex*/

.content-block {
    display: flex;
    justify-content: space-evenly;
    max-width: 1280px;
    margin: 3% auto;
}

.content-block > div {
    width: 40%;
}

.content-block > div > p.title {
    font-size: 2.2rem;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 600;
}

.content-block > div > img {
    width: 100%;
    border-radius: 20px;
    margin: 10px 0;
}

.content {
    width: 100%;
    height: 30vw;
    max-height: 360px;
    background-size: 160%;
    background-repeat: no-repeat;
    background-position: center top;
    border-radius: 20px;
    margin: 10px 0;
}

.c1-1 {
    background-image: url('images/img_A01.jpg');
}

.c1-2 {
    background-image: url('images/img_A02.jpg');
}

.c2-1 {
    background-image: url('images/img_A03.jpg');
}

.c2-2 {
    background-image: url('images/img_A04.jpg');
}


/*philosophy*/

.philosophy {
    margin: 5% 0;
    padding-top: 10px;
}


/*title*/

.philosophy > div:nth-of-type(1),
.business > div:nth-of-type(1),
.company > div:nth-of-type(1) {
    position: relative;
}

.p-eng-title {
    color: #5ab43c;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 1.7px;
    display: inline-block;
}

.business > div > .p-eng-title {
    color: yellow;
}



.p-title {
    font-size: 3.6rem;
    text-align:  center;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 1.6rem 0;
    display: inline-block;
    /*position: relative;*/
}

img.title-img {
    width: 70px;
    position: absolute;
    bottom: 0;
    left: calc(50% - 110px);
    transform: translateX(-100%);
}

.business img.title-img {
    width: 75px;
    bottom: 1.3rem;
    left: calc(50% + 15px);
    transform: translateX(100%);
}

.company img.title-img {
    width: 75px;
    bottom: 1.6rem;
    left: calc(50% - 90px);
}


/*business*/

.business {
    background-color: #5ab43c;
    color: white;
    margin: 5% 0;
    padding: 5% 0;
}

/*.business > div:nth-of-type(2) {
    margin-top: 5%;
}*/

p.p-contact {
    color: yellow;
    text-align: center;
    font-size: 2.0rem;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 600;
}

div.contact {
    text-align: left;
}

div.contact > div > a {
    background-color: white;
    color: #5ab43c;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.contact > div > a > p {
    position: relative;
    font-size: 1.7rem;
    display: inline-block;
    line-height: 50px;
    transform: translateX(-50%);
    margin-left: calc(50% + 35px);
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 600;
}

.contact > div:nth-of-type(2) > a > p {
    margin-left:  calc(50% + 20px);
}


.contact > div:nth-of-type(1) > a > p:before {
    content: "";
    display: inline-block;
    width: 35px;
    height: 27px;
    background-image: url('images/mail.png');
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translate(-100%, -50%);
}

.contact > div:nth-of-type(2) > a > p:before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 25px;
    background-image: url('images/tel.png');
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translate(-100%, -50%);
}


/*company*/

.company {
    margin: 5% 0;
    padding-top: 10px;
}

.company > p {
    text-align: center;
    max-width: 90%;
    margin: 40px auto;
}

.company table {
    margin: 0 auto;
}

.company th {
    color: #5ab43c;
    font-weight: normal;
    text-align: right;
    padding-bottom: 32px;
    vertical-align: top;
}

.company td {
    text-align: left;
    vertical-align: top;
    padding-left: 25px;
}

.company ul {
    padding-inline-start: 25px;
    margin: 0;
}

.company img:nth-of-type(2) {
    width: 100%;
}

.company > div:nth-of-type(2) {
    border-bottom: solid 1px #ddd;
}

.company > div:nth-of-type(2) > * {
    display: inline-block;
    font-size: 1.6rem;
}

.company > div:nth-of-type(2) > p {
    color: #5ab43c;
    line-height: 90px;
}

a.a-deco{
    position: relative;
    display: inline-block;
    text-decoration: none;
}

a.a-deco:after {
    position: absolute;
    bottom: 3px;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background-color: #444;
    transform: scale(1, 1);
    transform-origin: left top;
    transition: transform .3s;
}

a.a-deco:hover:after {
    transform-origin: right top;
    transform: scale(0, 1);
}

.company > div > a {
    text-align: center;
    color: black;
    text-decoration: none;
    margin-left: 25px;
}


/*footer*/

footer > div:nth-child(1) {
    width: 50%;
    margin: 3% 0;
    text-align: left;
}

footer > div:nth-child(1) > img:nth-of-type(1) {
    width: 60%;
    max-width: 350px;
    margin-left: 20%;
    padding-bottom: 15px;
}

footer > div:nth-child(1) > div {
    margin-left: 20%;
    text-align: left;
}

footer > div:nth-child(1) > div > a {
    display: inline-block;
    margin-right: 15px;
    margin-top: 15px;
}

footer > div:nth-child(1) > div img {
    width: 40px;
}

footer > div:nth-child(1) > div > a:nth-of-type(2) img {
    width: 48px;
}

footer > div:nth-child(2) {
    position:relative;
    background-color: #5ab43c;
    height: 110px;
    text-align: left;
}

footer > div:nth-child(2) p {
    color: white;
    display: inline-block;
    line-height: 110px;
    margin-left: 10%;
}

footer > div:nth-child(2) img {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    right: 10%;
    width: 50px;
} 

@media(min-width: 768px) {
    a[href^="tel:"]{
        pointer-events: none;
    }
}


@media(max-width: 767px) {
    .pc {
        display: none;
    }
    
    .sp {
        display: block;
    }
    
    
    /*sp-menu*/
    
    .menu-btn {
        /*position: fixed;*/
        position: absolute;
        top: 25px;
        right: 25px;
        display: flex;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
        z-index: 120;
    }
    
    .menu-btn.open {
        position: fixed;
    }
    
    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #5ab43c;
        position: absolute;
        transition: .4s;
    }
    
    .menu-btn span:before {
        bottom: 8px;
    }

    .menu-btn span:after {
        top: 8px;
    }
    
    .menu-btn.open span {
        background-color: rgba(0, 0, 0, 0);
    }
    
    .menu-btn.open span:before {
        bottom: 0;
        transform: rotate(45deg);
        background-color: white;
    }

    .menu-btn.open span:after {
        top: 0;
        transform: rotate(-45deg);
        background-color: white;
    }
    
    .h-content {
        display: none;
        background-color: #5ab43c;
        height: 100%;
        width: 100%;
        z-index: 100;
    }
    
    .h-content.open {
        display: block;
        position: fixed;
    }
    
    .menu-logo {
        background-color: white;
        padding: 3% 0;
    }
    
    .menu > div > img:nth-of-type(1){
        width: 80%;
    }
    
    .menu {
        position: absolute;
        top: 100px;
    }
    
    .menu-item > a,
    .menu-item > p {
        color: white;
        display: block;
        padding: 3% 0;
    }
    
    .menu-item {
        margin-top: 10px;
        margin-left: 20%;
        text-align: left;
    }
    
    .menu-item > a:nth-of-type(6),
    .menu-item > a:nth-of-type(7) {
        display: inline-block;
        margin: 0 2%;
    }
    
    .menu-item > a:nth-of-type(6) img {
        width: 40px;
    }
    
    .menu-item > a:nth-of-type(7) img {
        width: 48px;
    }
    
    .menu-item a {
        text-decoration: none;
        font-size: 1.7rem;
    }

    body.open {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
    }
    
    
    /*fadein*/
    
    .fadein.to-top {
        opacity: 1;
        transform: translate(0, 0);
        transition: all 0s;
    }
    
    .fadein.to-left-sp {
        opacity: 0;
        transform : translate(50px, 0);
        transition : all 1.2s;
    }
    
    .fadein.scrollin {
        opacity: 1;
        transform: translate(0, 0);
    }
    
    
    /*first*/

    .first > img:nth-child(1) {
        height: 680px;
        object-fit: cover;
    }

    .logo-img {
        width: 60%;
        top: 40%;
        z-index: 90;
    }
    
    .logo-img >img {
        width: 100%;
    }
    
    
    .first > img:nth-of-type(1),
    .company img:nth-of-type(2) {
        max-width: 100%;
    }
    
    .philosophy,
    .business > .content-block,
    .company > p,
    .company table{
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .p-title {
        font-size: 3rem;
        margin: 1.2rem 0;
    }
    
    img.title-img {
        left: calc(50% - 85px);
    }
    
    .business img.title-img {
        left: calc(50% - 5px);
        bottom: 1rem;
    }
    
    .company img.title-img {
        left: calc(50% - 75px);
        bottom: 1.2rem;
    }
    
    .content-block {
        display: block;
    }
    
    .content-block > div {
        width: 100%;
        margin: 10% 0;
    }
    
    .content {
        height: 270px;
        max-height: 65vw;
        background-size: 100%;
    }
    
    .btns {
        width: 90%;
        margin: 0 auto;
    }
    
    .btns > div {
        margin: 4% 0;
    }
    
    .contact > div > a > p {
        margin-left: calc(45% + 35px);
    }
    
    .contact > div:nth-of-type(1) > a > p:before ,
    .contact > div:nth-of-type(2) > a > p:before {
        left: inherit;
        padding-right: 10px;
    }
    
    .business > div:nth-of-type(3) > p {
        width: 90%;
        margin: 0 auto;
    }
    
    
    /*company*/
    
    .company table {
        margin: 5% auto;
    }
    
    .company th {
        width: 60px;
        padding-bottom: 20px;
    }
    
    .company tr:nth-of-type(5) td {
        padding-bottom: 10px;
    }
    
    .company table p {
        margin-left: 1.2rem;
        text-indent: -1.2rem;
    }
    
    .company table p .sp-indent {
        margin-left: 0.6rem;
    }
    
    span.inline {
        display: inline-block;
    }
    
    
    /*footer*/
    
    footer > div:nth-child(1) {
        width: 100%;
    }
    
    footer > div:nth-child(1) > img:nth-of-type(1) ,
    footer > div:nth-child(1) > div {
        margin-left: 10%;
    }
    
    span.iBlock {
        display: inline-block;
    }
    

    a.a-deco:after {
        transform: scale(1, 1);
    }

    a.a-deco:hover:after {
        transform: scale(1, 1);
    }
    
}