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

* {
    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: #ffffff;

    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:
        rgba(255, 255, 255, 0.08);

    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: #06fa26;
}

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

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

    letter-spacing: 1px;

    margin-bottom: 10px;
}

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

    letter-spacing: 1px;
}


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

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


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

.side-panel {
    position: absolute;
    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%);
}

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

/* 右端のメニューボタン */
.menu-button {
    position: absolute;
    z-index: 110;
    top: 20px;
    right: 20px;

    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;

    color: white;

    text-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.65);
}

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

    line-height: 1.6;

    letter-spacing: 2px;
}


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

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

}