/* Homepage StyleSheet For All Devices */

/* Mobile Version Style || Basic Settings */

html,
body {
    overflow: visible;
    height: 100vh;
    margin: 0;
}

body {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4em;
    letter-spacing: 0;
}

html[lang="ja"] body {
    font-family: "M PLUS 1p", sans-serif;
}

html:not([lang="ja"]) body {
    font-family: "Yantramanav", sans-serif;
}

body.scroll-locked {
    width: 100%;
    height: 100%;
    overflow: hidden;
    --webkit-overflow-scrolling: none;
}

#homepage-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--viewport-height, 100vh);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem 3.2rem 2rem 3.2rem;
}

#homepage-wrapper .container {
    position: relative;
    flex: 1;
}

@supports (-webkit-touch-callout: none) {
    #homepage-wrapper {
        height: var(--viewport-height, -webkit-fill-available);
    }

    .contact-content {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .contact-wrap a,
    .inquiry-wrap a {
        transform: translate3d(0, 0, 0);
    }

}



.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.row .column-1 {
    width: calc((100% - 6px * 9) / 10 * 2 + 6px * (2 - 1));
    display: none;
}

.row .column-2 {
    display: flex;
    width: calc((100% - 6px * 9) / 10 * 6 + 6px * (6 - 1));
}

.row .column-3 {
    width: calc((100% - 6px * 9) / 10 * 2 + 6px * (2 - 1));
    text-align: right;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.m-row-1,
.m-row-2,
.m-row-3 {
    min-height: 10vh;
}

.m-hidden {
    display: none;
}

.folded {
    max-height: 0;
    overflow: hidden;
    transition: all 0s ease-in-out;
}

.folded.visible {
    max-height: 50rem;
}

.divider {
    min-height: 2rem;
    margin-top: 10rem;
    margin-bottom: 5rem;
}

/* Row 01 Styles */

.about-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-content p {
    text-align: justify;
}

.about-content,
.table-content,
.contact-content,
.contact-wrap {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.about-heading p,
.table-heading p,
.contact-heading p {
    min-width: 20%;
}

.about-heading p:is(:last-child),
.table-heading p:is(:last-child),
.contact-heading p:is(:last-child) {
    text-align: right;
}

.m-row-2 .col-12,
.m-row-3 .col-12 {
    display: flex;
    justify-content: space-between;
}

.table-content .product-image {
    margin-bottom: 1rem;
}

.product-image #hover-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: auto;
}

#row-1 {
    position: absolute;
    top: 20.5vh;
}

.column-2 .left {
    width: 63%;
}

.column-2 .right {
    width: 37%;
}

.left .about-heading {
    display: flex;
    justify-content: space-between;
}

.about-heading .w-20 {
    width: 25%;
}

/* Row 02 Styles */

#row-2 {
    position: absolute;
    top: 29.2vh;
}

.table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-2 .table-heading {
    display: flex;
    justify-content: space-between;
}

.table-content .list-table {
    list-style: none;
    margin: 0;
}

.list-table .list-item {
    color: #e8e6e6;
    display: flex;
    line-height: 1.1;
    justify-content: space-between;
}

.list-table .list-item.active {
    color: #000;
}

.table-heading .left,
.list-table .list-item .left {
    width: 63%;
    display: flex;
    justify-content: space-between;
}

.table-heading .right,
.list-table .list-item .right {
    width: 37%;
    display: flex;
    justify-content: space-between;
    padding-left: 10%;
}

.list-table .list-item .code {
    flex-grow: 1;
}

.list-table .list-item .object {
    width: 25%;
    flex-grow: 1;
}

.list-table .list-item .color {
    width: 20%;
    text-align: right;
}

.list-table .list-item .measurement {
    flex-grow: 1;
    text-align: right;
}

.left .object {
    width: 25%;
}

/* Row 03 Styles */

#row-3 {
    position: absolute;
    top: 37.8vh;
}

#row-3 .column-2 .right {
    padding-left: 10%;
}

.contact-heading {
    display: flex;
    justify-content: space-between;
}

a.link-contact {
    color: inherit;
    font-size: 1.5rem;
    line-height: 1.4em;
    display: inline-block;
    padding: 0;
    margin: 0;
    position: relative;
    transform: translateZ(0);
	pointer-events: auto;
    z-index: 999;
}

a.link-contact:hover {
    color: inherit;
    font-weight: 400;
}

