/* ==================================================
   リセット
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #e5e5e5;
    color: #292929;

    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "YuMincho",
        serif;
}


/* ==================================================
   サイト全体
================================================== */

.site-wrapper {
    position: relative;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 20px;

    /* display: flex; */
    /* align-items: flex-start; */
    gap: 30px;
}


/* ==================================================
   左側メイン
================================================== */

.main-content {
    /* width: calc(100% - 450px); */
    width: 100%;

    background-color: #f8f3e7;

    overflow: hidden;
}


/* ==================================================
   TOP
================================================== */

.top-section {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;
}

.top-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.top-section::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.70),
            rgba(255, 255, 255, 0.50)
        );

    pointer-events: none;
}


/* ==================================================
   TOP文字
================================================== */

.top-text {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 50%;

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

    width: 100%;

    text-align: center;

    color: #7a4a2d;
}

.top-text h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 60px;
    font-weight: 400;

    letter-spacing: 1px;

    margin-bottom: 10px;
    color: #7a4a2d;
}

.top-text p {
    font-size: 12px;

    letter-spacing: 1px;
    color: #7a4a2d;
}


/* ==================================================
   サイト概要
================================================== */

.about-section {
    position: relative;

    margin: 10px;
    padding: 10px;

    background-color: #f8f5ef;

    border:
        1px solid #d8d0c5;
}

.about-inner {
    position: relative;

    padding:
        35px 25px 40px;

    border:
        1px solid #ddd6cb;
}

.section-heading {
    display: flex;

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

    gap: 15px;

    margin-bottom: 25px;
}

.section-heading span {
    display: block;

    width: 45px;
    height: 1px;

    background-color: #777;
}

.section-heading h2 {
    font-size: 25px;

    font-weight: 400;

    letter-spacing: 3px;
}

.about-text {
    font-size: 12px;

    line-height: 2;

    letter-spacing: 0.5px;
}

.about-text p {
    margin-bottom: 14px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-emphasis {
    margin-top: 25px;

    font-size: 12px;
}


/* ==================================================
   葉っぱ装飾
================================================== */

.leaf-decoration {
    position: absolute;

    z-index: 3;

    color: #aaa092;

    font-size: 55px;

    opacity: 0.6;
}

.leaf-left {
    top: -4px;
    left: 2px;

    transform:
        rotate(-25deg);
}

.leaf-right {
    right: 0;
    bottom: -5px;

    transform:
        rotate(155deg);
}


/* ==================================================
   ジャンル一覧
================================================== */

.genre-section {
    position: relative;

    width: 100%;

    min-height: 730px;

    overflow: hidden;
}

.genre-background {
    position: absolute;

    z-index: 0;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.genre-overlay {
    position: absolute;

    z-index: 1;

    inset: 0;

    background:
        rgba(25, 35, 35, 0.25);
}

.genre-content {
    position: relative;

    z-index: 2;

    padding:
        90px 20px 50px;
}

.genre-heading {
    display: flex;

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

    gap: 15px;

    margin-bottom: 65px;
}

.genre-heading span {
    width: 40px;
    height: 1px;

    background-color: #ffffff;

    opacity: 0.8;
}

.genre-heading h2 {
    color: white;

    font-size: 27px;

    font-weight: 400;

    letter-spacing: 5px;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.5);
}


/* ==================================================
   ジャンルカード
================================================== */

.genre-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    max-width: 440px;

    margin: 0 auto;
}

.genre-card {
    position: relative;

    height: 140px;

    display: flex;

    flex-direction: column;

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

    text-decoration: none;

    color: #333;

    background:
        rgba(255, 255, 255, 0.86);

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

    border-radius: 15px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.15);

    transition:
        0.3s ease;
}

.genre-icon {
    margin-bottom: 10px;

    font-size: 25px;

    color: #817667;
}

.genre-card span {
    font-size: 13px;

    letter-spacing: 2px;
}

.genre-card:hover {
    transform:
        translateY(-7px);

    background:
        rgba(255, 255, 255, 0.97);

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.2);
}


/* ==================================================
   作品一覧
================================================== */

.works-section {
    background-color: #f8f3e7;

    padding-bottom: 60px;
}

.works-heading {
    position: relative;

    display: flex;

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

    gap: 15px;

    padding:
        55px 25px 45px;
}

.works-heading > span {
    width: 45px;
    height: 1px;

    background-color: #958c7d;
}

.works-heading h2 {
    font-size: 27px;

    font-weight: 400;

    letter-spacing: 4px;
}

.works-decoration {
    position: absolute;

    left: 25px;
    top: 15px;

    font-size: 50px;

    color: #aaa092;

    opacity: 0.7;

    transform:
        rotate(-20deg);
}

