@charset "utf-8";

/* ==========================================================================
   Layout: 共通レイアウト
   ========================================================================== */

/**
 * 画面幅の制限と中央寄せ
 */
.l-inner {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* ==========================================================================
   Project: Header
   ========================================================================== */

.p-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    height: var(--header-height, 80px);
    padding: 0 30px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.p-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.p-header.is-dark {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

.p-header__left {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
}

.p-header__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
}

.p-header .p-header__logo-link {
    display: block;
    position: relative;
    width: 218px;
    height: 48px;
    line-height: 1;
    text-decoration: none;
    transition: opacity var(--transition-default, 0.3s ease);
}

.p-header__logo-link:hover {
    opacity: 0.8;
}

.p-header .p-header__logo-img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.p-header .p-header__logo-img--white {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ダークモード時: 白ロゴを表示 */
.p-header.is-dark .p-header__logo-img {
    opacity: 0;
}

.p-header.is-dark .p-header__logo-img--white {
    opacity: 1;
}

.p-header__sub-text {
    flex: 0 0 auto;
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    color: var(--color-text-main, #112050);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.p-header.is-dark .p-header__sub-text {
    color: rgba(255, 255, 255, 0.85);
}

.p-header__right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.p-header__link {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0;
    color: var(--color-text-body);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.p-header__link:hover {
    color: var(--color-accent-cyan, #00c8ff);
}

.p-header.is-dark .p-header__link {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Entry Button
   ========================================================================== */

.p-header__btn.c-entry-btn--rect {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 256px;
    height: 50px;
    padding: 0 45px 0 19px;
    border-radius: 0;
    gap: 0;
    background: linear-gradient(90deg, #6ac7de 0%, #5596ff 50%, #8380ff 100%);
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.p-header__btn .c-entry-btn__text-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.p-header__btn .c-entry-btn__sub {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 88px;
    height: 20px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.p-header__btn .c-entry-btn__main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 96px;
    height: 31px;
    margin: 0;
    padding: 5px 0 6px;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.p-header__btn .c-entry-btn__arrow-svg {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 20px;
    height: 5px;
    max-width: none;
    margin: 0;
    transform: none;
}

@media screen and (min-width: 768px) {
    .p-header__btn {
        transition: opacity 0.2s ease;
    }

    .p-header__btn:hover,
    .p-header__btn:focus-visible {
        opacity: 0.8;
    }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */

.p-hamburger,
.p-header__hamburger,
.l-header__hamburger,
.p-header__burger {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    transform: none;
    cursor: pointer;
    flex-shrink: 0;
}

.p-header__burger-line,
.l-header__hamburger-line {
    position: relative;
    display: block;
    width: 100%;
    max-width: 48px;
    height: 2px;
    margin: 0;
    border-radius: 29px;
    background-color: var(--color-text-main, #112050);
    transform-origin: center;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        background-color 0.3s ease,
        top 0.35s ease;
}

/* メニュー展開時：ハンバーガー → X（PC/SP共通） */
body.is-fixed .p-header__burger,
body.is-fixed .l-header__hamburger {
    justify-content: center;
    gap: 0;
}

body.is-fixed .p-header__burger-line:nth-child(1),
body.is-fixed .l-header__hamburger-line:nth-child(1) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    max-width: none;
    margin: -1px 0 0 -24px;
    transform: rotate(21.3deg);
}

body.is-fixed .p-header__burger-line:nth-child(2),
body.is-fixed .l-header__hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.is-fixed .p-header__burger-line:nth-child(3),
body.is-fixed .l-header__hamburger-line:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    max-width: none;
    margin: -1px 0 0 -24px;
    transform: rotate(-21.3deg);
}

.p-header.is-dark .p-header__burger-line,
.p-header.is-dark .l-header__hamburger-line {
    background-color: #ffffff;
}

/* ==========================================================================
   Hamburger Menu & Drawer
   ========================================================================== */

/* オーバーレイ（背景ブラー） */
.l-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        backdrop-filter 0.35s ease;
}

.l-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ドロワー本体（右からスライドイン / PC: 約35%） */
.l-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: 490px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: -8px 0 32px rgba(13, 27, 62, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition:
        transform 0.45s cubic-bezier(0.22, 1.18, 0.36, 1),
        visibility 0s linear 0.45s;
}

.l-drawer.is-active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        transform 0.45s cubic-bezier(0.22, 1.18, 0.36, 1),
        visibility 0s;
}

.l-drawer__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    padding: calc(var(--header-height, 80px) + 80px) 0 0 80px;
}

/* 閉じるボタンはヘッダーの X に統一 */
.l-drawer__close {
    display: none;
}

/* ナビゲーションリスト */
.l-drawer__nav {
    flex: 0 0 auto;
    width: 213px;
    min-height: 535px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    list-style: none;
}

.l-drawer__item {
    margin-bottom: 0;
}

.l-drawer__item:last-child {
    margin-bottom: 0;
}

.l-drawer__link {
    display: flex;
    align-items: center;
    perspective: 600px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #030c18;
    text-decoration: none;
    transition: color 0.3s ease;
}

.l-drawer__link:hover {
    color: #075490;
}

/* 現在地（カンプ準拠のブルー） */
.l-drawer__link.is-current {
    color: #2071b8;
}

/* 左側の三角形アイコン画像 */
.l-drawer__icon {
    display: block;
    flex-shrink: 0;
    width: 12px;
    height: 10px;
    margin-right: 10px;
    object-fit: contain;
}

/* CTAボタン */
.l-drawer__btn-wrap {
    width: 330px;
    margin-top: 60px;
    display: flex;
    justify-content: flex-start;
}

.l-drawer__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    min-width: 330px;
    max-width: 330px;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6ac7de 0%, #5596ff 50%, #8380ff 100%);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.l-drawer__btn:hover {
    opacity: 0.8;
}

.l-drawer__btn-text {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 4px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Roboto", sans-serif;
    color: #ffffff;
    white-space: nowrap;
}

.l-drawer__btn-sub {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.l-drawer__btn-main {
    display: block;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.l-drawer__btn-arrow {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 5px;
    margin-left: 4px;
}

/* bodyのスクロール固定用クラス */
body.is-fixed {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* メニュー展開時：ヘッダーを白背景・X表示で最前面に */
body.is-fixed .p-header {
    z-index: 1300;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom-color: #e0e0e0;
}

body.is-fixed .p-header .p-header__logo-img {
    opacity: 1;
}

body.is-fixed .p-header .p-header__logo-img--white {
    opacity: 0;
}

body.is-fixed .p-header .p-header__sub-text {
    color: var(--color-text-main, #112050);
}

body.is-fixed .p-header .p-header__link {
    color: var(--color-text-main, #112050);
}

body.is-fixed .p-header .p-header__burger-line,
body.is-fixed .p-header .l-header__hamburger-line {
    height: 2px;
    background-color: #030c18;
}

@media screen and (max-width: 767px) {
    /* SPドロワー（カンプ寄せ） */
    .l-drawer {
        width: 274px;
        max-width: calc(100vw - 28px);
        min-width: 274px;
        height: 100vh;
        height: 100dvh;
    }

    .l-drawer__inner {
        /* ヘッダー下40px / 左43px */
        padding: 100px 0 40px 43px;
        min-height: 100%;
    }

    .l-drawer__nav {
        width: 181px;
        min-height: 451px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

    .l-drawer__item {
        margin: 0;
    }

    .l-drawer__btn-wrap {
        width: 181px;
        margin-top: 40px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    .l-drawer__link {
        font-size: 16px;
        line-height: 1.7;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .l-drawer__icon {
        width: 12px;
        height: 10px;
        margin-right: 10px;
    }

    .l-drawer__btn {
        width: 244px;
        max-width: 244px;
        min-width: 244px;
        height: 58px;
        min-height: 58px;
        max-height: 58px;
    }

    .p-header__burger,
    .l-header__hamburger {
        position: absolute;
        top: 6px;
        right: 8px;
        bottom: auto;
        left: auto;
        width: 48px;
        height: 48px;
        margin: 0;
        gap: 6px;
        z-index: 2;
    }

    .p-header__burger-line,
    .l-header__hamburger-line {
        max-width: 39px;
    }

    /* SPメニュー展開時：39x2 ラインでX（アイコン 39x15.56） */
    body.is-fixed .p-header__burger-line:nth-child(1),
    body.is-fixed .p-header__burger-line:nth-child(3),
    body.is-fixed .l-header__hamburger-line:nth-child(1),
    body.is-fixed .l-header__hamburger-line:nth-child(3) {
        width: 39px;
        margin-left: -19.5px;
    }

    body.is-fixed .p-header__burger-line:nth-child(1),
    body.is-fixed .l-header__hamburger-line:nth-child(1) {
        transform: rotate(21.75deg);
    }

    body.is-fixed .p-header__burger-line:nth-child(3),
    body.is-fixed .l-header__hamburger-line:nth-child(3) {
        transform: rotate(-21.75deg);
    }
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */
@media screen and (max-width: 767px) {
    .p-header {
        height: 60px;
        padding: 0;
    }

    .p-header__inner {
        position: relative;
        display: block;
        width: 100%;
        height: 60px;
    }

    .p-header__left {
        display: block;
        position: static;
        width: auto;
        height: auto;
    }

    /* ロゴ 159×35 / top 12 / left 15 */
    .p-header__logo {
        position: absolute;
        top: 12px;
        left: 15px;
        z-index: 2;
        margin: 0;
    }

    .p-header .p-header__logo-link {
        width: 159px;
        height: 35px;
    }

    /* SPでロゴが消える事故防止（is-dark の切替も含めて明示） */
    .p-header .p-header__logo-img {
        opacity: 1;
    }

    .p-header .p-header__logo-img--white {
        opacity: 0;
    }

    .p-header.is-dark .p-header__logo-img {
        opacity: 0;
    }

    .p-header.is-dark .p-header__logo-img--white {
        opacity: 1;
    }

    /* RECRUIT 51×15 / 12px・字間0% / top 22 / left 184（ロゴ右端+10px） */
    .p-header__sub-text {
        position: absolute;
        top: 22px;
        left: 184px;
        width: 51px;
        height: 15px;
        margin: 0;
        font-size: 12px;
        line-height: 15px;
        letter-spacing: 0;
    }

    .p-header__right {
        position: static;
        display: block;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    /* SPヘッダー：募集要項・エントリーボタンは非表示（ロゴ＋RECRUIT＋ハンバーガーのみ） */
    .p-header__link {
        display: none;
    }

    .p-header__btn,
    .p-header__btn.c-entry-btn--rect {
        display: none;
        visibility: hidden;
        pointer-events: none;
    }

    .p-header__burger-line,
    .l-header__hamburger-line {
        height: 2px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* ==========================================================================
   Copyright
   ========================================================================== */