/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.company-logo {
    height: 45px;
    display: flex;
    align-items: center;
}

.company-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: flex;
    gap: 25px;
}

.nav-desktop a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: #4a7c2c;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2d5016;
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

/* ファーストビュー */
.hero {
    position: relative;
    width: 100%;
    margin-top: 70px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(15%) brightness(0.95) sepia(15%) saturate(1.1);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* スライダー */
.slider {
    width: 100%;
    overflow: hidden;
    background: white;
    padding: 40px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 40s linear infinite;
}

.slide {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 6 - 120px));
    }
}

/* セクション共通 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2d5016;
}

section {
    padding: 80px 0;
}

/* こんな方歓迎 */
.welcome {
    background: white;
}

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

.welcome-item {
    text-align: center;
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 花久造園について・おわりに */
.about,
.closing {
    background: #f5f8f2;
}

.about-image,
.closing-image {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-image img,
.closing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content,
.closing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 2;
}

/* 仕事内容 */
.work {
    background: white;
}

.work-item {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-item-reverse {
    flex-direction: row-reverse;
}

.work-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    flex: 1;
}

.work-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d5016;
}

.work-content p {
    font-size: 16px;
    line-height: 1.9;
}

.work-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.work-example-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.work-example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #4a7c2c 0%, #2d5016 100%);
    padding: 60px 0;
}

.cta-box {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d5016;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: #4a7c2c;
    color: white;
}

.btn-primary:hover {
    background: #2d5016;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 124, 44, 0.3);
}

.btn-secondary {
    background: white;
    color: #4a7c2c;
    border: 2px solid #4a7c2c;
}

.btn-secondary:hover {
    background: #4a7c2c;
    color: white;
    transform: translateY(-2px);
}

/* 入社後の流れ・魅力・メンバー */
.flow,
.attraction,
.member {
    background: #f5f8f2;
}

.flow-grid,
.attraction-grid,
.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.flow-card,
.attraction-card,
.member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.flow-card:hover,
.attraction-card:hover,
.member-card:hover {
    transform: translateY(-5px);
}

.flow-image,
.attraction-image,
.member-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.flow-image img,
.attraction-image img,
.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #999;
}

.flow-content,
.attraction-content,
.member-content {
    padding: 30px;
}

.flow-title,
.attraction-title,
.member-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d5016;
}

.flow-content p,
.attraction-content p,
.member-content p {
    font-size: 15px;
    line-height: 1.8;
}

/* 1日の流れ */
.schedule {
    background: white;
}

.schedule-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.schedule-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex: 0 0 80px;
    font-size: 18px;
    font-weight: 700;
    color: #4a7c2c;
}

.schedule-content {
    flex: 1;
    font-size: 16px;
}

/* 募集要項 */
.requirements {
    background: white;
}

.req-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.req-section:last-child {
    border-bottom: none;
}

.req-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d5016;
}

.req-section p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.req-section p strong {
    color: #2d5016;
    font-weight: 600;
}

/* 応募フォーム */
.contact {
    background: #f5f8f2;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c2c;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background: #4a7c2c;
    color: white;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #2d5016;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 124, 44, 0.3);
}

/* フッター */
.footer {
    background: #2d5016;
    color: white;
    padding: 40px 0 20px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-info a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ヘッダー */
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .company-logo {
        height: 35px;
    }

    .company-name {
        font-size: 20px;
    }

    /* ヒーロー */
    .hero-image {
        aspect-ratio: 4/3;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.5;
        margin-bottom: 18px;
        font-weight: 700;
        text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    }

    .hero-lead {
        font-size: 15px;
        line-height: 1.8;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    }

    /* スライダー */
    .slide {
        width: 300px;
        height: 225px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 6 - 120px));
        }
    }

    /* セクション */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* こんな方歓迎 */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 仕事内容 */
    .work-item,
    .work-item-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .work-image {
        flex: 0 0 auto;
        width: 100%;
        order: 1;
    }

    .work-content {
        order: 2;
    }

    .work-title {
        font-size: 22px;
    }

    /* CTA */
    .cta-box {
        padding: 40px 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    /* カードグリッド */
    .flow-grid,
    .attraction-grid,
    .member-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* カードの画像を常に上に */
    .flow-card,
    .attraction-card,
    .member-card {
        display: flex;
        flex-direction: column;
    }

    .flow-image,
    .attraction-image,
    .member-image {
        order: 1;
    }

    .flow-content,
    .attraction-content,
    .member-content {
        order: 2;
    }

    /* スケジュール */
    .schedule-box {
        padding: 30px 20px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .schedule-time {
        flex: 0 0 auto;
    }

    /* 募集要項 */
    .req-title {
        font-size: 20px;
    }

    /* フォーム */
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        aspect-ratio: 3/4;
    }

    .hero-content {
        padding: 0 25px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
        margin-bottom: 15px;
        font-weight: 700;
        text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    }

    .hero-lead {
        font-size: 14px;
        line-height: 1.8;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    }

    .cta-title {
        font-size: 22px;
    }
}

/* 超小型デバイス（360px以下） */
@media (max-width: 360px) {
    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.5;
        margin-bottom: 12px;
        font-weight: 700;
        text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    }

    .hero-lead {
        font-size: 13px;
        line-height: 1.7;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    }

    .header-container {
        padding: 0 15px;
    }

    .company-logo {
        height: 30px;
    }
}