:root {
    --primary-color: #2e7d32;
    /* Deep natural green */
    --primary-light: #4caf50;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f5f5f5;
    --border-color: #e0e0e0;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-size-hero: 3.5rem;
    --font-size-section-title: 2.5rem;
    --font-size-logo: 1.8rem;
    --font-size-business-title: 1.8rem;
    --font-size-body: 1rem;
    --font-size-body-lg: 1.1rem;
    --font-size-hero-subtitle: 1.2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    line-height: 1.3;
}

.section__title {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.section__subtitle {
    font-size: var(--font-size-body);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
}

.header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo__text {
    font-size: var(--font-size-logo);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
}

.logo__text--green {
    color: var(--primary-color);
    font-weight: 500;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__list a {
    font-weight: 500;
    font-size: var(--font-size-body);
    position: relative;
}

.nav__list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__list a:not(.btn):hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--white {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn--white:hover {
    background-color: transparent;
    color: #fff;
}

.btn--disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.btn--primary.btn--disabled {
    background-color: #7aa17d;
    border-color: #7aa17d;
    color: #fff;
}

.btn--white.btn--disabled {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    /* For parallax */
    background: url('../images/hero_bg.svg') center/cover no-repeat;
    /* Basic placeholder if image misses */
    background-color: #e0e0e0;
    z-index: -1;
}

/* Darker overlay on hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero__subtitle {
    font-size: var(--font-size-hero-subtitle);
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* About Section */
.about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: var(--font-size-body-lg);
    line-height: 2;
}

.about__text p {
    margin-bottom: 1.5rem;
}

/* Businesses Section */
.business-list {
    margin-top: 50px;
}

.business-item {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.business-item__bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    /* For parallax */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.business-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.business-item__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
}

.business-item__content--right {
    justify-content: flex-end;
}

.business-item__text-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.business-item__title {
    font-size: var(--font-size-business-title);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.business-item__desc {
    font-size: var(--font-size-body);
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 20px;
}

.business-item__link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 2px;
}

.business-item__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.business-item__link:hover::after {
    width: 0;
}

.business-bg-1 {
    background-image: url('../images/business_hatasuke.svg');
}

.business-bg-2 {
    background-image: url('../images/business_machinery.svg');
}

.business-bg-3 {
    background-image: url('../images/business_robot.svg');
}


/* Company Section */
.company {
    background-color: var(--bg-alt);
}

.company__table-wrapper {
    background: #fff;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 900px;
    margin: 0 auto;
}

.company__table {
    width: 100%;
    border-collapse: collapse;
}

.company__table th,
.company__table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.company__table tr:last-child th,
.company__table tr:last-child td {
    border-bottom: none;
}

.company__table th {
    text-align: left;
    width: 25%;
    font-weight: 500;
    color: var(--text-light);
}

.company__table td {
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links .link-item {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.social-links .link-item:hover {
    color: var(--primary-light);
}

.social-links .link-item--disabled {
    color: var(--text-light);
    text-decoration: none;
    cursor: not-allowed;
}

.social-links .link-item--disabled:hover,
.social-links .link-item--disabled:focus-visible {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 40px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 60px;
}

.footer__logo .logo__text {
    color: #fff;
}

.footer__logo .logo__text--green {
    color: #fff;
}

.footer__contact p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer__bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.fade-up-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .header__inner {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav.is-active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav__list a {
        font-size: 1.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .business-item {
        height: auto;
        padding: 80px 0;
    }

    .business-item__content {
        padding: 0 20px;
    }

    .business-item__text-box {
        padding: 30px;
    }

    .company__table-wrapper {
        padding: 30px 20px;
    }

    .company__table th,
    .company__table td {
        display: block;
        width: 100%;
    }

    .company__table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section__title {
        font-size: 2.1rem;
    }

    .hero__title {
        font-size: 2.1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

    .business-item__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 64px 0;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .section__subtitle {
        margin-bottom: 2rem;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    .business-item__text-box {
        padding: 24px;
    }

    .btn {
        padding: 10px 22px;
    }
}
