/* ==========================================================================
   Bocek Corporate Red — サイト共通（ベース・ヘッダー・SPメニュー・フッター）
   デザイン元: Bocek Design System（Sample_ver5）の Sample LP
   ブレークポイント: 1439 / 1339 / 1279 / 1139 / 1023 / 767px
   ========================================================================== */

:root {
    --bk-accent: #E3262E;
    --bk-ink: #0D0D0D;
    --bk-site-bg: #F7F7F7;
    --bk-bg-sub: #F7F7F7;
    --bk-dark: #1C1C1C;
    --bk-text2: #5D5D5D;
    --bk-border: #E3E3E3;
    --bk-font: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --bk-font-jp: 'Noto Sans JP', sans-serif;
    --bk-font-en: 'Inter', sans-serif;
    --bk-ease-out: cubic-bezier(.16, 1, .3, 1);
    --bk-ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html.bk-menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: var(--bk-font);
    color: var(--bk-ink);
    background: var(--bk-site-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* 詳細度0にして、各パーツの色指定を優先させる */
:where(a) {
    color: var(--bk-ink);
}

:where(a:hover) {
    color: var(--bk-accent);
}

button {
    font-family: inherit;
}

.bk-br-sp {
    display: none;
}

/* ---------- スクロールで表示（site.js が .is-in を付ける） ---------- */
[data-reveal] {
    transition: transform 1s var(--bk-ease-out), opacity 1s var(--bk-ease-out);
}

.bk-js [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(40px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.bk-header {
    position: sticky;
    top: 32px;
    z-index: 30;
    height: 57px;
    margin: 0 0 32px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* 1枚目（FV）の上に重ねる */
.bk-header.is-overlay {
    margin-bottom: -89px;
}

.bk-header__pill {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 57px;
    padding: 16px 48px 16px 32px;
    border-radius: 100px;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.bk-header__logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.bk-header__logo img {
    display: block;
    width: 125px;
    height: 31px;
    object-fit: contain;
}

/* ---------- グローバルナビ ---------- */
.bk-gnav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bk-gnav__trigger,
.bk-gnav__link {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* 上下の余白でホバーの範囲を広げ、ドロップダウンまでポインタが届くようにする */
.bk-gnav__group {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 20px 0;
    margin: -20px 0;
}

.bk-gnav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bk-ink);
    cursor: default;
    transition: color .6s ease;
}

.bk-gnav__trigger svg {
    display: block;
    transition: transform .3s;
}

.bk-gnav__group.is-open .bk-gnav__trigger {
    color: var(--bk-accent);
}

.bk-gnav__group.is-open .bk-gnav__trigger svg {
    transform: rotate(180deg);
}

.bk-gnav__link {
    text-decoration: none;
    color: var(--bk-ink);
    transition: color .25s;
}

.bk-gnav__link:hover {
    color: var(--bk-accent);
}

/* ---------- ドロップダウン ---------- */
.bk-drop {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 224px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .4s var(--bk-ease-out), visibility 0s linear .3s;
}

.bk-gnav__group.is-open .bk-drop {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.bk-drop__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--bk-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .03em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.bk-drop__link:hover {
    background: var(--bk-bg-sub);
    color: var(--bk-accent);
}

.bk-drop__link svg {
    display: block;
    flex-shrink: 0;
}

/* 事業内容（ver9）: 1行目に BocekのAXソリューション、3事業はその子として左の線で字下げする */
.bk-drop--service {
    min-width: 304px;
}

.bk-drop__link--main {
    font-weight: 600;
}

.bk-drop__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 4px 16px;
    padding-left: 8px;
    border-left: 1px solid var(--bk-border);
}

/* ---------- ハンバーガー（1023px以下で表示） ---------- */
.bk-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 36px;
    padding: 0 4px;
    margin: -6px -12px -6px 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bk-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--bk-ink);
}

.bk-burger span:nth-child(2) {
    width: 18px;
    align-self: flex-end;
}

.bk-burger span:nth-child(3) {
    display: none;
}

/* ---------- 資料請求・お問い合わせ ---------- */
.bk-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-hbtn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 16px 24px;
    border-radius: 100px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: .05em;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .3s;
}

.bk-hbtn:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.bk-hbtn--dark {
    background: var(--bk-dark);
}

.bk-hbtn--accent {
    background: var(--bk-accent);
}

/* ---------- SPメニュー（1023px以下） ---------- */
.bk-spmenu {
    display: none;
}

/* ==========================================================================
   Footer（区切り線・CTA・ロゴとリンク）
   ========================================================================== */
.bk-footer {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bk-site-bg);
    color: var(--bk-ink);
}

.bk-footer__inner {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.bk-footer__rule {
    height: 1px;
    background: var(--bk-border);
}

/* ---------- CTA ---------- */
.bk-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.bk-cta__title {
    margin: 0;
    font-family: var(--bk-font);
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    color: var(--bk-ink);
}

.bk-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 380px;
    flex-shrink: 0;
}

.bk-pill-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 24px 32px 24px 40px;
    border-radius: 100px;
    background: var(--bk-accent);
    color: #FFFFFF;
    font-family: var(--bk-font-jp);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .3s, transform .3s;
}

