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

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

/* ===== ぶっかけ作品 アーカイブページスタイル ===== */

/* 基本レイアウト */
.bukkake-taxonomy-archive,
.bukkake-main-archive,
.bukkake-single-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* アーカイブヘッダー */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* フィルタリングメニュー */
.bukkake-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.bukkake-filters > div {
    flex: 1;
    min-width: 200px;
}

.bukkake-filters h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #495057;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 5px;
}

.bukkake-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bukkake-filters li {
    margin-bottom: 5px;
}

.bukkake-filters a {
    display: block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.bukkake-filters a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.bukkake-filters li.current a {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 投稿グリッド */
.bukkake-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.bukkake-post-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bukkake-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

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

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

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.post-title a {
    color: #212529;
    text-decoration: none;
    line-height: 1.4;
}

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

.post-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* タクソノミー表示 */
.bukkake-post-taxonomies {
    margin-top: 15px;
}

.taxonomy-group {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.taxonomy-label {
    font-weight: bold;
    color: #495057;
}

.taxonomy-group a {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.taxonomy-group a:hover {
    text-decoration: underline;
}

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

.actress-archive .bukkake-post-taxonomies .taxonomy-group,
.type-archive .bukkake-post-taxonomies .taxonomy-group,
.situation-archive .bukkake-post-taxonomies .taxonomy-group {
    margin-bottom: 0;
    font-size: 0.75rem;
}

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

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

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

/* メインアーカイブページ */
.bukkake-taxonomy-menu {
    margin-bottom: 50px;
}

.bukkake-taxonomy-menu h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #495057;
}

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

.taxonomy-menu-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
}

.taxonomy-menu-item h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.3rem;
    text-align: center;
}

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

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

.taxonomy-menu-item a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.taxonomy-menu-item a:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* 個別投稿ページ */
.bukkake-single-post {
    max-width: 800px;
}

.bukkake-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

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

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

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #212529;
}

.post-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.post-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.post-taxonomies {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid #007bff;
}

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

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #495057;
}

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

.related-post-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-3px);
}

.related-post-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.related-post-item h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-post-item a {
    color: #495057;
    text-decoration: none;
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .bukkake-taxonomy-archive,
    .bukkake-main-archive,
    .bukkake-single-post {
        padding: 15px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .bukkake-filters {
        flex-direction: column;
    }
    
    .bukkake-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .taxonomy-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bukkake-post-item {
    animation: fadeInUp 0.6s ease forwards;
}

.bukkake-post-item:nth-child(1) { animation-delay: 0.1s; }
.bukkake-post-item:nth-child(2) { animation-delay: 0.2s; }
.bukkake-post-item:nth-child(3) { animation-delay: 0.3s; }
.bukkake-post-item:nth-child(4) { animation-delay: 0.4s; }

/* ロード状態 */
.bukkake-posts-grid.loading .bukkake-post-item {
    opacity: 0.5;
    pointer-events: none;
}

/* 検索フォーム（オプション） */
.bukkake-search-form {
    max-width: 400px;
    margin: 0 auto 40px auto;
    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bukkake-search-form input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.bukkake-search-form button {
    padding: 15px 25px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bukkake-search-form button:hover {
    background: #0056b3;
}

/* ===== ぶっかけ作品 アーカイブページスタイル ===== */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*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;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: #eee;
}

.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-actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.bl-actress-card {
    text-align: center;
    text-decoration: none;
    background: white;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: block;
}

.bl-actress-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.bl-actress-thumb {
    width: 100%;
    padding-top: 133%; /* 3:4 縦長 */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #eee;
}

.bl-actress-name {
    font-weight: bold;
    color: #333;
    margin: 8px 0;
    font-size: 15px;
}

.bl-actress-count {
    font-size: 12px;
    color: #999;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

@media (max-width: 768px) {
    .bl-actress-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bl-actress-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   関連女優セクション
======================================== */
.bl-related-actress-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.bl-related-actress-section h3 {
    border-left: 5px solid #ff9800;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* ========================================
   フィルターナビ（actressアーカイブ）
======================================== */
.bl-filter-nav {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bl-filter-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-right: 5px;
}

.bl-filter-link {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.bl-filter-link:hover {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

/* ========================================
   関連作品「全作品を見る」リンク
======================================== */
.bl-related-more {
    margin-top: 15px;
    text-align: right;
}

.bl-related-more a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.bl-related-more a:hover {
    text-decoration: underline;
}

/* ===== CTAボタン クリックしやすさ改善 ===== */
.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;
}

/* ===== 投稿ページ 人気女優セクション ===== */
.bl-popular-actress-section {
    background: #f8f9fa;
    padding: 28px 0 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;
}

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

/* ===== 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 クリエイターページ（page-myfans-creator.php。fukilab と同じ）=====
 * プロフィール .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;
    }
}

/* 吹き出し見出し（作品概要・サンプル画像・プロフィール、myfans ページ）: 追加 CSS の .speech-bubble-left は max-width:200px で長い見出しが折り返されるため上限を外す */
.entry-content .speech-bubble-left {
  max-width: 100%;
  width: fit-content;
}
/* 公開情報で分かる特徴（.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 で大きく出す（fukilab・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 {
    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;
    }
}
