/* ====== BASE ====== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    max-width: 1120px;
}

.mt16 {
    margin-top: 16px;
}

/* ====== TOPBAR ====== */
.topbar {
    background: #343A40;
    color: #fff;
    padding: 10px 0;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__phone {
    font-size: 13px;
    opacity: .95;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar__phone-icon {
    font-size: 16px;
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 13px;
}

.btn--green {
    background: #78b816;
    color: #fff;
}

/* Logo placeholder */
.logo-ph {
    width: 120px;
    height: 24px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: .9;
}

.logo-ph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    height: 600px;
    overflow: visible;
    background: url("../images/hero.png") center/100% 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero__half {
    display: none;
}




/* ====== NAV ====== */
.nav {
    background: #343A40;
    color: #fff;
}

.nav__container {
    display: flex;
    justify-content: center;
    /* Centered container */
    align-items: center;
}

/* Scrollbar hidden for clearer menu */
body.menu-open {
    overflow: hidden;
}

.nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    /* Centered menu items */
    gap: 50px;
    /* Consistent spacing */
}

.nav__list a {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    opacity: .95;
    transition: .3s;
}

.nav__list a:hover {
    background: rgba(255, 255, 255, .08);
}

.nav__list a.active {
    background: rgba(255, 255, 255, .10);
    position: relative;
}

.nav__list a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #78b816;
}

/* ====== HAMBURGER ====== */
.nav__toggle {
    display: none;
    /* Desktop default */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
    /* Higher than nav__list (2000) */
    position: relative;
}

.nav__toggle-bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* Mobile Menu Media Query */
@media (max-width: 768px) {
    .topbar__right {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* Align hamburger to right */
        gap: 14px;
    }

    /* Hide contact info on mobile */
    .btn--green {
        display: none;
    }

    .nav__toggle {
        display: block;
        margin-left: 10px;
    }

    /* Hamburger transition */
    .nav__toggle.active .nav__toggle-bar:nth-child(2) {
        opacity: 0 !important;
    }

    .nav__toggle.active .nav__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .nav__toggle.active .nav__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* Make nav container effectively invisible but allow list to show */
    .nav {
        padding: 0;
        height: 0;
        z-index: 2000;
    }

    .nav__container {
        height: 0;
    }

    .nav__list {
        position: fixed;
        /* Fixed to viewport to stick to top right */
        top: 55px;
        /* Adjust based on Topbar height */
        right: 0;
        width: 250px;
        height: auto;
        background-color: #343A40;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
        z-index: 2000;
        padding: 10px 0;
        border-radius: 0 0 0 4px;
        box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav__list.active {
        left: auto;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list a {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav__list a:last-child {
        border-bottom: none;
    }

    .nav__list a.active::after {
        bottom: 0px;
        height: 100%;
        width: 4px;
        left: 0;
        right: auto;
    }
}

/* ====== SECTION / TITLES ====== */
.section {
    padding: 48px 0;
}

.section--soft {
    background: #f2f6ea;
}

.h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 18px;
    color: #6ca819;
    position: relative;
    padding-left: 18px;
}

.h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 18px;
    background: #78b816;
    border-radius: 2px;
}

.h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 900;
    color: #333;
}

.p {
    margin: 0 0 10px;
    color: #555;
}

.small {
    font-size: 13px;
    color: #666;
}

/* ====== CARDS ====== */
.card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 16px;
}

.card--tight {
    padding: 0;
    overflow: hidden;
}

.video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
}

/* ====== GRIDS ====== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

/* ====== FEATURES ====== */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 12px;
}

.feature__img {
    height: 120px;
    border-radius: 8px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.feature__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #78b816;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.feature__header .h3 {
    margin: 0;
}

/* ====== WASTE ====== */
.waste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.waste__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px dashed #e7e7e7;
    font-size: 13px;
}

.waste__row span:first-child {
    border-right: 1px dashed #e7e7e7;
    padding-right: 12px;
}

.waste__title {
    padding: 12px;
    margin-bottom: 8px;
    background: #f7fbef;
    border-left: 3px solid #78b816;
    font-weight: 900;
    color: #333;
    font-size: 14px;
}

.waste__title--danger {
    background: #fff4f4;
    border-left-color: #c0392b;
    color: #c0392b;
}

.waste__row:last-child {
    border-bottom: 0;
}

.notice {
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.notice__title {
    font-weight: 900;
    margin-bottom: 8px;
    color: #444;
}

.notice--danger {
    border-color: #f0c7c7;
    background: #fff4f4;
}

.notice--danger .notice__title {
    color: #c0392b;
}

.list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #555;
}

/* ====== RESIDUE IMG ====== */
.img2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

.img2__item {
    height: 100%;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* ====== SPECS ====== */
.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.check {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.check li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #78b816;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.spec-table {
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
}

.spec-table__head {
    padding: 10px 12px;
    background: #f7fbef;
    color: #6ca819;
    font-weight: 900;
}

.spec-table__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
}

.machine {
    height: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* detail table */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.detail {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 12px;
}

.detail__title {
    font-weight: 900;
    color: #6ca819;
    margin-bottom: 6px;
}

.detail__text {
    font-size: 13px;
    color: #555;
}

/* ====== PROJECTS ====== */
.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.project {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    display: block;
}

.project__thumb {
    height: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.project__title {
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* ====== FOOTER ====== */
.footer {
    background: #343A40;
    color: rgba(255, 255, 255, .86);
    padding: 34px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 22px;
    padding-bottom: 22px;
}

.footer__brand {
    font-weight: 900;
    font-size: 18px;
    color: #78b816;
    margin-bottom: 10px;
}

.footer__title {
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.footer__p {
    font-size: 13px;
    opacity: .92;
    margin: 0;
}

.footer__link {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    opacity: .9;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
    opacity: .85;
}

/* ====== PLACEHOLDERS ====== */
.ph {
    background:
        linear-gradient(135deg, rgba(120, 184, 22, .14), rgba(0, 0, 0, .03)),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 10px, rgba(255, 255, 255, .12) 10px, rgba(255, 255, 255, .12) 20px);
    border: 1px solid rgba(0, 0, 0, .06);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
    .hero__content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero__product {
        display: none;
    }

    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .waste {
        grid-template-columns: 1fr;
    }

    .specs {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Fix for images collapsing on responsive */
    .machine,
    .img2 {
        height: 240px;
        min-height: 240px;
    }
}

@media (max-width: 520px) {
    .hero {
        height: 200px;
    }

    .logo-big-ph {
        width: 260px;
        height: 60px;
        font-size: 18px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}