/* ============================================================
   Chat Lady Work — Header / Navigation
   モノトーン×レッドの、余白で見せるミニマル・エディトリアル
============================================================ */

:root {
    --clw-black: #111111;
    --clw-ink: #1c1c1c;
    --clw-gray-900: #2c2c2e;
    --clw-gray-700: #58585c;
    --clw-gray-400: #9a999e;
    --clw-gray-200: #e3e2df;
    --clw-gray-100: #f1f0ec;
    --clw-paper: #fafaf7;
    --clw-white: #ffffff;
    --clw-red: #d81f2c;
    --clw-red-deep: #a8121e;
    --clw-header-h: 68px;
    --clw-ribbon-h: 38px;
}

@media (max-width: 768px) {
    :root {
        --clw-header-h: 58px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Murecho", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    margin: 0;
    background: var(--clw-paper);
    color: var(--clw-black);
}

main {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    line-height: 1.85;
    overflow-x: clip;
}

/* ============================
   お知らせリボン
============================ */

.top-ribbon {
    background: var(--clw-black);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
}

.top-ribbon .rb-pill {
    color: var(--clw-red);
    font-weight: 700;
}

.top-ribbon .rb-pill::before {
    content: "/ ";
    color: #666;
    font-weight: 400;
}

/* ============================
   ヘッダー本体
============================ */

.site-header {
    position: sticky;
    top: 0;
    height: var(--clw-header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(16px, 4vw, 44px);
    background: rgba(250, 250, 247, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clw-black);
    z-index: 1000;
}

/* ============================
   ロゴ（ワードマーク）
============================ */

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo .logo-main {
    font-family: "Murecho", sans-serif;
    font-weight: 800;
    font-size: clamp(15px, 2vw, 18.5px);
    letter-spacing: 0.02em;
    color: var(--clw-black);
    line-height: 1;
    white-space: nowrap;
}

.logo .logo-main .hl {
    color: var(--clw-red);
}

/* ============================
   メニュー開閉ボタン（モバイル）
============================ */

.menu-btn {
    background: var(--clw-black);
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 1200;
    flex-shrink: 0;
}

.menu-btn:hover {
    opacity: 0.75;
}

.menu-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================
   ナビゲーション（モバイル：ドロワー）
============================ */

.site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 84%);
    height: 100vh;
    background: var(--clw-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    transition: right 0.4s cubic-bezier(.19,1,.22,1);
    z-index: 1100;
}

.site-nav.active {
    right: 0;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.site-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-nav li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-nav a {
    display: block;
    padding: 17px 2px;
    color: #f2f2f0;
    font-family: "Murecho", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-nav a:hover {
    color: var(--clw-red);
    padding-left: 8px;
}

.site-nav li.nav-cta {
    border: none;
    margin-top: 26px;
}

.site-nav li.nav-cta a {
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    padding: 15px 10px;
    background: var(--clw-red);
    color: #fff;
}

.site-nav li.nav-cta a:hover {
    color: #fff;
    padding-left: 10px;
    background: var(--clw-red-deep);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    z-index: 1050;
}

.nav-scrim.active {
    opacity: 1;
    visibility: visible;
}

/* ============================
   デスクトップ：横並びナビ
============================ */

@media (min-width: 1024px) {
    .menu-btn,
    .nav-scrim {
        display: none;
    }

    .site-nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        transition: none;
    }

    .site-nav ul {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .site-nav li {
        border: none;
        margin: 0;
    }

    .site-nav li:first-child {
        border: none;
    }

    .site-nav a {
        position: relative;
        padding: 8px 14px;
        font-size: 0.86rem;
        color: var(--clw-gray-700);
        letter-spacing: 0.01em;
    }

    .site-nav a::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 3px;
        height: 1.5px;
        background: var(--clw-red);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .site-nav a:hover {
        color: var(--clw-black);
    }

    .site-nav a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .site-nav li.nav-cta {
        margin: 0 0 0 14px;
    }

    .site-nav li.nav-cta a {
        border-radius: 6px;
        padding: 10px 24px;
        font-size: 0.8rem;
        font-weight: 700;
        background: var(--clw-black);
        color: #fff;
    }

    .site-nav li.nav-cta a::after {
        display: none;
    }

    .site-nav li.nav-cta a:hover {
        background: var(--clw-red);
    }
}
