/* Head */
.head-container {
    height: 80vh;
    min-height: 600px;
    background-image: url('../image/top-page/header.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #4b718c;
}

.head-container h1 {
    font-family: serif;
    font-size: 5rem;
    letter-spacing: 0.2rem;
    line-height: 1.1;
}

.head-container h1 span:first-child {
    font-size: 2.4rem;
}

.head-container h2 {
    font-size: 1.6rem;
    letter-spacing: 0.7rem;
    line-height: 1.6;
}

.head-container p {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    line-height: 2.1;
}

.head-container > div > div {
    min-width: 50%;
}

/* Topics */
.topics-nav {
    background-color: #404040;
}

.topics-nav h4 {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

.topics-nav a:hover {
    color: #FFF;
    text-decoration: underline;
}

.topics-nav span.text-white {
 text-overflow: ellipsis;
 white-space: nowrap;
	overflow: hidden;
}


/* Background Service */
.bg-service > div {
    min-width: 50%;
}

.bg-service > div:first-child {
    background-color: #e6e6e6;
    height: 3100px;
}

.bg-service > div:first-child::before {
    content: "";
}

.bg-service p {
    /*font-size: 0.9rem;*/
    line-height: 2;
}

/* Service Item */
.service-item {
    /*max-width: 1580px;*/
}

.service-item p.firstlead {
    max-width: 740px;
    margin: 0 0 0 auto;
text-align: left !important;
}

.service-item.item-right,
.service-item.item-right .img-h {
    margin-left: auto;
    margin-right: 0;
}

.img-h {
    max-width: 1400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #4b718c;
    height: 550px;
}

.img-h-1 {
    background-image: url('../image/top-page/image-1.png');
				background-position: 0 0;
}

.img-h-2 {
    background-image: url('../image/top-page/image-2.png');
}

.img-h-3 {
    background-image: url('../image/top-page/image-3.png');
				background-position: 0 50%;
}

.img-h-4 {
    background-image: url('../image/top-page/image-4.png');
				background-position: 100% 10%;
}

.note-box {
    background-color: #fff;
    width: 460px;
    max-width: 100%;
    height: auto;
    max-width: 100%;
}

.note-box {
    transform: translate(-50%,-50%);
    left: 50%;
    top: 100%;
}

.note-main {
    /*padding: 17.2%;*/
				padding: 12%;
}

.note-main p.text-small {
	    font-size: 1rem;
}

.text-h {
    transform: rotateZ(90deg);
    transform-origin: left bottom;
    position: relative;
    left: 1.4rem;
    color: #7f7f7f;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    width: 320px;
}

.text-h::after {
    border-top: 1px solid rgb(127, 127, 127, 0.4);
    content: '';
    position: absolute;
    top: 0.5rem;
    width: 3.6rem;
}

.text-h-1::before {
    content: "Medical and welfare facilities";
}

.text-h-2::before {
    content: "Stores / Commercial facilities";
}

.text-h-3::before {
    content: "Residencial construction / Reform";
}

.text-h-4::before {
    content: "Public building / general building";
}

.btn-more {
    text-transform: uppercase;
}

.btn-more::after {
    content: "";
    display: inline-block;
    width: 3rem;
    height: 0.5rem;
    margin-left: 1rem;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    transform: skew(45deg);
}


/* Blog Container */
.card {
    width: 18rem;
}

.blog-items .card:nth-of-type(2) {
	margin-top: 40px !important;
}

.blog-items .card:nth-of-type(3) {
	margin-top: 80px !important;
}

.blog-items .card .text-small {
	font-size: 1rem;
	line-height: 1.2 !important;
}

/* Company Container */
.company-container {
    height: 710px;
    background-color: #e6e6e6;
}

.img-company {
    width: 100%;
    height: 450px;
    background-image: url('../image/top-page/company.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #4b718c;
}

/* Recruit Container */
.img-recruit {
    width: 100%;
    height: 450px;
    background-image: url('../image/top-page/recruit.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #4b718c;
}

@media screen and (min-width: 768px) {
    .bg-service > div:first-child {
        height: 2800px;
    }

    .bg-service > div:first-child::before {
        content: "SERVICE";
        color: #fff;
        font-size: 7.4rem;
        font-weight: bold;
        letter-spacing: 1rem;
        text-transform: uppercase;
        position: relative;
        top: -2.5rem;
        left: -0.4rem;
        line-height: 1.5;
    }

    .note-box.bottom-4.end-4 {
        transform: unset;
        left: unset;
        top: unset;
        bottom: -4rem;
        right: -2rem;
    }

    .note-box.bottom-4.end-20 {
        transform: unset;
        left: unset;
        top: unset;
        bottom: -4rem;
        /*right: -20rem;*/
								right: -30rem;
    }

    .note-box.bottom-4.start-4 {
        transform: unset;
        left: -2rem;
        top: unset;
        bottom: -4rem;
        right: unset;
    }

    .blog-items {
        height: 450px;
    }

    .company-container {
        height: 610px;
    }
    
    .company-container .note-box,
    .recruit-container .note-box {
        /*width: 540px;*/
								width: 660px;
    }

    .img-company {
        width: 50%;
    }

    .link-items {
        height: 300px;
    }
}

@media screen and (min-width: 992px) {
    .blog-container {
        max-width: 960px;
    }
}

@media screen and (min-width: 1500px) {
    .note-box.bottom-4.end-4 {
        right: -4rem;
    }

    .note-box.bottom-4.start-4 {
        left: -4rem;
    }
}