.bk-pill-lg:hover {
    background: var(--bk-dark);
    color: #FFFFFF;
    transform: translateX(6px);
}

.bk-pill-lg svg {
    display: block;
    flex-shrink: 0;
}

/* ---------- ロゴ・リンク ---------- */
.bk-footer__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.bk-footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 72px;
}

.bk-footer__logo {
    display: block;
    line-height: 0;
}

.bk-footer__logo img {
    display: block;
    width: 200px;
    height: auto;
}

/* ロゴの下の規約のリンクとコピーライト（ver8） */
.bk-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-footer__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.bk-footer__terms a {
    font-family: var(--bk-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: .04em;
    white-space: nowrap;
    color: var(--bk-text2);
    text-decoration: none;
    transition: color .25s;
}

.bk-footer__terms a:hover {
    color: var(--bk-accent);
}

.bk-footer__copy {
    margin: 0;
    font-family: var(--bk-font-en);
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: .06em;
    color: var(--bk-text2);
}

.bk-footer__cols {
    display: flex;
    gap: 64px;
}

.bk-footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-footer__col--main {
    gap: 24px;
}

.bk-footer__heading,
.bk-footer__link {
    font-family: var(--bk-font);
    line-height: 16px;
    letter-spacing: .05em;
    white-space: nowrap;
}

.bk-footer__heading {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--bk-ink);
}

.bk-footer__link {
    font-size: 14px;
    font-weight: 400;
    color: var(--bk-text2);
    text-decoration: none;
    transition: color .25s;
}

.bk-footer__link--main {
    font-size: 15px;
    font-weight: 500;
    color: var(--bk-ink);
}

.bk-footer__link:hover {
    color: var(--bk-accent);
}

/* 事業内容（ver9）: 3事業は字下げし、別ドメインには外部リンクのアイコンを付ける */
.bk-footer__link--child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
}

.bk-footer__link--child svg {
    display: block;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
    .bk-header__pill {
        gap: 28px;
        padding: 16px 36px 16px 28px;
    }
}

@media (max-width: 1339px) {
    .bk-gnav {
        gap: 16px;
    }

    .bk-gnav__trigger,
    .bk-gnav__link,
    .bk-drop__link {
        font-size: 13px;
    }

    .bk-header__pill {
        gap: 20px;
        padding: 14px 28px 14px 24px;
    }
}

