@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ===================================
   Siofuki カスタム投稿タイプ用 CSS
   =================================== */

/* ===== メインアーカイブページ ===== */
.siofuki-main-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.siofuki-main-archive .archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.siofuki-main-archive .archive-title {
    font-size: 2.5em;
    margin: 0;
    color: #333;
}

/* ===== タクソノミーメニュー ===== */
.siofuki-taxonomy-menu {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.siofuki-taxonomy-menu h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.taxonomy-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.taxonomy-menu-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.taxonomy-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.taxonomy-menu-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.taxonomy-menu-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taxonomy-menu-item ul li {
    margin-bottom: 10px;
}

.taxonomy-menu-item ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.taxonomy-menu-item ul li a:hover {
    background: #007bff;
    color: #fff;
    padding-left: 20px;
}

/* ===== 投稿一覧グリッド ===== */
.siofuki-recent-posts {
    margin-top: 40px;
}

.siofuki-recent-posts h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.siofuki-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.siofuki-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.siofuki-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.siofuki-post-item .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.siofuki-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.siofuki-post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.siofuki-post-item .post-content {
    padding: 20px;
}

.siofuki-post-item .post-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.siofuki-post-item .post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.siofuki-post-item .post-title a:hover {
    color: #007bff;
}

.siofuki-post-item .post-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ===== タクソノミー情報表示 ===== */
.siofuki-post-taxonomies {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.siofuki-post-taxonomies .taxonomy-group {
    margin-bottom: 8px;
    font-size: 0.85em;
}

.siofuki-post-taxonomies .taxonomy-label {
    font-weight: bold;
    color: #666;
    margin-right: 5px;
}

.siofuki-post-taxonomies a {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    background: #e9ecef;
    border-radius: 3px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.siofuki-post-taxonomies a:hover {
    background: #007bff;
    color: #fff;
}

/* ===== ページネーション ===== */
.siofuki-pagination {
    margin-top: 50px;
    text-align: center;
}

.siofuki-pagination .page-numbers {
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 1;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.siofuki-pagination .page-numbers:hover,
.siofuki-pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.siofuki-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===== 個別投稿ページ ===== */
.siofuki-single-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.siofuki-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

.siofuki-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.siofuki-breadcrumb a:hover {
    text-decoration: underline;
}

.siofuki-post {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.siofuki-post .post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.siofuki-post .post-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #333;
}

.siofuki-post .post-meta {
    color: #666;
    font-size: 0.9em;
}

.siofuki-post .post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.siofuki-post .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.siofuki-post .post-content {
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.siofuki-post .post-content p {
    margin-bottom: 1.5em;
}

.siofuki-post .post-taxonomies {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ===== 関連投稿 ===== */
.siofuki-post .related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.siofuki-post .related-posts h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-item {
    text-align: center;
}

.related-post-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.related-post-item img:hover {
    transform: scale(1.05);
}

.related-post-item h4 {
    font-size: 1em;
    margin: 0;
}

.related-post-item h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-post-item h4 a:hover {
    color: #007bff;
}

/* ===== タクソノミーアーカイブページ ===== */
.siofuki-taxonomy-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.siofuki-taxonomy-archive .archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.siofuki-taxonomy-archive .archive-title {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: #333;
}

.siofuki-taxonomy-archive .archive-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* ===== フィルタリングメニュー ===== */
.taxonomy-filters {
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.taxonomy-filters h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #007bff;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.siofuki-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.siofuki-filter-siofuki_type ul,
.siofuki-filter-siofuki_scale ul,
.siofuki-filter-siofuki_situation ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.siofuki-filter-siofuki_type li,
.siofuki-filter-siofuki_scale li,
.siofuki-filter-siofuki_situation li {
    display: inline-block;
}

.siofuki-filter-siofuki_type li a,
.siofuki-filter-siofuki_scale li a,
.siofuki-filter-siofuki_situation li a {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.siofuki-filter-siofuki_type li.current a,
.siofuki-filter-siofuki_scale li.current a,
.siofuki-filter-siofuki_situation li.current a,
.siofuki-filter-siofuki_type li a:hover,
.siofuki-filter-siofuki_scale li a:hover,
.siofuki-filter-siofuki_situation li a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ===== 女優アーカイブページ ===== */
.actress-archive .archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.actress-archive .archive-title {
    color: #fff;
}

/* 女優・タイプ別・シチュ別ページ: タイプ・規模・出演女優を横並び（幅が足りなければ折り返す） */
.actress-archive .siofuki-post-taxonomies,
.type-archive .siofuki-post-taxonomies,
.situation-archive .siofuki-post-taxonomies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.actress-archive .siofuki-post-taxonomies .taxonomy-group,
.type-archive .siofuki-post-taxonomies .taxonomy-group,
.situation-archive .siofuki-post-taxonomies .taxonomy-group {
    margin-bottom: 0;
    font-size: 0.72em;
}

.actress-archive .siofuki-post-taxonomies a,
.type-archive .siofuki-post-taxonomies a,
.situation-archive .siofuki-post-taxonomies a {
    padding: 1px 6px;
    margin: 1px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .taxonomy-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .siofuki-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .siofuki-post {
        padding: 20px;
    }
    
    .siofuki-post .post-title {
        font-size: 1.8em;
    }
    
    .siofuki-main-archive .archive-title,
    .siofuki-taxonomy-archive .archive-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .siofuki-filter-siofuki_type ul,
    .siofuki-filter-siofuki_scale ul,
    .siofuki-filter-siofuki_situation ul {
        flex-direction: column;
    }
    
    .siofuki-filter-siofuki_type li,
    .siofuki-filter-siofuki_scale li,
    .siofuki-filter-siofuki_situation li {
        width: 100%;
    }
    
    .siofuki-filter-siofuki_type li a,
    .siofuki-filter-siofuki_scale li a,
    .siofuki-filter-siofuki_situation li a {
        display: block;
        text-align: center;
    }
}

/* ===== 印刷用スタイル ===== */
@media print {
    .siofuki-taxonomy-menu,
    .taxonomy-filters,
    .siofuki-filters,
    .related-posts,
    .siofuki-pagination {
        display: none;
    }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* style.css に追記 */
/* 2026/02/05　antigravity */
/* 関連記事セクション */
.bl-related-section {
    margin-top: 40px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.bl-related-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 5px solid #AEC6CF; /* パステルブルーのアクセント */
    padding-left: 10px;
}

.bl-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    gap: 15px;
}

@media (min-width: 768px) {
    .bl-related-grid {
        grid-template-columns: repeat(4, 1fr); /* PCは4列 */
    }
}

.bl-related-card {
    text-decoration: none;
    color: #333;
    display: block;
    transition: opacity 0.3s;
}

.bl-related-card:hover {
    opacity: 0.8;
}

.bl-related-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 8px;
    display: block;
}

.bl-related-title {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ジャンルナビゲーション（ヘッダー下） */
.bl-genre-nav-container {
    background-color: #f5f8fa; /* 薄い背景色 */
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 20px;
}

/* スマホで横スクロールできるようにする設定 */
.bl-genre-nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 10px;
    margin: 0;
    list-style: none;
}

/* スクロールバーを消す（見た目重視） */
.bl-genre-nav-list::-webkit-scrollbar {
    display: none; 
}

.bl-genre-nav-list li {
    flex: 0 0 auto; /* 折り返さない */
    margin: 0;
}

.bl-genre-nav-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px; /* 丸ボタン風 */
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.bl-genre-nav-list li a:hover {
    background: #AEC6CF; /* ホバー時の色 */
    color: #fff;
    border-color: #AEC6CF;
}

/* ===== 関連作品セクション ===== */
.bl-related-section {
    margin: 2em 0;
    padding: 1.2em;
    background: #f9f9f9;
    border-radius: 6px;
}
.bl-related-section h3 {
    font-size: 1.1em;
    margin: 0 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #AEC6CF;
}
.bl-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .bl-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.bl-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.2s;
}
.bl-related-card:hover { opacity: 0.8; }
.bl-related-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.bl-related-title {
    font-size: 0.8em;
    margin: 0.4em 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bl-related-more {
    text-align: right;
    margin: 0.6em 0 0;
    font-size: 0.85em;
}
.bl-related-more a { color: #AEC6CF; }
.bl-related-more a:hover { text-decoration: underline; }

/* ===== 女優カード（関連女優セクション） ===== */
.bl-related-actress-section {
    margin: 2em 0;
    padding: 1.2em;
    background: #f9f9f9;
    border-radius: 6px;
}
.bl-related-actress-section h3 {
    font-size: 1.1em;
    margin: 0 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #AEC6CF;
}
.bl-actress-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .bl-actress-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 641px) and (max-width: 900px) {
    .bl-actress-grid { grid-template-columns: repeat(3, 1fr); }
}
.bl-actress-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.2s;
}
.bl-actress-card:hover { opacity: 0.8; }
.bl-actress-thumb {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center top;
    background-color: #ddd;
    border-radius: 4px;
}
.bl-actress-name {
    font-size: 0.85em;
    font-weight: bold;
    margin: 0.4em 0 0.1em;
}
.bl-actress-count {
    font-size: 0.75em;
    color: #888;
}

/* ===== フィルターナビ ===== */
.bl-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0.8em 0;
    padding: 0.6em 0.8em;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85em;
}
.bl-filter-label {
    font-weight: bold;
    white-space: nowrap;
    color: #555;
}
.bl-filter-link {
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.bl-filter-link:hover {
    background: #AEC6CF;
    color: #fff;
    border-color: #AEC6CF;
}

/* ===== 女優ページ 複数選択絞り込み ===== */
.bl-actress-filter {
    margin: 0.8em 0;
    padding: 0.6em 0.8em;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85em;
}
.bl-actress-filter-title {
    margin: 0 0 0.4em;
    font-weight: bold;
}
.bl-actress-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6em;
}
.bl-filter-check {
    cursor: pointer;
}
.bl-filter-check input {
    position: absolute;
    opacity: 0;
}
.bl-filter-check span {
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: #333;
    transition: all 0.2s;
}
.bl-filter-check input:checked + span {
    background: #AEC6CF;
    color: #fff;
    border-color: #AEC6CF;
}
.bl-filter-check input:focus-visible + span {
    outline: 2px solid #333;
}
.bl-actress-filter-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: #c0392b;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ===== 女優セレクトボックス ===== */
.bl-select-actress {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    margin-top: 4px;
}

/* ===== 絞り込み条件バッジ ===== */
.bl-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 1em 0 1.5em;
    padding: 0.7em 1em;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 4px solid #AEC6CF;
    font-size: 0.9em;
}
.bl-active-filters-label {
    font-weight: bold;
    color: #555;
}
.bl-filter-tag {
    background: #AEC6CF;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
}
.bl-filter-reset {
    margin-left: auto;
    color: #888;
    font-size: 0.85em;
    text-decoration: underline;
}

/* ===== 投稿ページ 人気女優セクション ===== */
.bl-popular-actress-section {
    background: #f8f9fa;
    padding: 28px 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.bl-popular-actress-section h3 {
    border-left: 5px solid #ff9800;
    padding-left: 12px;
    margin: 0 0 20px;
    font-size: 20px;
    background: none;
    box-shadow: none;
}

/* Cocoon の .entry-content a { display:inline } を上書き */
.bl-popular-actress-section .bl-actress-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 0 0 16px;
}
.bl-popular-actress-section .bl-actress-card {
    display: block !important;
    text-decoration: none;
    color: inherit;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bl-popular-actress-section .bl-actress-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.bl-popular-actress-section .bl-actress-thumb {
    width: 100%;
    padding-top: 133%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}
.bl-popular-actress-section .bl-actress-name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    margin: 8px 0 0;
    display: block;
}
@media (max-width: 768px) {
    .bl-popular-actress-section .bl-actress-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}
@media (max-width: 480px) {
    .bl-popular-actress-section .bl-actress-grid { grid-template-columns: repeat(2, 1fr); }
}

.bl-view-more {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.bl-view-more:hover {
    background: #e0e0e0;
}

/* ===== 女優プロフィール文 ===== */
.bl-actress-profile {
    background: #f5f8fc;
    border-left: 4px solid #a4c2db;
    padding: 0.8em 1.2em;
    margin-bottom: 1.5em;
    border-radius: 0 4px 4px 0;
}
.bl-actress-profile p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

/* ===== CTAボタン クリックしやすさ改善 ===== */
.btn-red {
    background-color: #e53935 !important;
    border-color: #e53935 !important;
    color: #fff !important;
}

.entry-content .button-block {
    margin: 1.5em 0;
}

.entry-content .button-block .btn {
    padding: 1.2em 1em;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: underline;
}

/* ===== MGS作品 商品詳細テーブル ===== */
.mgs-spec {
    margin: 1.2em 0;
    overflow-x: auto;
}

.mgs-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    line-height: 1.6;
}

.mgs-spec-table th,
.mgs-spec-table td {
    padding: 0.5em 0.8em;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.mgs-spec-table th {
    width: 8em;
    white-space: nowrap;
    background-color: #f7f7f7;
    font-weight: normal;
    color: #666;
}

@media screen and (max-width: 480px) {
    .mgs-spec-table th {
        width: 6.5em;
    }
}

/* ===== MGSポイント還元バナー ===== */
.mgs-banner-lead {
    margin: 0 0 0.4em;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.4;
}

.mgs-banner-lead a {
    color: #e53935;
    text-decoration: none;
}

.mgs-banner-lead a:hover {
    text-decoration: underline;
}

/* ===== myfans 投稿カード ===== */
.mf-pr-notice {
    font-size: 0.8em;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
}

.mf-pick {
    border: 2px solid #c0392b;
    border-radius: 8px;
    padding: 14px;
    margin: 1.2em 0;
    background: #fff;
}

.mf-pick-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.mf-pr {
    font-size: 11px;
    color: #fff;
    background: #888;
    border-radius: 3px;
    padding: 1px 6px;
}

.mf-pick-label {
    font-size: 12px;
    font-weight: bold;
    color: #c0392b;
}

.mf-pick-title {
    font-weight: bold;
    margin: 0 0 4px;
    line-height: 1.5;
}

.mf-pick-spec {
    font-size: 0.85em;
    color: #555;
    margin: 0 0 8px;
}

.mf-pick-reason {
    font-size: 0.95em;
    margin: 0 0 10px;
}

.mf-pick .mf-pick-btn {
    display: block;
    background: #c0392b;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 14px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.mf-pick-checked {
    font-size: 11px;
    color: #999;
    margin: 6px 0 0;
    text-align: right;
}

.mf-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== myfans クリエイターページ（手書き本文の /myfans/yuma24/）=====
 * プロフィール .mf-cprof・月額プラン .mf-plan・作品カード .mf-wcard（myfans.php の mf_wcard()）・並べ替え .mf-sort・料金の折りたたみ .mf-price-details */
.mf-cprof {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 1.2em;
    background: #fff;
}

/* Cocoon の .entry-content p / ul の余白を詰める */
.entry-content .mf-cprof p,
.entry-content .mf-plan p {
    margin-top: 0;
    margin-bottom: 6px;
}

.entry-content .mf-cprof .mf-cprof-stats,
.entry-content .mf-wcard .mf-wcard-spec {
    padding-left: 0;
}

.entry-content .mf-wcard p {
    margin-top: 0;
}

.entry-content .mf-wcard .mf-wcard-title {
    margin-bottom: 6px;
}

.mf-cprof-name {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}

.mf-cprof-handle {
    color: #666;
    margin: 0 0 8px;
}

.mf-cprof-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    padding: 0;
    margin: 8px 0 4px;
}

.mf-cprof-stats li {
    margin: 0;
}

.mf-cprof-stats strong {
    font-size: 1.2em;
}

.mf-cprof-source,
.mf-plan-checked {
    font-size: 11px;
    color: #999;
    margin: 0 0 8px;
}

.mf-cprof-link {
    display: inline-block;
    color: #c0392b;
    font-weight: bold;
}

.mf-plan .mf-plan-name {
    font-weight: bold;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.mf-plan .mf-plan-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #c0392b;
    margin: 0;
}

.mf-plan .mf-plan-price small {
    font-size: 0.6em;
    color: #555;
}

.mf-plan .mf-plan-scope {
    margin: 4px 0;
}

.mf-plan blockquote {
    font-size: 0.9em;
    margin: 8px 0 10px;
}

.mf-wgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 1.2em;
}

.mf-wgrid .mf-wcard,
.mf-wcard {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-width: 0;
}

.mf-wgrid .mf-wcard {
    margin: 0;
    border-width: 1px;
    border-color: #ddd;
}

.mf-wcard-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    min-height: 0;
    background: #222;
}

.mf-wcard--video .mf-wcard-media {
    position: relative;
}

.mf-wcard-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .72);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}

