@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ========================================================
   Gravure App 共通UIコンポーネント（全ページ共通）
   ======================================================== */

/* --- 1. アプリ風 上部ナビゲーションバー --- */
.app-top-nav { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 20px; }
.app-top-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: bold; color: #ec4899; white-space: nowrap; text-decoration: none; }
@media (min-width: 768px) { .app-logo { font-size: 1.3rem; } }

.app-tabs { display: flex; height: 100%; overflow-x: auto; white-space: nowrap; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab { background: none; border: none; font-weight: bold; font-size: 0.85rem; color: #64748b; padding: 0 12px; cursor: pointer; position: relative; display: flex; align-items: center; transition: color 0.2s; text-decoration: none; }
@media (min-width: 768px) { .app-tab { font-size: 0.95rem; padding: 0 16px; } }
.app-tab:hover, .app-tab.active { color: #db2777; }
.app-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: #db2777; }

/* --- 2. 汎用コンテナ ＆ 見出し --- */
.app-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.app-archive-title { font-size: 1.6rem; font-weight: 900; color: #1e293b; margin-bottom: 25px; border-bottom: 3px solid #db2777; padding-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 15px; text-align: center; }
.section-title { font-size: 1.3rem; font-weight: bold; border-bottom: 2px solid #db2777; padding-bottom: 8px; margin-bottom: 20px; color: #1e293b; display: flex; align-items: center; gap: 8px; }

/* --- 3. 作品一覧カードグリッド（検索・一覧用） --- */
.v-search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; row-gap: 15px;}
@media (min-width: 481px) { .v-search-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; row-gap: 20px; } }
@media (min-width: 768px) { .v-search-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; row-gap: 20px; } }
@media (min-width: 1024px) { .v-search-grid { grid-template-columns: repeat(6, 1fr); gap: 15px; row-gap: 25px; } }
.v-search-card { display: flex; flex-direction: column; text-decoration: none; color: #333; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; will-change: transform; backface-visibility: hidden; }
.v-search-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(219,39,119,0.15); border-color: #db2777; }
.v-search-thumb { position: relative; width: 100%; aspect-ratio: 0.75; background: #f1f5f9; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v-search-thumb img { width: 100%; height: 100%; object-fit: contain; }
.v-search-info { padding: 10px 8px; flex-grow: 1; display: flex; flex-direction: column; }
.v-search-title { font-size: 0.8rem; font-weight: bold; line-height: 1.4; color: #1e293b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }

/* --- 4. 強力なカスタムページネーション --- */
.g-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; margin-bottom: 20px; flex-wrap: wrap; padding: 0; list-style: none; }
.g-page-link, .g-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; background: #fff; border: 2px solid #cbd5e1; color: #475569; font-weight: bold; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); font-size: 1.05rem; }
.g-page-link:hover, .g-pagination .page-numbers:hover { background: #fdf2f8; color: #db2777; border-color: #db2777; transform: translateY(-2px); }
.g-page-link.current, .g-pagination .page-numbers.current { background: #db2777; color: #fff; border-color: #db2777; pointer-events: none; }
.g-page-dots { display: inline-flex; align-items: center; justify-content: center; height: 44px; color: #94a3b8; font-weight: bold; padding: 0 5px; }

/* --- 5. サイト全体のベース設定（アプリ風強制1カラム用） --- */
.app-force-1col { background-color: #f8fafc; font-family: "Helvetica Neue", Arial, sans-serif; color: #1e293b; }
.app-force-1col #sidebar, .app-force-1col .sidebar { display: none !important; } 
.app-force-1col .content, .app-force-1col #main, .app-force-1col .main { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; border: none !important; background: transparent !important; float: none !important; }

/* --- 6. 絞り込み検索フォーム用 (gravure_search_form) --- */
.g-search-box { background: #fff; padding: 25px; border-radius: 12px; border: 2px solid #fdf2f8; box-shadow: 0 4px 15px rgba(230,0,92,0.05); }
.g-search-box-title { font-size: 1.2rem; font-weight: bold; color: #1e293b; border-bottom: 2px solid #db2777; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.g-search-field { margin-bottom: 15px; }
.g-search-field label { display: block; font-size: 0.85rem; font-weight: bold; color: #64748b; margin-bottom: 6px; }
.g-search-input { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; font-size: 0.95rem; color: #1e293b; box-sizing: border-box; transition: all 0.2s; outline: none; appearance: none; }
.g-search-input:focus { border-color: #f472b6; background: #fff; box-shadow: 0 0 0 3px rgba(244,114,182,0.15); }
select.g-search-input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.g-search-btn { display: block; width: 100%; background: #db2777; color: #fff; font-weight: bold; font-size: 1.1rem; padding: 14px; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(219,39,119,0.2); margin-top: 10px; }
.g-search-btn:hover { background: #be185d; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(219,39,119,0.3); }

/* ========================================================
   7. ランキング・ショートコード 共通CSS（表彰台・グリッド等）
   ======================================================== */
.works-tabs, .model-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.works-tab, .model-tab { padding: 8px 16px; border-radius: 30px; font-weight: bold; color: #64748b; background: #fff; border: 1px solid #cbd5e1; text-decoration: none; transition: all 0.2s; font-size: 0.85rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.works-tab:hover, .model-tab:hover { background: #f8fafc; transform: translateY(-2px); }
.works-tab.active, .model-tab.active { color: #fff; border: none; pointer-events: none; }

/* ランキングのテーマカラー */
.theme-daily-active { background: #10b981; box-shadow: 0 4px 10px rgba(16,185,129,0.3); }
.theme-weekly-active { background: #0ea5e9; box-shadow: 0 4px 10px rgba(14,165,233,0.3); }
.theme-monthly-active { background: #eab308; box-shadow: 0 4px 10px rgba(234,179,8,0.3); }
.theme-yearly-active { background: #f97316; box-shadow: 0 4px 10px rgba(249,115,22,0.3); }
.theme-all-active { background: #db2777; color: #fff; box-shadow: 0 4px 10px rgba(219,39,119,0.4); }

.works-title, .model-title { font-size: 1.6rem; font-weight: 900; color: #1e293b; margin-bottom: 25px; border-bottom: 3px solid #db2777; padding-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 15px; }

/* --- 1〜5位 表彰台エリア（ゴージャス版） --- */
.works-podium-wrap, .model-podium-wrap { 
    border-radius: 16px; overflow: visible; margin-top: 40px; margin-bottom: 50px; 
    font-family: "Helvetica Neue", Arial, sans-serif; position: relative;
}

.works-podium-wrap.theme-daily, .model-podium-wrap.theme-daily { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; box-shadow: 0 10px 25px rgba(16,185,129,0.15); }
.works-podium-wrap.theme-weekly, .model-podium-wrap.theme-weekly { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; box-shadow: 0 10px 25px rgba(14,165,233,0.15); }
.works-podium-wrap.theme-monthly, .model-podium-wrap.theme-monthly { background: linear-gradient(135deg, #fefce8, #fef08a); border: 1px solid #fde047; box-shadow: 0 10px 25px rgba(234,179,8,0.15); }
.works-podium-wrap.theme-yearly, .model-podium-wrap.theme-yearly { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; box-shadow: 0 10px 25px rgba(249,115,22,0.15); }
.works-podium-wrap.theme-all { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border: 1px solid #e9d5ff; box-shadow: 0 10px 25px rgba(139,92,246,0.15); }
.model-podium-wrap.theme-all { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 1px solid #fbcfe8; box-shadow: 0 10px 25px rgba(219,39,119,0.15); }

.works-podium-container, .model-podium-container { 
    display: flex; align-items: flex-end; justify-content: center; 
    padding: 60px 15px 30px; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2;
}

.works-podium-item, .model-podium-item { 
    text-align: center; position: relative; text-decoration: none; color: #333; 
    display: block; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform; backface-visibility: hidden;
}
.works-podium-item:hover, .model-podium-item:hover { transform: translateY(-8px) scale(1.03); z-index: 10; }

@media (min-width: 768px) {
    .works-podium-container, .model-podium-container { gap: 2%; flex-wrap: nowrap; padding-bottom: 40px; }
    .works-podium-item.rank-1, .model-podium-item.rank-1 { order: 3; width: 26%; z-index: 5; margin-bottom: 15px; } 
    .works-podium-item.rank-2, .model-podium-item.rank-2 { order: 2; width: 22%; z-index: 4; } 
    .works-podium-item.rank-3, .model-podium-item.rank-3 { order: 4; width: 22%; z-index: 3; }
    .works-podium-item.rank-4, .model-podium-item.rank-4 { order: 1; width: 14%; z-index: 2; } 
    .works-podium-item.rank-5, .model-podium-item.rank-5 { order: 5; width: 14%; z-index: 1; }
}

@media (max-width: 767px) {
    .works-podium-container, .model-podium-container { padding: 60px 10px 30px; gap: 10px; align-items: flex-start; }
    .works-podium-item.rank-1, .model-podium-item.rank-1 { order: 2; width: 42%; z-index: 5; margin: 0 5px; } 
    .works-podium-item.rank-2, .model-podium-item.rank-2 { order: 1; width: 26%; margin-top: 25px; z-index: 4; } 
    .works-podium-item.rank-3, .model-podium-item.rank-3 { order: 3; width: 26%; margin-top: 25px; z-index: 3; }
    .works-podium-item.rank-4, .model-podium-item.rank-4 { order: 4; width: 30%; margin-top: 20px; } 
    .works-podium-item.rank-5, .model-podium-item.rank-5 { order: 5; width: 30%; margin-top: 20px; }
}

/* ★修正：作品もモデルも、統一された四角いパッケージデザインにする */
.works-podium-pic-wrap, .model-podium-pic-wrap { 
    position: relative; width: 100%; aspect-ratio: 3/4; background: #fff; border-radius: 8px; 
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); margin-bottom: 12px; 
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
.works-podium-pic-wrap img, .model-podium-pic-wrap img { 
    width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.3s ease; 
}
.works-podium-item:hover .works-podium-pic-wrap img, 
.model-podium-item:hover .model-podium-pic-wrap img { transform: scale(1.05); }

/* 🏆 メタリックな金銀銅の装飾 🏆 */
.works-podium-item.rank-1 .works-podium-pic-wrap, .model-podium-item.rank-1 .model-podium-pic-wrap { 
    border: 4px solid #fbbf24; box-shadow: 0 10px 25px rgba(251,191,36,0.4); 
}
.works-podium-item.rank-2 .works-podium-pic-wrap, .model-podium-item.rank-2 .model-podium-pic-wrap { 
    border: 3px solid #94a3b8; box-shadow: 0 8px 20px rgba(148,163,184,0.3); 
}
.works-podium-item.rank-3 .works-podium-pic-wrap, .model-podium-item.rank-3 .model-podium-pic-wrap { 
    border: 3px solid #b45309; box-shadow: 0 8px 20px rgba(180,83,9,0.3); 
}
.works-podium-item.rank-4 .works-podium-pic-wrap, .works-podium-item.rank-5 .works-podium-pic-wrap,
.model-podium-item.rank-4 .model-podium-pic-wrap, .model-podium-item.rank-5 .model-podium-pic-wrap { 
    border: 1px solid #cbd5e1; 
}

/* ★修正：表彰台の順位バッジ */
.podium-rank-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-weight: 900; font-size: 1rem; padding: 4px 16px; color: #fff;
    border-radius: 20px; z-index: 10; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff; font-style: italic; white-space: nowrap;
}
.podium-rank-badge.rank-1 { background: #fbbf24; font-size: 1.2rem; top: -18px; padding: 6px 20px; border-color: #fef3c7; }
.podium-rank-badge.rank-2 { background: #94a3b8; }
.podium-rank-badge.rank-3 { background: #b45309; }
.podium-rank-badge.rank-4, .podium-rank-badge.rank-5 { background: #475569; border-color: #e2e8f0; }

.works-podium-name, .model-podium-name { 
    font-size: 0.85rem; font-weight: bold; line-height: 1.3; color: #1e293b;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; word-break: break-all; background: rgba(255,255,255,0.95); 
    padding: 6px 8px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    height: 2.8em; margin-bottom: 5px;
}
.works-podium-item.rank-1 .works-podium-name, .model-podium-item.rank-1 .model-podium-name { font-size: 0.95rem; }

.works-podium-score, .model-podium-score { 
    font-size: 0.8rem; color: #fff; font-weight: bold; background: rgba(15,23,42,0.8); 
    border-radius: 20px; padding: 3px 10px; display: inline-block; box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
/* 2D作者用の色 */
.model-podium-item.is-creator-db .model-podium-score { background: rgba(16,185,129,0.9); }

/* --- 6位以降 グリッド表示 --- */
.works-grid, .model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; row-gap: 24px; }
.works-card, .model-card { display: block; text-decoration: none; color: #333; position: relative; transition: transform 0.2s, box-shadow 0.2s; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); will-change: transform; backface-visibility: hidden; }
.works-card:hover, .model-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(219,39,119,0.15); border-color: #db2777; }

.works-rank, .model-rank { position: absolute; top: 0; left: 0; font-style: italic; font-weight: 900; font-size: 1.1rem; padding: 4px 10px; background: rgba(30,41,59,0.9); border-bottom-right-radius: 8px; color: #fff; z-index: 2; }

/* ★修正：一覧の画像もすべて統一された四角デザインに */
.works-thumb, .model-thumb { position: relative; width: 100%; aspect-ratio: 3/4; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.works-thumb img, .model-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.3s ease; }
.works-card:hover .works-thumb img, .model-card:hover .model-thumb img { transform: scale(1.05); }

.works-info, .model-info { padding: 8px; text-align: left; }
.works-score, .model-score { font-size: 0.75rem; color: #db2777; font-weight: bold; margin-top: 4px; }
.model-name { font-size: 0.85rem; font-weight: bold; color: #1e293b; line-height: 1.3; }

/* --- 8. マイページ（投票履歴）用 --- */
.mp-wrap { font-family: "Helvetica Neue", Arial, sans-serif; }
.mp-h2 { font-size: 1.4rem; font-weight: 900; color: #1e293b; margin-bottom: 20px; border-bottom: 2px solid #db2777; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; row-gap: 20px; margin-bottom: 30px; }
.mp-card { display: block; text-decoration: none; color: #333; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; position: relative; will-change: transform; backface-visibility: hidden; }
.mp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(219,39,119,0.15); border-color: #db2777; }
.mp-card-img { width: 100%; aspect-ratio: 0.75; object-fit: cover; display: block; }
.mp-card-info { padding: 8px; }
.mp-card-title { font-size: 0.8rem; font-weight: bold; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-score-badge { display: inline-block; background: #db2777; color: #fff; font-size: 0.75rem; font-weight: bold; padding: 2px 8px; border-radius: 12px; margin-bottom: 4px; }
.mp-card-date { font-size: 0.7rem; color: #94a3b8; }
.mp-empty { text-align: center; padding: 40px 20px; background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1; }
.mp-clear-btn { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: bold; transition: all 0.2s; }
.mp-clear-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* ========================================================
   9. トップページ ＆ サイドバー用 CSS
   ======================================================== */
.app-search { flex: 1; max-width: 400px; position: relative; display: none; }
@media (min-width: 768px) { .app-search { display: block; margin: 0 20px; } }
.app-search input { width: 100%; padding: 8px 16px 8px 36px; border: 1px solid #e2e8f0; border-radius: 9999px; background: #f8fafc; font-size: 0.9rem; outline: none; transition: all 0.2s; box-sizing: border-box; }
.app-search input:focus { border-color: #f472b6; background: #fff; box-shadow: 0 0 0 2px rgba(244,114,182,0.2); }
.app-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }

.app-container { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 960px) { .app-container { flex-direction: row; } }
.app-main { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
.app-sidebar { width: 100%; flex-shrink: 0; }
@media (min-width: 960px) { .app-sidebar { width: 300px; } }
.sidebar-ad-wrap img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.app-section-title { font-size: 1.3rem; font-weight: bold; color: #1e293b; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #db2777; padding-bottom: 8px; }
.sub-section-title { font-size: 1.1rem; font-weight: bold; color: #475569; margin: 40px 0 15px; padding-left: 10px; border-left: 4px solid #cbd5e1; display: flex; align-items: center; gap: 8px; }

.hub-link-btn { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e2e8f0; padding: 15px 20px; border-radius: 12px; text-decoration: none; color: #1e293b; font-weight: bold; font-size: 1rem; margin-top: 15px; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.hub-link-btn:hover { border-color: #db2777; box-shadow: 0 4px 10px rgba(219,39,119,0.1); transform: translateY(-2px); color: #db2777; }
.hub-link-btn i.fa-angle-right { color: #94a3b8; font-size: 1.2rem; transition: 0.2s; }
.hub-link-btn:hover i.fa-angle-right { color: #db2777; transform: translateX(3px); }

.rk-banner-wrap { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
@media (min-width: 768px) { .rk-banner-wrap { grid-template-columns: repeat(3, 1fr); } }
.rk-banner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; border-radius: 16px; text-decoration: none; color: #fff; font-weight: bold; transition: 0.2s; position: relative; overflow: hidden; }
.rk-banner:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: #fff; }
.rk-banner i { font-size: 2.5rem; margin-bottom: 10px; z-index: 2; }
.rk-banner span { font-size: 1.2rem; z-index: 2; }
.rk-banner small { font-size: 0.8rem; opacity: 0.8; z-index: 2; margin-top: 5px; }
.rk-banner.b-video { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.rk-banner.b-photo { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rk-banner.b-model { background: linear-gradient(135deg, #db2777, #be185d); }
.rk-banner::after { content: "\f105"; font-family: "FontAwesome"; position: absolute; right: 20px; bottom: 15px; font-size: 1.5rem; opacity: 0.3; }

/* ========================================================
   10. アプリ風共通UI（ナビバー・タブ・1カラム強制）
   ======================================================== */
body.app-mode { background-color: #f8fafc; font-family: "Helvetica Neue", Arial, sans-serif; color: #1e293b; }

.app-tabs { display: flex; height: 100%; overflow-x: auto; white-space: nowrap; gap: 10px; padding: 0 5px; }
.app-tab { background: none; border: none; font-weight: bold; font-size: 0.9rem; color: #94a3b8; padding: 0 15px; cursor: pointer; position: relative; display: flex; align-items: center; gap: 6px; text-decoration: none; transition: 0.2s; }
@media (min-width: 768px) { .app-tab { font-size: 1rem; padding: 0 20px; } }
.app-tab:hover { color: #1e293b; }
.app-tab.active { color: #db2777; }
.app-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: #db2777; border-radius: 3px 3px 0 0; }

/* ========================================================
   11. トレンド・新着モデル専用 グリッド＆タブCSS
   ======================================================== */
.theme-new-active { background: #ec4899; box-shadow: 0 4px 10px rgba(236,72,153,0.3); }
.theme-modified-active { background: #8b5cf6; box-shadow: 0 4px 10px rgba(139,92,246,0.3); }

.v-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; row-gap: 20px; }
@media (min-width: 768px) { .v-model-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; row-gap: 20px; } }
@media (min-width: 1024px) { .v-model-grid { grid-template-columns: repeat(8, 1fr); gap: 12px; row-gap: 25px; } } 

.v-model-card { display: block; text-decoration: none; color: #333; position: relative; transition: transform 0.2s; background: #fff; border-radius: 8px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding-bottom: 8px; will-change: transform; backface-visibility: hidden; }
.v-model-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #cbd5e1; }

.v-badge { position: absolute; top: 0; left: 0; font-weight: bold; line-height: 1; padding: 4px 8px; border-bottom-right-radius: 8px; color: #fff; z-index: 2; box-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.v-badge.badge-rank { font-style: italic; font-size: 1rem; background: rgba(30,41,59,0.85); }
.v-badge.badge-new { font-size: 0.8rem; background: #ec4899; padding: 6px 10px; }
.v-badge.badge-mod { font-size: 0.8rem; background: #8b5cf6; padding: 6px 10px; }

.v-model-thumb { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); background: #f0f0f0; border: 1px solid #e2e8f0; margin: 0; width: 100%; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.v-model-card:hover .v-model-thumb { border-color: #fbcfe8; box-shadow: 0 6px 12px rgba(230,0,92,0.2); }
.v-model-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.3s ease; }
.v-model-card:hover .v-model-thumb img { transform: scale(1.05); }

.v-model-info { padding: 4px 6px; text-align: center; }
.v-model-meta { font-size: 0.7rem; color: #64748b; margin-top: 4px; font-weight: bold; }

/* ========================================================
   12. 期間切り替え（塗りつぶし）タブ ＆ ランキングフェードイン
   ======================================================== */
.period-tabs-wrap { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 60px; z-index: 40; box-shadow: 0 4px 6px rgba(0,0,0,0.03); margin-bottom: 30px; padding: 10px 0; }
.period-tabs { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-start; overflow-x: auto; white-space: nowrap; padding: 0 16px; gap: 8px; }
.period-tabs::-webkit-scrollbar { display: none; }
.period-tab { flex: 0 0 auto; min-width: 70px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 20px; font-weight: bold; font-size: 0.85rem; color: #64748b; padding: 8px 16px; cursor: pointer; text-align: center; transition: all 0.2s ease; outline: none; }
.period-tab:hover { background: #e2e8f0; color: #1e293b; }
.period-tab.active { background: #db2777; border-color: #db2777; color: #fff; box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3); }

.period-tab.link-tab { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid #db2777; color: #db2777; margin-left: auto; }
.period-tab.link-tab:hover { background: #fce7f3; color: #be185d; }
@media (max-width: 767px) { .period-tab.link-tab { margin-left: 0; } }

.rank-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.rank-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================================
   13. カレンダー（スケジュール）ページ用 CSS
   ======================================================== */
.month-tabs-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.month-tabs { display: flex; background: #fff; border-radius: 30px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.month-tabs::-webkit-scrollbar { display: none; } 
.month-tab { padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; color: #64748b; text-decoration: none; transition: 0.2s; }
.month-tab:hover { background: #f1f5f9; color: #1e293b; }
.month-tab.active { background: #0ea5e9; color: #fff; pointer-events: none; box-shadow: 0 2px 5px rgba(14,165,233,0.3); }

.theme-photo .month-tab.active { background: #eab308; box-shadow: 0 2px 5px rgba(234,179,8,0.3); }
.theme-photo .date-heading.today { background: #eab308; }

.date-heading { background: #334155; color: #fff; padding: 10px 20px; font-size: 1.1rem; font-weight: bold; border-radius: 8px; margin: 20px 0 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: inline-block; }
.date-heading.today { background: #0ea5e9; font-size: 1.2rem; margin-top: 20px; }
.date-heading i { margin-right: 8px; }

.gravure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; row-gap: 12px; margin-bottom: 30px; }
@media (min-width: 480px) { .gravure-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; row-gap: 15px; } }
@media (min-width: 768px) { .gravure-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; row-gap: 15px; } }
@media (min-width: 1024px) { .gravure-grid { grid-template-columns: repeat(8, 1fr); gap: 12px; row-gap: 20px; } }

.gravure-card { display: flex; flex-direction: column; text-decoration: none; color: #333; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; will-change: transform; backface-visibility: hidden; }
.gravure-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(14,165,233,0.15); border-color: #bae6fd; }
.theme-photo .gravure-card:hover { box-shadow: 0 8px 15px rgba(234,179,8,0.15); border-color: #fde047; }

.gravure-thumb { position: relative; width: 100%; aspect-ratio: 0.75; background: #f1f5f9; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gravure-thumb img { width: 100%; height: 100%; object-fit: contain; }

.gravure-info { padding: 6px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.gravure-title { font-size: 0.75rem; font-weight: bold; line-height: 1.3; color: #1e293b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; transition: color 0.2s; }

/* ========================================================
   14. グラビア作品 総合ポータル用 CSS
   ======================================================== */
.portal-tabs-wrap { background: #fff; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.portal-tabs { max-width: 800px; margin: 0 auto; display: flex; justify-content: center; }
.portal-tab { flex: 1; text-align: center; padding: 12px 5px; font-weight: bold; font-size: 0.85rem; color: #64748b; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.portal-tab i { font-size: 1.3rem; }
.portal-tab:hover { background: #f8fafc; color: #db2777; }
.portal-tab.active { color: #db2777; border-bottom-color: #db2777; background: #fff1f2; }
@media (min-width: 768px) { .portal-tab { font-size: 1rem; flex-direction: row; justify-content: center; gap: 8px; padding: 16px; } }

.app-archive-desc { text-align: center; font-size: 0.85rem; color: #64748b; margin-bottom: 25px; line-height: 1.4; }

.v-item-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 481px) { .v-item-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; } }
@media (min-width: 768px) { .v-item-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .v-item-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.v-item-card { display: flex; flex-direction: column; text-decoration: none !important; color: #333 !important; position: relative; transition: transform 0.2s; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.v-item-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.v-item-rank { position: absolute; top: 0; left: 0; font-weight: bold; color: #fff; padding: 4px 10px; border-bottom-right-radius: 8px; font-size: 0.8rem; z-index: 2; box-shadow: 2px 2px 5px rgba(0,0,0,0.2); }
.v-item-thumb { position: relative; aspect-ratio: 0.75; background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f1f5f9; }
.v-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.v-item-card.is-model .v-item-thumb { aspect-ratio: 3/4 !important; border-radius: 8px 8px 0 0 !important; }
.v-item-card.is-model .v-item-thumb img { object-fit: cover !important; object-position: top center !important; transform: none !important; }
.v-item-info { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.v-item-title { font-size: 0.85rem; font-weight: bold; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1e293b; }
.v-item-score { font-size: 0.85rem; font-weight: bold; display: flex; align-items: center; gap: 4px; }

.score-badge { position: absolute; bottom: 0; right: 0; background: rgba(30, 41, 59, 0.9); color: #fff; padding: 4px 10px; font-weight: 900; font-size: 1rem; font-style: italic; border-top-left-radius: 8px; z-index: 2; box-shadow: -2px -2px 5px rgba(0,0,0,0.2); }
.score-badge.unrated { background: rgba(16, 185, 129, 0.9); backdrop-filter: blur(2px); font-size: 0.8rem; font-style: normal; padding: 4px 8px; }

.vote-btn-mock { display: block; background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; font-size: 0.75rem; font-weight: bold; padding: 6px 0; width: 100%; border-radius: 4px; transition: all 0.2s; white-space: nowrap; overflow: hidden; }
.v-item-card:hover .vote-btn-mock { background: #db2777; color: #fff; border-color: #db2777; }

.shuffle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #10b981; color: #fff; font-size: 1rem; font-weight: bold; padding: 12px 30px; border-radius: 30px; text-decoration: none; box-shadow: 0 4px 6px rgba(16,185,129,0.2); transition: transform 0.2s; margin: 10px auto; will-change: transform; backface-visibility: hidden; }
.shuffle-btn:hover { transform: scale(1.05); background: #059669; color: #fff; }

/* ========================================================
   15. アプリ風マイページ用 CSS
   ======================================================== */
.nav-actions a { color: #64748b; font-size: 1.2rem; margin-left: 15px; transition: 0.2s; }
.nav-actions a:hover { color: #db2777; }

.profile-header { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; padding: 40px 16px; text-align: center; position: relative; overflow: hidden; }
.profile-header::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 20px; background: #f1f5f9; border-radius: 20px 20px 0 0; }
.profile-avatar { width: 90px; height: 90px; background: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #db2777; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); margin-bottom: 15px; }
.profile-name { font-size: 1.3rem; font-weight: 900; margin-bottom: 5px; }
.profile-level { font-size: 0.85rem; font-weight: bold; color: #cbd5e1; margin-bottom: 15px; display: inline-block; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; }
.profile-stats { display: flex; justify-content: center; gap: 30px; margin-top: 10px; margin-bottom: 20px; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.5rem; font-weight: 900; color: #f472b6; }
.stat-label { font-size: 0.75rem; color: #94a3b8; }
.share-x-btn { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: bold; font-size: 0.85rem; text-decoration: none; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid #333; }
.share-x-btn:hover { background: #222; transform: translateY(-2px); color: #fff; }

.monetize-banner-wrap { max-width: 800px; margin: 10px auto 20px; padding: 0 16px; text-align: center; overflow: hidden; }

.mp-wrapper { max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; }
.mp-tabs { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 20px; border: 1px solid #e2e8f0; }
.mp-tab { flex: 1; padding: 15px 5px; text-align: center; font-weight: bold; color: #64748b; cursor: pointer; transition: 0.2s; background: none; border: none; font-size: 0.85rem; outline: none; border-bottom: 3px solid transparent; }
@media (min-width: 768px) { .mp-tab { font-size: 0.95rem; padding: 15px 0; } }
.mp-tab:hover { background: #f8fafc; color: #1e293b; }
.mp-tab.active { color: #db2777; border-bottom-color: #db2777; background: #fff; }

.mp-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.mp-content.active { display: block; }

.mp-sub-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; flex-wrap: wrap; }
.mp-sub-tab { padding: 6px 16px; border-radius: 20px; background: #fff; border: 1px solid #cbd5e1; font-size: 0.8rem; font-weight: bold; color: #64748b; cursor: pointer; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.mp-sub-tab:hover { background: #f8fafc; color: #db2777; border-color: #fbcfe8; }
.mp-sub-tab.active { background: #db2777; color: #fff; border-color: #db2777; pointer-events: none; }

.mp-type-badge { position: absolute; top: 5px; left: 5px; font-size: 0.65rem; font-weight: bold; padding: 2px 6px; border-radius: 4px; color: #fff; z-index: 2; }
.bg-video { background: #0ea5e9; }
.bg-photo { background: #eab308; }
.bg-model { background: #db2777; }

.mp-empty i { font-size: 3rem; color: #cbd5e1; margin-bottom: 15px; }
.mp-empty-title { font-size: 1.1rem; font-weight: bold; color: #475569; margin-bottom: 10px; }

.clear-wrap { text-align: right; margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.clear-btn { background: #fff; border: 1px solid #cbd5e1; color: #94a3b8; padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.clear-btn:hover { background: #fef2f2; border-color: #ef4444; color: #ef4444; }

.promo-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.promo-item { display: flex; align-items: center; background: #fff; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0; text-decoration: none; color: #333; transition: 0.2s; }
.promo-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-right: 15px; }
.promo-info { flex: 1; }
.promo-title { font-weight: bold; font-size: 1rem; margin-bottom: 4px; }
.promo-desc { font-size: 0.8rem; color: #64748b; }

/* ========================================================
   16. 写真集テーマ用のカラー上書き（期間切り替えタブ）
   ======================================================== */
.theme-photo .period-tab.active { background: #eab308; border-color: #eab308; color: #fff; box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3); }
.theme-photo .period-tab.link-tab:hover { background: #fef9c3; color: #ca8a04; }

/* ========================================================
   17. 動画テーマ用のカラー上書き（期間切り替えタブ）
   ======================================================== */
.theme-video .period-tab.active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3); }
.theme-video .period-tab.link-tab:hover { background: #e0f2fe; color: #0284c7; }

/* ========================================================
   18. みんなのレビュー一覧用 CSS
   ======================================================== */
.rv-list { display: flex; flex-direction: column; gap: 15px; }
.rv-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; display: flex; gap: 15px; align-items: flex-start; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.2s; will-change: transform; backface-visibility: hidden; }
.rv-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: #fbcfe8; }

.rv-thumb { flex: 0 0 80px; width: 80px; aspect-ratio: 3/4; overflow: hidden; background: #f8fafc; border-radius: 4px; border: 1px solid #e2e8f0; }
@media (min-width: 768px) { .rv-thumb { flex: 0 0 100px; width: 100px; } }
.rv-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.2s; }
.rv-item:hover .rv-thumb img { transform: scale(1.05); }

.rv-content { flex: 1; min-width: 0; }
.rv-text { font-size: 1rem; color: #1e293b; line-height: 1.6; margin-bottom: 10px; font-weight: bold; }
.rv-page-link { font-size: 0.85rem; color: #64748b; margin-bottom: 8px; background: #f1f5f9; padding: 6px 10px; border-radius: 4px; display: inline-block; text-decoration: none; transition: 0.2s; }
.rv-page-link:hover { background: #fff1f2; color: #be123c; }
.rv-page-link i { color: #e6005c; margin-right: 5px; }
.rv-meta { font-size: 0.8rem; color: #94a3b8; display: flex; align-items: center; gap: 10px; }
.rv-author { color: #475569; font-weight: bold; }

/* ========================================================
   19. 作品詳細ページ（single-gravure.php）用 CSS
   ======================================================== */
.movie-single-wrap { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; }
@media (min-width: 768px) { .movie-single-wrap { padding: 40px; } }
.ms-breadcrumb { margin-bottom: 20px; font-size: 0.85rem; color: #64748b; }
.ms-breadcrumb a { color: #db2777; text-decoration: none; }
.ms-title { font-size: 1.4rem; font-weight: 900; line-height: 1.4; margin-bottom: 25px; color: #1e293b; }
.media-type-badge { display: inline-block; padding: 4px 12px; border-radius: 4px; color: #fff; font-size: 0.85rem; font-weight: bold; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.ms-hero-area { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; align-items: center; }
.ms-package { width: 100%; max-width: 600px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s; will-change: transform; backface-visibility: hidden; }
.ms-package:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(230,0,92,0.2); }
.ms-package img { width: 100%; height: auto; display: block; margin: 0; padding: 0; border: 0; max-width: 100%; object-fit: contain; }

.dmm-link-box { text-align: center; width: 100%; }
.aff-btn-custom { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff6600, #ff3300); color: #ffffff; font-size: 1.2rem; font-weight: bold; text-decoration: none; padding: 18px 40px; border-radius: 5px; box-shadow: 0 4px 15px rgba(255,51,0,0.3); transition: all 0.2s ease; width: 100%; max-width: 500px; border: none; }
.aff-btn-custom:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,51,0,0.4); }

.dltable { margin-bottom: 40px; }
.detail-table { width: 100%; border-collapse: collapse; background-color: #fdf2f8; border-style: solid; border-color: #fbcfe8; border-width: 2px; font-size: 0.95rem; }
.detail-table td { padding: 12px 15px; border: 1px solid #fbcfe8; }
.detail-table td:first-child { width: 30%; text-align: center; font-weight: bold; color: #1e293b; background-color: #fce7f3; }
.detail-table td:last-child { background-color: #fff; text-align: center; color: #333; }
.ms-section-title { font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; border-left: 5px solid #db2777; padding-left: 10px; color: #1e293b; display: flex; align-items: center; gap: 8px; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; } }
.related-card { display: flex; flex-direction: column; text-decoration: none; color: #333; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; background: #fff; transition: 0.2s; will-change: transform; }
.related-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); transform: translateY(-2px); }
.related-thumb { width: 100%; aspect-ratio: 0.75; overflow: hidden; background: #f8fafc; }
.related-thumb img { width: 100%; height: 100%; object-fit: contain; }
.related-info { padding: 8px; font-size: 0.8rem; line-height: 1.4; }
.related-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.v-all { border: 2px solid #ddd; background: #f8fafc; padding: 20px; margin-top: 40px; border-radius: 12px; font-family: "Helvetica Neue", Arial, sans-serif; }
.v-title { font-weight: 900; font-size: 1.3rem; color: #0ea5e9; text-align: center; margin-bottom: 10px; }
.v-guide { font-size: 0.85rem; text-align: center; color: #64748b; margin-bottom: 20px; line-height: 1.5; }
.score-buttons-wrap { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.score-btn { flex: 1 1 18%; min-width: 60px; max-width: 140px; border: 2px solid; border-radius: 8px; padding: 12px 2px; text-align: center; background: #fff; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.score-btn:hover { color: #fff; transform: translateY(-3px); }
.score-btn.red { border-color: #0ea5e9; color: #0ea5e9; } .score-btn.red:hover { background: #0ea5e9; }
.score-btn.orange { border-color: #ff8c00; color: #ff8c00; } .score-btn.orange:hover { background: #ff8c00; }
.score-btn.green { border-color: #2e8b57; color: #2e8b57; } .score-btn.green:hover { background: #2e8b57; }
.score-btn.blue { border-color: #e6005c; color: #e6005c; } .score-btn.blue:hover { background: #e6005c; }
.score-btn.gray { border-color: #64748b; color: #64748b; } .score-btn.gray:hover { background: #64748b; }
.score-btn .s-title { font-weight: bold; font-size: 0.95rem; margin-bottom: 4px; pointer-events: none; }
.score-btn .s-desc { font-size: 0.75rem; pointer-events: none; }
.v-detail-wrap { display: none; text-align: center; margin-bottom: 15px; }
.v-score-input { font-size: 3rem; font-weight: bold; text-align: center; width: 120px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px; margin-bottom: 10px; color: #1e293b; }
.v-score-submit { background: #0ea5e9; color: #fff; border: none; padding: 12px 35px; font-size: 1.1rem; font-weight: bold; border-radius: 30px; cursor: pointer; transition: 0.2s; }
.v-toggle-mode { text-align: center; font-size: 0.85rem; color: #0066cc; text-decoration: underline; cursor: pointer; margin-bottom: 15px; }
.v-area.processing { opacity: 0.5; pointer-events: none; }
.v-comp-l { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 15px; display: none; }
.v-pic img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; border: 2px solid #0ea5e9; }
.v-balloon { background: #0ea5e9; color: #fff; padding: 10px 20px; border-radius: 20px; font-weight: bold; position: relative; font-size: 1.1rem; }
.v-balloon::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: #0ea5e9; }
.v-timer-box { margin-top: 15px; font-weight: bold; color: #64748b; font-size: 0.95rem; display: none; text-align: center; }
.v-timer { color: #0ea5e9; font-size: 1.2rem; margin-left: 5px; }
.v-result { margin-top: 25px; border-top: 2px dashed #cbd5e1; padding-top: 20px; display: flex; justify-content: space-around; text-align: center; }
.v-sum-col { flex: 1; }
.v-sum-title { font-size: 0.85rem; color: #64748b; font-weight: bold; margin-bottom: 5px; }
.v-sum-val { font-size: 2rem; font-weight: 900; color: #1e293b; line-height: 1.1; }
.v-sum-val span { font-size: 0.9rem; color: #94a3b8; font-weight: normal; margin-left: 2px; }

/* ========================================================
   20. モデル詳細ページ（single-gravure_model.php）用 CSS
   ======================================================== */
.model-header { background: #fff; padding: 40px 20px; text-align: center; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid #e2e8f0; }
.model-thumb-wrap { width: 160px; height: 160px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid #fbcfe8; box-shadow: 0 4px 10px rgba(219,39,119,0.2); }
.model-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ★修正反映：モデル詳細ページの大見出し（大きく） */
.model-header .model-name { font-size: 2rem; font-weight: 900; color: #1e293b; margin-bottom: 10px; display: block; word-break: normal; -webkit-line-clamp: unset; }
.model-score-badge { display: inline-block; background: #fff1f2; color: #e11d48; border: 1px solid #fda4af; padding: 6px 15px; border-radius: 20px; font-weight: bold; font-size: 1rem; margin-bottom: 20px; }
/* ========================================================
   ★ 追加・修正パッチ（同人・2D作者対応 ＆ iOSバグ対策）
   ======================================================== */

/* --- 1. iOS Safariの aspect-ratio 潰れ対策 --- */
.v-search-thumb, .works-thumb, .gravure-thumb, .v-item-thumb, .mp-card-img, .related-thumb {
    /* aspect-ratio が効かない古いブラウザのためのフォールバック */
    min-height: 180px; 
}
@supports (aspect-ratio: 0.75) {
    .v-search-thumb, .works-thumb, .gravure-thumb, .v-item-thumb, .mp-card-img, .related-thumb {
        min-height: auto;
    }
}

/* --- 2. 投票ボタン（score-btn）に同人(紫)と2D(緑)のカラーを追加 --- */
.score-btn.purple { border-color: #8b5cf6; color: #8b5cf6; } 
.score-btn.purple:hover { background: #8b5cf6; color: #fff; }
.score-btn.emerald { border-color: #10b981; color: #10b981; } 
.score-btn.emerald:hover { background: #10b981; color: #fff; }

/* --- 3. 2Dクリエイター（creator_db）のバッジ・アイコン枠のテーマカラー --- */
/* (PHP側で出力される $theme_color や $badge_color に合わせた装飾) */
.is-creator-db .model-thumb { border-color: #a7f3d0; } /* 2D作者用の薄い緑フチ */
.is-creator-db:hover .model-thumb { border-color: #6ee7b7; box-shadow: 0 6px 12px rgba(16,185,129,0.2); }
.is-creator-db .v-badge.badge-new { background: #10b981; }

/* --- 4. ランキング表彰台の王冠（順位）に 2D作者用の色を適用 --- */
/* PHP側で style="background:..." と直接出力していますが、万が一のためのCSSフォールバック */
.model-podium-item.is-creator-db .model-podium-score { background: rgba(16,185,129,0.9); }

/* --- 5. 作品グリッドのバッジ（同人誌・コミック用）--- */
.badge-doujin { background-color: #8b5cf6 !important; }
.badge-comic { background-color: #0ea5e9 !important; }
/* ========================================================
   21. クリエイター名鑑専用：高密度グリッド
   ======================================================== */
@media (min-width: 1024px) { .model-dense-grid { grid-template-columns: repeat(8, 1fr) !important; gap: 15px !important; } }
@media (min-width: 768px) { .model-dense-grid { grid-template-columns: repeat(6, 1fr) !important; gap: 12px !important; } }
@media (min-width: 481px) { .model-dense-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; } }
.model-dense-grid .v-item-info { padding: 8px !important; }
.model-dense-grid .v-item-title { font-size: 0.8rem !important; margin-bottom: 6px !important; }
.model-dense-grid .v-item-score { font-size: 0.75rem !important; }