/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark:  #1e4020;
    --green-main:  #2d6a30;
    --green-light: #4a9050;
    --beige:       #f5f2eb;
    --white:       #ffffff;
    --gray:        #666666;
    --text:        #333333;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro", sans-serif;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.font-serif,
.section-title,
.service-text h3,
.reason-body h3,
.hero-content h1 {
    font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(30, 64, 32, 0.95);
    backdrop-filter: blur(4px);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo span {
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.85;
}

.global-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.global-nav a {
    color: var(--white);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.global-nav a:hover { opacity: 1; }

.nav-contact {
    background: var(--green-light);
    padding: 6px 14px;
    border-radius: 4px;
    opacity: 1 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    background: url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,50,22,0.75) 0%, rgba(30,64,32,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-sub {
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    background: var(--green-light);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--green-main);
    transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--green-main);
    border-radius: 2px;
}

.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--white); }

.section-lead {
    text-align: center;
    color: var(--gray);
    margin-bottom: 48px;
    font-size: 0.95rem;
}

.section-lead.white { color: rgba(255,255,255,0.85); }

/* ===== Service ===== */
.service { background: var(--beige); padding-bottom: 0; overflow: hidden; }

.service-zigzag { margin-top: 0; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.service-visual {
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(74,144,80,0.35) 0%, rgba(74,144,80,0) 55%),
        var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

/* 斜めの淡いストライプで質感を足す */
.service-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.025) 0px,
        rgba(255,255,255,0.025) 2px,
        transparent 2px,
        transparent 14px
    );
    pointer-events: none;
}

.service-row.reverse .service-visual { order: 2; }

.service-icon {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: var(--white);
}

.service-icon svg {
    width: 76px;
    height: 76px;
    opacity: 0.95;
}

.service-label {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    padding-left: 0.28em;
}

.service-text {
    background: var(--white);
    padding: 52px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--green-main);
}

.service-text p { font-size: 0.95rem; color: var(--gray); line-height: 1.85; }

/* ===== Reason ===== */
.reason { background: var(--white); }

.reason-list {
    max-width: 760px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #dde8dd;
    background: none;
    border-radius: 0;
}

.reason-item:first-child { border-top: 1px solid #dde8dd; }

.reason-num {
    font-size: 4.5rem;
    font-weight: 900;
    color: #bdd8be;
    line-height: 1;
    flex-shrink: 0;
    width: 90px;
    text-align: right;
}

.reason-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--green-dark);
}

.reason-body p { font-size: 0.875rem; color: var(--gray); line-height: 1.8; }

/* ===== Works ===== */
.works { background: var(--beige); }

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.works-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.works-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s;
}

.works-item:hover img { transform: scale(1.04); }

.works-caption {
    background: rgba(30, 64, 32, 0.85);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 12px;
    text-align: center;
}

/* ===== Company ===== */
.company { background: var(--white); }

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.company-table th,
.company-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e7e0;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 180px;
    color: var(--green-dark);
    font-weight: 700;
    background: #f0f5f0;
    white-space: nowrap;
}

/* ===== Contact ===== */
.contact {
    background: var(--green-dark);
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.required {
    background: #c0392b;
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.45); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-light);
    background: rgba(255,255,255,0.15);
}

.form-group select option { background: var(--green-dark); color: var(--white); }

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--green-light);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: #5aaa60;
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
    background: #111;
    padding: 32px 20px;
    text-align: center;
}

.footer-logo {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-copy {
    color: #888;
    font-size: 0.75rem;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .global-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--green-dark);
        padding: 16px 0;
    }

    .global-nav.open { display: block; }

    .global-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .global-nav a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .service-row,
    .service-row.reverse { grid-template-columns: 1fr; }
    .service-row.reverse .service-visual { order: 0; }
    .service-visual { min-height: 200px; }
    .service-text { padding: 32px 24px; }
    .reason-item { gap: 24px; }
    .reason-num { font-size: 3rem; width: 60px; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }

    .company-table th { width: 110px; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .works-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
}