.mf-wcard-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #FFFFFF;
}

.mf-wcard-media .mf-wcard-img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.mf-wcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
    min-width: 0;
}

.mf-wcard-title {
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.mf-wcard-title a {
    color: inherit;
    text-decoration: none;
}

.mf-wcard-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    font-size: 0.85em;
}

.mf-wcard-spec li {
    margin: 0;
}

.mf-wcard-spec span {
    color: #888;
    margin-right: 4px;
}

.mf-wcard-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.mf-wcard .mf-wcard-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
    padding: 12px 10px;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mf-wcard .mf-wcard-btn--mf {
    background: #c0392b;
    color: #fff;
}

.mf-wcard .mf-wcard-btn--detail {
    border: 1px solid #c0392b;
    color: #c0392b;
    background: #fff;
}

.mf-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.mf-sort button {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.mf-sort button[aria-pressed="true"] {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.mf-price-details {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 1.2em 0;
    background: #fff;
}

.mf-price-details > summary {
    cursor: pointer;
    font-weight: bold;
    padding: 12px 14px;
}

.mf-price-details[open] > summary {
    border-bottom: 1px solid #ddd;
}

.mf-price-details-body {
    padding: 4px 14px 14px;
}

@media (min-width: 600px) {
    .mf-wgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 最初に見るなら：PC は画像左・情報右 */
    .mf-wcard-first .mf-wcard {
        flex-direction: row;
    }

    .mf-wcard-first .mf-wcard-media {
        flex: 0 0 50%;
        align-self: flex-start;
    }
}

@media (min-width: 1024px) {
    .mf-wgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* サンプル用の簡易カード（mf_wcard の compact）。中央の再生アイコン・作品名2行・「サンプルを見る」＋ myfans ボタン */
.mf-wcard-bigplay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
    pointer-events: none;
}

.mf-wcard-bigplay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -5px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #FFFFFF;
}

.mf-wgrid--scroll .mf-wcard-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mf-wcard .mf-wcard-btn--sample {
    background: #0B4D4F;
    color: #fff;
}

.entry-content .mf-wcard .mf-wcard-more {
    font-size: 13px;
    text-align: center;
    color: #0B4D4F;
}

.mf-wgrid-hint {
    display: none;
}

/* 「無料サンプルあり」で隠したカード（.mf-wcard の display: flex より優先） */
.mf-wgrid > [hidden] {
    display: none !important;
}

.mf-sort .mf-sort-filter[aria-pressed="true"] {
    background: #0B4D4F;
    border-color: #0B4D4F;
}

/* スマホはサンプル一覧を横スクロール＋スナップ。次のカードの端を見せてスクロールできると伝える */
@media (max-width: 599px) {
    .mf-wgrid.mf-wgrid--scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 2px 10px;
    }

    .mf-wgrid--scroll .mf-wcard {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .entry-content .mf-wgrid-hint {
        display: block;
        margin: -4px 0 8px;
        font-size: 12px;
        color: #666;
    }
}

/* クリエイターページ冒頭の動画（page-myfans-creator.php の .mf-chero）。縦動画は高さを画面の 70% までにする */
.mf-pick.mf-chero {
    padding: 0 0 14px;
    overflow: hidden;
    margin: 0 0 1.4em;
}

.mf-chero-lead {
    font-size: 0.9em;
}

.mf-chero-stage {
    position: relative;
    background: #000;
}

.mf-chero-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    max-height: 70svh;
    background: #000;
    object-fit: contain;
}

