@charset "UTF-8";

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

html {
    scroll-behavior: smooth;
}

/* =========================
   ハンバーガーメニュー
========================= */

/* チェックボックス非表示 */
#menu-btn-check {
    display: none;
}

/* ===== ハンバーガーボタン ===== */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #c65a2e;
    transition: 0.3s;
}

.menu-btn span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn span::before {
    top: -9px;
}

.menu-btn span::after {
    top: 9px;
}

/* ×に変形 */
#menu-btn-check:checked~.menu-btn span {
    background-color: transparent;
}

#menu-btn-check:checked~.menu-btn span::before {
    transform: rotate(45deg);
    top: 0;
}

#menu-btn-check:checked~.menu-btn span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ===== メニュー背景 ===== */
.menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #F8EEE4;
    padding: 100px 30px 200px;
    transition: 0.4s ease;
    z-index: 1000;
}

/* 表示 */
#menu-btn-check:checked~.menu-content {
    right: 0;
}

/* ===== メニュー文字 ===== */
.menu-content ul {
    list-style: none;
}

.menu-content li {
    margin-bottom: 36px;
}

.menu-content a {
    font-size: 22px;
    font-weight: bold;
    color: #c65a2e;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* ===== 下のイラスト ===== */
.sp-menu-illust {
    position: fixed;
    bottom: 0px;
    right: -100%;
    width: 100%;
    text-align: center;
    transition: 0.4s ease;
    z-index: 1001;
}

#menu-btn-check:checked~.sp-menu-illust {
    right: 0;
}

.sp-menu-illust img {
    width: 100%;
    max-width: 800px;
}

body {
    cursor: none;
    background-color: #FAF3E0;
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

/*カーソルアニメーション*/
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(184, 163, 138, 0.6);
    border: 2px solid #B8A38A;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    z-index: 9999;
}

img {
    max-width: 100%;
}

h1 {
    color: #C34C2A;
    font-size: 48px;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 40px;
}

.section-subtext {
    text-align: center;
}

.work-item {
    text-align: center;
    margin: 0 auto;
    padding: 32px 24px;
    border: 1px solid #9c6b4a;
    width: 300px;
    max-width: 400px;
    border: 1px solid #b5a494;
    padding: 30px;
    background-color: transparent;
    text-align: center;
}

.back-btn {
    display: inline-block;
    margin: 40px auto 0;
    padding: 12px 36px;
    border-radius: 999px;
    background-color: #f6e7d8;
    /* ベージュ系 */
    color: #5c4636;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e0cbb5;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.back {
    padding-bottom: 30px;
    padding-top: 30px;
}

/* 中央寄せ */
.back-btn {
    display: block;
    width: fit-content;
}

/* ホバー */
.back-btn:hover {
    background-color: #5c4636;
    color: #fff;
    transform: translateY(-3px);
}


.filter-btns input {
    display: none;
}

.filter-btns {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btns label {
    background: #efd3a1;
    border: 1px solid #9c6b4a;
    border-radius: 10px;
    padding: 8px 28px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

/* hover */
.filter-btns label:hover {
    background: #9c6b4a;
    color: #fff;
}

/* グリッド全体の設定：縦一列に並べる */
.works-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 中央に寄せる */
    gap: 40px;
    /* カード同士の隙間 */
    margin-top: 30px;
}



/* 画像のサイズ調整 */
.work-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* タイトルの下の線 */
.work-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: normal;
}

/* カテゴリと日付（タイトルの下の線を実現） */
.work-meta {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #333;
    border-top: 1px solid #b5a494;
    /* タイトルの下に線を引く */
    display: inline-block;
    padding-top: 5px;
    margin-bottom: 15px;
    width: 80%;
    /* 線の長さを調整 */
}

/* 詳しくはこちらリンク */
.work-link {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    display: block;
    text-align: right;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    position: relative;
    display: inline-block;
}

.work-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background-color: #C34C2A;
    transition: width 0.3s ease;
}

.work-link:hover::after {
    width: 100%;
}

/* --- 切り替えの仕組み --- */
#web:checked~.works-grid .work-item,
#graphic:checked~.works-grid .work-item,
#other:checked~.works-grid .work-item {
    display: none;
}

/* 2. 「Web」が選ばれた時、webクラスがついた作品だけを表示する */
#web:checked~.works-grid .web {
    display: block;
}

