/* ==========================================================
   JoyfulCamel AI - joyfulcamelai.css
   ========================================================== */

/* ---------- CSS変数 ---------- */
:root {
    --color-primary:    #0096fa;
    --color-primary-d:  #0077cc;
    --color-bg:         #f8f8f8;
    --color-surface:    #ffffff;
    --color-border:     #e0e0e0;
    --color-text:       #333333;
    --color-text-sub:   #767676;
    --color-r18:        #e53935;
    --color-ai:         #7b1fa2;
    --color-fav:        #e91e63;
    --radius:           8px;
    --shadow:           0 2px 8px rgba(0,0,0,.08);
    --transition:       .2s ease;
}

/* ---------- 18歳確認ポップアップ ---------- */
#joyful-age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.age-gate-inner {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.age-gate-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: .04em;
}
.age-gate-msg {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: .95rem;
}
.age-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-age-yes {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-age-yes:hover { background: var(--color-primary-d); }
.btn-age-no {
    background: transparent;
    color: var(--color-text-sub);
    border: 1px solid var(--color-border);
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color var(--transition);
}
.btn-age-no:hover { border-color: #999; }

/* ---------- ツールバー（検索・ソート） ---------- */
.joyful-works-wrap {  margin: 0 auto; padding: 0 16px; }

.joyful-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.joyful-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}
.joyful-search-form input[type="text"] {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
}
.joyful-search-form input[type="text"]:focus { border-color: var(--color-primary); }
.joyful-search-form button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: .9rem;
    transition: background var(--transition);
}
.joyful-search-form button:hover { background: var(--color-primary-d); }

.joyful-sort { display: flex; gap: 8px; }
.joyful-sort a {
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    font-size: .85rem;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: all var(--transition);
}
.joyful-sort a.active,
.joyful-sort a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- タグフィルター ---------- */
.joyful-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tag-btn {
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    font-size: .82rem;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: all var(--transition);
}
.tag-btn.active,
.tag-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- Masonryグリッド ----------
   PC: 5列（デフォルト）
   タブレット: 4列
   小タブレット: 3列
   スマホ: 2列
   ---------------------------------------- */
.grid-sizer,
.joyful-work-card {
    width: calc((100% - 48px) / 5);   /* 5列: gutter 12px × 4 */
}
.gutter-sizer {
    width: 12px;
}
@media (max-width: 1000px) {
    .grid-sizer,
    .joyful-work-card { width: calc((100% - 36px) / 4); }  /* 4列 */
}
@media (max-width: 900px) {
    .grid-sizer,
    .joyful-work-card { width: calc((100% - 24px) / 3); }  /* 3列 */
}
@media (max-width: 560px) {
    .grid-sizer,
    .joyful-work-card { width: calc((100% - 12px) / 2); }  /* 2列 */
}

/* ---------- 作品カード ---------- */
.joyful-work-card {
    margin-bottom: 12px;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}
.joyful-work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
    filter: none !important;
}
.joyful-work-card:hover .card-thumb img { transform: scale(1.03); }

/* バッジ */
.badge-r18,
.badge-ai,
.badge-pin {
    position: absolute;
    top: 6px;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.4;
}
.badge-r18 { right: 6px; background: var(--color-r18); }
.badge-ai  { left: 6px;  background: var(--color-ai);  }
.badge-pin { left: 6px;  background: transparent; font-size: .85rem; padding: 2px 4px; }
/* R-18とAIが同時に表示される場合 */
.badge-ai + .badge-r18,
.badge-pin ~ .badge-ai { top: 28px; }

.card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}
.card-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 23px;
    height: 23px;
    line-height: 1;
    cursor: pointer;
}
.fav-btn svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: transparent !important;
    stroke: #000000 !important;
}
.fav-btn.is-fav svg {
    fill: #e60023 !important;
    stroke: #e60023 !important;
}

@media (max-width: 600px) {
    .card-info { gap: 6px; padding: 8px; }
    .card-title { font-size: 0.7rem; }
    .fav-btn { width: 16px; height: 16px; }
    .fav-btn svg { width: 16px; height: 16px; }
}

.joyful-no-works { color: var(--color-text-sub); text-align: center; padding: 40px 0; }

