/* =========================
   WORK PAGE
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500;600&family=Roboto+Condensed:ital,wght@1,700;1,800;1,900&display=swap');


/* =========================
   RESET
   ========================= */

html,
body.kn-work-template {
    margin: 0 !important;
    padding: 0 !important;

    width: 100%;

    background: #080808;

    overflow-x: hidden;
}


/* =========================
   PAGE
   ========================= */

.work-page {
    position: relative;

    box-sizing: border-box;

    width: 100%;
    min-height: 100svh;

    color: #fff;

    background-color: #080808;

    background-image:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.35) 0%,
            rgba(0,0,0,0.78) 58%,
            rgba(0,0,0,0.98) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.28),
            rgba(0,0,0,0.62)
        ),
        url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

    background-size: cover;

    background-position: center top;

    background-repeat: no-repeat;

    background-attachment: fixed;
}


/* =========================
   MAIN
   ========================= */

.work-main {
    box-sizing: border-box;

    width: 100%;

    min-height: 100svh;

    padding:
        180px
        7%
        120px;

    transition:
        opacity 0.35s ease;
}


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

.work-header {
    width: 100%;
    max-width: 1280px;

    margin:
        0
        auto
        90px;
}


.work-eyebrow {
    margin-bottom: 18px;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.22em;

    color:
        rgba(255,255,255,0.48);
}


/* =========================
   WORK TITLE
   ========================= */

.work-title {
    margin: 0;

    font-family:
        'Roboto Condensed',
        'Arial Narrow',
        sans-serif;

    font-size:
        clamp(
            55px,
            4.8vw,
            95px
        );

    font-style: italic;

    font-weight: 900;

    line-height: 0.85;

    letter-spacing: -0.025em;
}


.work-title-line {
    width: 55px;
    height: 2px;

    margin-top: 35px;

    background:
        rgba(255,255,255,0.75);
}


.work-latest {
    margin-top: 55px;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.22em;

    color:
        rgba(255,255,255,0.55);
}


/* =========================
   LIST
   ========================= */

.work-list {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    border-top:
        1px solid
        rgba(255,255,255,0.20);
}


/* =========================
   ITEM
   ========================= */

.work-item {
    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        minmax(240px, 36%)
        1fr;

    gap:
        clamp(
            35px,
            5vw,
            75px
        );

    padding:
        55px
        0;

    border-bottom:
        1px solid
        rgba(255,255,255,0.16);
}


/* 画像なしの場合 */

.work-item:not(:has(.work-thumbnail)) {
    grid-template-columns: 1fr;
}


/* =========================
   THUMBNAIL
   ========================= */

.work-thumbnail {
    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background:
        rgba(255,255,255,0.04);
}


.work-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(0.82)
        saturate(0.75);

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.work-thumbnail:hover img {
    transform:
        scale(1.025);

    filter:
        brightness(0.95)
        saturate(0.9);
}


/* =========================
   ITEM CONTENT
   ========================= */

.work-item-content {
    position: relative;

    box-sizing: border-box;

    min-width: 0;
}


/* DATE */

.work-date {
    margin-bottom: 12px;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.16em;

    color:
        rgba(255,255,255,0.42);
}


/* CATEGORY */

.work-category {
    margin-bottom: 17px;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color:
        rgba(255,255,255,0.70);
}


/* TITLE */

.work-item-title {
    max-width: 760px;

    margin:
        0
        0
        20px;

    font-family:
        'Noto Sans JP',
        sans-serif;

    font-size:
        clamp(
            20px,
            1.8vw,
            28px
        );

    font-weight: 500;

    line-height: 1.55;

    letter-spacing: 0.045em;
}


.work-item-title a {
    color: #fff;

    text-decoration: none;

    transition:
        opacity 0.25s ease;
}


.work-item-title a:hover {
    opacity: 0.55;
}


/* EXCERPT */

.work-excerpt {
    max-width: 680px;

    font-family:
        'Noto Sans JP',
        sans-serif;

    font-size: 13px;

    font-weight: 300;

    line-height: 2;

    letter-spacing: 0.06em;

    color:
        rgba(255,255,255,0.62);
}


/* VIEW MORE */