@media (max-width: 1279px) {
    .bk-header {
        padding: 0 24px;
    }

    .bk-footer__inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1139px) {
    .bk-gnav {
        gap: 10px;
    }

    .bk-header__pill {
        gap: 14px;
        padding: 12px 18px 12px 16px;
    }

    .bk-header__logo img {
        width: 104px;
    }

    .bk-header__actions {
        gap: 8px;
    }

    .bk-hbtn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1023px) {
    /* SP のヘッダー・メニューは --u（基準幅に対する1px）で組む */
    .bk-header,
    .bk-spmenu {
        --u: 1.2px;
    }

    .bk-gnav,
    .bk-header__actions {
        display: none;
    }

    .bk-header {
        top: calc(var(--u) * 22);
        height: calc(var(--u) * 41 + 8px);
        margin-bottom: calc(var(--u) * 22);
        padding: 0 24px;
    }

    .bk-header.is-overlay {
        margin-bottom: calc(var(--u) * -41 - 8px);
    }

    .bk-header__pill {
        width: 100%;
        justify-content: space-between;
        gap: 24px;
        height: calc(var(--u) * 41 + 8px);
        padding: 0 calc(var(--u) * 16);
    }

    .bk-header__logo img {
        width: calc(var(--u) * 92);
        height: calc(var(--u) * 26);
        object-position: left center;
    }

    .bk-burger {
        display: flex;
        align-items: flex-end;
        gap: calc(var(--u) * 4);
        width: 44px;
        height: 44px;
        padding: 0;
        margin: -12px -2px -12px 0;
    }

    .bk-burger span,
    .bk-burger span:nth-child(2) {
        width: calc(var(--u) * 18);
        background: #0D0D0D;
    }

    .bk-burger span:nth-child(3) {
        display: block;
        width: calc(var(--u) * 12);
    }

    /* SPメニュー: ヘッダーのピルが下へ伸びてカードになる */
    .bk-spmenu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        pointer-events: none;
        visibility: hidden;
        transition: visibility 0s linear .7s;
    }

    .bk-spmenu.is-open {
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }

    .bk-spmenu__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(28, 28, 28, .3);
        opacity: 0;
        transition: opacity .5s ease;
    }

    .bk-spmenu.is-open .bk-spmenu__backdrop {
        opacity: 1;
    }

    .bk-spmenu__card {
        position: absolute;
        top: calc(var(--u) * 22);
        left: 24px;
        right: 24px;
        max-height: calc(100% - var(--u) * 44);
        overflow-y: auto;
        padding: 0 calc(var(--u) * 20) calc(var(--u) * 20);
        border-radius: calc(var(--u) * 20);
        background: #FFFFFF;
        color: #0D0D0D;
        clip-path: inset(0 0 calc(100% - var(--u) * 41 - 8px) 0 round 100px);
        transition: clip-path .7s var(--bk-ease-io);
    }

    .bk-spmenu.is-open .bk-spmenu__card {
        clip-path: inset(0 0 0 0 round calc(var(--u) * 20));
    }

    .bk-spmenu__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: calc(var(--u) * 41 + 8px);
        margin: 0 calc(var(--u) * -4);
    }

    .bk-spmenu__logo {
        line-height: 0;
    }

    .bk-spmenu__logo img {
        display: block;
        width: calc(var(--u) * 92);
        height: calc(var(--u) * 26);
        object-fit: contain;
        object-position: left center;
    }

    .bk-spmenu__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -2px;
        padding: 0;
        border: none;
        background: transparent;
        color: #0D0D0D;
        cursor: pointer;
    }

    .bk-spmenu__close svg {
        display: block;
        width: calc(var(--u) * 24);
        height: calc(var(--u) * 24);
    }

    .bk-spmenu__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: calc(var(--u) * 11) 0 calc(var(--u) * 18);
    }

    .bk-spmenu__group {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* 開くときに上から順に表示（--i は項目の順番） */
    .bk-spmenu__item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(var(--u) * 12);
        height: calc(var(--u) * 44);
        padding: 0;
        border: none;
        background: transparent;
        color: #0D0D0D;
        font-family: var(--bk-font);
        font-size: calc(var(--u) * 20);
        font-weight: 500;
        line-height: calc(var(--u) * 20);
        text-decoration: none;
        cursor: pointer;
        opacity: 0;
        transform: translateY(12px);
        transition:
            opacity .5s ease calc(.3s + var(--i, 0) * .05s),
            transform .7s var(--bk-ease-out) calc(.3s + var(--i, 0) * .05s);
    }

    .bk-spmenu.is-open .bk-spmenu__item {
        opacity: 1;
        transform: translateY(0);
    }

    .bk-spmenu__toggle {
        width: 100%;
    }

    .bk-spmenu__toggle svg {
        display: block;
        width: calc(var(--u) * 16);
        height: calc(var(--u) * 16);
        color: var(--bk-accent);
        transition: transform .35s ease;
    }

    .bk-spmenu__group.is-expanded .bk-spmenu__toggle svg {
        transform: rotate(45deg);
    }

    .bk-spmenu__sub {
        display: grid;
        width: 100%;
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows .4s var(--bk-ease-out), visibility 0s linear .4s;
    }

    .bk-spmenu__group.is-expanded .bk-spmenu__sub {
        grid-template-rows: 1fr;
        visibility: visible;
        transition-delay: 0s;
    }

    .bk-spmenu__sub-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .bk-spmenu__sub-inner a {
        display: flex;
        align-items: center;
        min-height: 44px;
        text-decoration: none;
        color: var(--bk-text2);
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .05em;
    }

    .bk-spmenu__sub-inner a:last-child {
        margin-bottom: 8px;
    }

    /* 事業内容（ver9）: BocekのAXソリューションを濃く、3事業は一回り小さく。別ドメインには外部リンクのアイコン */
    .bk-spmenu__sub-inner .bk-spmenu__main {
        color: var(--bk-ink);
        font-weight: 600;
    }

    .bk-spmenu__sub-inner .bk-spmenu__child {
        gap: 6px;
        font-size: 15px;
    }

    .bk-spmenu__child svg {
        display: block;
        flex-shrink: 0;
    }

    .bk-spmenu__actions {
        display: flex;
        flex-direction: column;
        gap: calc(var(--u) * 8);
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .5s ease .62s, transform .7s var(--bk-ease-out) .62s;
    }

    .bk-spmenu.is-open .bk-spmenu__actions {
        opacity: 1;
        transform: translateY(0);
    }

    .bk-spmenu__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: max(52px, calc(var(--u) * 41 + 8px));
        border-radius: 100px;
        color: #FFFFFF;
        font-size: calc(var(--u) * 16);
        font-weight: 500;
        line-height: calc(var(--u) * 20);
        text-decoration: none;
    }

    .bk-spmenu__btn:hover {
        color: #FFFFFF;
    }

    .bk-spmenu__btn--dark {
        background: var(--bk-dark);
    }

    .bk-spmenu__btn--accent {
        background: var(--bk-accent);
    }

    /* Footer: CTA は縦積み、ロゴ → リンク → コピーライトの順に並べる */
    .bk-footer {
        padding-top: 96px;
    }

    .bk-footer__inner {
        gap: 56px;
        padding-bottom: 64px;
    }

    .bk-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .bk-cta__buttons {
        flex-direction: row;
        gap: 16px;
        width: 100%;
        max-width: none;
    }

    .bk-cta__buttons > a {
        flex: 1 1 0;
        min-width: 0;
    }

    .bk-footer__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 56px;
    }

    .bk-footer__brand {
        display: contents;
    }

    .bk-footer__logo {
        order: 0;
    }

    .bk-footer__cols {
        order: 1;
        gap: 48px;
    }

    .bk-footer__legal {
        order: 2;
    }
}