/* ---------- 作品詳細 ---------- */
.joyful-detail-wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.joyful-detail-main { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.joyful-webtoon { display: flex; flex-direction: column; gap: 0; background: #111; }
.joyful-webtoon img { width: 100%; display: block; }

.joyful-detail-info { padding: 24px; }
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.detail-title { font-size: 1.4rem !important; font-weight: 700; color: var(--color-text); margin: 0; line-height: 1.4; }
.detail-pv { font-size: .85rem; color: var(--color-text-sub); margin-bottom: 16px; }
.detail-header .fav-btn { position: static; width: 40px; height: 23px; background: transparent; flex-shrink: 0; }
.detail-caption { font-size: .95rem; line-height: 1.8; color: var(--color-text); margin-bottom: 16px; white-space: pre-wrap; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-link {
    color: var(--color-primary);
    font-size: .85rem;
    text-decoration: none;
    background: #e8f4ff;
    padding: 4px 10px;
    border-radius: 12px;
    transition: background var(--transition);
}
.tag-link:hover { background: #cce6ff; }

.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}
.external-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition);
    color: #fff;
}
.external-btn:hover { opacity: .85; }
.btn-digiket   { background: #e53935; }
.btn-pictspace { background: #43a047; }
.btn-unifans   { background: #fb8c00; }
.btn-prompt    { background: #6d4c41; }
.btn-pixiv     { background: #0096fa; }
.btn-external  { background: #546e7a; }

.joyful-detail-ad { padding: 16px 24px; text-align: center; border-top: 1px solid var(--color-border); }
.joyful-detail-ad img { max-width: 100%; height: auto; }

/* ---------- サイドバー購入ボタン（PC）---------- */
.detail-buy-btn {
    display: block;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #ffffff;
    text-align: center;
    padding: 16px 12px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: 0 4px 14px rgba(229,57,53,.35);
    transition: opacity var(--transition), transform var(--transition);
}
.detail-buy-btn:hover {
    opacity: .92;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}
.detail-buy-sub {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    opacity: .85;
    margin-top: 3px;
}

/* ---------- モバイル フローティング購入ボタン ---------- */
.detail-float-buy {
    display: none;   /* PCでは非表示 */
}
@media (max-width: 767px) {
    .detail-float-buy {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 990;
        padding: 10px 16px 12px;
        pointer-events: none;
    }
    .detail-float-buy__btn {
        display: block;
        pointer-events: auto;
        background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
        color: #ffffff;
        text-align: center;
        padding: 15px 20px;
        border-radius: 999px;
        font-size: .95rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 4px 18px rgba(229,57,53,.40);
        transition: opacity var(--transition);
    }
    .detail-float-buy__btn:hover {
        opacity: .90;
        color: #ffffff;
        text-decoration: none;
    }
    /* フローティングボタン分のページ下部余白 */
    .joyful-detail-wrap,
    .joyful-related {
        padding-bottom: 30px;
    }
}

/* ---------- 関連作品 ---------- */
.joyful-related { margin-top: 40px; }
.related-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--color-text); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.related-card {
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    display: block;
}
.related-card:hover { transform: translateY(-2px); }
.related-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.related-card p { font-size: .8rem; padding: 6px 8px; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- サイドバー広告 ---------- */
.joyful-widget { margin-bottom: 24px; text-align: center; }
.joyful-widget img { max-width: 100%; height: auto; }

/* ---------- 広告カード ---------- */
.joyful-ad-card { overflow: hidden; }
.joyful-ad-card a { display: block; width: 100%; }
.joyful-ad-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* ---------- もっと見るボタン ---------- */
.joyful-loadmore-wrap { text-align: center; margin: 24px 0; }
.joyful-loadmore-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.15);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.joyful-loadmore-btn:hover { background: #f0f0f0; border-color: rgba(0,0,0,.25); }
.joyful-work-card.is-pending { opacity: 0; }
.joyful-work-card.is-visible { opacity: 1; transition: opacity .18s ease; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
    .joyful-toolbar { flex-direction: column; align-items: stretch; }
    .joyful-search-form { max-width: 100%; }
    .detail-title { font-size: 1.1rem !important; }
    .joyful-detail-info { padding: 16px; }
    .joyful-detail-ad { padding: 12px 16px; margin-top: 20px; }
}

/* 詳細：基本（モバイル） */
.joyful-detail-sidebar { display: none; }
.joyful-detail-ad--mobile { display: block; }

/* 768px以上で2カラム＆サイドバー表示 */
@media (min-width: 768px) {
    .joyful-detail-wrap {
        display: flex;
        gap: 24px;
        align-items: flex-start;
        max-width: 1200px;
    }
    .joyful-detail-main {
        flex: 1;
        min-width: 0;
    }
    .joyful-detail-sidebar {
        display: block;
        width: 250px;
        position: sticky;
        top: 96px;
    }
    .joyful-detail-ad--mobile { display: none; }
}

/* ---------- SWELL検索モーダル内：タグ列 ---------- */
.joyful-swell-tags { margin-top: 14px; }
.joyful-swell-tags__title { font-weight: 800; margin: 0 0 10px; }
.joyful-swell-tags__row { display: flex; gap: 10px; overflow: auto; padding-bottom: 6px; }
.joyful-swell-tags .joyful-tagchip {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f3f6fb;
    border: 1px solid #e1e7f0;
    text-decoration: none;
    font-weight: 800;
    color: inherit;
}

#search_modal .p-searchModal__inner { padding: 18px 18px 22px; }
#search_modal .joyful-swell-tags {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
}
#search_modal .joyful-swell-tags__title {
    font-weight: 800;
    font-size: 15px;
    margin: 0 0 10px;
    color: #fff;
}
#search_modal .joyful-swell-tags__row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
}
#search_modal .joyful-swell-tags .joyful-tagchip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f7f9;
    border: 1px solid rgba(0,0,0,.08);
    text-decoration: none;
    font-weight: 800;
    color: rgba(0,0,0,.78);
    transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
#search_modal .joyful-swell-tags .joyful-tagchip::after {
    content: "›";
    font-weight: 900;
    color: rgba(0,0,0,.35);
}
#search_modal .joyful-swell-tags .joyful-tagchip:hover {
    background: #eef4ff;
    border-color: rgba(0,0,0,.12);
    transform: translateY(-1px);
}
@media (max-width: 520px) {
    #search_modal .joyful-swell-tags__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 600px) {
    .l-content { padding-top: 2em; }
}
.page-id-15 .l-content { padding-top: 0px !important; min-width:100%;}

.l-mainContent__inner > .post_content { margin: 2.5em 0 !important; }

@media (max-width: 600px) {
    .l-mainContent__inner > .post_content { margin: 1.5em 0 !important; }
}

/* お問い合わせページ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea { width: 100%; max-width: 100%; }
.wpcf7 form .wpcf7-submit.is-disabled { opacity: .4; pointer-events: none; }
.wpcf7 form .wpcf7-submit.is-ready { opacity: 1; pointer-events: auto; }
.wpcf7 form .hidden-fields-container {
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    min-inline-size: 0 !important; height: 0 !important; overflow: hidden !important;
}
.wpcf7 form .hidden-fields-container input[type="hidden"] { display: none !important; }


/* ==========================================================
   /links/ ページ: Lit.Link風クリエイター総合案内所
   ========================================================== */

/* ---- SWELLのヘッダー・フッター・サイドバーを非表示 ---- */
.joyful-links-page .l-header,
.joyful-links-page .l-footer,
.joyful-links-page .l-sidebar,
.joyful-links-page .l-fixedCta,
.joyful-links-page .c-pageTop,
.joyful-links-page .p-goTop,
.joyful-links-page #wpadminbar {
    display: none !important;
}
/* コンテンツエリアをフル幅に */
.joyful-links-page .l-content,
.joyful-links-page .l-mainContent,
.joyful-links-page .l-mainContent__inner,
.joyful-links-page .post_content,
.joyful-links-page .l-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.joyful-links-page .l-mainContent__inner > .post_content {
    margin: 0 !important;
}

/* ---- Links ページ本体（ライトモード・砂漠背景） ---- */
.jl-page {
    position: relative;
    min-height: 100vh;
    background-image: var(--jl-bg-url, none);
    background-color: #f5efe8;   /* 背景画像未設定時のフォールバック（砂色） */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.joyful-links-page .jl-page {
    padding-top: 32px;
}

@media (max-width: 767px) {
    .joyful-links-page .jl-page {
        padding-top: 20px;
    }
}

/* 薄い白オーバーレイ：背景が明るすぎる部分を均一化しつつ砂漠感を残す */
.jl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 252, 248, 0.30);
    pointer-events: none;
    z-index: 0;
}