.mf-chero-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .72);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

.mf-viewer-ready .mf-chero-expand,
.myfans-creator:has(.mf-viewer-ready) .mf-chero-expand,
body:has(.mf-viewer-ready) .mf-art .mf-chero-expand {
    display: inline-block;
}

.mf-chero-sound {
    margin: 6px 14px 0;
    font-size: 12px;
    color: #777;
}

.mf-chero-title {
    margin: 4px 14px 6px;
    font-weight: bold;
    line-height: 1.5;
}

.mf-chero-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 14px 12px;
    padding: 0;
    list-style: none;
}

.mf-chero-spec li {
    padding: 2px 10px;
    border-radius: 12px;
    background: #f2f2f2;
    font-size: 12px;
}

.mf-chero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0 14px;
    border-radius: 6px;
    background: #c0392b;
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
}

.mf-chero-cta:hover {
    background: #9E2F23;
    color: #FFFFFF;
}

.mf-chero-detail {
    display: inline-block;
    margin: 10px 14px 0;
    font-size: 13px;
}

.mf-chero-badge {
    display: inline-block;
    margin: 10px 14px 0;
    padding: 2px 10px;
    border-radius: 12px;
    background: #FDEDEB;
    color: #9E2F23;
    font-size: 12px;
    font-weight: bold;
}

