/* ========================================
   Technical Mind Unity
   Corporate Website 2026
   Base Style
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;

    color: #111820;
    background: #ffffff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
}

@media (max-width: 768px) {

    .container {
        width: calc(100% - 40px);
    }

}

/* =====================================
   Header
===================================== */

.site-header {
    width: 100%;
    height: 82px;
    background: #ffffff;
    border-bottom: 1px solid #e8ebee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: min(1500px, calc(100% - 80px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 380px;
    max-height: 82px;
    object-fit: contain;
}

.global-nav {
    display: flex;
    align-items: center;

    margin-left: auto;
    gap: 34px;
}

.global-nav a {
    position: relative;
    padding: 31px 0 28px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;

    color: #111820;
    transition: color 0.25s ease;
}

.global-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 21px;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        #0068b7 0%,
        #00a6a6 55%,
        #63b76c 100%
    );

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.global-nav a:hover {
    color: #0068b7;
}

.global-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    height: 48px;
    margin-left: 38px;
    padding: 0 24px;

    background: #101820;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.header-cta::after {
    content: "→";
    margin-left: 16px;
    font-size: 15px;
    font-weight: 400;
}

.header-cta:hover {
    background: #0068b7;
    transform: translateY(-1px);
}



/* ========================================
   Header - Tablet / Mobile
======================================== */

@media (max-width: 1100px) {

    .header-inner {
        width: calc(100% - 40px);
    }

    .site-logo img {
        width: 230px;
    }

    .global-nav {
        display: none;
    }

}


@media (max-width: 768px) {

    .site-header {
        height: 72px;
    }

    .header-inner {
        width: calc(100% - 32px);
    }

    .site-logo img {
        width: 200px;
        max-height: 52px;
    }

    .header-cta {
        min-width: auto;
        height: 42px;
        padding: 0 14px;

        font-size: 12px;
    }

}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    width: 100%;

    background: #ffffff;
    color: #07121b;

    border-top: 1px solid rgba(7,18,27,0.08);
}


/* 全体 */

.footer-inner {
    position: relative;

    width: min(1600px, calc(100% - 120px));
    min-height: 110px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        230px
        1fr
        auto
        52px;

    align-items: center;

    column-gap: 36px;
}


/* ========================================
   ロゴ
======================================== */

.footer-logo {
    padding-right: 30px;

    border-right: 1px solid rgba(7,18,27,0.12);
}


.footer-logo a {
    display: block;
}


.footer-logo img {
    display: block;

    width: 190px;
    max-width: 100%;

    height: auto;
}


/* ========================================
   ナビゲーション
======================================== */

.footer-nav {
    display: flex;
    align-items: center;

    gap: 28px;

    white-space: nowrap;
}


.footer-nav a {
    position: relative;

    color: #07121b;

    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    transition: opacity 0.2s ease;
}


.footer-nav a:hover {
    opacity: 0.55;
}


/* ========================================
   右側
======================================== */

.footer-meta {
    white-space: nowrap;
}


.footer-copyright {
    margin: 0 0 7px;

    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.01em;

    color: #07121b;
}


.footer-subnav {
    display: flex;
    align-items: center;

    gap: 7px;
}


.footer-subnav a,
.footer-subnav span {
    color: rgba(7,18,27,0.72);

    text-decoration: none;

    font-size: 9px;
    font-weight: 400;
}


.footer-subnav a:hover {
    color: #07121b;
}


/* ========================================
   TOPへ戻る
======================================== */

.footer-top {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: end;

    border: 1px solid #07121b;
    border-radius: 50%;

    color: #07121b;

    text-decoration: none;

    font-size: 16px;
    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.footer-top:hover {
    background: #07121b;
    color: #ffffff;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1200px) {

    .footer-inner {
        width: calc(100% - 60px);

        grid-template-columns:
            190px
            1fr
            44px;

        padding: 25px 0;
    }


    .footer-logo img {
        width: 160px;
    }


    .footer-nav {
        gap: 18px;

        flex-wrap: wrap;
    }


    .footer-meta {
        grid-column: 2 / 3;

        margin-top: 14px;
    }


    .footer-top {
        grid-column: 3;
        grid-row: 1 / 3;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .footer-inner {
        width: calc(100% - 40px);

        display: block;

        padding: 35px 0 30px;
    }


    .footer-logo {
        padding: 0 0 25px;

        border-right: 0;
        border-bottom: 1px solid rgba(7,18,27,0.12);
    }


    .footer-logo img {
        width: 165px;
    }


    .footer-nav {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 18px 20px;

        margin-top: 28px;
    }


    .footer-nav a {
        font-size: 12px;
    }


    .footer-meta {
        margin-top: 32px;
        padding-top: 22px;

        border-top: 1px solid rgba(7,18,27,0.12);

        white-space: normal;
    }


    .footer-copyright {
        font-size: 9px;
    }


    .footer-top {
        position: absolute;

        right: 0;
        bottom: 25px;

        width: 36px;
        height: 36px;
    }

}
/* 追従ヘッダーにページ内リンク先が隠れないための余白 */
html { scroll-padding-top: 100px; }
@media (max-width: 767px) { html { scroll-padding-top: 90px; } }