@media (max-width: 767px) {
    .bk-header,
    .bk-spmenu {
        --u: calc(100vw / 402);
    }

    .bk-br-sp {
        display: inline;
    }

    .bk-header {
        padding: 0 calc(var(--u) * 21);
    }

    .bk-spmenu__card {
        left: calc(var(--u) * 21);
        right: auto;
        width: calc(var(--u) * 360);
    }

    .bk-cta {
        align-items: stretch;
        gap: 32px;
        padding: 8px 0;
    }

    .bk-cta__title {
        font-size: 32px;
        line-height: 1.35;
    }

    .bk-cta__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .bk-cta__buttons > a {
        flex: none;
        width: 100%;
    }

    .bk-pill-lg {
        height: 56px;
        padding: 0 24px 0 28px;
        font-size: 16px;
    }

    .bk-footer {
        padding-top: 48px;
    }

    .bk-footer__inner {
        gap: 32px;
        padding: 0 24px 48px;
    }

    .bk-footer__row {
        gap: 40px;
    }

    .bk-footer__cols {
        flex-direction: column;
        gap: 28px;
    }

    .bk-footer__col,
    .bk-footer__col--main {
        gap: 14px;
    }

    .bk-footer__logo img {
        width: 160px;
    }
}

/* ---------- ログイン中の管理バー ---------- */
@media (min-width: 1024px) {
    .admin-bar .bk-header {
        top: 64px;
    }
}

@media (min-width: 783px) and (max-width: 1023px) {
    .admin-bar .bk-header {
        top: calc(var(--u) * 22 + 32px);
    }

    .admin-bar .bk-spmenu {
        top: 32px;
    }
}

@media (min-width: 601px) and (max-width: 782px) {
    .admin-bar .bk-header {
        top: calc(var(--u) * 22 + 46px);
    }

    .admin-bar .bk-spmenu {
        top: 46px;
    }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        transition: none;
    }
}