/* クリエイターページ冒頭のクリエイター紹介（page-myfans-creator.php の .mf-chead）
 * アイコン画像は使えないので、名前・一行紹介・数値の文字で見せる
 * 緑はページ内の操作、赤は myfans へ移動するリンクだけに使う */
.myfans-creator > .mf-pr-notice {
    margin: 0 0 10px;
}

.article-header.mf-chead {
    margin: 0 0 1.2em;
    padding: 18px 16px 16px;
    border: 1px solid #E8E1D9;
    border-radius: 12px;
    background: #FBF8F5;
    color: #1E2933;
}

.mf-chead p {
    margin: 0;
}

.mf-chead-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    color: #0B4D4F;
}

.mf-chead .entry-title {
    margin: 4px 0 2px;
    font-size: 26px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mf-chead-handle {
    font-size: 14px;
    color: #666;
}

/* 一行紹介は h2（Cocoon の見出し装飾を外す） */
.mf-chead h2.mf-chead-lead {
    margin: 10px 0 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.7;
}

/* 一行紹介の下の紹介文（mf_intro） */
.mf-chead-intro {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.8;
}

.mf-chead .mf-chead-intro p + p {
    margin-top: .8em;
}

/* 紹介文の最後のプロフィールへのリンク（myfans へ移動するので赤） */
.mf-chead-intro-link a {
    color: #c0392b;
    font-weight: bold;
}

.mf-chead-intro-link a:hover {
    color: #9E2F23;
}

.mf-chead-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px;
    padding: 0;
    list-style: none;
}