/* コンテンツカラム：白いカードとして中央に浮かせる */
.jl-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 72px;
}

/* ---- プロフィールヘッダー（白カード） ---- */
.jl-header {
    text-align: center;
    background: #ffffff;
    border-radius: 20px 20px 20px 20px;
    padding: 48px 28px 32px;
    margin-bottom: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.09);
}
.jl-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,.14);
    background: #f0ece8;
}
.jl-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jl-creator-name {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px !important;
    letter-spacing: .01em;
    line-height: 1.3 !important;
}
.jl-bio {
    font-size: .85rem;
    color: #555555;
    line-height: 1.9;
    margin: 0;
}

/* ---- ボタン群 ---- */
.jl-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* ボタン共通（lit.link風：白カード + 細ボーダー） */
.jl-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    line-height: 1.3;
}
.jl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    background: #fafafa;
    text-decoration: none;
    color: #1a1a1a;
}
.jl-btn:active { transform: translateY(0); }

.jl-btn-label {
    flex: 1;
    text-align: center;
}
.jl-btn-arrow {
    font-size: 1rem;
    color: #aaaaaa;
    margin-left: 10px;
    flex-shrink: 0;
}

/* メインボタン（青グラデ・最も目立つ） */
.jl-btn--main {
    background: linear-gradient(135deg, #0096fa 0%, #0070d8 100%);
    border-color: transparent;
    color: #ffffff;
    font-size: .95rem;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,150,250,.30);
}
.jl-btn--main:hover {
    background: linear-gradient(135deg, #1aa3ff 0%, #0080e8 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0,150,250,.40);
}
.jl-btn--main .jl-btn-arrow { color: rgba(255,255,255,.75); font-size: 1.1rem; }

/* フォールバック */
.jl-btn--main.jl-btn--fallback {
    background: linear-gradient(135deg, #888 0%, #555 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.jl-btn--main.jl-btn--fallback:hover {
    background: linear-gradient(135deg, #999 0%, #666 100%);
}

/* プラットフォームボタン：左アクセントライン */
.jl-btn--platform {
    padding-left: 16px;
}
.jl-btn--pixiv     { border-left: 4px solid #009cff; }
.jl-btn--twitter   { border-left: 4px solid #1d9bf0; }
.jl-btn--odaibako  { border-left: 4px solid #ff6b9d; }
.jl-btn--unifans   { border-left: 4px solid #ff8c00; }
.jl-btn--digiket   { border-left: 4px solid #e53935; }
.jl-btn--pictspace { border-left: 4px solid #43a047; }
.jl-btn--prompt    { border-left: 4px solid #ab47bc; }

/* 作品なし通知 */
.jl-not-found {
    text-align: center;
    padding: 11px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    color: #7a5800;
    font-size: .83rem;
    margin-bottom: 2px;
}

/* ---- ガイドライン（白カード） ---- */
.jl-guidelines {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border: 1.5px solid #e8e8e8;
    text-align: center;
}
.jl-guidelines p {
    font-size: .74rem;
    color: #888888;
    margin: 6px 0;
    line-height: 1.7;
}

/* ダークモード：スマホのシステム設定がダークでもコンテナは白を維持、背景のみ少し暗く */
@media (prefers-color-scheme: dark) {
    .jl-page { background-color: #d9cfc5; }
    .jl-overlay { background: rgba(240, 235, 228, 0.20); }
}

/* スマホ調整 */
@media (max-width: 480px) {
    .jl-header { padding: 40px 20px 28px; }
    .jl-creator-name { font-size: 1.25rem !important; }
    .jl-btn--main { font-size: .9rem; padding: 16px 18px; }
}


/* ロゴ＋タイトルを横並び */
.l-header__logo .c-headLogo__link,
.l-fixHeader__logo .c-headLogo__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
    padding: 0 !important;
}

/* タイトル文字 */
.l-header__logo .ws-site-title,
.l-fixHeader__logo .ws-site-title {
	display: inline-block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: inherit;
}


/* SPで少し小さく */
@media (max-width: 767px) {
	.l-header__logo .ws-site-title,
    .l-fixHeader__logo .ws-site-title {
		font-size: 16px;
	}
}

.page-id-15 .l-mainContent{
    min-width: 100%;
}

.fav-placeholder {
    display: block;
    height: 23px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .fav-placeholder{
        width: 16px; 
        height: 16px;
    }
}

.page-id-34 .p-breadcrumb.-bg-on{
    display: none;
}
.page-id-34 .c-pageTitle{
    display: none;
}

/* インライン広告カード：スクリプト広告の高さを作品カードに合わせて固定 */
.joyful-ad-card {
    aspect-ratio: 1 / 1.205;
}