/* ベース設定とリセット */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* -------------------- フッターセクション -------------------- */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 0 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. ロゴと会社名 (緑ラインを含む) --- */
.footer-header {
    padding-top: 30px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 緑のラインをロゴエリア全体に広げ、NAMIKI LABの「上」に配置 */
.footer-header::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #005400;
    z-index: 1;
}

.logo-area {
    display: flex;
    /* !!! 修正点: 下端揃え !!! */
    align-items: flex-end;
    gap: 10px;
    position: relative;
}

.footer-logo-img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    /* !!! 調整点: ロゴと文字のベースラインを合わせる微調整 !!! */
    margin-bottom: 5px;
    z-index: 2;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    background-color: #000;
    position: relative;
    z-index: 1;
    padding: 0 5px;
}

/* NAMIKI LABの文字を少し大きくする */
.namiki-lab-name {
    font-size: 1.8em;
    font-weight: 900;
    white-space: nowrap;
}

/* --- 2. 事業内容とリンクのメインコンテンツ --- */
.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

/* 左側: 事業内容 */
.footer-left-content {
    flex-grow: 1;
    padding-right: 40px;
}

.business-title-box {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #fff;
    margin-bottom: 30px;
}

.business-title-link {
    font-size: 14px;
    font-weight: bold;
}

.service-block {
    margin-bottom: 25px;
}

.service-lab-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.service-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 右側: ナビゲーションリンク (横一列) */
.footer-right-nav ul {
    display: flex;
    gap: 15px;
}

.footer-nav-button {
    display: block;
    padding: 8px 15px;
    border: 1px solid #fff;
    font-size: 14px;
    white-space: nowrap;
}

.footer-nav-button:hover {
    background-color: #333;
}

/* コピーライト（任意） */
.footer-bottom {
    margin-top: 40px;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #222;
}

/* -------------------- レスポンシブ対応 -------------------- */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
    }

    .footer-right-nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .footer-nav-button {
        text-align: center;
    }

    .footer-logo-img {
        width: 70px;
        height: auto;
        filter: brightness(0) invert(1);
        /* !!! 調整点: ロゴと文字のベースラインを合わせる微調整 !!! */
        margin-bottom: 5px;
        z-index: 2;
    }

    .company-name {
        font-size: 10px;
        font-weight: bold;
        background-color: #000;
        position: relative;
        z-index: 1;
        padding: 0 5px;
    }
}