.works-decoration.right {
    left: auto;

    right: 25px;

    transform:
        rotate(160deg);
}


/* ==================================================
   作品カード
================================================== */

.works-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    padding:
        0 25px;
}

.work-card {
    display: block;

    background-color: white;

    color: #292929;

    text-decoration: none;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.08);

    transition:
        0.3s ease;
}

.work-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.14);
}

.work-image {
    width: 100%;

    height: 220px;

    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.4s ease;
}

.work-card:hover img {
    transform:
        scale(1.04);
}

.work-info {
    padding: 15px;
}

.work-info h3 {
    font-size: 15px;

    font-weight: 400;

    margin-bottom: 6px;
}

.work-info p {
    font-size: 11px;

    color: #777;

    margin-bottom: 7px;
}

.work-info small {
    display: inline-block;

    font-size: 9px;

    color: #817667;

    border:
        1px solid #c9c0b4;

    padding:
        3px 7px;
}


/* ==================================================
   フッター
================================================== */

footer {
    padding: 35px;

    text-align: center;

    background-color: #eee7da;
}

footer p {
    font-family:
        Georgia,
        serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #777;
}

/* ==================================================
   小説ページ
================================================== */

.story-body {
    background:
        linear-gradient(180deg, #f3eee7 0%, #efe3d2 100%);
    color: #2d241f;
}

.story-page {
    max-width: 820px;
    margin: 60px auto;
    padding: 52px 38px 70px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d8cab2;
    box-shadow: 0 20px 40px rgba(68, 52, 35, 0.08);
}

.story-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d8cab2;
}

.story-kicker {
    font-size: 11px;
    letter-spacing: 3px;
    color: #7c6858;
    margin-bottom: 14px;
}

.story-header h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #3f2e26;
    line-height: 1.2;
    margin-bottom: 12px;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #705d51;
}

.story-content {
    max-width: 680px;
    margin: 0 auto;
}

.story-content p {
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    color: #2f2a27;
}

.story-nav {
    max-width: 680px;
    margin: 40px auto 0;
    padding-top: 18px;
    border-top: 1px solid #d8cab2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.story-nav a {
    color: #4b3a30;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.story-nav a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 550px) {
    .story-page {
        margin: 20px 12px;
        padding: 32px 20px 44px;
    }

    .story-content p {
        font-size: 16px;
        line-height: 1.9;
    }

    .story-meta {
        flex-direction: column;
        gap: 8px;
    }

    .story-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================================================
   ジャンル別ページ
================================================== */

.genre-page-shell {
    padding: 32px 20px 60px;
    background: linear-gradient(180deg, #f7f0e7 0%, #efe4d2 100%);
}

.genre-page-header {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin-bottom: 28px;
    border: 1px solid #d9cab2;
    box-shadow: 0 16px 32px rgba(63, 47, 35, 0.08);
}

.genre-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 26, 20, 0.28), rgba(78, 56, 43, 0.18));
}

.genre-page-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.8) contrast(1.1);
}

.genre-page-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 42px 30px;
    color: #fdfaf5;
}

.genre-page-kicker {
    font-size: 12px;
    letter-spacing: 0.24em;
    margin-bottom: 16px;
    opacity: 0.9;
}

.genre-page-info h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.genre-page-info p {
    max-width: 620px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.06em;
    opacity: 0.95;
}

.genre-page-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 0 0;
}

.genre-page-back {
    margin-bottom: 24px;
}

.genre-page-back a {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    color: #4d3a2f;
    border: 1px solid #cbbca8;
    background: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.08em;
    transition: 0.3s ease;
}

.genre-page-back a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(63, 47, 35, 0.08);
}

.genre-works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 22px;
}

.genre-work-card {
    display: block;
    background: rgba(255, 255, 255, 0.82);
    color: #2a241f;
    text-decoration: none;
    border: 1px solid #dccbb3;
    box-shadow: 0 10px 20px rgba(63, 47, 35, 0.05);
    transition: 0.3s ease;
}

.genre-work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 28px rgba(63, 47, 35, 0.12);
}

.genre-work-image {
    height: 220px;
    overflow: hidden;
}

.genre-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.genre-work-info {
    padding: 18px 18px 20px;
}

.genre-work-info h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.genre-work-info p {
    font-size: 12px;
    color: #786a5f;
    margin-bottom: 10px;
}

.genre-work-info small {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #d1c0a3;
    color: #6a5647;
    font-size: 10px;
    letter-spacing: 0.08em;
}