.mf-chead-stats li {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E8E1D9;
}

.mf-chead-stats span {
    font-size: 12px;
    color: #666;
}

.mf-chead-stats strong {
    font-size: 22px;
    line-height: 1.3;
}

.mf-chead-note {
    font-size: 11px;
    color: #777;
}

.mf-chead-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mf-chead-sample,
.mf-chead-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.mf-chead-sample {
    background: #0B4D4F;
    color: #FFFFFF;
}

.mf-chead-cta {
    background: #c0392b;
    color: #FFFFFF;
}

.mf-chead-sample:hover,
.mf-chead-cta:hover {
    color: #FFFFFF;
}

.mf-chead-cta:hover {
    background: #9E2F23;
}

@media (min-width: 600px) {
    .mf-chead-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* 公開情報で分かる特徴（.mf-cfacts） */
.entry-content .mf-cfacts ol {
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
    counter-reset: mf-fact;
}

.entry-content .mf-cfacts li {
    position: relative;
    margin: 0 0 8px;
    padding: 10px 12px 10px 44px;
    border: 1px solid #E8E1D9;
    border-radius: 8px;
    background: #FBF8F5;
    counter-increment: mf-fact;
}

.mf-cfacts li::before {
    content: counter(mf-fact);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0B4D4F;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
}

/* mfpi 記事を組み直した本文（myfans.php の mf_mfpi_article_html）。冒頭はクリエイターページの .mf-chero を流用 */
.mf-art-hero .mf-art-cover {
    display: block;
    width: 100%;
    height: auto;
}

.mf-art-player .mfpi-video {
    margin: 0;
}

.mf-art-cta {
    margin: 1.4em 0;
    padding: 14px 0;
}

.mf-art-cta-note {
    margin: 8px 14px 0;
    font-size: 12px;
    color: #777;
}

.mf-art-dl {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    margin: 0 0 1em;
    border-top: 1px solid #eee;
}

.mf-art-dl dt,
.mf-art-dl dd {
    margin: 0;
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.mf-art-dl dt {
    color: #777;
}

.article .bl-related-section h2 {
    margin: 0 0 0.8em;
    padding: 0 0 0.4em;
    background: none;
    border: 0;
    border-bottom: 2px solid #AEC6CF;
    color: inherit;
    font-size: 1.1em;
}

/* ===== myfans 投稿スタジオ記事（myfans-post-importer）=====
 * プラグインの article.css は外している（myfans.php）。見出し・段落・表は Cocoon 標準に任せる */
.mfpi-article {
    overflow-wrap: anywhere;
}

.mfpi-ad,
.mfpi-note,
.mfpi-eyebrow {
    font-size: 12px;
    color: #777;
}

.mfpi-cta {
    margin: 16px 0;
}

.mfpi-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.mfpi-cover {
    display: block;
    flex: 0 0 40%;
    line-height: 0;
}

.mfpi-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.mfpi-card-body {
    flex: 1;
    min-width: 0;
}

.mfpi-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.mfpi-facts {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 6px 12px;
    margin: 0 0 12px;
    font-size: 14px;
}

.mfpi-facts dt {
    color: #777;
}

.mfpi-facts dd {
    margin: 0;
    font-weight: bold;
}

.mfpi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mfpi-tags span {
    padding: 2px 9px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 11px;
}

.mfpi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mfpi-video {
    margin: 20px 0;
}

.mfpi-video video,
.mfpi-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #141414;
    object-fit: contain;
}

/* サンプル動画は縦長（360x640）なので元の比率で表示する */
.mfpi-sample-media .mfpi-video video {
    aspect-ratio: auto;
    max-height: 80vh;
}

.mfpi-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.mfpi-gallery[data-count="1"] {
    grid-template-columns: 1fr;
}

.mfpi-gallery figure {
    margin: 0;
}

.mfpi-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.mfpi-related,
.mfpi-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mfpi-related a,
.mfpi-plans section,
.mfpi-highlight,
.mfpi-accounts a {
    display: block;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    text-decoration: none;
}

.mfpi-highlight {
    margin-bottom: 12px;
}

.mfpi-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mfpi-related small,
.mfpi-related strong,
.mfpi-related span {
    display: block;
}

.mfpi-related small {
    font-size: 11px;
    color: #777;
}

.mfpi-plans section {
    border-top: 3px solid #c0392b;
}

.mfpi-plans strong {
    font-size: 1.4em;
}

/* 取得したクリエイターの見放題プラン（myfans.php mf_plans_html） */
.mf-plans {
    grid-template-columns: 1fr;
}

.mf-plans strong small {
    font-size: .6em;
    font-weight: normal;
}

.mf-plans-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}