/* Footer Section  */

#site-footer {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer-inner .row .column-2 {
    width: calc((100% - 6px * 9) / 10 * 5 + 6px * (5 - 1));
}

.footer-inner .row .column-3 {
    width: calc((100% - 6px * 9) / 10 * 5 + 6px * (5 - 1));
}

.hidden {
    display: none;
}

/* Tablet Style */
@media (min-width: 768px) {
    body {
        font-size: 1.35rem;
        line-height: normal;
        overflow: hidden;
    }

    #homepage-wrapper {
        padding: 3% 10%;
    }

    #row-1 {
        top: 13vh;
    }

    #row-2 {
        top: 24vh;
    }

    #row-3 {
        top: 35vh;
    }

    .row .column-1 {
        display: block;
    }

    .column-1 #hover-image {
        width: 83%;
        margin-top: 2rem;
        display: none;
    }

    .about-content > p {
        margin-top: 0 !important;
    }

    .about-heading p:is(:last-child),
    .table-heading p:is(:last-child),
    .contact-heading p:is(:last-child) {
        text-align: left;
    }

    .about-content,
    .inquiry-wrap {
        padding-right: 3%;
        text-align: justify;
    }

    .about-content,
    .table-content,
    .contact-content,
    .contact-wrap,
    .inquiry-wrap {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .list-table .list-item:hover {
        color: #000;
    }

    .table-content .list-item .object {
        flex-grow: 0;
    }

    .table-content .list-item .color {
        width: 40%;
        text-align: left;
    }

    .table-content .list-item {
        line-height: 1.4;
    }

    #row-3 .column-2 .right {
        padding-left: 7%;
    }

    .footer-inner .row .column-2 {
        width: calc((100% - 6px * 9) / 10 * 6 + 6px * (6 - 1));
    }

    .footer-inner .row .column-3 {
        width: calc((100% - 6px * 9) / 10 * 2 + 6px * (2 - 1));
    }
}

@media (min-width: 900px) {
    .table-heading .right,
    .table-content .list-item .right {
        padding-left: 6%;
        padding-right: 3%;
    }
}

/* Notebook Style */
@media (min-width: 1024px) {
    .about-content,
    .inquiry-wrap {
        padding-right: 7%;
    }

    #row-3 .column-2 .right {
        padding-left: 6%;
    }

    .table-heading .right,
    .table-content .list-item .right {
        padding-left: 6%;
        padding-right: 5%;
    }

    .column-1 #hover-image {
        width: 80%;
    }

}

@media (min-width: 1200px) {
    body {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    #row-1 {
        top: 13vh;
    }

    #row-2 {
        top: 24vh;
    }

    #row-3 {
        top: 35vh;
    }

    .column-2 .left {
        width: 63%;
    }

    .column-2 .right {
        width: 37%;
    }

    .about-heading .w-20 {
        width: 20%;
    }

    .about-content,
    .inquiry-wrap {
        padding-right: 8%;
    }

    .table-heading .left,
    .table-content .list-item .left {
        width: 63%;
    }

    .table-heading .right,
    .table-content .list-item .right {
        width: 37%;
    }

    .column-1 #hover-image {
        width: 72.54%;
    }

    .left .object {
        width: 20%;
    }

    .table-content .list-item .object {
        width: 20%;
    }

    #row-3 .column-2 .right {
        padding-left: 6%;
    }
}

@media (min-width: 1400px) {
    .about-content,
    .inquiry-wrap {
        padding-right: 8%;
    }
}

@media (min-width: 1500px) {
    .about-content,
    .inquiry-wrap {
        padding-right: 10%;
    }
}

@media (min-width: 1700px) {
    .about-content,
    .inquiry-wrap {
        padding-right: 11%;
    }
}

/* Large Screen Style */
@media (min-width: 1920px) {
    body {
        font-size: 1.8rem;
    }

    #row-1 {
        top: 13vh;
    }

    #row-2 {
        top: 24vh;
    }

    #row-3 {
        top: 35vh;
    }

    .about-content,
    .inquiry-wrap {
        padding-right: 10%;
    }

    .table-content .list-item {
        line-height: 1.2;
    }

    .table-heading .right,
    .table-content .list-item .right {
        padding-left: 5%;
        padding-right: 7%;
    }

    #row-3 .column-2 .right {
        padding-left: 5%;
    }
}


