/* リセットと基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

/* コンテナ設定 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background-color: #2f8f7f;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar {
    display: flex;
}

.nav-list {
    display: flex;
    list-style-type: none;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 5px 0;
}

/* ======= ここからアニメーション修正 ======= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2f8f7f;
    padding-top: 50px;
    text-align: center;
    z-index: 1000;

    /* 初期状態では上に隠して透明にする */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
    /* 下にスライド */
    opacity: 1;
    /* フェードイン */
}

/* 閉じるボタン */
.close-btn {
    font-size: 60px;
    color: white;
    position: absolute;
    top: 0px;
    right: 20px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style-type: none;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
}

/* ヒーローセクション */
.hero {
    background: url('hero.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    background-color: #2a8b7d;
    /* 緑系 */
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #1e5c4f;
    /* ダークグリーン */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.btn:hover {
    background: #175c47;
    /* より濃いグリーン */
}

/* 特集セクション */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.feature {
    background: #fff;
    padding: 20px;
    flex: 1;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 250px;
}

.feature h3 {
    color: #2f8f7f;
    /* 青みどり系 */
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature p {
    font-size: 1rem;
}

/* フッター */
footer {
    background: #2f8f7f;
    /* 青みどり系 */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* レスポンシブデザインの追加 */


@media screen and (max-width: 768px) {
    .navbar {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        margin: 10px 0;
        text-align: left;
    }

    footer {
        padding: 15px 0;
    }
}