/* ベース設定とリセット */
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;
}

/* -------------------- レスポンシブ対応 -------------------- */

/* タブレット対応 (1024px以下) */
@media (max-width: 1024px) {
    .footer-container {
        max-width: 900px;
        padding: 0 20px;
    }

    .footer-header {
        padding-top: 25px;
        padding-bottom: 15px;
    }

    .footer-logo-img {
        width: 130px;
    }

    .company-name {
        font-size: 16px;
    }

    .namiki-lab-name {
        font-size: 1.6em;
    }

    .service-lab-title {
        font-size: 18px;
    }

    .service-description {
        font-size: 13px;
    }

    .footer-nav-button {
        font-size: 13px;
        padding: 7px 12px;
    }
}

/* タブレット対応 (768px以下) */
@media (max-width: 768px) {
    .site-footer {
        padding: 0 0 15px 0;
    }

    .footer-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .footer-header {
        padding-top: 20px;
        padding-bottom: 15px;
    }

    .footer-header::after {
        top: 60px;
    }

    .logo-area {
        gap: 8px;
    }

    .footer-logo-img {
        width: 100px;
        margin-bottom: 3px;
    }

    .company-name {
        font-size: 12px;
        padding: 0 3px;
    }

    .namiki-lab-name {
        font-size: 1.4em;
    }

    .footer-content-wrapper {
        flex-direction: column;
        padding-top: 15px;
    }

    .footer-left-content {
        flex-grow: 1;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .business-title-box {
        padding: 4px 8px;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .business-title-link {
        font-size: 12px;
    }

    .service-block {
        margin-bottom: 18px;
    }

    .service-lab-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .service-description {
        font-size: 12px;
        line-height: 1.3;
    }

    .footer-right-nav ul {
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }

    .footer-nav-button {
        padding: 7px 12px;
        font-size: 12px;
        text-align: center;
    }

    .footer-bottom {
        margin-top: 30px;
        font-size: 11px;
        padding-top: 8px;
    }
}

/* スマホ対応 (600px以下) */
@media (max-width: 600px) {
    .site-footer {
        padding: 0 0 10px 0;
    }

    .footer-container {
        padding: 0 12px;
    }

    .footer-header {
        padding-top: 15px;
        padding-bottom: 12px;
    }

    .footer-header::after {
        top: 50px;
        height: 3px;
    }

    .logo-area {
        gap: 6px;
    }

    .footer-logo-img {
        width: 80px;
        margin-bottom: 2px;
    }

    .company-name {
        font-size: 10px;
        padding: 0 2px;
    }

    .namiki-lab-name {
        font-size: 1.2em;
    }

    .footer-content-wrapper {
        padding-top: 12px;
    }

    .footer-left-content {
        padding-bottom: 15px;
    }

    .business-title-box {
        padding: 3px 6px;
        margin-bottom: 15px;
        border: 1px solid #fff;
    }

    .business-title-link {
        font-size: 10px;
        font-weight: bold;
    }

    .service-block {
        margin-bottom: 12px;
    }

    .service-lab-title {
        font-size: 14px;
        margin-bottom: 3px;
        font-weight: bold;
    }

    .service-description {
        font-size: 11px;
        line-height: 1.3;
    }

    .footer-right-nav ul {
        gap: 6px;
        margin-top: 15px;
    }

    .footer-nav-button {
        padding: 6px 10px;
        font-size: 11px;
        border: 1px solid #fff;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 10px;
        padding-top: 6px;
    }
}

/* 小さいスマホ対応 (480px以下) */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
    }

    .footer-header {
        padding-top: 12px;
        padding-bottom: 10px;
    }

    .footer-header::after {
        top: 45px;
    }

    .footer-logo-img {
        width: 70px;
    }

    .company-name {
        font-size: 9px;
    }

    .namiki-lab-name {
        font-size: 1.1em;
    }

    .business-title-box {
        padding: 2px 5px;
        margin-bottom: 12px;
    }

    .business-title-link {
        font-size: 9px;
    }

    .service-block {
        margin-bottom: 10px;
    }

    .service-lab-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .service-description {
        font-size: 10px;
        line-height: 1.2;
    }

    .footer-right-nav ul {
        gap: 5px;
        margin-top: 12px;
    }

    .footer-nav-button {
        padding: 5px 8px;
        font-size: 10px;
    }

    .footer-bottom {
        margin-top: 15px;
        font-size: 9px;
    }
}