@media screen and (max-width: 700px) {
    .genre-works-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   右側サイドパネル
================================================== */

.side-panel {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    flex-shrink: 0;
    min-height: 970px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 5px
        rgba(0, 0, 0, 0.05);
    display: none;
    transform: translateX(-50%);
    overflow-y: auto;
}

/* activeクラスが付いたらメニュー表示 */
.side-panel.active {
    display: block;
}

/* 右端のメニューボタン */
.menu-button {
    position: fixed;
    z-index: 110;
    top: 20px;
    right: calc((100vw - min(1200px, 100vw - 40px)) / 2 + 18px);

    width: 58px;
    height: 58px;

    padding: 0;

    overflow: hidden;

    border: 2px solid #ffffff;
    border-radius: 8px;

    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    cursor: pointer;
}

.menu-icon {
    display: flex;

    flex-direction: column;
    gap: 5px;

    align-items: center;
}

.menu-icon span {
    display: block;

    width: 24px;
    height: 2px;

    background-color: #06fa26;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================================================
   右上画像
================================================== */

.side-hero {
    position: relative;

    width: 100%;

    height: 250px;

    overflow: hidden;
}

.side-hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ==================================================
   右画像の文字
================================================== */

.side-copy {
    position: absolute;

    top: 38px;
    left: 35px;

    padding: 10px 14px;

    color: #7c7c7c;

    background: transparent;
    border-radius: 0;

    text-shadow: none;
}

.side-copy p {
    font-size: 18px;

    line-height: 1.6;

    letter-spacing: 2px;
    font-weight: 600;
}


/* ==================================================
   サイドメニュー
================================================== */

.side-navigation {
    padding:
        30px 35px 0;
}

.side-navigation a {
    display: flex;

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

    height: 58px;

    border-bottom:
        1px solid #333;

    color: #333;

    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    letter-spacing: 3px;

    transition:
        0.25s ease;
}

.side-navigation a:first-child {
    border-top:
        1px solid #333;
}

.side-navigation b {
    font-size: 20px;

    font-weight: 300;

    transition:
        0.25s ease;
}

.side-navigation a:hover {
    padding-left: 10px;
}

.side-navigation a:hover b {
    transform:
        translateX(5px);
}


/* ==================================================
   右下の線
================================================== */

.side-bottom-line {
    width:
        calc(100% - 70px);

    height: 1px;

    background-color: #333;

    margin:
        35px auto 0;
}


/* ==================================================
   PC
================================================== */

@media screen and (min-width: 951px) {

    .site-wrapper {
        max-width: 1200px;
    }

    .main-content {
        /* width: calc(100% - 450px); */
        width: 100%;
    }

    /* .side-panel {
        display: block;
    } */

}


/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 950px) {

    .site-wrapper {
        display: block;

        max-width: 700px;

        padding: 15px;
    }

    .main-content {
        width: 100%;
    }

    /* .side-panel {
        position: relative;

        top: auto;

        width: 100%;

        min-height: auto;

        margin-top: 30px;
    } */

}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 550px) {

    body {
        background-color: white;
    }

    .site-wrapper {
        width: 100%;

        padding: 0;
    }


    /* TOP */

    .top-section {
        height: 260px;
    }

    .top-text h1 {
        font-size: 31px;
    }

    .top-text p {
        font-size: 10px;
    }


    /* サイト概要 */

    .about-section {
        margin: 8px;
    }

    .about-inner {
        padding:
            30px 20px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .about-text {
        font-size: 11px;

        line-height: 1.9;
    }


    /* ジャンル */

    .genre-section {
        min-height: 700px;
    }

    .genre-content {
        padding:
            65px 15px 40px;
    }

    .genre-heading {
        margin-bottom: 45px;
    }

    .genre-heading h2 {
        font-size: 22px;
    }

    .genre-heading span {
        width: 30px;
    }

    .genre-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

        max-width: 100%;
    }

    .genre-card {
        height: 120px;
    }

    .genre-card span {
        font-size: 12px;
    }


    /* 作品 */

    .works-grid {
        grid-template-columns: 1fr;

        padding:
            0 15px;

        gap: 20px;
    }

    .works-heading {
        padding:
            45px 15px 35px;
    }

    .works-heading h2 {
        font-size: 22px;
    }

    .work-image {
        height: 230px;
    }


    /* サイド */

    /* .side-panel {
        width: 100%;

        margin-top: 20px;
    } */

    .side-hero {
        height: 220px;
    }

    .side-copy {
        top: 30px;
        left: 25px;
    }

    .side-copy p {
        font-size: 15px;
    }

    .side-navigation {
        padding:
            20px 25px 0;
    }

    .side-navigation a {
        height: 52px;

        font-size: 12px;
    }

    .side-bottom-line {
        width:
            calc(100% - 50px);
    }


    /* フッター */

    footer {
        padding:
            25px 15px;
    }

}