/* 3. 「Graphic」が選ばれた時、graphicクラスがついた作品だけを表示する */
#graphic:checked~.works-grid .graphic {
    display: block;
}

/* 4. 「All」が選ばれた時は、すべての work-item を表示する */
#other:checked~.works-grid .other {
    display: block;
}

.back {
    margin: 0 a;
}

#contact {
    color: #C34C2A;
    background-color: #4b2f2a;
    text-align: center;
    border-top: 1px solid #8A6A4A;
    /* 画像にある横線 */
}

h2 {
    font-size: 40px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.contact-links {
    /* text-align: center;
    color: white;
    border-radius: 30px;
    background: #efd3a1;
    border: 1px solid #9c6b4a;
    border-radius: 10px;
    padding: 8px 28px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s; */
    margin: 0 auto;
    max-width: 320px;
    background-color: #FAF3E0;
    /* 画像と同じ薄ベージュ */
    padding: 12px;
    /* 外枠と内枠の間の余白 */
    border-radius: 20px;
    /* 全体の角丸 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
}

/* 内側の枠線ボタン */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 300px;
    background-color: transparent;
    border: 2px solid #8A6A4A;
    /* 内側の茶色い線 */
    border-radius: 15px;
    /* 内枠の角丸 */
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

* 肉球のアイコン部分 */ .paw {
    position: absolute;
    left: 40px;
    /* 左側に固定 */
    font-size: 30px;
    color: #8A6A4A;
    /* 枠線と同じ茶色 */
}

/* 中央の文字 */
.btn-text {
    color: #4b2f2a;
    /* 濃い茶色 */
    font-weight: bold;
    font-family: "Sawarabi Mincho", serif;
    /* レトロな明朝体 */
    letter-spacing: 0.05em;
}

/* ホバー（マウスを乗せた時）の演出 */
.contact-btn:hover {
    background-color: rgba(138, 106, 74, 0.05);
    /* ほんのり色付く */
    transform: translateY(-2px);
    /* 少し浮き上がる */
}

.footer {
    background: #4b2f2a;
    color: #d8c3a5;
    position: relative;
}

.footer-main {
    display: flex;
    padding-top: 20px;
    justify-content: space-between;
}

.footer-nav a {
    color: #C34C2A;
    /* font-weight: bold; */
    font-size: 18px;
    /* line-height: 2; */
    /* display: block; */
    color: #c55a3c;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding-left: 50px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-center {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* 横方向の中央揃え */
    align-items: center;
    /* 縦方向の中央揃え */
    margin: 0 auto;
    width: fit-content;
}

.sns-icons {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
}

.sns-icons:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    transition: 0.3s;
}

.sns-icons img {
    width: 60px;
    height: 60px;
    background-color: #FAF3E0;
    border-radius: 50%;
    padding: 12px;
    object-fit: contain;
}

.top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #c4d1b1;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-family: serif;
    font-weight: bold;
}

/* マウスを乗せた時の動き（任意） */
.top-btn:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    /* 少し上に浮く */
    transition: 0.3s;
}


.copyright {
    text-align: center;
    color: #8A6A4A;
    padding-top: 20px;
}

.pc-nav {
    display: none;
}

@media screen and (min-width: 768px) {
    .works-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 900px;
        margin: 0 auto;
    }

    #menu-btn-check,
    .menu-btn,
    .menu-content,
    .sp-menu-illust {
        display: none;
    }

    /* PCナビを表示 */
    .pc-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 30px;
        right: 40px;
        position: fixed;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(245, 241, 232, 0.9);
        border: 2px solid #B06A6A;
        border-radius: 14px;
        padding: 14px 40px;
        position: fixed;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;

        background: rgba(245, 241, 232, 0.9);
        border: 2px solid #B06A6A;
        border-radius: 12px;
        padding: 12px 32px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .pc-nav a:hover {
        opacity: 0.5;
    }

    .pc-nav ul {
        display: flex;
        gap: 40px;
        list-style: none;
    }

    .pc-nav a {
        color: #c65a2e;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
        font-family: 'Fraunces', serif;
    }

    /* ===== 横並び ===== */
    .pc-nav ul {
        display: flex;
        gap: 32px;
        align-items: center;
    }

    h1 {
        padding-top: 100px;
    }
}