.mf-plans-posts {
    margin: 4px 0 8px;
    color: #555;
}

.mf-plans-table {
    width: 100%;
    margin: 8px 0 12px;
    font-size: 14px;
}

/* クリエイターページの期間別の料金（折りたたみ） */
.mf-plans-more {
    margin: 8px 0 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}

.mf-plans-more summary {
    padding: 10px 12px;
    font-weight: bold;
    color: #0B4D4F;
    cursor: pointer;
}

.mf-plans-more .mf-plans-table {
    margin: 0;
}

.mf-plans-table .is-recommended {
    background: #fff4f2;
    font-weight: bold;
}

.mf-plans-table td span,
.mf-plans-table td em {
    margin-left: 6px;
    color: #c0392b;
    font-size: 12px;
    font-style: normal;
}

.mf-plans-cta {
    display: block;
    padding: 12px;
    border-radius: 6px;
    background: #c0392b;
    color: #fff !important;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.mfpi-article details {
    margin: 8px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}

.mfpi-article summary {
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
}

.mfpi-article details > p {
    margin: 0;
    padding: 0 16px 12px;
}

/* myfans 代表ページ「まず見る1本」：カードを横幅いっぱい・16:9 で大きく出す（sironuki と同じ見え方） */
.mf-hub-feature .bl-related-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
}

.mf-hub-feature .bl-related-title {
    font-size: 1rem;
    margin-top: 8px;
}

.mf-creator-link {
    margin: 24px 0;
    text-align: center;
    font-weight: bold;
}

/* ===== myfans 代表ページ /myfans/（page-myfans.php）=====
 * スマホ優先。.mf-top の中だけに効かせる。カードは mf_work_card()（myfans.php） */
.article.mf-top {
    --mf-bg: #F8FAFC;
    --mf-card: #FFFFFF;
    --mf-text: #172B3A;
    --mf-sub: #52616D;
    --mf-accent: #0F6466;
    --mf-line: #DDE5E9;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    background: var(--mf-bg);
    color: var(--mf-text);
    font-size: 16px;
    line-height: 1.6;
}

.mf-top a:focus-visible {
    outline: 3px solid var(--mf-accent);
    outline-offset: 2px;
}

.mf-top .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.article.mf-top h1.mf-top-title {
    font-size: 24px;
    line-height: 1.35;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mf-text);
}

.mf-top .mf-pr-notice {
    font-size: 13px;
    color: var(--mf-sub);
    border-color: var(--mf-line);
    background: var(--mf-card);
    margin: 0 0 12px;
}

.mf-top .mf-top-catch {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 4px;
}

.mf-top .mf-top-lead,
.mf-top .mf-top-note {
    margin: 0 0 12px;
}

.mf-top .mf-top-note {
    font-size: 13px;
    color: var(--mf-sub);
}

.article.mf-top .mf-top-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-top .mf-top-nav li {
    flex: 1 1 auto;
    margin: 0;
}

.mf-top .mf-top-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--mf-line);
    border-radius: 22px;
    background: var(--mf-card);
    color: var(--mf-text);
    font-size: 15px;
    text-decoration: none;
}

.mf-top .mf-top-section {
    margin-top: 32px;
    scroll-margin-top: 16px;
}

.article.mf-top h2 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 2px solid var(--mf-line);
    border-radius: 0;
    background: none;
    color: var(--mf-text);
}

/* 作品カード：16:9 のサムネイル＋作品名・クリエイター・価格。スマホ2列 / 600px 以上3列 / 1024px 以上4列
 * 「サンプル」付きのカードは js/mf-viewer.js が動画ビューアで開く（css/mf-viewer.css） */
.mf-top .mf-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.mf-top .mf-card {
    min-width: 0;
}

.mf-top .mf-card-link {
    display: block;
    color: var(--mf-text);
    text-decoration: none;
    border-radius: 8px;
}

.mf-top .mf-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mf-line);
}

.mf-top .mf-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mf-top .mf-card-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .72);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}

.mf-top .mf-card-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #FFFFFF;
}

.mf-top .mf-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin: 6px 0 2px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.45;
}

.mf-top .mf-card-link:hover .mf-card-title {
    text-decoration: underline;
}

