@charset "UTF-8";

/* Reset & Common Styles */
body,
h1,
h2,
h3,
p,
ul,
li,
figure {
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

body {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography for Titles */
h1,
h2 {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Header */
.header {
    width: 100%;
    /* height is now determined by content image */
    height: auto;
    overflow: hidden;
}

.header-inner {
    width: 100%;
}

.header .main-visual {
    width: 100%;
    height: auto;
    display: block;
}

/* Global Navigation */
.global-nav {
    background-color: #7d9668;
    /* Updated Green */
    padding: 15px 0;
    text-align: center;
    position: relative;
    z-index: 20;
}

.global-nav .nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.global-nav li {
    position: relative;
}

.global-nav li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    opacity: 0.6;
}

.global-nav a {
    color: #fff !important;
    /* Force white color as requested */
    font-size: 16px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hamburger-menu {
    display: none;
}



/* Main Content */
main {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

section {
    margin-bottom: 100px;
}

h2 {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    border-bottom: 1px solid #ccc;
}

h2::after {
    content: '';
    /* Green accent under title */
    display: none;
    /* Removing the centered accent in favor of simple border or design match */
}

/* Design match: Simple text with lines? Left/Right lines? Or just padding.
   The image shows: "事業内容" with a line below it. Simple.
*/

/* Images */
img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Intro Section */
.intro-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.intro-img1 {
    width: 50%;
    height: 300px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro-img2 {
    width: 50%;
    height: 300px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 2.2;
    letter-spacing: 0.05em;
}

/* Service Section */
.service .content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service figure {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

.service img {
    width: 100%;
    height: 300px;
}

.service .text-content {
    flex: 1;
    font-size: 15px;
    line-height: 2;
}

/* Works Section */
.works .gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.works figure {
    flex: 1;
    text-align: center;
}

.works img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.works figcaption {
    font-size: 14px;
    color: #555;
    font-family: "Yu Mincho", serif;
}

/* --- Footer --- */
.footer {
    background-color: #48752a;
    /* Middle Tier */
    border-top: 20px solid #90c170;
    /* Top Tier */
    color: #fff;
    padding-top: 40px;
    /* Reduced top padding to account for border */
    font-family: "Yu Gothic", "YuGothic", sans-serif;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Footer Left */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    /* Adjust based on logo aspect ratio */
    height: auto;
}

.footer-logo .company-name {
    font-size: 24px;
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: 0.05em;
}

.footer-address p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Footer Right */
.footer-right {
    min-width: 300px;
    /* Ensure space for contact info */
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.contact-item dt {
    width: 60px;
    font-weight: normal;
}

.contact-item dd {
    margin-left: 0;
}

.contact-item dd a {
    color: #fff;
    text-decoration: none;
}

/* Copyright */
.copyright {
    background-color: #274c10;
    /* Bottom Tier */
    text-align: center;
    padding: 15px 0;
}

.copyright small {
    font-size: 11px;
    letter-spacing: 0.05em;
    display: block;
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .header {
        height: 400px;
    }

    .header-content {
        bottom: 40px;
    }

    .header h1 {
        font-size: 22px;
    }

    .logo-mark svg {
        width: 60px;
        height: 60px;
    }

    .global-nav {
        padding: 10px 20px;
        display: flex;
        justify-content: flex-end;
    }

    .nav-list {
        display: none;
        /* Hide for now, need JS toggle or simplified mobile menu */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(91, 105, 79, 0.95);
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
    }

    .nav-list.is-active {
        display: flex;
    }

    .global-nav li:not(:last-child)::after {
        display: none;
    }

    .hamburger-menu {
        display: block;
        z-index: 100;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        padding: 0;
        background: none;
        border: none;
    }

    .hamburger-menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 10px;
    }

    .hamburger-menu span:nth-child(3) {
        top: 20px;
    }

    /* Content Layout */
    .intro-images {
        flex-direction: column;
    }

    .intro-img1,
    .intro-img2 {
        width: 100%;
        height: auto;
    }

    .service .content-wrapper {
        flex-direction: column;
    }

    .works .gallery {
        flex-direction: column;
        gap: 40px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 0 20px 60px;
        align-items: center;
    }

    .footer-left {
        align-items: center;
        width: 100%;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-right {
        min-width: auto;
        width: 100%;
    }

    .contact-list {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        width: 100%;
    }

    .contact-item dt {
        text-align: right;
        margin-right: 10px;
    }

    .footer-logo {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
}