.work-more {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 30px;

    color: #fff;

    text-decoration: none;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    transition:
        opacity 0.25s ease;
}


.work-more:hover {
    opacity: 0.5;
}


.work-arrow {
    font-size: 18px;

    font-weight: 300;

    transition:
        transform 0.25s ease;
}


.work-more:hover
.work-arrow {
    transform:
        translateX(6px);
}


/* =========================
   EMPTY
   ========================= */

.work-empty {
    padding:
        90px
        20px;

    text-align: center;
}


.work-empty-en {
    font-family:
        'Montserrat',
        sans-serif;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.25em;

    color:
        rgba(255,255,255,0.50);
}


.work-empty-jp {
    margin-top: 16px;

    font-family:
        'Noto Sans JP',
        sans-serif;

    font-size: 12px;

    font-weight: 300;

    letter-spacing: 0.08em;

    color:
        rgba(255,255,255,0.42);
}


/* =========================
   PAGINATION
   ========================= */

.work-pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    padding-top: 65px;
}


.work-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding:
        0
        8px;

    box-sizing: border-box;

    color:
        rgba(255,255,255,0.65);

    text-decoration: none;

    font-family:
        'Montserrat',
        sans-serif;

    font-size: 9px;

    letter-spacing: 0.08em;

    border:
        1px solid
        rgba(255,255,255,0.14);

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.work-pagination .current,
.work-pagination .page-numbers:hover {
    color: #000;

    background: #fff;
}


/* =========================
   HAMBURGER
   ========================= */

.kn-menu-button {
    position: fixed;

    top: 0;
    left: 0;

    width: 98px;
    height: 98px;

    background:
        rgba(0,0,0,0.88);

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 100;

    cursor: pointer;

    border: none;
    padding: 0;
}


.kn-menu-lines {
    position: relative;

    display: block;

    width: 52px;
    height: 30px;
}


.kn-menu-lines span {
    position: absolute;

    left: 50%;

    display: block;

    width: 100%;
    height: 2px;

    background: #fff;

    transform:
        translateX(-50%);

    transform-origin:
        center center;

    transition:
        top 0.35s ease,
        transform 0.35s ease,
        opacity 0.25s ease;
}


.kn-menu-lines span:nth-child(1) {
    top: 0;
}


.kn-menu-lines span:nth-child(2) {
    top: 14px;
}


.kn-menu-lines span:nth-child(3) {
    top: 28px;
}


/* OPEN */

