/* 基本設定 */
body {
    margin: 0;
    padding: 110px 0 0 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --- ヘッダー修正部分 --- */

.header {
    background-color: rgba(249, 247, 245, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px !important; 
    max-height: 80px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.logo-img {
    height: 80px;
    width: auto;
    max-height: 80px !important;
    flex-shrink: 0 !important;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
    flex-shrink: 0 !important;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 10px 25px; 
    padding: 0;
    margin: 0;
    flex-wrap: nowrap; 
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.nav ul li a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav ul li a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #8DBB40;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
}

.nav ul li a:hover::after {
    transform: scale(1, 1);
}

.hamburger-menu {
    display: none;
}

/* フッター */
.footer {
    background-color: #F9F7F5;
    padding: 60px 40px;
    text-align: right;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.footer-links a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin: 0;
    transition: 0.3s;
}

.footer-links a::after {
    position: absolute;
    bottom: -4px;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #8DBB40;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
}

.footer-links a:hover::after {
    transform: scale(1, 1);
}

.footer-bottom {
    font-size: 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    color: #666;
}

/* レスポンシブ対応　-----------------------------*/
@media screen and (max-width: 768px) {
    /*スクロール操作を制御する*/
    html, body {
        overflow-x: hidden;
        width: 100%;
        padding-top: 35px; /* ヘッダー固定分の余白 */
    }

    /*ヘッダー部分*/
    .header {
        height: 70px;
        padding: 0 !important;
    }

    .header-container {
        justify-content: flex-start;
        align-items: center;
        height: 100%;
    }

    .logo-area {
        height: 100%;
        align-items: center;
    }

    .logo-img {
        height: 45px !important;
      }

    .logo-text {
        font-size: 15px !important;
    }

    /* PC用画面を非表示にする */
    .nav {
        display: none;
    }


    /* ハンバーガー開いた時のみ表示 */
    .nav.open {
        display: block !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(249, 247, 245, 0.9);
        padding: 20px 0;
        text-align: center;
        z-index: 150;
        animation: fadeSlideIn 0.3s ease forwards;
    }
  
    /* ナビゲーションメニューの中身 */
    .nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    /* ハンバーガーメニュー */
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 23px;
        right: 25px;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 32px;
        z-index: 200; /* 重なり順を調整 */
    }

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    /* 変形前（≡マーク） */
    .hamburger-menu span:nth-child(1) {
        top: 0;
    }
    .hamburger-menu span:nth-child(2) {
        top: 10px;
    }
    .hamburger-menu span:nth-child(3) {
        top: 20px;
    }

    /* 変形後（×マーク） */
    .hamburger-menu.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }
    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

    /*フッター部分*/
    .footer {
        padding: 30px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
        line-height: 1.8;
    }

    .footer-links {
        display: none;
    }

    /* 開閉アニメーション */
    @keyframes fadeSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}