/* =========================
   SINGLE 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-single-work-template {

    margin: 0 !important;
    padding: 0 !important;

    width: 100%;

    background: #080808;

    overflow-x: hidden;
}


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

.single-work-page {

    position: relative;

    box-sizing: border-box;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    color: #fff;

    background-color: #080808;

    background-image:

        linear-gradient(
            180deg,
            rgba(0,0,0,0.46) 0%,
            rgba(0,0,0,0.83) 52%,
            rgba(0,0,0,0.98) 100%
        ),

        linear-gradient(
            90deg,
            rgba(0,0,0,0.60),
            rgba(0,0,0,0.28),
            rgba(0,0,0,0.66)
        ),

        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
   ========================= */

.single-work-main {

    box-sizing: border-box;

    width: 100%;

    min-height: 100svh;

    padding:
        175px
        7%
        120px;

    transition:
        opacity 0.35s ease;
}


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

.single-work-header {

    width: 100%;

    max-width: 1120px;

    margin:
        0
        auto
        70px;
}


/* EYEBROW */

.single-work-eyebrow {

    margin-bottom: 25px;

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

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.22em;

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


/* META */

.single-work-meta {

    display: flex;

    align-items: center;

    gap: 22px;

    margin-bottom: 26px;

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

    text-transform: uppercase;
}


.single-work-date {

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.16em;

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


.single-work-category {

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.16em;

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


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

.single-work-title {

    max-width: 980px;

    margin: 0;

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

    font-size:
        clamp(
            34px,
            4vw,
            62px
        );

    font-weight: 500;

    line-height: 1.45;

    letter-spacing: 0.045em;

    color: #fff;
}


.single-work-title-line {

    width: 52px;

    height: 2px;

    margin-top: 38px;

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


/* =========================
   FEATURE IMAGE
   ========================= */

.single-work-visual {

    width: 100%;

    max-width: 1120px;

    margin:
        0
        auto
        75px;

    overflow: hidden;

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


.single-work-visual img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 720px;

    object-fit: cover;

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


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

.single-work-content {

    width: 100%;

    max-width: 760px;

    margin:
        0
        auto;

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

    font-size: 15px;

    font-weight: 300;

    line-height: 2.15;

    letter-spacing: 0.065em;

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


.single-work-content p {

    margin:
        0
        0
        2em;
}


.single-work-content h2 {

    margin:
        3em
        0
        1.2em;

    font-size: 24px;

    font-weight: 500;

    line-height: 1.6;

    color: #fff;
}


.single-work-content h3 {

    margin:
        2.5em
        0
        1em;

    font-size: 19px;

    font-weight: 500;

    color: #fff;
}


.single-work-content a {

    color: #fff;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;
}


.single-work-content img {

    max-width: 100%;

    height: auto;
}


/* =========================
   BACK
   ========================= */

.single-work-footer {

    width: 100%;

    max-width: 760px;

    margin:
        90px
        auto
        0;

    padding-top: 35px;

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


.single-work-back {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    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;
}


.single-work-back:hover {

    opacity: 0.5;
}


.single-work-back-arrow {

    font-size: 18px;

    transition:
        transform 0.25s ease;
}


.single-work-back:hover
.single-work-back-arrow {

    transform:
        translateX(-5px);
}


/* =========================
   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時 */

.single-work-page.menu-open
.single-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;
    }


    .single-work-main {

        padding:
            150px
            6%
            100px;
    }

}


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

@media (max-width: 767px) {

    .single-work-page {

        background-image:

            linear-gradient(
                180deg,
                rgba(0,0,0,0.44) 0%,
                rgba(0,0,0,0.82) 38%,
                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 {

        width: 68px;
        height: 68px;
    }


    .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%;
    }


    .kn-instagram {

        width: 50px;
        height: 50px;

        top: 12px;
        right: 12px;
    }


    .kn-instagram svg {

        width: 25px;
        height: 25px;
    }


    .single-work-main {

        padding:
            120px
            6%
            70px;
    }


    .single-work-header {

        margin-bottom:
            48px;
    }


    .single-work-eyebrow {

        margin-bottom:
            20px;

        font-size: 8px;
    }


    .single-work-meta {

        gap: 16px;

        margin-bottom: 20px;
    }


    .single-work-title {

        font-size:
            clamp(
                25px,
                7.2vw,
                36px
            );

        line-height: 1.5;
    }


    .single-work-title-line {

        width: 42px;

        margin-top: 28px;
    }


    .single-work-visual {

        margin-bottom: 48px;
    }


    .single-work-content {

        font-size: 13px;

        line-height: 2;

        letter-spacing: 0.055em;
    }


    .single-work-content h2 {

        font-size: 20px;
    }


    .single-work-content h3 {

        font-size: 17px;
    }


    .single-work-footer {

        margin-top: 65px;
    }


    .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) {

    .single-work-main {

        padding-top: 110px;
    }


    .single-work-title {

        font-size: 25px;
    }


    .kn-overlay-menu a {

        font-size: 13px;
    }

}


/* ==========================================
   SINGLE WORK
   FIXED BACKGROUND
   長文投稿でも背景を固定
========================================== */

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

/* 画面に固定する背景 */
body.kn-single-work-template .single-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.46) 0%,
            rgba(0,0,0,0.83) 52%,
            rgba(0,0,0,0.98) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,0.60),
            rgba(0,0,0,0.28),
            rgba(0,0,0,0.66)
        ),
        url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

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

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

/* スマートフォン */
@media (max-width: 767px) {

    body.kn-single-work-template .single-work-page::before {
        background-image:
            linear-gradient(
                180deg,
                rgba(0,0,0,0.44) 0%,
                rgba(0,0,0,0.82) 38%,
                rgba(0,0,0,0.98) 100%
            ),
            url('https://irenka.jp/wp-content/uploads/2026/08/img_4274.png');

        background-position: 58% top;
    }

}


/* PCの背景画像を確認・明るさ調整 */
@media (min-width: 768px) {

    body.kn-single-work-template .single-work-page::before {
        

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') !important;



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

}