.kn-menu-button.active
.kn-menu-lines span:nth-child(1) {
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.kn-menu-button.active
.kn-menu-lines span:nth-child(2) {
    top: 50%;

    opacity: 0;

    transform:
        translate(-50%, -50%);
}


.kn-menu-button.active
.kn-menu-lines span:nth-child(3) {
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================
   INSTAGRAM
   ========================= */

.kn-instagram {
    position: fixed;

    top: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    background: #fff;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 100;
}


.kn-instagram svg {
    width: 30px;
    height: 30px;
}


/* =========================
   OVERLAY
   ========================= */

.kn-overlay-menu {
    position: fixed;

    inset: 0;

    width: 100vw;

    height: 100vh;
    height: 100svh;

    background:
        rgba(0,0,0,0.62);

    z-index: 90;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.kn-overlay-menu.active {
    opacity: 1;

    visibility: visible;
}


/* OPEN時本文 */

.work-page.menu-open
.work-main {
    opacity: 0.12;
}


/* MENU */

.kn-overlay-menu-inner {
    box-sizing: border-box;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap:
        clamp(
            42px,
            6vh,
            72px
        );

    padding:
        80px
        25px;

    text-align: center;
}


.kn-overlay-menu a {
    color: #fff;

    text-decoration: none;

    font-family:
        'Montserrat',
        sans-serif;

    font-size:
        clamp(
            15px,
            1.2vw,
            20px
        );

    font-weight: 600;

    line-height: 1.2;

    transition:
        opacity 0.25s ease;
}


.kn-overlay-menu a:hover {
    opacity: 0.55;
}


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

@media (max-width: 1024px) {

    .kn-menu-button {
        width: 78px;
        height: 78px;
    }


    .kn-menu-lines {
        width: 42px;
        height: 26px;
    }


    .kn-menu-lines span:nth-child(1) {
        top: 0;
    }


    .kn-menu-lines span:nth-child(2) {
        top: 12px;
    }


    .kn-menu-lines span:nth-child(3) {
        top: 24px;
    }


    .kn-menu-button.active
    .kn-menu-lines span {
        top: 50%;
    }


    .kn-instagram {
        width: 54px;
        height: 54px;

        top: 15px;
        right: 15px;
    }


    .kn-instagram svg {
        width: 27px;
        height: 27px;
    }


    .work-main {
        padding:
            150px
            6%
            100px;
    }

}


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

@media (max-width: 767px) {

    .work-page {
        background-image:
            linear-gradient(
                180deg,
                rgba(0,0,0,0.40) 0%,
                rgba(0,0,0,0.76) 40%,
                rgba(0,0,0,0.98) 100%
            ),
            url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

        background-position:
            58% top;

        background-attachment:
            scroll;
    }


    /* ハンバーガー */

    .kn-menu-button {
        position: fixed;

        width: 68px;
        height: 68px;

        top: 0;
        left: 0;
    }


    .kn-menu-lines {
        width: 38px;
        height: 24px;
    }


    .kn-menu-lines span:nth-child(1) {
        top: 0;
    }


    .kn-menu-lines span:nth-child(2) {
        top: 11px;
    }


    .kn-menu-lines span:nth-child(3) {
        top: 22px;
    }


    .kn-menu-button.active
    .kn-menu-lines span {
        top: 50%;
    }


    /* Instagram */

    .kn-instagram {
        position: fixed;

        width: 50px;
        height: 50px;

        top: 12px;
        right: 12px;
    }


    .kn-instagram svg {
        width: 25px;
        height: 25px;
    }


    /* MAIN */

    .work-main {
        padding:
            120px
            6%
            70px;
    }


    .work-header {
        margin-bottom: 60px;
    }


    .work-eyebrow {
        margin-bottom: 15px;

        font-size: 8px;
    }


    /*
       スマホのWORKタイトルは
       PCとは別サイズ
    */

    .work-title {
        font-size:
            clamp(
                62px,
                20vw,
                88px
            );
    }


    .work-title-line {
        width: 44px;

        margin-top: 23px;
    }


    .work-latest {
        margin-top: 40px;

        font-size: 9px;
    }


    /* 投稿 */

    .work-item {
        display: block;

        padding:
            38px
            0
            42px;
    }


    .work-thumbnail {
        width: 100%;

        margin-bottom: 28px;
    }


    .work-item-title {
        font-size: 18px;

        line-height: 1.65;
    }


    .work-excerpt {
        font-size: 12px;

        line-height: 1.9;
    }


    .work-more {
        margin-top: 25px;

        font-size: 8px;
    }


    /* MENU */

    .kn-overlay-menu-inner {
        gap:
            clamp(
                34px,
                5vh,
                52px
            );

        padding:
            80px
            20px
            40px;
    }


    .kn-overlay-menu a {
        font-size: 14px;
    }

}


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

@media (max-width: 420px) {

    .work-main {
        padding-top: 110px;
    }


    .work-title {
        font-size: 64px;
    }


    .work-item-title {
        font-size: 17px;
    }


    .kn-overlay-menu a {
        font-size: 13px;
    }

}



/* ==========================================
   WORK / FIXED BACKGROUND
   PC・スマホ背景表示調整
========================================== */

/* 元の背景を解除 */
body.kn-work-template .work-page {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

/* 背景固定レイヤー */
body.kn-work-template .work-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-color: #080808;

    background-image:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.72) 55%,
            rgba(0,0,0,0.88) 100%
        ),
        url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 本文は通常スクロール */
body.kn-work-template .work-main {
    position: relative;
    z-index: 1;
}

/* スマホ */
@media (max-width: 767px) {

    body.kn-work-template .work-page::before {
        top: 0;
        bottom: auto;

        height: 100vh;
        height: 100svh;

        background-image:
            linear-gradient(
                180deg,
                rgba(0,0,0,0.40) 0%,
                rgba(0,0,0,0.76) 40%,
                rgba(0,0,0,0.90) 100%
            ),
            url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

        background-position: 58% center;
    }

}