.mf-top .mf-card-creator {
    margin: 0;
    font-size: 12px;
    color: var(--mf-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-top .mf-rec-creator {
    margin: -4px 0 12px;
    font-size: 15px;
    font-weight: bold;
}

.mf-top .mf-card-specs {
    margin: 0;
    font-size: 12px;
    color: var(--mf-sub);
}

.mf-top .mf-card-price {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.mf-top .mf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.mf-top .mf-btn--primary {
    background: var(--mf-accent);
    border: 1px solid var(--mf-accent);
    color: #FFFFFF;
}

.mf-top .mf-btn--secondary {
    background: var(--mf-card);
    border: 1px solid var(--mf-accent);
    color: var(--mf-accent);
}

/* クリエイター一覧 */
.article.mf-top .mf-creator-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-top .mf-creator-list li {
    margin: 0;
}

.mf-top .mf-creator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    background: var(--mf-card);
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    color: var(--mf-text);
    text-decoration: none;
}

.mf-top .mf-creator-img {
    flex: none;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.mf-top .mf-creator-name {
    flex: 1;
    min-width: 0;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.mf-top .mf-creator-count {
    flex: none;
    font-size: 13px;
    color: var(--mf-sub);
}

/* 利用ガイドへの案内（旧原稿の見出し ID はここの li に残している） */
.mf-top .mf-top-guide {
    padding: 16px;
    background: var(--mf-card);
    border: 1px solid var(--mf-line);
    border-radius: 12px;
}

.mf-top .mf-top-guide > .mf-btn {
    margin: 0 0 16px;
}

.article.mf-top .mf-guide-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-top .mf-guide-links li {
    margin: 0;
    border-top: 1px solid var(--mf-line);
    scroll-margin-top: 16px;
}

.mf-top .mf-guide-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--mf-accent);
}

/* 834px 以下は Cocoon の main に左右 16px の余白があるので、背景を main の端まで広げて左右余白を 16px にする */
@media (max-width: 834px) {
    .article.mf-top {
        margin: -16px -16px 0;
    }
}

@media (max-width: 359px) {
    .article.mf-top {
        padding: 12px;
    }

    .mf-top .mf-top-nav a {
        padding: 0 8px;
        font-size: 14px;
    }

}

/* タブレット以上：画像を上に置き、2列（1024px 以上は3列）。ボタンは下端でそろえる */
@media (min-width: 768px) {
    .article.mf-top h1.mf-top-title {
        font-size: 28px;
    }

    .mf-top .mf-top-nav li {
        flex: 0 0 auto;
    }

    .mf-top .mf-top-nav a {
        padding: 0 16px;
    }

    .article.mf-top h2 {
        font-size: 22px;
    }

    .article.mf-top .mf-creator-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .article.mf-top .mf-creator-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mf-top .mf-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .mf-top .mf-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 文字を大きくしているとき（既定の文字サイズに対して幅が狭い）は1列にする */
@media (max-width: 19.9em) {
    .mf-top .mf-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .mfpi-card {
        display: block;
    }

    .mfpi-cover {
        margin-bottom: 14px;
    }

    .mfpi-gallery {
        grid-template-columns: 1fr;
    }
}

/* クリエイター向け問い合わせ案内（/myfans/ 配下。myfans.php の mf_creator_contact_box） */
.mf-contact {
    margin: 32px 0 24px;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid #DDE5E9;
    border-radius: 12px;
    color: #172B3A;
}

.mf-contact .mf-contact-title {
    margin: 0 0 8px;
    font-weight: bold;
}

.mf-contact p {
    margin: 0 0 12px;
    font-size: 14px;
}

.mf-contact .mf-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #0F6466;
    border-radius: 8px;
    color: #0F6466;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

/* 姉妹サイトの myfans へのボタン（myfans.php の mf_sister_links）
 * 普段はグレーで自サイトのボタン（緑）と区別。下辺を厚くして押せる形に見せ、ホバー・タップで行き先サイトの色に変わり ↗ が右上へ動く
 * 行き先の色はサイトのキーカラーを白地で読める濃さ（AA）に寄せたもの: 潮吹き #f28c68 / 素人 #e74c3c / ぶっかけ #a4c2db */
.mf-sister ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.mf-sister li {
    margin: 0;
}

.mf-sister .mf-sister-btn {
    --mf-sister-color: #0F6466;
    --mf-sister-tint: #F1F7F7;
    --mf-sister-tag: #DCEBEB;
}

.mf-sister .mf-sister-btn[data-mf-sister="fuki-lab.com"] {
    --mf-sister-color: #B4502C;
    --mf-sister-tint: #FDF0EA;
    --mf-sister-tag: #FADCCF;
}

.mf-sister .mf-sister-btn[data-mf-sister="sironuki.com"] {
    --mf-sister-color: #C0392B;
    --mf-sister-tint: #FDEDEB;
    --mf-sister-tag: #F9D5D1;
}

.mf-sister .mf-sister-btn[data-mf-sister="bukkake-lab.com"] {
    --mf-sister-color: #2F5F86;
    --mf-sister-tint: #EEF4F9;
    --mf-sister-tag: #D6E4F0;
}

.mf-sister .mf-sister-btn,
.mf-sister .mf-sister-btn:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px 8px 12px;
    background: #FFFFFF;
    border: 1px solid #C5CED4;
    border-bottom-width: 3px;
    border-radius: 8px;
    color: #172B3A;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

.mf-sister .mf-sister-tag {
    flex: none;
    padding: 2px 6px;
    background: #EEF2F4;
    border-radius: 4px;
    color: #52616D;
    font-size: 11px;
    line-height: 1.4;
    transition: background-color .15s, color .15s;
}

.mf-sister .mf-sister-name {
    flex: 1;
    min-width: 0;
    font-weight: bold;
}

.mf-sister .mf-sister-ext {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #EEF2F4;
    border-radius: 50%;
    color: #52616D;
    font-size: 14px;
    line-height: 1;
    transition: background-color .15s, color .15s, transform .15s;
}

@media (hover: hover) {
    .mf-sister .mf-sister-btn:hover {
        background: var(--mf-sister-tint);
        border-color: var(--mf-sister-color);
        color: var(--mf-sister-color);
    }

    .mf-sister .mf-sister-btn:hover .mf-sister-tag {
        background: var(--mf-sister-tag);
        color: var(--mf-sister-color);
    }

    .mf-sister .mf-sister-btn:hover .mf-sister-ext {
        background: var(--mf-sister-color);
        color: #FFFFFF;
        transform: translate(2px, -2px);
    }
}

.mf-sister .mf-sister-btn:active {
    background: var(--mf-sister-tint);
    border-color: var(--mf-sister-color);
    border-bottom-width: 1px;
    color: var(--mf-sister-color);
    transform: translateY(2px);
}

.mf-sister .mf-sister-btn:active .mf-sister-ext {
    background: var(--mf-sister-color);
    color: #FFFFFF;
}

.mf-sister .mf-sister-btn:focus-visible {
    outline: 2px solid var(--mf-sister-color);
    outline-offset: 2px;
}

.mf-sister .mf-sister-sr,
.mf-card .mf-sister-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .mf-sister .mf-sister-btn,
    .mf-sister .mf-sister-tag,
    .mf-sister .mf-sister-ext {
        transition: none;
    }

    .mf-sister .mf-sister-btn:hover .mf-sister-ext,
    .mf-sister .mf-sister-btn:active {
        transform: none;
    }
}

/* ===== /myfans/ 配下のボタン系リンクのホバー・タップ =====
 * 姉妹サイトボタンと同じ考え方: 塗りのボタンは濃く、枠のボタン・カードは薄く色を敷いて枠と文字を色に、押すと沈む
 * 緑 #0F6466（代表ページ・案内）→ 濃 #0B4D4F / 薄 #F1F7F7、赤 #c0392b（作品カード・PR カード）→ 濃 #9E2F23 / 薄 #FDEDEB
 * ホバーはマウスのある端末だけ（スマホでタップ後に色が残らないように） */
.mf-top .mf-btn,
.mf-top .mf-top-nav a,
.mf-top .mf-creator-item,
.mf-top .mf-creator-name,
.mf-top .mf-card-title,
.mf-wcard .mf-wcard-btn,
.mf-pick .mf-pick-btn,
.mf-contact .mf-contact-btn {
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

.mf-top .mf-card-img,
.mf-wcard-media .mf-wcard-img {
    transition: transform .25s;
}

@media (hover: hover) {
    /* 塗りのボタン */
    .mf-top .mf-btn--primary:hover {
        background: #0B4D4F;
        border-color: #0B4D4F;
        color: #FFFFFF;
    }

    .mf-wcard .mf-wcard-btn--mf:hover,
    .mf-pick .mf-pick-btn:hover {
        background: #9E2F23;
        color: #FFFFFF;
    }

    /* 枠のボタン */
    .mf-top .mf-btn--secondary:hover,
    .mf-contact .mf-contact-btn:hover,
    .mf-top .mf-top-nav a:hover {
        background: #F1F7F7;
        border-color: #0F6466;
        color: #0F6466;
    }

    .mf-wcard .mf-wcard-btn--detail:hover {
        background: #FDEDEB;
        border-color: #9E2F23;
        color: #9E2F23;
    }

    /* クリエイターのカード */
    .mf-top .mf-creator-item:hover {
        background: #F1F7F7;
        border-color: #0F6466;
    }

    .mf-top .mf-creator-item:hover .mf-creator-name {
        color: #0F6466;
    }

    /* 作品カード（サムネイルを少し寄せ、タイトルを緑に） */
    .mf-top .mf-card-link:hover .mf-card-img,
    .mf-wcard-media:hover .mf-wcard-img {
        transform: scale(1.04);
    }

    .mf-top .mf-card-link:hover .mf-card-title {
        color: #0F6466;
    }

    /* 文字のリンク */
    .mf-top .mf-guide-links a:hover,
    .mf-cprof-link:hover,
    .mf-creator-link a:hover {
        text-decoration: underline;
    }

    .mf-top .mf-guide-links a:hover {
        color: #0B4D4F;
    }

    .mf-cprof-link:hover,
    .mf-creator-link a:hover {
        color: #9E2F23;
    }

    .mf-top .mf-viewer .mf-viewer-detail:hover {
        color: #FFFFFF;
        text-decoration: underline;
    }
}

/* 押したとき（スマホのタップも） */
.mf-top .mf-btn:active,
.mf-top .mf-top-nav a:active,
.mf-top .mf-creator-item:active,
.mf-wcard .mf-wcard-btn:active,
.mf-pick .mf-pick-btn:active,
.mf-contact .mf-contact-btn:active {
    transform: translateY(1px);
}

.mf-top .mf-btn--primary:active {
    background: #0B4D4F;
    border-color: #0B4D4F;
}

.mf-wcard .mf-wcard-btn--mf:active,
.mf-pick .mf-pick-btn:active {
    background: #9E2F23;
}

.mf-top .mf-btn--secondary:active,
.mf-contact .mf-contact-btn:active,
.mf-top .mf-top-nav a:active,
.mf-top .mf-creator-item:active {
    background: #E6F0F0;
    border-color: #0F6466;
}

.mf-wcard .mf-wcard-btn--detail:active {
    background: #FDEDEB;
}

.mf-wcard .mf-wcard-btn:focus-visible,
.mf-pick .mf-pick-btn:focus-visible,
.mf-contact .mf-contact-btn:focus-visible {
    outline: 3px solid #0F6466;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mf-top .mf-btn,
    .mf-top .mf-top-nav a,
    .mf-top .mf-creator-item,
    .mf-top .mf-creator-name,
    .mf-top .mf-card-title,
    .mf-top .mf-card-img,
    .mf-wcard-media .mf-wcard-img,
    .mf-wcard .mf-wcard-btn,
    .mf-pick .mf-pick-btn,
    .mf-contact .mf-contact-btn {
        transition: none;
    }

    .mf-top .mf-card-link:hover .mf-card-img,
    .mf-wcard-media:hover .mf-wcard-img,
    .mf-top .mf-btn:active,
    .mf-top .mf-top-nav a:active,
    .mf-top .mf-creator-item:active,
    .mf-wcard .mf-wcard-btn:active,
    .mf-pick .mf-pick-btn:active,
    .mf-contact .mf-contact-btn:active {
        transform: none;
    }
}
