/* =========================
   ROOT
========================= */

:root {
    --blue: #0866d9;
    --header-accent: #D32F2F;
    --navy: #062449;
}


/* =========================
   HEADER
========================= */

/* Header本体 */
.site-header {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;

    width: min(1340px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding: 0 30px;

    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(26, 91, 160, .08);
    border-radius: 15px;

    position: sticky;
    top: 0;
    z-index: 50;

    backdrop-filter: blur(12px);
}

/* リンク */
.site-header a {
    color: inherit;
    text-decoration: none;
}

/* ロゴ */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 55px;
    flex: none;
}

/* The inline SVG matches the previous <img> logo's aspect ratio exactly. */
.site-header svg.brand-logo {
    display: block;
    width: 248.1px;
    height: 55px;
}

@media screen and (max-width: 900px) {
    .site-header svg.brand-logo {
        width: 203px;
        height: 45px;
    }
}

@media screen and (max-width: 420px) {
    .site-header svg.brand-logo {
        width: 180.4px;
        height: 40px;
    }
}

/* Header logo color (other site accents keep their original color). */
.site-header .brand-logo path {
    fill: var(--header-accent);
}

/* ナビゲーション */
.global-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 34px;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.global-nav a {
    transition: .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.global-nav a:not(.entry-button):hover {
    color: var(--blue);
}

/* エントリーボタン */
.entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 24px;
    line-height: 1.75; /* ページごとの body の行間設定を継承しない */

    background: var(--header-accent);
    color: #fff !important;
    border-radius: 999px;

    font-weight: 700;
    letter-spacing: .02em;

    box-shadow: 0 8px 20px rgba(211, 47, 47, .22);
}

/* ハンバーガーメニュー */
.menu-button {
    display: none;
    margin-left: auto;

    width: 38px;
    padding: 6px;

    border: 0;
    background: none;

    cursor: pointer;
}

.menu-button span {
    display: block;

    height: 2px;
    margin: 6px 0;

    background: var(--navy);
}


/* =========================
   TABLET
   iPad横向きなど
========================= */

@media screen and (max-width: 1050px) {

    .site-header {
        width: calc(100% - 24px);
        padding: 0 20px;
        gap: 18px;
    }

    .brand-logo {
        height: 55px;
    }

    .global-nav {
        gap: 16px;
        font-size: 13px;
    }

    .global-nav a {
        white-space: nowrap;
    }

    .entry-button {
        padding: 10px 18px;
    }

}


/* =========================
   IPAD PORTRAIT
   900px以下はハンバーガー
========================= */

@media screen and (max-width: 900px) {

    .site-header {
        height: 64px;

        width: 100%;
        margin-inline: 0;
        padding: 0 20px;

        border-radius: 0;
        box-sizing: border-box;
    }

    .brand-logo {
        height: 45px;
    }

    .global-nav {
        display: none;

        position: absolute;
        top: 64px;
        left: 0;
        right: 0;

        margin-left: 0;
        padding: 20px;

        background: #fff;

        box-shadow: 0 15px 30px rgba(0, 0, 0, .08);

        flex-direction: column;
        align-items: stretch;
        gap: 18px;

        font-size: 14px;
    }

    .global-nav.is-open {
        display: flex;
    }

    .global-nav a {
        white-space: nowrap;
    }

    .entry-button {
        width: 100%;
        min-height: 44px;
    }

    .menu-button {
        display: block;
    }

}


/* =========================
   MOBILE
========================= */

@media screen and (max-width: 760px) {

    .site-header {
        height: 64px;

        width: 100%;
        margin-inline: 0;
        padding: 0 16px;

        border-radius: 0;
        box-sizing: border-box;
    }

    .brand-logo {
        height: 45px;
    }

    .global-nav {
        top: 64px;

        padding: 20px;

        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .entry-button {
        width: 100%;
    }

    .menu-button {
        display: block;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media screen and (max-width: 420px) {

    .brand-logo {
        height: 40px;
    }

}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #f0f0f0;
    color: #585555;
    padding: 30px 0 16px;
}

.footer-inner {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;

    gap: 30px 50px;
}

/* ロゴ */
.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand .brand-logo {
    display: block;
    width: auto;
    height: 30px;
}

/* フッターメニュー */
.site-footer nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 38px;
}

.site-footer nav a {
    color: #585555;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    white-space: nowrap;

    transition: opacity .2s ease;
}

.site-footer nav a:hover {
    opacity: .7;
}

/* コピーライト */
.footer-sub {
    grid-column: 1 / -1;

    width: 100%;
    margin-top: 4px;
    padding-top: 14px;

    border-top: 1px solid rgba(88, 85, 85, .18);

    text-align: center;
}

.footer-sub small {
    display: block;
    margin: 0;

    color: #585555;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================
   FOOTER TABLET
========================= */

@media screen and (max-width: 900px) {

    .footer-inner {
        width: min(100% - 40px, 760px);
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-brand {
        justify-content: center;
    }

    .site-footer nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 26px;
    }

    .footer-sub {
        grid-column: auto;
    }

}


/* =========================
   FOOTER MOBILE
========================= */

@media screen and (max-width: 760px) {

    .site-footer {
        padding: 26px 0 18px;
    }

    .footer-inner {
        width: min(100% - 32px, 620px);

        grid-template-columns: 1fr;

        gap: 22px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-brand .brand-logo {
        height: 25px;
    }

    .site-footer nav {
        justify-content: center;
        flex-wrap: wrap;

        gap: 12px 24px;
    }

    .site-footer nav a {
        font-size: 12px;
        white-space: nowrap;
    }

    .footer-sub {
        grid-column: auto;

        margin-top: 2px;
        padding-top: 16px;
    }

}